Skip to content

[Bug]: Control UI shows "No provider credential" and rejects Claude CLI model selection with native-only Claude login #186358

Closed

Description

@mateu

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

  1. On a macOS Gateway, install Claude Code (2.1.308) and run claude auth login with a Claude Max account. claude auth status --text reports "Login method: Claude Max account".
  2. Do not create any OpenClaw Anthropic auth profile or API key. Config uses models.mode: "replace", with explicit models.providers.anthropic rows for claude-haiku-5-5, claude-sonnet-5-5, claude-opus-5-5 (no apiKey), and agents.defaults.models entries anthropic/* plus the three model ids, each set to agentRuntime: { id: "claude-cli" }. agents.defaults.modelPolicy.allow includes anthropic/*.
  3. In the Control UI chat model picker, choose "Claude Opus 5.5 · … · 1M · Claude CLI · native".
  4. 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_spawn with model: "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 chat sessionKey) and chat.metadata for the session return claude-opus-5-5 with available: true and agentRuntime: { id: "claude-cli", source: "model" }.
    • models.authStatus returns no anthropic or claude-cli provider entry at all.
  • After saving an Anthropic subscription token profile (claude setup-token, then offline openclaw models auth paste-token --provider anthropic --profile-id anthropic:manual --expires-in 365d), models.authStatus reports anthropic status: ok with a token profile, 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 model xiaomi/mimo-v2.6-pro).
  • Bundled anthropic plugin loaded; openclaw plugins inspect anthropic lists syntheticAuthRefs: ["claude-cli"] and cliBackendIds: ["claude-cli"].
  • openclaw models auth login --provider anthropic --method cli refused while the Gateway was running ("No Gateway-compatible login matches this provider and method"), so the native route was configured through agents.defaults.models runtime 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.ts calls resolveChatModelUnavailableReason(model, provider, catalog) without the selected agent runtime, and resolveChatModelUnavailableReason in ui/src/lib/chat/model-select-state.ts checks only base catalog entries, ignoring runtimeChoices. An in-memory check using these helpers: a base Anthropic row with available:false, unavailableReason:"missing-auth" plus an available Claude CLI runtime choice still yields the missing-auth banner. The picker uses resolveModelRuntimeEntry elsewhere for runtime-specific capabilities.
  • models.list calls made from the CLI reported the base row as available:true, so the Control UI's own scoped read may differ (e.g. requester-scoped availability for synthetic/native auth in src/agents/model-auth-availability.ts). I could not capture the browser's own models.list response, so I could not confirm which path produced the banner.

Activity

  1. added
    clawsweeper:intake:bug
    P1
    clawsweeper:fix-shape-clear
    clawsweeper:queueable-fix
    clawsweeper:source-repro
    impact:auth-provider
    impact:ux-friction
    issue-rating: 🦞 diamond lobster
    no-stale
    and removed
    clawsweeper:intake:bug
    on Oct 27, 2026
  2. clawsweeper commented on Oct 27, 2026

    @clawsweeper
    Contributor

    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:

    • The browser's own scoped catalog and sessions.patch outcome were not captured, so the reported selection rejection is not yet attributed to a specific owner.
    • No current-main browser or native Claude CLI reproduction was run; source establishes the mixed-runtime banner defect only.

    Codex review notes: model internal, reasoning medium; reviewed against 222e6a621316.

    Label changes

    Label changes:

    • add P1: The report documents a currently broken model-selection workflow despite successful native Claude CLI turns.
    • add impact:auth-provider: Credential readiness and runtime-specific model selection disagree.
    • add impact:ux-friction: The UI sends an already authenticated user toward unnecessary provider setup; the reported configuration is an advanced operator workflow.
    • add issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.
    • add clawsweeper:source-repro: Current issue advisory state selects this label.
    • add clawsweeper:queueable-fix: Current issue advisory state selects this label.
    • add 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:

    • Establish the mixed-route composer regression failing on the base and passing with the repair before opening a PR.
    • pnpm --dir ui test src/lib/chat/model-select-state.test.ts src/pages/chat/chat-model-setup.test.ts src/pages/chat/chat-model-runtime.test.ts
    • pnpm tsgo:ui
    • pnpm check:changed
    • git diff --check

    What I checked:

    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge; those execution lanes are retired.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

    Reviewed October 27, 2026, 6:22 PM ET / 22:22 UTC.

  3. mateu commented on Nov 11, 2026

    @mateu
    ContributorAuthor

    Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1clawsweeper:fix-shape-clearclawsweeper:queueable-fixclawsweeper:source-reproimpact:auth-providerimpact:ux-frictionissue-rating: 🦞 diamond lobsterno-stale

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions