If you plan to use DeepSeek V4 Pro in Claude Code, you need to modify the configuration file as follows: Edit the current configuration file:
nano ~/.claude/settings.json
The correct configuration is:
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.deepseek.com/anthropic%22,
"ANTHROPIC_AUTH_TOKEN": "your DeepSeek V4 API key",
"API_TIMEOUT_MS": "3000000",
"ANTHROPIC_MODEL": "deepseek-v4-pro[1m]",
"ANTHROPIC_SMALL_FAST_MODEL": "deepseek-v4-flash[1m]", // ← add [1m]
"ANTHROPIC_DEFAULT_OPUS_MODEL": "deepseek-v4-pro[1m]",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "deepseek-v4-pro[1m]",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "deepseek-v4-flash[1m]", // ← add [1m]
"CLAUDE_CODE_SUBAGENT_MODEL": "deepseek-v4-pro[1m]",
"CLAUDE_CODE_EFFORT_LEVEL": "max",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
"CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK": "1"
}
}
This way, you can utilize the 1 million token context and the Max-level V4 Pro.😉
