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.

The commands below use xcim-cli 0.3.0. Before running them, confirm that this version is available in the registry you plan to use; npm and PyPI may become available at different times. Until it is available, use the published 0.2.0 version without the --oidc-mode option.

npm exec --package=xcim-cli@0.3.0 -- xcim doctor --attester emabled --json
pipx run --spec xcim-cli==0.3.0 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.

The --oidc-mode option requires xcim-cli 0.3.0 or later; it is not available in 0.2.0.

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.
  • --workflow company|esp (default company) selects the workflow. For company setup, --profile evp|oidc|both (default both) selects the identity checks. --evp-mode vendor|hosted (default vendor) distinguishes a vendor-origin form from a hosted one. Advertised experimental EVP support is not proof that the origin or browser is eligible.
  • For a company OIDC profile, --oidc-mode hosted|site-managed (default hosted) identifies who manages the sign-in flow. Use site-managed only if your site's backend handles the provider callback and submits identity evidence to Emabled. Doctor does not infer the mode from the snapshot.
  • --intent operate|test (default operate) distinguishes operating an existing connection from preparing a new OIDC sign-in test. test requires the company workflow and an OIDC profile. It checks prerequisites; it does not start a test.
  • --offline makes no HTTP requests. Without it, the company workflow makes one unauthenticated HTTPS GET with a five-second deadline and rejects redirects. The ESP workflow is always offline: the public capability response does not describe ESP workspace setup. No workflow reads browser sessions or uses vendor, ESP, database, or publishing credentials.

Diagnose company setup

The public capability endpoint does not expose workspace settings. Use the diagnostics export in the Emabled console's application setup view when available. This version accepts that xcim-doctor/company-snapshot/v1 export and older, unversioned setup JSON. An authorized operator on an older console can save only the JSON response body of the 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. The CLI does not log into the console or fetch the private endpoint.

xcim doctor --attester emabled --snapshot setup.json --source src_example --profile oidc --json
xcim doctor --attester emabled --snapshot setup.json --source src_example --profile oidc --intent test --json
# If your own backend manages the OIDC callback:
xcim doctor --attester emabled --snapshot setup.json --source src_example --profile oidc --oidc-mode site-managed --json

Snapshots are operator-supplied observations, not signed evidence. They are supported only by the Emabled adapter and expire after 24 hours. The versioned export records the selected site when available. --source overrides that selection and the file must contain that source. A versioned export without a selected site is not an inventory: choose a site and export again or pass the ID of a site in the file. With legacy JSON, always pass --source for a paginated or site-scoped response; the legacy fields cannot distinguish the final page from a complete result.

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.

The recorded exchange, provider-binding, review, and bootstrap fields describe Emabled's hosted OIDC relay setup. They are not universal prerequisites for a site-managed OIDC flow. The snapshot does not identify which OIDC integration mode a site uses. Reports with OIDC selected include this limitation in notes and list site_managed_oidc_setup under not_checked.

With --oidc-mode site-managed, Doctor does not evaluate those hosted-relay fields. Instead it reports oidc.site_managed_setup as unknown, with evidence: not_checked and a blocking verify_site_managed_oidc_setup action. This cannot become configured in this version: inspect the site backend and independently test identity, consent and return. If no other checks block, this still exits 2, not 0. The mode applies to both --intent operate and --intent test; it does not run a sign-in test. Omitting the flag retains the existing hosted-relay behavior.

In versioned exports, oidc.exchange_endpoint uses the selected site's exchangeEndpointVerified flag. If that flag is absent or null, the check is unknown. An older unversioned response only records application-wide endpoint activity; it does not show the endpoint is verified for the selected site.

An active OIDC binding with confirmed bootstrap can continue operating after its administrative review ceases to be current. Doctor preserves oidc.provider_review as missing in that case, but marks it advisory, not blocking. --intent test treats the same review as a blocker for a new sign-in test.

Diagnose ESP list-validation setup

Export an ESP diagnostics snapshot from the Emabled console when available. This command reads the local export; it does not accept a list, submit a job, reveal recipient data, or confirm anybody's consent.

xcim doctor --attester emabled --workflow esp --snapshot esp-diagnostics.json --json

The xcim-doctor/esp-snapshot/v1 export contains exactly schema, observedAt (an ISO 8601 timestamp), and six nullable booleans: credentialsEnabled, listValidationEnabled, eligibleRole, mfaRequired, partnerIdentityActive, and delegationAvailable. null means the console did not establish the fact. In particular, a partial or unavailable authorization listing cannot show that no delegation exists. The export does not include tenant, partner, or delegation IDs, domains, recipients, keys, or files.

The report distinguishes an operator-controlled feature from missing role, MFA, ESP identity, or company delegation. A company admin still grants the ESP an explicit, scoped authorization. A configured delegation check is only a recorded observation, not authorization to upload a list or proof of current permission. Identity profiles and --source apply only to the company workflow.

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, console_snapshot, or not_checked for the site-managed setup Doctor cannot assess. Consult the top-level evidence statuses to distinguish an observed response from an unavailable or stale one.
  • human_required: a blocking next step requires a human. 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.
  • actor: who can handle that action (agent, workspace_admin, company_admin, attester_operator, or browser_user), or null when no action is needed. An actor is guidance, not permission to take the action.
  • severity: ok, blocker, or advisory. Use blocking to distinguish a prerequisite from a nonblocking observation. summary.blocking and summary.advisory count these independently of the original status counts.

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 No blocking checks. A missing, nonblocking advisory may still be present. This is not a readiness verdict.
2 At least one blocking check is missing or unknown. This includes a 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.3.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.3.0
File Size Uploaded Provenance Actions
xcim_cli-0.3.0.tar.gz 15.3 kB With provenance Details for xcim_cli-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 30.9 kB

Release files / xcim_cli-0.3.0.tar.gz

Download URL xcim_cli-0.3.0.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1684e0db3f689ed2a0d135d0fb5f1a987a2b5b5fbe10baeb8c9858620faad2fa
BLAKE2b-256 checksum
How to use checksums
339dff6c5a4b9f338ecb219bdb8f2e28ab2434697258fae0a41f64a004734177
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 16, 2026.

Transparency log

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

Download URL xcim_cli-0.3.0-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96c90cf26cf722e94d8ada9df821ad5c9ea82e697c2133c397882980675d4db2
BLAKE2b-256 checksum
How to use checksums
d3325797caf71514c00205e18a2152482f65ff42502981226b1b04aa7de256be
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 16, 2026.

Transparency log

Security for xcim-cli 0.3.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.3.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 16, 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