Skip to main content

Install

Download and verify a CLI release and put threadify-cli on your PATH. Install it separately from the Engine.

Connect and sign in

Or select the Engine during login:
Sign in to the Engine and select Approve CLI login. Missing URLs are prompted. Use --no-browser remotely; --no-input or CI=true disables prompts. Approval links last five minutes; credentials last 30 days. Role changes, suspension, or source-key revocation invalidate logins. Set the Engine’s registry.browser_origin to its public UI origin.
logout revokes the managed CLI credential. It does not revoke manually configured keys or unset THREADIFY_API_KEY.

Automation and configuration

For scripts and service accounts, configure the URL and supply an API key:
To save a key without putting it in command arguments, pipe it on stdin:
Stdin avoids putting the key in shell arguments. Config lives at $HOME/.config/threadify/cli.yaml; override with THREADIFY_CLI_CONFIG. Changing the saved Engine URL clears its credential. URL precedence is --api-url, THREADIFY_API_URL, THREADIFY_ENGINE_URL, then saved config. Credential precedence is --key, the saved credential for that Engine, then THREADIFY_API_KEY. Commands print JSON to stdout, errors to stderr and exit nonzero on failure. Writes are not retried automatically; check state before retrying a timed-out write. Use --timeout 30s to change the timeout and --file - to read stdin.

Trace ingestion rules

Admin access is required to save. Rules apply to /v1/traces, not SDK events. See filtering for the preview format and scope.

Contracts

Contracts use Gherkin (.feature) source. Updates create a new version; deletion requires --yes.

Entity profile types and profiles

Choose a reference key for the entity. Save as customers.yaml:
Use the returned type ID. Threads with matching customer_id refs populate the profile after archival. Profiles can be created before activity; repeating the same type and ref updates the name. Configure metrics under Entity Profiles.

Threads and references

--contract and --role are optional for contract-free threads. Finding by ref returns every matching thread; refs are not unique thread identifiers. close requires an explicit completed or cancelled status. verify prints integrity results and exits nonzero when verification fails. Use SDKs or OTEL for event instrumentation; the CLI manages and inspects resources. For other Engine queries:

Coding-agent skills

Install the bundled contract and investigation instructions for your coding agent:
Supported targets are codex, claude, cursor, and copilot. User scope is the default; add --project for the current repository. Existing modified skills are preserved unless --force is specified. Installation does not supply credentials or start the Engine. Contract validation itself remains deterministic.