CLI Reference activation-first
All commands: 0dai <command> [options]
Core Commands
| Command | Description |
|---|
init [--dry-run] | Initialize ai/ layer via API after auth, free activation, and project bind; --dry-run previews files without writing |
sync [--dry-run] | Re-sync configs from server after activation and project bind; --dry-run shows what would change |
project bind --target . | Bind the current local project to your 0dai account after auth |
project status --target . | Show local binding status, project id, stack, and origin |
project analytics --target . | Emit a local pilot analytics snapshot for cross-project benchmarking |
detect | Show detected stack and available/optional CLIs |
reflect [--days N] | Session reflection: delivered tasks, delegation rate per agent, budget spend, model tier breakdown; default 7 days |
models | Model ratings table with tier, score, CLI flag; flags: --fast, --balanced, --deep, --available |
status | Show maturity, swarm queue, active session |
Doctor & Health
| Command | Description |
|---|
audit | Scan ai/, CLAUDE.md, and agent configs for leaked secrets; exits 1 on critical findings |
doctor | Health check + agent auth detection (detects subscription logins, API keys, and CLI presence); explains WHY configs are missing and whether to run init or sync |
validate | Verify required ai/ files are present; prints human-readable summary of missing files; exits 1 on failure |
Auth Commands
| Command | Description |
|---|
auth login | Device code flow — authenticate via browser |
auth logout | Remove credentials |
auth status | Show account, plan, usage, remaining quota, and activation state |
activate free | Claim the free activation license required for API-first init and sync |
activate status | Show activation id, plan, and current activation status |
redeem <CODE> | Apply a plan upgrade code (format: PLAN-XXXX-XXXX) |
Swarm Commands
| Command | Description |
|---|
swarm add --task "..." --for codex | Create task for agent |
swarm delegate --task "..." --to aider | Delegate to another agent |
swarm plan --goal "..." | Auto-decompose into subtasks |
swarm run [--all] [--dry-run] | Execute tasks; auto-routes to fast/balanced/deep model based on task complexity |
swarm status | Queue / active / done counts |
swarm budget | Session + daily token spend; model tier breakdown (fast/balanced/deep) |
swarm webhook add --url "..." [--event done] | Register webhook for task events |
swarm webhook list | Show registered webhooks |
swarm webhook remove --url "..." | Remove a webhook |
swarm webhook test | Send test payload to all webhooks |
Session Commands
| Command | Description |
|---|
session save --goal "..." | Save session for roaming |
session status | Show active session |
session complete | Archive session |
Feedback Commands
| Command | Description |
|---|
feedback push | Send feedback reports to 0dai API |
feedback log --type TYPE --detail TEXT | Log local feedback; types: bug, suggestion, friction, positive |
feedback list | List submitted reports |
Terminal / Multi-session
| Command | Description |
|---|
terminal launch --tool TOOL | Launch interactive agent session; tools: codex, claude, gemini, opencode, aider |
terminal list | Show active sessions |
Skills
Available as slash commands in agent CLIs:
| Skill | Description |
|---|
/build | Run build + test + lint from commands.yaml |
/review | Git diff → tests → decisions → maturity check |
/bugfix | Reproduce → fix → verify → regression test |
/delegate | Save session → create swarm task → handoff |
/feedback | Log bug / suggestion / friction / positive |
/status | Doctor + validate + maturity + swarm |
Global Flags
| Flag | Description |
|---|
--target PATH | Override working directory; applies to all commands |
--version | Show CLI version |