docs/providers/deepseek.md
DeepSeek provides powerful AI models with an OpenAI-compatible API.
| Property | Value |
|---|---|
| Provider | deepseek |
| Auth | DEEPSEEK_API_KEY |
| API | OpenAI-compatible |
| Base URL | https://api.deepseek.com |
Install the official plugin, then restart Gateway:
openclaw plugins install @openclaw/deepseek-provider
openclaw gateway restart
Prompts for your API key and sets `deepseek/deepseek-v4-flash` as the default model.
To inspect the plugin's static catalog without a running Gateway:
```bash
openclaw models list --all --provider deepseek
```
```bash
openclaw onboard --non-interactive \
--mode local \
--auth-choice deepseek-api-key \
--deepseek-api-key "$DEEPSEEK_API_KEY" \
--skip-health \
--accept-risk
```
| Model ref | Name | Input | Context | Max output | Notes |
|---|---|---|---|---|---|
deepseek/deepseek-v4-flash | DeepSeek V4 Flash | text | 1,000,000 | 384,000 | Default model; V4 thinking-capable surface |
deepseek/deepseek-v4-pro | DeepSeek V4 Pro | text | 1,000,000 | 384,000 | V4 thinking-capable surface |
deepseek/deepseek-chat | DeepSeek Chat | text | 131,072 | 8,192 | DeepSeek V3.2 non-thinking surface |
deepseek/deepseek-reasoner | DeepSeek Reasoner | text | 131,072 | 65,536 | Reasoning-enabled V3.2 surface |
DeepSeek V4 thinking sessions require replayed assistant messages from a
thinking-enabled turn to include reasoning_content on follow-up requests.
OpenClaw's DeepSeek plugin backfills that field automatically, so normal
multi-turn tool use works on deepseek/deepseek-v4-flash and
deepseek/deepseek-v4-pro even when history came from another
OpenAI-compatible provider (no native reasoning_content) or from a plain
assistant message. No /new required after switching providers mid-session.
When thinking is disabled (including the UI None selection), OpenClaw
sends thinking: { type: "disabled" } and strips replayed reasoning_content
from outgoing history, keeping the session on the non-thinking DeepSeek path.
Use deepseek/deepseek-v4-flash for the default fast path. Use
deepseek/deepseek-v4-pro for the stronger model when you can accept higher
cost or latency.
To run only the DeepSeek V4 direct-model checks from the modern model live suite:
OPENCLAW_LIVE_PROVIDERS=deepseek \
OPENCLAW_LIVE_MODELS="deepseek/deepseek-v4-flash,deepseek/deepseek-v4-pro" \
pnpm test:live src/agents/models.profiles.live.test.ts
Verifies both V4 models complete and that thinking/tool follow-up turns preserve the replay payload DeepSeek requires.
{
env: { DEEPSEEK_API_KEY: "sk-..." },
agents: {
defaults: {
model: { primary: "deepseek/deepseek-v4-flash" },
},
},
}