CLI reference
One binary, constle. Run it bare for the command overview, or constle version for the version.
On this page
CommandsLink to this section
| Command | What it does |
|---|---|
constle [--no-animation] |
Show the startup screen and command overview. The flag skips the animated intro. |
constle init |
Create a starter agent.yaml in the current directory: image python:3.12-alpine, with a one-line command. |
constle run [--backend=docker|firecracker] [--accept-isolation=<level>] <agentfile> |
Run an agent in a sandbox. |
constle validate <agentfile> |
Check an Agentfile without running it. Prints the resolved isolation, warns about declared gates and caps that won't be enforced, and names each field you wrote that it accepts but does not enforce, and each A2A peer reached over plain http. |
constle ps |
List running and recent Constle-managed agents. |
constle stop <run-id> |
Stop a running agent by run ID. |
constle identity create <name> [--owner=<email>] |
Create a cryptographic agent identity (did:key, an Ed25519 keypair). |
constle identity show <name> |
Show an agent's DID and key location. |
constle webhook-keygen <name> |
Generate a human-gates approver keypair (did:key) for human_gates.approver_pubkey. |
constle audit verify [--agentfile=<path>] [--did=<did:key:…>] [--approver-pubkey=<did:key:…>] <logfile> |
Verify a signed audit log (signatures and hash chain), and re-verify the human-gate decisions it records. |
constle version |
Print the version. |
constle runLink to this section
constle run [--backend=docker|firecracker] [--accept-isolation=<level>] <agentfile.yaml>--backend=<name>forces a backend:dockerorfirecracker. By default Docker runs, and Firecracker is chosen when the contract needskernel. Forcing Docker does not relax the isolation contract: an Agentfile that needskernelis refused on Docker, unless you accept a weaker boundary with--accept-isolation.--accept-isolation=<level>(none,processornetwork) runs at a weaker isolation level than the Agentfile declares, for this run only. The level must be strictly weaker than the declared minimum. The run printsISOLATION DOWNGRADE ACCEPTEDand records both levels in itsrun_startedaudit entry. It cannot waive a capability-floor validation error. See Architecture.- There is no
--envflag. Nothing from your shell crosses in except the variables named undercredentials:.
constle validateLink to this section
constle validate <agentfile.yaml>Parses and validates without running anything. It prints the resolved isolation (and whether it was declared or inferred from capabilities), and warns about controls that are declared but won't be enforced, such as spending caps with nothing to meter, gate entries that are switched off or match no tool, and an identity or credentials missing on this machine. It also names each field you wrote that it accepts but does not enforce (sandbox.disk_mb, sandbox.network.egress, spending.max_per_month_usd or compliance.geo_restrictions), and each A2A peer reached over plain http://.
constle identityLink to this section
constle identity create <agent-name> [--owner=<email>]
constle identity show <agent-name>create writes an Ed25519 key to ~/.constle/identities/<name>/key.pem (mode 0600) and prints the DID to paste into identity.did. --owner records an owner label, and constle run refuses an Agentfile whose identity.owner differs from it. See Identity.
constle webhook-keygenLink to this section
constle webhook-keygen <name>Creates the approver keypair for human gates under ~/.constle/webhook-keys/<name>/ (a 0700 directory holding key.pem and key.json, both 0600) and prints the did:key to paste into human_gates.approver_pubkey. It is not an agent identity: it authenticates the human approving gated calls, and the private key goes to whoever operates the decision endpoint.
constle audit verifyLink to this section
constle audit verify [--agentfile=<path>] [--did=<did:key:…>] [--approver-pubkey=<did:key:…>] <logfile>| Flag | Pins |
|---|---|
--agentfile=<path> |
both of the pins below, taken from an Agentfile |
--did=<did:key:…> |
the identity the log must be signed with |
--approver-pubkey=<did:key:…> |
the human_gates.approver_pubkey that the log's recorded gate decisions must verify against |
Unpinned, a check only shows that the log is internally consistent. See Audit log and verification.
Environment variablesLink to this section
| Variable | Effect |
|---|---|
CONSTLE_ANIMATION |
auto (the default), never or always: whether bare constle plays the startup animation. |
| The ones url_secret_ref names | Each holds a human-gates webhook URL, so it never sits in the Agentfile (for example HUMAN_GATE_WEBHOOK_URL). |
| The ones credentials names | Passed into the sandbox, by name. Nothing else from your shell crosses in. |
Running bare constle in an interactive terminal plays the startup animation before the command overview. Use constle --no-animation to skip it for one invocation, or set CONSTLE_ANIMATION. The animation is always suppressed for non-interactive output, NO_COLOR, TERM=dumb, or terminals smaller than 80×24. always overrides CI detection only.
Verifying a releaseLink to this section
The current source and its signed releases aren't public yet. Releases says what a signed release carries.