DeepClaude is a configuration layer that lets you run Anthropic's Claude Code autonomous agent loop with DeepSeek V4 Pro, OpenRouter, or Fireworks AI as the underlying model — reducing API costs by up to 17x while keeping Claude Code's tool-use, file editing, bash execution, subagent spawning, and multi-step coding loops unchanged.
What it does
Claude Code is a terminal-based autonomous coding agent that uses tool loops to read, write, edit files, run bash commands, search with glob/grep, spawn subagents, and manage git operations. Its main drawback is cost: Anthropic's API pricing for Claude Opus is $15 per million output tokens, and the $200/month Max plan has usage caps.
DeepSeek V4 Pro scores 96.4% on LiveCodeBench and costs $0.87 per million output tokens — roughly 17x cheaper. DeepClaude intercepts Claude Code's API calls and redirects them to DeepSeek (or another backend) while leaving the agent loop infrastructure intact.
How to install it (2 minutes)
- Get a DeepSeek API key at platform.deepseek.com, add $5 credit, copy your key.
- Set the environment variable:
- Windows (PowerShell):
setx DEEPSEEK_API_KEY "sk-your-key-here" - macOS/Linux:
echo 'export DEEPSEEK_API_KEY="sk-your-key-here"' >> ~/.bashrcthensource ~/.bashrc
- Windows (PowerShell):
- Install the script:
- Windows:
Copy-Item deepclaude.ps1 "$env:USERPROFILE\.local\bin\deepclaude.ps1" - macOS/Linux:
chmod +x deepclaude.sh && sudo ln -s "$(pwd)/deepclaude.sh" /usr/local/bin/deepclaude
- Windows:
- Run:
deepclaude
Supported backends and pricing
| Backend | Flag | Input/M | Output/M | Notes |
|---|---|---|---|---|
| DeepSeek (default) | --backend ds |
$0.44 | $0.87 | Auto context caching (120x cheaper on repeat turns) |
| OpenRouter | --backend or |
$0.44 | $0.87 | Cheapest from US/EU |
| Fireworks AI | --backend fw |
$1.74 | $3.48 | Fastest inference, US servers |