CLI Reference activation-first

All commands: 0dai <command> [options]

Core Commands

CommandDescription
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
detectShow 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
modelsModel ratings table with tier, score, CLI flag; flags: --fast, --balanced, --deep, --available
statusShow maturity, swarm queue, active session

Doctor & Health

CommandDescription
auditScan ai/, CLAUDE.md, and agent configs for leaked secrets; exits 1 on critical findings
doctorHealth check + agent auth detection (detects subscription logins, API keys, and CLI presence); explains WHY configs are missing and whether to run init or sync
validateVerify required ai/ files are present; prints human-readable summary of missing files; exits 1 on failure

Auth Commands

CommandDescription
auth loginDevice code flow — authenticate via browser
auth logoutRemove credentials
auth statusShow account, plan, usage, remaining quota, and activation state
activate freeClaim the free activation license required for API-first init and sync
activate statusShow activation id, plan, and current activation status
redeem <CODE>Apply a plan upgrade code (format: PLAN-XXXX-XXXX)

Swarm Commands

CommandDescription
swarm add --task "..." --for codexCreate task for agent
swarm delegate --task "..." --to aiderDelegate 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 statusQueue / active / done counts
swarm budgetSession + daily token spend; model tier breakdown (fast/balanced/deep)
swarm webhook add --url "..." [--event done]Register webhook for task events
swarm webhook listShow registered webhooks
swarm webhook remove --url "..."Remove a webhook
swarm webhook testSend test payload to all webhooks

Session Commands

CommandDescription
session save --goal "..."Save session for roaming
session statusShow active session
session completeArchive session

Feedback Commands

CommandDescription
feedback pushSend feedback reports to 0dai API
feedback log --type TYPE --detail TEXTLog local feedback; types: bug, suggestion, friction, positive
feedback listList submitted reports

Terminal / Multi-session

CommandDescription
terminal launch --tool TOOLLaunch interactive agent session; tools: codex, claude, gemini, opencode, aider
terminal listShow active sessions

Skills

Available as slash commands in agent CLIs:

SkillDescription
/buildRun build + test + lint from commands.yaml
/reviewGit diff → tests → decisions → maturity check
/bugfixReproduce → fix → verify → regression test
/delegateSave session → create swarm task → handoff
/feedbackLog bug / suggestion / friction / positive
/statusDoctor + validate + maturity + swarm

Global Flags

FlagDescription
--target PATHOverride working directory; applies to all commands
--versionShow CLI version