Skip to main content

Integrate with Coding Agents

Integrate with Claude Code

  1. Install Claude Code
npm install -g @anthropic-ai/claude-code
  1. 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
  1. Enter the project directory and execute the claude command to get started.
cd my-project
claude

Integrate with OpenCode

  1. Install OpenCode

For installation instructions, please refer to the OpenCode official documentation.

  1. 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"
}
}
}
}
}
}