Key Takeaways
- macOS / Linux: Official recommendation is
curl -fsSL …/install.sh | sh— no Node required; the binary lands in~/.local/bin/dao. - Windows:
npm i -g dao-code(Node ≥ 20) or downloaddao-windows-x64.exefrom Releases; install.sh does not support Windows. - 5-minute smoke test:
dao --version→ firstdaorun to enter your DeepSeek Key → in a project directory run/initto generateDAO.md. - Choosing your stack: Pick DAO-Code for direct API access in mainland China plus low pay-as-you-go costs; pick Claude Code for the Anthropic ecosystem and Opus models — entry point and billing are the real dividing lines.
- Long-running tasks:
dao --goalautonomous mode suits a 7×24 host; closing your laptop lid kills the session — see the cloud Mac section at the end for a production setup.
Bottom line first: DAO-Code has a lower install bar than Claude Code — one curl on macOS/Linux, npm or an exe on Windows. The real difference is not whether you can get it installed, but whether you want to pay for an Anthropic subscription and whether your Agent needs to run 7×24.
1. Why you need a separate terminal Agent install path
By 2026, terminal AI coding tools have split into two lanes: closed-source subscription (Claude Code, Codex CLI) and open source + bring-your-own-model (DAO-Code, OpenCode, Aider, and others). Most people searching for "DAO-Code install" are not stuck on curl — they are weighing trade-offs:
- Claude Code requires an Anthropic account, a Pro subscription, and extra network work outside regions with reliable Anthropic access;
- GLM Coding Plan and similar domestic options have tight quotas and are hard to reproduce on CI machines;
- Teams want an auditable open-source Agent with pay-per-token billing and direct API access in mainland China.
DAO-Code (command name dao) is tigicion's MIT-licensed terminal coding Agent, built for DeepSeek V4 (1M context), Chinese-first UX, and compatibility with Claude Code's settings.json, SKILL.md, and hooks.json formats. It has 800+ GitHub stars; v0.3.0 ships multi-platform binaries and the npm package dao-code.
If you already use Claude Code Skills and MCP assets, migrating to DAO-Code is relatively low friction — but the install path depends on your OS, which is what this guide covers end to end.
2. What DAO-Code is: positioning before you install
Before you copy any install command, confirm DAO-Code matches your use case:
| Dimension | DAO-Code | Claude Code | Notes |
|---|---|---|---|
| Entry | Terminal dao | Terminal claude | Both are TUIs, not IDE plugins |
| Model | DeepSeek V4 Pro/Flash | Claude Opus/Sonnet | DAO emphasizes cache hits to cut cost |
| Auth | DeepSeek API Key (pay-as-you-go) | Anthropic subscription/API | Completely different billing |
| Open source | MIT, forkable | Closed source | Big gap for enterprise compliance |
| Config compatibility | Reads CC Skills/Hooks | Native | Lowers migration friction |
DAO-Code is not a "cheaper Claude knockoff" — it takes a different technical path: cache engineering + reflection-layer fork + cross-session memory validation. Install is only step one; after it runs you will use slash commands like /init, /cost, and /skills. Official docs: GitHub README (Chinese).
3. Three install methods compared (script / npm / manual binary)
This comparison table uses five dimensions so you can pick quickly:
| Install method | Platforms | Command / action | Node required | Auto-update | Best for | |
|---|---|---|---|---|---|---|
| A. One-line script (recommended) | macOS, Linux | `curl -fsSL …/install.sh \ | sh` | No | Re-run script manually | Most developers |
| B. npm global | Win / macOS / Linux | npm i -g dao-code | ≥ 20 | npm update -g | Windows users, existing Node installs | |
| C. Manual binary | All platforms | Download asset from Releases | No | Manual download | Air-gapped intranet, CI pre-bake | |
| D. Build from source | Developers | git clone + npm run build | ≥ 20 | git pull | Contributors, custom forks | |
| E. npx trial | All platforms | npx dao-code | ≥ 20 | Pulls latest each run | Zero-install trial |
Model capability is not the dividing line — workflow entry and billing model are. DAO-Code bills DeepSeek by usage; Claude Code bills by subscription. Decide which bill you want before you install.
System requirements (official)
| OS | Minimum version | Architecture | Notes |
|---|---|---|---|
| macOS | 10.15+ | arm64 / x64 | Script auto-runs xattr to clear quarantine |
| Linux | Mainstream glibc distros | arm64 / x64 | Ubuntu 20.04+ works out of the box |
| Windows | 10 1809+ | x64 | Use npm or dao-windows-x64.exe |
4. macOS and Linux: 5-minute one-line install
4.1 Official recommended command
Open a terminal (Terminal or iTerm on macOS, your default shell on Linux) and run:
curl -fsSL https://raw.githubusercontent.com/tigicion/dao-code/master/install.sh | sh
The script will:
- Detect
darwin/linuxandarm64/x64; - Download
dao-{os}-{arch}from GitHub Releases; - Install to
~/.local/bin/dao(override withDAO<em>INSTALL</em>DIRif needed); - On macOS, attempt
xattr -d com.apple.quarantineto clear Gatekeeper quarantine.
4.2 PATH setup (common gotcha)
If you see dao: command not found, ~/.local/bin is not on your PATH:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc # macOS default zsh
source ~/.zshrc
# Linux bash users: use ~/.bashrc instead
Verify:
dao --version
which dao
4.3 Apple Silicon vs Intel
No manual arch pick — the script reads uname -m and matches dao-darwin-arm64 or dao-darwin-x64. The same flow works on rented M4 Mac mini cloud hosts, which is ideal when you want the Agent resident on a remote machine instead of your laptop.
4.4 Linux distro notes
Ubuntu, Debian, Fedora, Arch, and other mainstream distros are fine. On musl environments like Alpine, if you hit dynamic-linking issues, prefer npm install or a manual static binary download instead of forcing install.sh.
5. Windows: npm and exe paths
install.sh exits with an error on Windows (it tells you to use npm or exe). Windows users have two mature paths:
5.1 Path one: npm global install (recommended)
Confirm Node.js ≥ 20 first:
node --version
Install DAO-Code:
npm i -g dao-code
The command name is still dao. Verify:
dao --version
Zero-install trial (no global write):
npx dao-code
5.2 Path two: download the exe
- Open Releases;
- Download
dao-windows-x64.exe; - Place it in a fixed folder (e.g.
C:\Tools\dao\) and add that folder to system PATH; - Or run the full path directly in PowerShell.
5.3 Windows vs WSL: which to choose
- Native Windows: PowerShell + npm or exe — good for daily dev;
- WSL2: Run install.sh inside the Linux subsystem for the same experience as macOS/Linux; best if WSL is already your main terminal.
Do not run install.sh in Git Bash — the project does not guarantee compatibility. PowerShell or WSL is more reliable.
6. Install verification and first-time DeepSeek API setup
After a successful install, cd into any project directory:
cd ~/your-project
dao
On first run without an API key, you will be prompted to paste your DeepSeek API Key, saved to ~/.dao/config.json. You can also pass it non-interactively:
dao --api-key sk-xxxxxxxx --provider deepseek "Describe this project in one sentence"
6.1 Four-step 5-minute acceptance test
| Step | Command | Expected result |
|---|---|---|
| ① Version | dao --version | Prints version (e.g. v0.3.x) |
| ② Interactive | dao | Enters Ink TUI; you can type prompts |
| ③ Project context | /init | Generates DAO.md project overview |
| ④ Cost visibility | /cost | Shows tokens and cache hit rate |
Common slash commands: /help for the list, /model to switch Pro/Flash, /plan for read-only planning mode, /yolo or dao --yolo for auto-approve (use with care).
Permissions and safety: file writes and shell runs go through an approval gate [y] once [a] remember [n] deny by default; configure allow/ask/deny rules in .dao/settings.json — syntax is similar to Claude Code.
7. Scenario matrix: which install method fits you
| Who you are | Recommended install | Extra notes |
|---|---|---|
| macOS daily dev | A one-line script | Fastest; check PATH |
| Linux server / CI | A script or C binary | CI can cache binary as an artifact |
| Windows 10/11 | B npm global | Install Node 20 LTS first |
| Air-gapped intranet | C manual binary | Pre-download the right arch |
| Just trying it | E npx dao-code | No global clutter |
| Migrating from Claude Code | A/B + copy .claude config | Skills/Hooks formats compatible |
| 7×24 long tasks | Cloud Mac/Linux + A + dao --goal | See rollout checklist below |
8. Recommended stacks
Solo developer (local machine):
install.sh → dao → /init → configure .dao/settings.json → add MCP as needed
Team CI (read-only review):
Releases binary → DAO_AUTO_APPROVE=1 (sandbox only) → dao "review diff" one-shot mode
Dual-track with Claude Code:
Local claude for daily work → cloud Mac dao --goal for long jobs / worktree sub-agents
For multi-Agent parallel layouts, see remote Mac worktree short-lease; for MCP deployment boundaries, see where to run your MCP server.
9. Five common misconceptions
- "Windows can pipe install.sh too" — The script explicitly does not support Windows; use npm or exe.
- "Once installed it replaces all of Claude Code" — Different models and ecosystems; DAO-Code excels at DeepSeek cost and caching, not Opus under another name.
- "npm and script installs won't conflict" — You may end up with two
daobinaries; runwhich daoto see precedence and keep only one. - "YOLO mode is fine for production" —
dao --yoloskips approval; use only in trusted sandboxes; keep default approval on production hosts. - "Closing my laptop lid doesn't affect long tasks" —
dao --goalautonomous mode needs the host online; for long runs use a cloud Mac or server — see why developers run Claude Code on cloud Mac (same reasoning applies to DAO-Code).
10. 7-step rollout checklist
- Pick install method: macOS/Linux → script; Windows → npm or exe.
- Run install and confirm
dao --version. - Fix PATH if you get command not found.
- Get a DeepSeek API Key (platform site — register for pay-as-you-go).
- Run
dao+/initinside a project to generateDAO.md. - Migrate CC config as needed: Skills, Hooks, MCP into
.dao/. - Long-task acceptance:
dao --goal "task description"for 30 minutes; watch/costcache hit rate; for 7×24, spin up a cloud Mac day-rental PoC.
11. FAQ
Q: Can DAO-Code and Claude Code coexist?
Yes. Different commands (dao vs claude), different config dirs (~/.dao vs ~/.claude). Avoid mixing approval rules in the same terminal session.
Q: Is install.sh safe?
The script is open source at install.sh. Best practice: curl download, review, then execute — or download the binary from Releases manually. Enterprise environments should prefer the latter with hash verification.
Q: How do I update to the latest version?
Script install: re-run install.sh to overwrite the binary. npm: npm update -g dao-code. Compare dao --version against Releases.
Q: Who should install from source?
Contributors who need to change Agent logic or ship a custom fork:
git clone https://github.com/tigicion/dao-code.git && cd dao-code
npm install && npm run build && npm link
12. Summary
Installing DAO-Code is straightforward: one official script on macOS/Linux, one npm command or exe on Windows — version check and first API setup fit in five minutes. What matters upfront: whether you accept DeepSeek pay-as-you-go billing, whether you need compatibility with existing Claude Code assets, and whether the Agent should run long jobs 7×24 in the cloud.If all three answers are yes, DAO-Code deserves a place in your 2026 terminal Agent stack — as primary or secondary. After install, run /init + /cost on a real small task; that beats reading ten reviews.
Run DAO-Code long tasks 24/7 on Cloud Mac
Dedicated M4 bare metal, SSH-first; ideal for dao --goal autonomous mode, worktree subagents and MCP on the same host