免费版
FreeTry the API and basic stats
CN¥0/ 30 days
1M equivalent tokens
- concurrency 2
- requests / min 20
- models: deepseek-flash
Please wait while the page loads.
DeepSeek API · tuned for coding
Use the API address shown below, compatible with OpenAI; Claude Code, Codex CLI, Cursor and Continue connect with a one-line config change. Every project gets a profile that remembers the stack, conventions and past pitfalls; hard tasks are reinforced, easy ones stay cheap. One allowance, one number, every charge visible.
https://www.deepcodex.cn/v1The free plan includes 1M equivalent tokens. No card, first key in 30 seconds.
# ~/.codex/config.toml model = "deepseek-v4-pro" model_provider = "deepcodex" [model_providers.deepcodex] name = "deepcodex" base_url = "https://www.deepcodex.cn/v1" env_key = "DEEPCODEX_API_KEY" wire_api = "responses"
Goal
Stop duplicate webhooks from crediting twice, add a concurrency test
export async function handleWebhook(event) {− + + + return { status: 'credited' } }Persistent engineering intelligence
Search is not a nav box and memory is not a chat log. DeepCodex turns real engineering experience into project knowledge that is searchable, explainable and shared across terminals.
Find conventions, past decisions, failure causes, tasks and requests per project, without digging through chats.
query: webhook idempotencyOnly entries relevant to the task and not disabled are chosen, with their source and why they matched.
4 / 128 memories matchedThe same project knowledge serves Codex CLI, Claude Code, opencode, Aider and API calls.
client-native tools preservedClient compatibility
They own local tools, permissions and execution; DeepCodex is the model and engineering-context layer that stays compatible with them.
Swap the model endpoint, keep your workflow
Keeps Subagents, Skills, MCP and sandbox approvals.
export OPENAI_BASE_URL=https://www.deepcodex.cn/v1Minimum plan: Pro Plus
Capability system
Three capabilities that build on each other: establish engineering context, split work across agents, then combine models by task stage.
How it works
Onboarding does not change your workflow; DeepCodex archives, enhances and meters inside the request path.
Keep your terminal and protocol; replace only the base URL and the dck_ API key.
DEEPCODEX_BASE_URL=https://www.deepcodex.cn/v1A key bound to a repository folds consecutive requests into tasks.
Project profiles are injected on demand; hard tasks enter the enhancement path.
See token conversion, cost, latency, peak / off-peak and failure reasons.
Project memory
DeepCodex organises facts and decisions per project and injects only what a request needs.
Stack, structure, conventions, pitfalls, stage summary
Facts, pitfalls, decisions, preferences, structure
Disable a single memory or switch off injection for a whole project
Per-request ledger
From terminal request to upstream response: not just totals, but the one failure or the one cost spike.
Review the idempotency handling of the payment webhook and propose the smallest fix.
Model routing
Quick tasks go to the fast model, complex coding to the deep model; the allowance is one number of equivalent tokens.
DeepSeek Flash
1× equivalent tokens
DeepSeek V4 Pro
4× equivalent tokens
Pricing
Subscribe per plan, 30 days a period. The allowance is a single number, “DeepSeek equivalent tokens”: one Flash token is one equivalent token, other models convert by cost. Five tiers differ by capability, not by model name.
Try the API and basic stats
CN¥0/ 30 days
1M equivalent tokens
Personal projects and common terminals
CN¥29/ 30 days
20M equivalent tokens
Several projects and higher concurrency
CN¥99/ 30 days
100M equivalent tokens
The daily driver for team coding
CN¥199/ 30 days
250M equivalent tokens
Heavy agent runs and cloud execution
CN¥599/ 30 days
800M equivalent tokens
Free plans roll over automatically. Paid plans follow your auto-renewal setting and require sufficient wallet balance to renew.
PricingClients
One config per client: copy, replace the key, launch — three steps.
Install Claude Code, then set these variables in your terminal. Use a key on Pro Plus or above; replace dck_xxx with your key and launch the client.
export ANTHROPIC_BASE_URL=https://www.deepcodex.cn
export ANTHROPIC_AUTH_TOKEN=dck_xxx
export ANTHROPIC_MODEL=deepseek-v4-pro
export ANTHROPIC_SMALL_FAST_MODEL=deepseek-v4-pro
claudeSend a short message to check the connection. For a 403 response, check that your plan includes the required protocol. Keep keys out of source control.
Sub-agents
Parallel tasks in Claude Code and Codex CLI share one key with short concurrency bursts: up to 40 on Pro Plus and 100 on Pro Max.
Submit a repository and task to run an agent in the cloud and receive reviewable code changes and a PR. This feature is not available yet.
FAQ
Migration, metering, project memory and request details.
Usually only the base URL and the API key. Claude Code, Codex CLI, Cursor and Continue keep working the way they do.
Start now
The free plan includes 1M equivalent tokens. Bind a phone number to create your first dck_ API key.
Start free