Create a key
Generate a dedicated key in your dashboard.
Connect Claude Code, Codex, and OpenCode to DeepSeek V4 with configurations verified against the production gateway. Pick your client, copy its native protocol setup, and start coding.
Generate a dedicated key in your dashboard.
Use Anthropic Messages, Chat Completions, or Responses.
Confirm connectivity before real project work.
Each guide is pinned to a protocol we have verified. Readiness is part of the contract, not a marketing label.
Route Claude Code through MyDeepSeek with the gateway variables it already understands.
POST /anthropic/v1/messagesParent shell or ~/.claude/settings.jsonBearer API keynpm install -g @anthropic-ai/claude-codeexport ANTHROPIC_BASE_URL="https://mydeepseekapi.com/anthropic"
export ANTHROPIC_AUTH_TOKEN="YOUR_API_KEY"
# Keep every Claude Code workload on the production-ready model.
export ANTHROPIC_DEFAULT_OPUS_MODEL="deepseek-v4-flash"
export ANTHROPIC_DEFAULT_SONNET_MODEL="deepseek-v4-flash"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="deepseek-v4-flash"
claudecurl https://mydeepseekapi.com/anthropic/v1/messages -H "x-api-key: YOUR_API_KEY" -H "anthropic-version: 2023-06-01" -H "content-type: application/json" -d '{"model":"deepseek-v4-flash","max_tokens":32,"messages":[{"role":"user","content":"Reply with: connected"}]}'Create a dedicated key for each machine or automation. Revoke it without disrupting the rest of your workflow.
Manage API keysCheck the key value and the exact authentication variable for your client.
Claude uses /anthropic, OpenCode uses /api, and Codex uses /v1. Do not swap their base URLs.
Top up credits, then repeat the bounded smoke test before resuming.
Rotate any key that appeared in source control, logs, or screenshots.
Once it passes, use the same client configuration for your real repository.