> ## Documentation Index
> Fetch the complete documentation index at: https://docs.circuit.org/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI commands

> Generated reference for all Circuit CLI commands, positional arguments, and flags.

Run any agent on your existing wallet. Docs: [https://docs.circuit.org](https://docs.circuit.org) — Global flags: `--json` (Output machine-readable JSON (NDJSON stream for `run`)), `--env <ENV>` (Target deployment: production, staging, or local), `--assistant <ASSISTANT>` (Act as this assistant with its own saved sign-in), `--version` (Show version).

| Command | Summary | Subcommands / Flags |
| - | - | - |
| `circuit auth <COMMAND>` | Sign in / out, identity, and token | `login` — Sign in: `--force` (Sign in again even if a valid session exists); `logout` — Sign out; `whoami` — Show who you're signed in as; `token` — Print your bearer token for capture: `--decode` (Print the decoded permit); `agent <THREAD_ID>` — Restore a thread's agent wallet authorization; `kill-switch` — Halt all delegated signing in Circuit's signer (\$0 gas epoch bump) |
| `circuit new` | Create a new agent project | `--path <PATH>` (Path to agent project directory); `--name <NAME>` (Agent name) |
| `circuit pull <THREAD_ID>` | Download an agent workspace locally | `--path <PATH>` (Path to agent project directory) |
| `circuit check` | Check agent project configuration and files | `--path <PATH>` (Path to agent project directory); `--locked` (Validate dependency lock without updating it); `--artifact <ARTIFACT>` (Write verified production archive to path) |
| `circuit capabilities` | Discover installed SDK, networks, data, actions, and wire schemas | `--resource <RESOURCE>` (Resource names (repeatable): index, sdk, config, networks, ...) |
| `circuit upload` | Save your agent's code to Circuit | `--path <PATH>` (Path to agent project directory); `--var <VAR>` (Agent env var (KEY=VALUE, repeatable)) |
| `circuit run` | Run the agent (local, hosted-engine, or hosted) | `--path <PATH>` (Path to agent project directory); `--keystore <KEYSTORE>` (Override the keystore file location); `--wallet <WALLET>` (Wallet name or address); `--target <TARGET>` (Target: local, hosted-engine, or hosted; default `local`); `--var <VAR>` (Agent env var (KEY=VALUE, repeatable)); `--rpc <RPC>` (RPC URL override (\<network-id>=\<url>, repeatable)); `--simulated` (Paper trading on live markets (local target)); `--setting <SETTING>` (Setting override (KEY=VALUE, repeatable)); `--amount <AMOUNT>` (Starting token amount or max); `--exchange-credential <EXCHANGE_CREDENTIAL>` (Connected exchange account ID) |
| `circuit stop` | Stop the agent's session and list what it left behind | `--path <PATH>` (Path to agent project directory); `--wallet <WALLET>` (Wallet name or address); `--target <TARGET>` (Target: local or hosted; default `local`) |
| `circuit backtest` | Replay the agent against historical markets | `--path <PATH>` (Path to agent project directory); `--setting <SETTING>` (Setting override (KEY=VALUE, repeatable)); `--from <FROM>` (Window start, ISO 8601); `--to <TO>` (Window end, ISO 8601); `--usd <USD>` (Starting USD value of the test perp account); `--output <OUTPUT>` (Write the full report JSON to this path); `--skip-news` (Replay without news history) |
| `circuit upgrade` | Replace this CLI with the newest release | — |
| `circuit ask [REQUEST]...` | Research, manage threads/agents, or prepare money operations | `--thread <THREAD>` (Existing thread ID to reply to); `--approve` (Confirm proposed trades); `--proposals <PROPOSALS>` (Submit proposed trades for review from a JSON file (- for stdin)); `--agent <AGENT>` (Open or edit this agent's code thread); `--session <SESSION>` (Thread ID to ask about (including positions left behind)); `--recover <RECOVER>` (Failed operation ID to fund) |
| `circuit operations <COMMAND>` | Confirm and track proposed money operations | `approve <ID>` — Confirm an operation waiting for approval; `get <ID>` — Show one operation; `cancel <ID>` — Cancel a pending operation |
| `circuit agent <COMMAND>` | Read your agents and your running sessions | `list` — List your saved agents; `get <ID>` — Show one published agent; `sessions` — List your running sessions; `session <ID>` — Show one session's positions and settings |
| `circuit exchange <COMMAND>` | Connect, list, and remove exchange accounts | `connect` — Connect an exchange account by API key or wallet: `--venue <VENUE>` (Exchange venue ID); `--wallet <WALLET>` (EVM wallet ID (for QFEX)); `--accept-terms` (Sign the printed message and create the account); `--label <LABEL>` (Account name); `--api-key <API_KEY>` (Exchange API key); `--api-secret <API_SECRET>` (Exchange API secret); `--private-key-file <PRIVATE_KEY_FILE>` (Path to downloaded key file); `--passphrase <PASSPHRASE>` (Exchange API passphrase); `--credentials-prompt` (Prompt for credentials without displaying input); `list` — List connected exchange accounts; `remove <ID>` — Remove an exchange account by ID |
| `circuit wallet <COMMAND>` | Manage local keystore wallets and read account holdings | `list` — Show wallets in your local keystore: `--keystore <KEYSTORE>` (Override the keystore file location); `holdings` — Show your Circuit account's wallets and holdings; `add` — Add a local wallet to your encrypted keystore: `--keystore <KEYSTORE>` (Override the keystore file location); `--name <NAME>` (Wallet name (required)); `--generate <GENERATE>` (Generate a fresh keypair (evm or solana)); `--private-key <PRIVATE_KEY>` (Private key to import); `--private-key-prompt` (Read the private key from a hidden prompt); `delete` — Remove a wallet from the local keystore: `--keystore <KEYSTORE>` (Override the keystore file location); `--wallet <WALLET>` (Local wallet name or address); `--yes` (Confirm destructive or sensitive action); `export` — Decrypt and print a local wallet's key: `--keystore <KEYSTORE>` (Override the keystore file location); `--wallet <WALLET>` (Local wallet name or address); `--yes` (Confirm destructive or sensitive action) |
| `circuit ui --bundle <BUNDLE>` | Verify a static Circuit web bundle manifest and serve it locally | `--bundle <BUNDLE>` (Path to built web bundle directory containing bundle-manifest.json; required); `--port <PORT>` (Localhost port to bind; default `4173`); `--verify-sha256 <VERIFY_SHA256>` (Expected root bundleSha256 hex digest); `--verify-only` (Verify bundle integrity and exit without starting the HTTP server) |
| `circuit data <COMMAND>` | Read Circuit market data | `asset_fundamentals`, `assets`, `calendar`, `categories`, `funding_rates`, `markets`, `metrics`, `open_interest`, `pools`, `prices`, `yields`. See [Data commands](https://docs.circuit.org/agent-developers/sdk-reference/data-commands.md) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.