CLI
agc — the Agent Commons command line. Chat, run, schedule, and ship from the terminal.
Run agc with no arguments for an interactive menu, or use the commands
below directly. Every list command accepts --json for scripting.
Signing in
| Option | Purpose |
|---|---|
--api-key <key> | Use a project key instead of the browser flow — for CI |
--no-browser | Print the URL rather than opening it |
--api-url <url> | Point at another Agent Commons deployment |
--identity-url <url> | Point at another Commons Identity deployment |
--initiator <id> | Delegated principal, for keys that permit it |
Credentials go to ~/.agc/config.json with mode 0600. Access tokens refresh
automatically before each command.
Configuration
Settable keys: apiUrl, identityUrl, apiKey, initiator,
defaultAgentId. Environment variables win over the file — AGC_API_URL,
AGC_API_KEY, AGC_INITIATOR, AGC_AGENT_ID, COMMONS_ACCESS_TOKEN,
COMMONS_IDENTITY_URL.
Set defaultAgentId once and every --agent flag below becomes optional.
Chatting
An interactive REPL. Tokens stream, tool calls render inline, and the session
is written to ~/.agc/sessions/<sessionId>.jsonl.
| In-chat command | Effect |
|---|---|
/help | List commands |
/tools | Show the tools available in this session |
/session | Print the current session ID |
/clear | Clear the screen |
/quit, /exit, /q | Leave — the session stays resumable |
Local file access
agc chat exposes your working directory to the agent by default. The agent
gets a live directory snapshot plus a set of cli_* tools that execute on your
machine, not on the server:
| Tool | What it does |
|---|---|
cli_list_directory | List files and folders |
cli_read_file | Read a file — PDFs and Word documents are extracted to text |
cli_write_file | Write a file — asks you first |
cli_search_files | Find files matching a pattern |
cli_run_command | Run a short command — asks you first |
cli_start_process | Start a long-running command in the background |
cli_wait_for_process · cli_process_status · cli_kill_process · cli_list_processes | Manage background processes |
Writes and commands require your confirmation. Sensitive paths — .ssh,
.gnupg, .aws, .env, anything credential-shaped — are blocked outright.
Git commits made through the agent carry a Co-Authored-By trailer naming the
agent. Pass --no-local to switch all of this off.
One-shot runs
| Option | Purpose |
|---|---|
--agent <agentId> | Which agent |
--session <sessionId> | Continue an existing session |
--new-session | Start fresh and print the new session ID |
--local | Enable local file access, with a prompt per write |
-y, --yes | Enable local file access and auto-approve everything |
--computer | Attach the agent's persistent cloud computer |
--no-stream | Wait for the complete answer |
--json | Emit the raw event stream as JSON lines |
--provenance <mode> | off, metadata (default), or full |
--onchain-provenance | Request an on-chain anchor for this run |
Agents
agents create option | Default |
|---|---|
--name <name> | required |
--instructions <text> | — |
--provider <provider> | openai — openai, anthropic, google, groq, openrouter, xai, ollama, custom |
--model <id> | gpt-5.4-mini |
--model-api-key <key> | Bring your own provider key |
--model-base-url <url> | For custom or local OpenAI-compatible endpoints |
--runtime <runtime> | native — or openclaw, hermes, custom |
Heartbeat
Managed runtimes
Sessions
Tasks
task create option | Purpose |
|---|---|
--agent · --session | Ownership and thread |
--workflow <workflowId> | Attach a workflow instead of a single run |
--input <json> | Input data — defaults to {} |
--timeout <ms> | Execution timeout |
--execute | Run immediately after creating |
--watch | Stream progress over SSE — implies --execute |
agc t is an alias for agc task.
Workflows
Templates
Templates create the workflow and the API tools it needs. --prefix keeps
generated names stable across re-runs. agc wf is an alias for
agc workflow.
Tools
MCP servers
Skills
Connections
Cloud computers
Each agent has exactly one persistent computer.
resize also accepts --profile, --mode, --gpu-type, and --gpu-count.
Library and files
--storage s3|ipfs picks the backend for an upload. agc files is an alias.
Code projects
Common Arcade
See Common Arcade.
Memory
Wallets
Provenance
Add --json to the first two for the complete machine-readable trajectory.
API keys
agc api-keys is an alias.
Usage, logs, and billing
Scripting
--json on any list or get command prints machine-readable output.
For CI, authenticate with a project key and skip the browser entirely:
