Setup Prompt

Copy this prompt into any AI agent CLI session to set up 0dai on your project.

Or just install directly:

npm install -g @0dai-dev/cli && 0dai auth login && 0dai activate free && 0dai init
agent prompt
## Directive: 0dai — unified AI agent configuration

0dai generates native configs for supported AI agent CLIs from a single ai/ directory.

### Setup

npm install -g @0dai-dev/cli
0dai auth login
0dai activate free
0dai init
0dai doctor

Open-source use still requires a free activation license. Init and sync fetch generated files from the 0dai API after auth + activation.

### What you get

- ai/ — manifests, commands, personas, skills, playbooks
- .claude/, .codex/, .gemini/, .aider/ — native agent configs
- AGENTS.md, .mcp.json

Source code is never sent to the API — only file names plus an allowlist of package/build manifests.

### Skills (slash commands)

- /build — run build + test + lint from ai/manifest/commands.yaml
- /review — git diff → tests → decisions.md → maturity check
- /bugfix — reproduce → fix → verify → regression test
- /status — doctor + validate + maturity + swarm status

Pro plan ($15/mo):
- /delegate — save session + create swarm task for another agent
- /feedback — log bug / suggestion / friction / positive

### Key commands

0dai init           # generate ai/ layer via API
0dai sync           # update configs
0dai doctor         # health check
0dai status         # project overview
0dai auth login     # authenticate (free)
0dai activate free  # claim free activation
0dai auth status    # show plan, usage, activation

### Session Roaming

0dai session save --goal "..." --summary "..."

Next agent sees handoff on startup.

### Multi-Agent Swarm (Pro)

0dai swarm delegate --task "write tests" --to aider
0dai swarm plan --goal "implement auth"
0dai swarm budget

### Delegation Policy (Pro)

If ai/docs/delegation-policy.md exists, follow it.

Model routing (cost vs capability):
- Cheap/fast: Claude haiku, Gemini flash, o3-mini — search, exploration
- Balanced: Claude sonnet, Gemini pro, gpt-4.1 — implementation, reviews
- Deep reasoning: Claude opus, o3 — architecture, security, hard debugging

Agent routing (swarm delegate --to):
- claude — architecture, complex reasoning, multi-file refactor
- codex — fast edits, scaffolding, mechanical changes
- gemini — large-context analysis, docs, code review
- aider — git-native focused edits, test writing, commit-per-change
- opencode — general-purpose, prototyping, multi-model

### MCP Servers

If configured in .mcp.json:
- sequential-thinking — complex reasoning
- context7 — library API docs

### Plans

| Plan | init/day | Swarm | Delegation | MCP |
|------|----------|-------|------------|-----|
| Free $0 | 3 | — | — | Core MCP access |
| Pro $15/mo | Unlimited | 50/day | Yes | Full MCP access |
| Team $49/seat | Unlimited | 200/day | Yes | Full MCP access |

Upgrade: https://0dai.dev/pricing

How to use

1

Copy the prompt

Click "Copy Prompt" above

2

Paste into agent

Claude Code, Codex, Gemini, Aider — any CLI

3

Agent sets up 0dai

Installs CLI, runs init, configures everything