DeepSeek Agent Integrations
DeepSeek’s dual API compatibility means you can use it as the backend model for most popular AI coding agents — no code changes to the agent itself, just environment variables pointing to DeepSeek.
Claude Code
Replace Claude Code’s default Anthropic backend with DeepSeek:
# Linux/Macexport ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropicexport ANTHROPIC_AUTH_TOKEN=sk-your-deepseek-api-keyexport ANTHROPIC_MODEL=deepseek-v4-proexport ANTHROPIC_DEFAULT_OPUS_MODEL=deepseek-v4-proexport ANTHROPIC_DEFAULT_SONNET_MODEL=deepseek-v4-proexport ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-v4-flashexport CLAUDE_CODE_SUBAGENT_MODEL=deepseek-v4-flashexport CLAUDE_CODE_EFFORT_LEVEL=max
# Start using Claude Code with DeepSeekcd your-projectclaude# Windows PowerShell$env:ANTHROPIC_BASE_URL="https://api.deepseek.com/anthropic"$env:ANTHROPIC_AUTH_TOKEN="sk-your-deepseek-api-key"$env:ANTHROPIC_MODEL="deepseek-v4-pro"$env:CLAUDE_CODE_SUBAGENT_MODEL="deepseek-v4-flash"GitHub Copilot
Configure Copilot to use DeepSeek as the LLM backend:
{ "github.copilot.advanced": { "authProvider": "github-enterprise", "debug.overrideEngine": "deepseek-v4-pro", "debug.overrideProxyUrl": "https://api.deepseek.com" }}OpenCode
OpenCode is a terminal-based AI coding assistant that supports DeepSeek natively. DeepSeek V4 Flash is available FREE and UNLIMITED on OpenCode — no API key required for basic usage, no usage limits, no credit card needed.
# Use DeepSeek V4 Flash — free, unlimitedopencode --model deepseek-v4-flash
# Or set environment for any modelexport OPENAI_API_KEY=sk-your-deepseek-api-keyexport OPENAI_BASE_URL=https://api.deepseek.comexport OPENAI_MODEL=deepseek-v4-proOpenCode automatically selects the best DeepSeek model for your task. See opencode.ai for documentation.
Kilo Code
export KILOCODE_PROVIDER=deepseekexport KILOCODE_API_KEY=sk-your-deepseek-api-keySupported Agents — Full List
| Agent | Format | Type |
|---|---|---|
| Claude Code | Anthropic | Terminal CLI |
| GitHub Copilot | OpenAI/Anthropic | IDE extension |
| GitHub Copilot CLI | OpenAI | Terminal CLI |
| OpenCode | OpenAI | Terminal CLI |
| Kilo Code | Native | IDE |
| Cursor | OpenAI | IDE |
| Aider | OpenAI | Terminal CLI |
| WorkBuddy / CodeBuddy | OpenAI | IDE |
| Oh My Pi | OpenAI | Terminal |
| OpenClaw | OpenAI | Agent framework |
| AstrBot | OpenAI | Chat |
| Deep Code | Native | IDE |
| Hermes | OpenAI | Agent |
| nanobot | OpenAI | Agent |
| Crush | OpenAI | Terminal |
| Pi | OpenAI | Terminal |
| Reasonix | OpenAI | Agent |
| Langcli | OpenAI | Terminal |
Cost Advantage
Using DeepSeek as the backend for your coding agents dramatically reduces costs:
| Agent Backend | Cost for 10K coding interactions (avg 3K in / 1K out) |
|---|---|
| Claude Opus 4.7 | $225 |
| Claude Sonnet 4.6 | $135 |
| GPT-5.4 | $112.50 |
| DeepSeek V4 Pro | $19.50 |
| DeepSeek V4 Flash | $6.30 |
Setup Pattern
All integrations follow the same pattern:
- Get a DeepSeek API key from platform.deepseek.com
- Set environment variables pointing to DeepSeek’s API endpoints
- Start using your favorite agent — it now runs on DeepSeek
No agent code changes needed. For agents not listed, check if they support custom OpenAI-compatible endpoints — DeepSeek works anywhere OpenAI works.
Where Next
- API & SDKs — code examples for both API formats
- Comparison & Migration — detailed cost analysis
- Workflows & Best Practices — thinking mode and optimization
- Claude Code — full Claude Code ecosystem guide
- OpenAI Codex — OpenAI’s agentic coding platform (also DeepSeek-compatible)