Quickstart
Install
Node ≥ 22.5:
npm i -g @silassolivagus/deepcodeFirst run
Just run deepcode. On first launch a wizard prompts you to paste your key (written to ~/.deepcode/settings.json, mode 600):
deepcodeIf you already have a key, skip the wizard and set an environment variable instead:
export DEEPSEEK_API_KEY=sk-...
deepcodeThe default model is deepseek-v4-pro. To switch to GLM / Kimi / a self-hosted backend, see multi-provider config.
Your first task
Once you're in the interactive TUI, just describe the task:
> add unit tests for utils and make them passdeepcode plans, calls tools, and runs the tests itself. A typical turn looks like this:
› add unit tests for utils and make them pass
Grep search for utils-related files
Read src/utils.ts
Edit src/utils.test.ts
Bash npm test
Added unit tests for the 4 functions in utils.ts, npm test passes (12 passed).
¥0.03 · 3 turns · 8.2k tokensGrep → Read → Edit → self-test, then a cost line at the end — the whole run is visible and interruptible.
For a one-shot result without entering the interactive UI, use headless mode:
deepcode -p "add unit tests for utils and make them pass"For structured output (scripting / CI), add --json, which includes text / status / turns / usage / costCNY:
deepcode -p "add unit tests for utils and make them pass" --jsonNext steps
- Multi-provider config: switch between DeepSeek / GLM / Kimi / self-hosted backends.
- Commands:
/model,/think,/plan,/cost, and other common commands. - How it works: the main loop, tools, permissions, and memory architecture.