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 | bash

Windows PowerShell

irm https://askdao.ai/install.ps1 | iex

Windows CMD

curl -fsSL https://askdao.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

The script verifies the release checksum before installing. To update later: askdao update

Step 2 — Login

askdao auth login

Opens 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 edit

This scans your project and opens a local studio (on 127.0.0.1, nothing uploaded) with four steps:

  1. Identity — name, description, category, theme color
  2. Persona — model class, system prompt
  3. Skills & Tools — tick exactly which skills and MCP servers travel with the agent, from your project and your global scope
  4. 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 deploy

Returns 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

CommandWhat it does
askdao auth statusShow current login
askdao auth logoutRemove local credentials
askdao mcp setupIssue a fresh personal key and re-configure Claude Code and Codex
askdao mcp setup --printPrint copy-paste config snippets instead of writing files
askdao agent edit --no-uiWrite a draft askdao-agent.yml without opening the browser (CI use)
askdao agent deploy --forceRedeploy 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-downgradeConfirm changing a public agent to private
askdao versionPrint CLI version
askdao updateSelf-upgrade to the latest release