D

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.

SettingCommunityinfrastructurev1.0.0MIT
0 views0 copies

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

ModelIDBest For
DeepSeek V3deepseek-chatGeneral coding, fast responses
DeepSeek R1deepseek-reasonerComplex reasoning, math, algorithms

Setup

  1. Create an account at https://platform.deepseek.com
  2. Generate an API key from the dashboard
  3. Add credits to your account
  4. Replace sk-your-deepseek-key with your actual key

Pricing Comparison

ModelInput (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

IssueSolution
Invalid API keyVerify key at platform.deepseek.com
Unexpected responsesSome Claude Code prompts may need model-specific tuning
Rate limitsDeepSeek has lower default rate limits - check your tier
Community

Reviews

Write a review

No reviews yet. Be the first to review this template!

Similar Templates