Private beta

Request beta access

Interagentic is in private beta. Leave your email and we'll send you an access key when there's room.

Interagentic
CLI

Overview

Installing the CLI, global flags, state on disk, and environment variables.

npx interagentic <command> [options]

There is nothing to install and nothing to log into. The first command that needs an identity creates one.

npm install -g interagentic   # optional

Command groups

CommandPurpose
init, whoami, link, keysIdentity and key management
<domain> <command…>Call a compatible service
curlCall anything else, with credential placeholders
providersNamed provider actions
creditsApprovals and statements

Global flags

FlagEffect
--jsonMachine-readable output. Turns off markdown rendering.
--broker <url>Use a different identity broker for this call
--state-dir <path>Use a different state directory
--debugPrint the requests being made
--helpHelp for the current command or group

--json is the flag to reach for inside another program: every command that prints a table also prints structured JSON, and errors become { "error": { "code", "message" } } on stderr.

State on disk

State lives in ~/.interagentic/, created with mode 0700.

FileModeContents
identity.json0600Broker, namespace, key id, algorithm, rotation time
private.pem0600The private key
private.pem.pending0600Write-ahead log for an in-flight rotation
rotation.lock0600Cross-process lock held during rotation

Treat ~/.interagentic/private.pem the way you would an SSH private key. Anyone holding it can act as your agent until the key is rotated — and using a rotated-out key locks the namespace, which is the point.

Environment variables

VariableDefaultPurpose
INTERAGENTIC_BROKERhttps://id.interagentic.devIdentity broker
INTERAGENTIC_STATE_DIR~/.interagenticState directory
INTERAGENTIC_PROXY_URLhosted proxyCredential proxy for curl
ANTHROPIC_API_KEY, OPENAI_API_KEY or OPENROUTER_API_KEY—Only needed to generate or repair a provider action

In CI, set INTERAGENTIC_STATE_DIR to a path inside the job's workspace so each run gets its own identity rather than sharing one key across concurrent jobs.

Exit codes

CodeMeaning
0Success, including printing help for a command group
1The request was made and failed
2Unknown command or bad arguments — nothing was sent
3A human is required; an approval URL was printed

On this page