Repository navigation
Description
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
With Claude CLI authenticated only through its native claude auth login (no OpenClaw Anthropic auth profile), selecting a Claude model on the "Claude CLI · native" route in the Control UI shows "No provider credential is configured for this model" and the selection does not take effect, even though native turns on that same model succeed through claude-cli.
Steps to reproduce
- On a macOS Gateway, install Claude Code (2.1.308) and run
claude auth loginwith a Claude Max account.claude auth status --textreports "Login method: Claude Max account". - Do not create any OpenClaw Anthropic auth profile or API key. Config uses
models.mode: "replace", with explicitmodels.providers.anthropicrows forclaude-haiku-5-5,claude-sonnet-5-5,claude-opus-5-5(noapiKey), andagents.defaults.modelsentriesanthropic/*plus the three model ids, each set toagentRuntime: { id: "claude-cli" }.agents.defaults.modelPolicy.allowincludesanthropic/*. - In the Control UI chat model picker, choose "Claude Opus 5.5 · … · 1M · Claude CLI · native".
- Hard-refresh the Control UI and repeat step 3.
Expected behavior
Per docs/providers/anthropic.md (Claude CLI tab): "Normal agent turns use the installed, authenticated Claude Code executable … OpenClaw uses a non-secret route marker and never reads, persists, refreshes, selects, or forwards the native login tokens." With a working native login, the Claude CLI route should be selectable without an OpenClaw-stored Anthropic credential, and no missing-credential banner should appear.
Actual behavior
- The composer shows: "No provider credential is configured for this model. Set it up in Model Setup. Try /models or /help." with a "Connect an AI provider" button.
- The picker checkmark stays on the previously selected model (GPT-6.1-Sol); the Opus 5.5 Claude CLI selection is not applied. Same result after a hard refresh.
- At the same time, on the same Gateway:
- An isolated
sessions_spawnwithmodel: "anthropic/claude-opus-5-5"(also Haiku and Sonnet 5.5) completed with the expected reply, and the Gateway log shows[agent/cli-backend] cli turn: provider=claude-cli model=claude-opus-5-5 durationMs=3742. models.list(both{agentId:"main"}and with the chatsessionKey) andchat.metadatafor the session returnclaude-opus-5-5withavailable: trueandagentRuntime: { id: "claude-cli", source: "model" }.models.authStatusreturns noanthropicorclaude-cliprovider entry at all.
- An isolated
- After saving an Anthropic subscription token profile (
claude setup-token, then offlineopenclaw models auth paste-token --provider anthropic --profile-id anthropic:manual --expires-in 365d),models.authStatusreportsanthropicstatus: okwith atokenprofile, the banner disappears, and selecting Opus 5.5 · Claude CLI works.
OpenClaw version
2026.10.7 (2cd6f9a)
Operating system
macOS 27.0.1 (arm64); Control UI client in Chrome on macOS
Install method
Source checkout build (dist/index.js), run as a LaunchAgent Gateway
Model
anthropic/claude-opus-5-5 (Claude CLI runtime)
Provider / routing chain
Control UI → local Gateway → claude-cli agent runtime → installed Claude Code 2.1.308 using its native Claude Max login. No API key, proxy, or OpenClaw-stored Anthropic credential before the workaround.
Additional provider/model setup details
models.mode: "replace"; other providers present: google, xiaomi, neuralwatt, ollama-cloud (default modelxiaomi/mimo-v2.6-pro).- Bundled
anthropicplugin loaded;openclaw plugins inspect anthropiclistssyntheticAuthRefs: ["claude-cli"]andcliBackendIds: ["claude-cli"]. openclaw models auth login --provider anthropic --method clirefused while the Gateway was running ("No Gateway-compatible login matches this provider and method"), so the native route was configured throughagents.defaults.modelsruntime entries instead.- A second host on 2026.10.7 (32276e1) with the same Claude CLI runtime pinning plus a saved Anthropic subscription token profile did not show the banner.
Logs
2026-10-27T15:50:38.345-06:00 [agent/cli-backend] cli live session start: provider=claude-cli model=claude-haiku-5-5 activeSessions=1
2026-10-27T15:50:41.472-06:00 [agent/cli-backend] cli turn: provider=claude-cli model=claude-haiku-5-5 durationMs=3135 outBytes=13
2026-10-27T15:51:14.062-06:00 [agent/cli-backend] cli turn: provider=claude-cli model=claude-opus-5-5 durationMs=3742 outBytes=13
2026-10-27T15:51:15.161-06:00 [agent/cli-backend] cli turn: provider=claude-cli model=claude-sonnet-5-5 durationMs=4852 outBytes=13
models.list row for the session before the workaround (excerpt):
{"id":"claude-opus-5-5","provider":"anthropic","available":true,"agentRuntime":{"id":"claude-cli","source":"model"}}models.authStatus before the workaround: no provider row for anthropic or claude-cli. After: {"provider":"anthropic","status":"ok"} with profile {"profileId":"anthropic:manual","type":"token","status":"ok","source":"saved"}.
Screenshots, recordings, and evidence
- Banner observed in the Control UI composer: "No provider credential is configured for this model. Set it up in Model Setup. Try /models or /help." with "Connect an AI provider".
- Picker observed listing "Claude Opus 5.5 · … 1M · Claude CLI · native" with the route tooltip "Runs through Claude Code, using its native login or a selected saved account…", while the checkmark remained on GPT-6.1-Sol.
Impact and severity
Affected: Control UI users who authenticate Claude CLI only through the native Claude Code login.
Severity: Blocks selecting Claude CLI models from the Control UI chat picker; native turns themselves work.
Frequency: Every selection attempt observed before the workaround, including after a hard refresh.
Consequence: Users are directed to "Connect an AI provider" even though their subscription route works, and must add a saved subscription token (which requires stopping the Gateway) to use the picker.
Additional information
Not confirmed as the cause of the observed banner, but found while investigating (unchanged on origin/main at 8fc14c9):
ui/src/pages/chat/chat-model-setup.tscallsresolveChatModelUnavailableReason(model, provider, catalog)without the selected agent runtime, andresolveChatModelUnavailableReasoninui/src/lib/chat/model-select-state.tschecks only base catalog entries, ignoringruntimeChoices. An in-memory check using these helpers: a base Anthropic row withavailable:false, unavailableReason:"missing-auth"plus an available Claude CLI runtime choice still yields themissing-authbanner. The picker usesresolveModelRuntimeEntryelsewhere for runtime-specific capabilities.models.listcalls made from the CLI reported the base row asavailable:true, so the Control UI's own scoped read may differ (e.g. requester-scoped availability for synthetic/native auth insrc/agents/model-auth-availability.ts). I could not capture the browser's ownmodels.listresponse, so I could not confirm which path produced the banner.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Oct 27, 2026
Codex review: this still needs some work.
Summary
Keep open: current main retains a runtime-blind composer credential check, and no verified fix covers the reported Claude CLI selection failure.
Reproducibility: Current source deterministically returns the base route's missing-auth reason despite an available selected runtime choice; the complete reported picker failure has not been reproduced.
Next step
Fix runtime-blind composer availability after establishing a failing mixed-route regression, and trace the rejected selection through the browser-scoped catalog and session patch.
Review details
Best possible solution:
Use selected-runtime availability consistently in the composer and picker, with visible recovery when that specific route is unavailable.
Do we have a high-confidence way to reproduce the issue?
Current source deterministically returns the base route's missing-auth reason despite an available selected runtime choice; the complete reported picker failure has not been reproduced.
Is this the best way to solve the issue?
Reusing resolveModelRuntimeEntry at the composer availability boundary is a focused repair; suppressing all Anthropic credential errors or requiring a saved token would violate route-specific behavior.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against 222e6a621316.
Label changes
Label changes:
P1: The report documents a currently broken model-selection workflow despite successful native Claude CLI turns.impact:auth-provider: Credential readiness and runtime-specific model selection disagree.impact:ux-friction: The UI sends an already authenticated user toward unnecessary provider setup; the reported configuration is an advanced operator workflow.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.clawsweeper:queueable-fix: Current issue advisory state selects this label.clawsweeper:fix-shape-clear: Current issue advisory state selects this label.Label justifications:
P1: The report documents a currently broken model-selection workflow despite successful native Claude CLI turns.impact:auth-provider: Credential readiness and runtime-specific model selection disagree.impact:ux-friction: The UI sends an already authenticated user toward unnecessary provider setup; the reported configuration is an advanced operator workflow.Evidence reviewed
Acceptance criteria:
What I checked:
ui/src/pages/chat/chat-model-setup.ts:66, 947947b0b749)ui/src/lib/chat/model-select-state.ts:194, 947947b0b749)ui/src/lib/model-runtime-choice.ts:14, 947947b0b749)ui/src/pages/chat/components/chat-model-controls.tsx:262, 947947b0b749)docs/providers/anthropic.md:163, 947947b0b749)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 explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed October 27, 2026, 6:22 PM ET / 22:22 UTC.
mateu commentedon Nov 11, 2026
Thank you