Integrate with Coding Agents
Integrate with Claude Code
- Install Claude Code
npm install -g @anthropic-ai/claude-code
- Config Environment Variables
export ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic
export ANTHROPIC_AUTH_TOKEN=${DEEPSEEK_API_KEY}
export ANTHROPIC_MODEL=deepseek-v4-pro[1m]
export ANTHROPIC_DEFAULT_OPUS_MODEL=deepseek-v4-pro
export ANTHROPIC_DEFAULT_SONNET_MODEL=deepseek-v4-pro
export ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-v4-flash
export CLAUDE_CODE_SUBAGENT_MODEL=deepseek-v4-pro
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
export CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK=1
export CLAUDE_CODE_EFFORT_LEVEL=max
- Enter the project directory and execute the
claudecommand to get started.
cd my-project
claude

Integrate with OpenCode
- Install OpenCode
For installation instructions, please refer to the OpenCode official documentation.
- Modify the Configuration File
Add the following provider configuration to your config file. Config file path: ~/.config/opencode/opencode.jsonc
"provider": {
"deepseek": {
"npm": "@ai-sdk/anthropic",
"name": "DeepSeek",
"options": {
"baseURL": "https://api.deepseek.com/anthropic",
"apiKey": "<DeepSeek API Key>"
},
"models": {
"deepseek-v4-pro": {
"name": "DeepSeek-V4-Pro",
"limit": {
"context": 1048576,
"output": 262144
},
"options": {
"reasoningEffort": "max",
"thinking": {
"type": "enabled"
}
}
}
}
}
}