DeepSeek Provider Settings
Configure Claude Code to use DeepSeek's API as an alternative model provider. Access DeepSeek V3 and reasoning models for cost-effective coding tasks, with pricing significantly lower than most providers.
Provider Configuration
# Required: DeepSeek provider settings export ANTHROPIC_BASE_URL=https://api.deepseek.com/v1 export ANTHROPIC_API_KEY=sk-your-deepseek-key
Settings File
{ "env": { "ANTHROPIC_BASE_URL": "https://api.deepseek.com/v1", "ANTHROPIC_API_KEY": "sk-your-deepseek-key" }, "preferences": { "model": "deepseek-chat" } }
Available Models
| Model | ID | Best For |
|---|---|---|
| DeepSeek V3 | deepseek-chat | General coding, fast responses |
| DeepSeek R1 | deepseek-reasoner | Complex reasoning, math, algorithms |
Setup
- Create an account at https://platform.deepseek.com
- Generate an API key from the dashboard
- Add credits to your account
- Replace
sk-your-deepseek-keywith your actual key
Pricing Comparison
| Model | Input (per 1M) | Output (per 1M) |
|---|---|---|
| DeepSeek V3 | $0.27 | $1.10 |
| DeepSeek R1 | $0.55 | $2.19 |
Pricing as of early 2026. Check platform.deepseek.com for current rates.
Limitations
- Not a drop-in replacement: Some Claude Code features may work differently
- Tool use: DeepSeek's tool/function calling may differ from Claude's native format
- Context window: DeepSeek V3 supports 64K tokens (vs Claude's 200K)
- Streaming: Supported but may have different chunking behavior
When to Use DeepSeek
- Cost-sensitive development and prototyping
- Bulk code generation tasks
- Simple refactoring and formatting
- Algorithm implementation and math-heavy tasks (R1)
Troubleshooting
| Issue | Solution |
|---|---|
Invalid API key | Verify key at platform.deepseek.com |
| Unexpected responses | Some Claude Code prompts may need model-specific tuning |
| Rate limits | DeepSeek has lower default rate limits - check your tier |
Reviews
No reviews yet. Be the first to review this template!
Similar Templates
Project Standards Config
Claude Code settings preset that enforces consistent coding standards. Configures TypeScript strict mode, ESLint rules, Prettier formatting, and naming conventions.
Bedrock Configuration Blueprint
All-in-one setting covering configure, claude, code, amazon. Includes structured workflows, validation checks, and reusable patterns for api.
Refined Corporate Preset
Production-ready setting that handles configure, proxy, settings, corporate. Includes structured workflows, validation checks, and reusable patterns for api.