Installing and global flags
npm install -g @commandagi/host
commandagi --version # prints version offline
commandagi help # lists every command family on this versionRunning commandagi with no subcommands enters an interactive terminal thread; commandagi whoami checks active credentials; commandagi call <tool> --json '{…}' invokes any hosted API tool directly.
Host, local platform, identity, and grants
| command | role & key flags |
|---|---|
daemon start|status|stop|logs|run | Local host at 127.0.0.1:4173 (--port N, --name X, --monetize, --no-platform) |
platform install|start|stop|status | Local workerd API worker, SQLite D1, R2 store, and Durable Objects (~/.commandagi/platform/) |
mcp [--credential-file F] | Stdio MCP relay for local AI CLIs (COMMANDAGI_CREDENTIAL or --credential-file) |
signin · keys create|list|revoke | Browser OAuth PKCE login (host.json) · mint API keys directly (--into .env:COMMANDAGI_API_KEY) |
secret set|list|rm <svc>.<FIELD> | Store service account credentials via stdin (never CLI argv) with --account <name> |
grant add|list|revoke | Standing grants (unit, files, code, outreach, market, shipping) |
grant token|forget|register|sign|rotate | Mint/rotate SHA-256 cagp_ host credentials and Ed25519 cagc. account credentials |
offer [add <dir> | remove <name>] · screens | Offer local folders (--write) and manage sandbox XFCE screens (--size, --browser, --desktop) |
vpn status|exit|up|down|offer-exit | Host and per-thread VPN exit routing |
Agents, threads, workflows, and verification judges
| command | role & key flags |
|---|---|
agents list|signin|start|join|leave | Supervise Claude Code, Codex, Gemini CLI, Cursor Agent, Qwen Code (--of, --agent, --mount) |
agents tasks|supervise|usage|ask|stop|close|launch | Track active turns, enforce plan utilization caps, inject operator guidance (--now), or attach TUI |
workflow run <file.flow.tsx> | Execute declarative workflows (--reality physical|simulation, --thread <addr>) |
judge <run-folder> · optimize <file> | Automated stream trace judge (--follow, --every 30s) and candidate optimization loops (optimize replay) |
Robotics, simulation, and commissioning
| command | role & key flags |
|---|---|
robot drivers · robot import <file> | List real-robot drivers; import URDF/xacro/MJCF to devices/<name>/definition.tsx (--into, --tip, --decompose) |
robot trajectory <runDir> | Extract trajectories and camera projections (--compare <twinDir>, --color velocity|error, --robot ID) |
robot finetune --runs <dir|list> | Contrastive ridge policy training (--out DIR, --name MODEL, --contrastive, --holdout 0.2) |
robot skill promote|list|compose|replay | Versioned skill registry (--robots, --min-pass-rate, --steps, --version, --time-scale) |
robot diagnose <runDir> | Diagnose failures & twin divergence (--twin <twinDir>, --bench-top M, --write) |
robot program export|read <world.tsx> | Export KUKA KRL (.src/.dat) or ABB RAPID (.mod) programs (--unit, --run|--plan, --language) |
testplan check|run|history|results | Commissioning test suites bound to unit serials |
rollout check|start|advance|retry|rollback|close | Staged firmware fleet rollouts |
unit stop --world <w> --unit <u> | Immediate safing stop across all open channels and agents on a unit |
bench gripper|factory | Headless benchmark scoring on gripper threads and MuJoCo G1 factory tasks (--policy, --seeds, --shots) |
sim replay|forecast|cell | Deterministic run replay (--live), factory throughput forecasting (--horizon, --set), and cell drill-down |
calibrate show|rezero|camera | Inspect/update joint zeros (--folder) and calibrate camera extrinsics/intrinsics |
3D CAD, FEA, CFD, slicing, KiCad EDA, and verification
| command | role & key flags |
|---|---|
threed install|status|serve | Manage local OpenCascade WASM kernel or launch authenticated /control kernel server (--port) |
threed observe|measure|interference|export|sheet|bom|dfm|articulate | Inspect B-rep mass/failures, check clearances (--clearance), export STEP/IGES/STL/3MF/quad, render drawings (svg|dxf|pdf), compute BOM/DFM, or lift photos to articulated joints |
fea install|status · study new|check|run|results | Containerized Gmsh + CalculiX FEA kernel and parametric .study.tsx bisection runs |
validate <folder> · engineer <proposal.json> | Automated validation planner (--draft, --run, --revise) and mechanical body synthesis |
slicer install|status|slice <file> · flow benchmark|solve | Containerized PrusaSlicer .gcode export and OpenFOAM CFD channel sweeps (--cpus N) |
import|export kicad · kicad footprint|symbol|copy|check | KiCad project round-trip, ERC/DRC mapped to TSX lines, and footprint/symbol search |
layout|route|fabricate <board.pcb.tsx> · spice <circuit> | PCB placement/routing, Gerber/drill/BOM output, and offline DC/AC/transient SPICE |
pins <sch> --part U1 · electronics|firmware | Emit --c pins.h / --rust pins.rs, PlatformIO check hooks, automated PCB & MicroPython firmware pipelines |
code eval · check · diff · trace · release · task · stream | Sandboxed evaluation (--input k=v), offline multi-domain checks (--json, --watch), semantic SVG/CAD diffs, requirements matrix, immutable .release.tsx, offline task proposals (approve|decline), and RFC 9162 stream proof tools |
Drives, git, sites, mail, shipping, search, and media
| command | role & key flags |
|---|---|
drive status|diff|push|pull|write · sync | 3-way working-state Drive sync (--to cloud://..., --key FILE:VAR) and daemon folder pairs |
git status|log|diff|commit|checkpoint|branch|switch|merge|push | Uniform git operations across local folders and cloud Drives (--folder F) |
sites new|templates|build|deploy|list|logs|rollback|domains|env · share embed | Folder-based site hosting and read-only design iframe shares |
mail claim|domains|dns|import · ship quote|validate|buy|track|void|pickup | Real @commandagi.email / custom DNS inboxes, mailbox imports, and multi-carrier shipping |
web search|fetch|crawl|answer|providers · music render|describe|analyze|compare · 3dxml|jt|automationml|plcopen | Multi-provider search, code-declared audio rendering/analysis, and industrial assembly/PLC importers |