Skip to main content

XCIM CLI

xcim doctor reports the configuration that an agent can actually observe. It never provisions an application, writes to an attester, reads SQL, or performs consent. The distribution is xcim-cli on both registries; the executable is xcim. The npm and Python editions have no runtime dependencies beyond their own runtime.

# Once the packages have been published:
npm exec --package=xcim-cli -- xcim doctor --attester emabled --json
pipx run --spec xcim-cli xcim doctor --attester emabled --json

Node 22+ or Python 3.9+ is required, respectively. Run from source with node xcim.mjs doctor --attester emabled --json or python xcim_doctor.py doctor --attester emabled --json.

Choose an attester and profile

  • --attester emabled (default) reads https://api.emabled.com/v1/capabilities. An explicit HTTPS origin, without a path, credentials, query, fragment or non-default port, can be used for another attester that implements the same capability contract. That contract is a compatibility requirement for this release, not an XCIM-mandated endpoint.
  • --profile evp|oidc|both (default both) selects the checks. For EVP, --evp-mode vendor|hosted (default vendor) distinguishes a vendor-origin form from a hosted one.
  • --offline makes no HTTP requests. Otherwise the command makes one unauthenticated HTTPS GET with a five-second deadline and rejects redirects. It does not read browser sessions or use vendor, ESP, database or publishing credentials.

Diagnose workspace configuration

The public capability endpoint does not expose workspace settings. An authorized operator can open the application setup view in the Emabled console and save only the JSON response body of its existing read-only GET /v1/control/provisioning/{requestId}/setup request as setup.json. Do not export a HAR, request headers, session cookies or tokens. Keep the JSON local; it may contain workspace metadata. This edition does not log into the console or fetch this private endpoint itself.

xcim doctor --attester emabled --snapshot setup.json --source src_example --profile both --json

The snapshot is an operator-supplied observation, not signed evidence. It is supported only by the Emabled adapter and expires after 24 hours. Pass the source ID when multiple sources are linked or the response is paginated; the file must contain that source. Without a source ID the CLI selects a unique linked source only on an unpaginated response. It never infers that a source on another page is missing.

The report separates public capabilities from recorded workspace configuration: application registration, signed manifest publication, pairwise key configuration, source binding, recorded website DNS verification, exact return URI, exchange endpoint, provider binding/review and browser bootstrap. It does not independently verify any of those proofs. Live DNS, sender-domain authority, access to signing keys, Origin Trial token validity, end-to-end consent and receipts, and current permission are not checked.

Agent output

With --json, stdout contains one JSON object (schema: xcim-doctor/v1). Each check has:

  • status: configured (observed), missing (explicitly absent), or unknown (insufficient evidence).
  • evidence: attester_capabilities or console_snapshot. Consult the top-level evidence statuses to distinguish an observed response from an unavailable or stale one.
  • human_required: the unresolved next step requires a console operator, application owner, provider review or browser action. Missing evidence does not turn every dependent check into a separate human task.
  • next_action: stable machine-readable instruction code, or null for a configured check.

The report does not echo response bodies, raw snapshot values such as keys or URLs, or server error text. It includes the selected application/source IDs for correlation. It has no global “integration ready” verdict.

Exit Meaning
0 All selected, in-scope configuration checks were observed.
2 At least one check is missing or unknown. This includes a public-only run with no snapshot.
3 A requested input could not be read/validated, or the attester request failed. The JSON report still describes what was observed.
64 Invalid command or flags.

Local verification

npm test
python -m unittest discover -s tests

The suites use synthetic configuration, assert the read-only network contract, and check parity across the two editions. Do not share private setup snapshots or credentials in issues, pull requests, or test fixtures.

License

This standalone CLI is licensed under Apache-2.0.

Metadata

Release files for xcim-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xcim-cli 0.1.0
File Size Uploaded Provenance Actions
xcim_cli-0.1.0.tar.gz 11.6 kB With provenance Details for xcim_cli-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xcim-cli 0.1.0
File Interpreter ABI Platform Actions
xcim_cli-0.1.0-py3-none-any.whl Python 3 none any Details for xcim_cli-0.1.0-py3-none-any.whl

Total release size: 23.9 kB

Release files / xcim_cli-0.1.0.tar.gz

Download URL xcim_cli-0.1.0.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a5b9824925fed427ae77758d1720a45196fef8335f43664c0d56fdbead2e8071
BLAKE2b-256 checksum
How to use checksums
feb72768e45ad769171672dc407854b1b9ba4bd043ff68bbbbd1e170e5819f88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / xcim_cli-0.1.0-py3-none-any.whl

Download URL xcim_cli-0.1.0-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac9e1a57ffdc93323c3527e9760ea975b3a414ea91e7ff16d09eeb5484457df4
BLAKE2b-256 checksum
How to use checksums
d3e3a71a7a144bc894df184c3b8cacff96c2b44e4a5812936b6e218e2183cdef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for xcim-cli 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for xcim_cli-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page