Repository navigation
Description
Bug type
Regression (worked before, now fails)
Beta release blocker
No
Summary
OpenClaw 2026.6.5 misroutes deepseek-v4-pro to the OpenAI Responses API, causing HTTP 401 (worked on 2026.5.27).
Steps to reproduce
- On OpenClaw 2026.6.5 (npm global, Linux, systemd --user gateway), configure
DeepSeek as a custom OpenAI-compatible provider: API-key auth, empty baseUrl
(DeepSeek default), modeldeepseek-v4-prowithreasoning: false, and
agents.defaults.thinkingDefault: "off". Default model = deepseek/deepseek-v4-pro. - Run
openclaw models status --probe(or send any message to the agent in Telegram). - Observe deepseek-v4-pro fail with HTTP 401 and this gateway log line:
[openai-transport] [responses] error provider=deepseek api=openai-responses model=deepseek-v4-pro status=401 code=invalid_api_key... "find your API key at
https://platform.openai.com/account/api-keys"
Expected behavior
On 2026.5.27 (verified directly by rolling back), the same config and the same
openclaw models status --probe return ok for deepseek-v4-pro, and the agent
replies normally in Telegram. DeepSeek requests should go to api.deepseek.com via
chat-completions, not the OpenAI Responses API. The key is valid: a direct
GET https://api.deepseek.com/user/balance with the same key returns 200.D
Actual behavior
deepseek-v4-pro requests return HTTP 401. openclaw models status --probe reports
deepseek-v4-pro as auth / "Authentication failed (provider returned HTTP 401)".
The gateway log shows the request was sent to the OpenAI Responses API using the
DeepSeek key, which OpenAI rejects:
[openai-transport] [responses] error provider=deepseek api=openai-responses
model=deepseek-v4-pro status=401 code=invalid_api_key
message=401 Incorrect API key provided: sk-... ; find your API key at
https://platform.openai.com/account/api-keys
A direct GET https://api.deepseek.com/user/balance with the same key returns 200,
confirming the key is valid.
OpenClaw version
2026.6.5 (5181e4f)
Operating system
Ubuntu (Linux 6.8.0-124-generic, x86_64), Node 22.22.3
Install method
npm global: sudo npm install -g openclaw
Model
deepseek/deepseek-v4-pro
Provider / routing chain
openclaw -> deepseek (direct, api.deepseek.com, OpenAI-compatible chat-completions)
Additional provider/model setup details
- DeepSeek is a direct custom OpenAI-compatible provider (no Cloudflare / OpenRouter / proxy).
- models.providers.deepseek: models deepseek-v4-pro / deepseek-v4-flash / deepseek-reasoner,
all with reasoning:false; baseUrl empty (uses DeepSeek default https://api.deepseek.com). - agents.defaults.thinkingDefault: "off". Default model deepseek/deepseek-v4-pro. No fallbacks.
- Key resolves from the per-agent auth profile (deepseek:manual) and DEEPSEEK_API_KEY env;
openclaw models statusshows deepseek auth as present. - Tried setting models.providers.deepseek.api = "openai-completions" to force chat-completions;
it did NOT stop the routing to the Responses API. - No API keys, tokens, or passwords included.
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 11, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 11, 2026, 11:59 AM ET / 15:59 UTC.
Summary
Codex review failed: retryable codex transport failure (exit 1).
Reproducibility: unclear. The review failed before ClawSweeper could establish a reproduction path.
Ways to help us reproduce this
Next step
Review did not complete, so no work-lane recommendation was made.
Review details
Best possible solution:
Retry the Codex review after fixing the execution failure.
Do we have a high-confidence way to reproduce the issue?
Unclear. The review failed before ClawSweeper could establish a reproduction path.
Is this the best way to solve the issue?
Unclear. Retry the review first so ClawSweeper can evaluate the actual issue and fix direction.
AGENTS.md: unclear because the file could not be read completely.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against 3d6252a51772.
Label changes
Label changes:
issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label.P1: Current review triage priority is none.clawsweeper:no-new-fix-pr: Current issue advisory state no longer selects this label.clawsweeper:needs-maintainer-review: Current issue advisory state no longer selects this label.clawsweeper:needs-security-review: Current issue advisory state no longer selects this label.impact:security: Current review selected no impact labels.impact:auth-provider: Current review selected no impact labels.issue-rating: 🦐 gold shrimp: Current issue advisory state no longer selects this label.Evidence reviewed
What I checked:
Likely related people:
How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.joshavant commentedon Jun 12, 2026
Thanks for the clear report, @marcoraepple-sys.
This was a real regression in the configured-model path: when a DeepSeek model row only overrode metadata, OpenClaw could lose the bundled DeepSeek transport metadata in the packaged runtime. A blank/default
baseUrlfrom config loading then masked the static DeepSeek endpoint, so the probe fell through to the generic OpenAI Responses fallback and produced the 401 you saw.Fixed by #92265. Configured bundled-provider model rows now inherit missing static transport metadata while still preserving explicit model/provider/runtime overrides, and packaged bundled manifest discovery now uses the canonical resolver.
Verified with a live packaged DeepSeek probe and a reversed-patch regression repro. Closing as fixed.