CLI Quickstart
From install to deployed agent in four steps.
askdao is the command-line tool that connects your local project to the AskDAO platform. It's open source and runs entirely on your machine.
Source: github.com/askdao/askdao-cli
Step 1 — Install
macOS / Linux / WSL
curl -fsSL https://askdao.ai/install.sh | bashWindows PowerShell
irm https://askdao.ai/install.ps1 | iexWindows CMD
curl -fsSL https://askdao.ai/install.cmd -o install.cmd && install.cmd && del install.cmdThe script verifies the release checksum before installing. To update later: askdao update
Step 2 — Login
askdao auth loginOpens your browser once to confirm the login. Your credentials are saved locally at ~/.config/askdao/credentials.json; the server keeps only a hash.
Login also issues a personal MCP key for this computer and writes it into your local Claude Code (~/.claude.json) and Codex (~/.codex/config.toml) config, so you can use the same tools while developing that your agent will use in production. Codex reads the key from the ASKDAO_MCP_TOKEN environment variable — on macOS / Linux, add the export line the CLI prints to your shell profile; on Windows it's set for you. Tool calls made with this key are charged to your own balance at cost. See MCP Tools → Use the tools on your own computer.
Running login again on the same computer swaps in a new key and revokes the old one. On a machine without a browser: askdao auth login --no-browser
Step 3 — Edit your agent
cd your-project
askdao agent editThis scans your project and opens a local studio (on 127.0.0.1, nothing uploaded) with four steps:
- Identity — name, description, category, theme color
- Persona — model class, system prompt
- Skills & Tools — tick exactly which skills and MCP servers travel with the agent, from your project and your global scope
- Review — confirm, then save or deploy
Every AI-suggested default carries a confidence badge — hover for the reasoning, then keep or override it. The studio saves askdao-agent.yml in your project root. This is the only file you need to commit. Everything under .askdao/ is local scaffolding.
What gets scanned? Package names, dependency counts and language percentages — not your source code. .env files are never read for values (only .env.example key names are checked), and .env*, *.pem and *.key are excluded from every upload. Only the skills you tick are uploaded at deploy.
Step 4 — Deploy
askdao agent deployReturns a link like https://askdao.ai/dashboard/agents/<agent_id> — your agent's page in the Builder Studio, where you can run trials. Redeploying the same agent name updates it in place. Production credentials are injected on the server; tokens on your machine are never uploaded.
Other commands
| Command | What it does |
|---|---|
askdao auth status | Show current login |
askdao auth logout | Remove local credentials |
askdao mcp setup | Issue a fresh personal key and re-configure Claude Code and Codex |
askdao mcp setup --print | Print copy-paste config snippets instead of writing files |
askdao agent edit --no-ui | Write a draft askdao-agent.yml without opening the browser (CI use) |
askdao agent deploy --force | Redeploy even if no changes are detected |
askdao agent deploy --spec <file> | Deploy another spec file from the same package |
askdao agent deploy --harness <id> | Override preferred_harness for this one deploy |
askdao agent deploy --confirm-downgrade | Confirm changing a public agent to private |
askdao version | Print CLI version |
askdao update | Self-upgrade to the latest release |
