Skip to content

[Bug]: Authenticated Claude CLI models show unknown auth in models list #130673

Closed as not planned
Agi-Asi/openclaw
#11

Description

@Marvinthebored

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

openclaw models list reports authenticated Claude CLI-routed models with unknown availability (Auth - / available: null) even though the same native login is valid.

Steps to reproduce

  1. Authenticate the native Claude CLI and confirm claude auth status --json reports loggedIn: true.
  2. Configure an Anthropic model with agentRuntime.id: "claude-cli".
  3. Run openclaw models list or openclaw models list --json.
  4. Inspect the configured Anthropic model row.

Expected behavior

The configured model reports Auth yes / available: true, matching the verified native Claude CLI login and the refreshed Gateway model catalog.

Actual behavior

The table reports Auth -, and JSON reports available: null.

OpenClaw version

Live reproduction used OpenClaw 2026.8.1 (e53b535). Source inspection used current main at e00d46b19b63.

Operating system

macOS 26.6.1 (Apple Silicon)

Install method

Source checkout; the running binary was built from e53b535.

Model

anthropic/claude-opus-5

Provider / routing chain

OpenClaw standalone CLI -> bundled Anthropic provider -> native Claude CLI runtime

Additional provider/model setup details

The Anthropic model is configured with agentRuntime.id: "claude-cli". The native Claude CLI login is valid.

Logs

$ claude auth status --json | jq '{loggedIn}'
{
  "loggedIn": true
}

$ openclaw models list | rg 'Model|anthropic/claude-opus-5'
Model                                      Input      Ctx         Local Auth  Tags
anthropic/claude-opus-5                    text+image 1000k       no    -     configured,alias:opus

$ openclaw models list --json | jq '.models[] | select(.key == "anthropic/claude-opus-5") | {key, available}'
{
  "key": "anthropic/claude-opus-5",
  "available": null
}

$ openclaw models list --all --json | jq '.models[] | select(.key == "anthropic/claude-opus-5") | {key, available}'
{
  "key": "anthropic/claude-opus-5",
  "available": null
}

$ openclaw models list --help | rg -- '--refresh' || echo 'no --refresh option'
no --refresh option

$ openclaw models list --json | jq '.models[] | select(.key == "openai/gpt-5.5") | {key, available}'
{
  "key": "openai/gpt-5.5",
  "available": true
}

$ openclaw gateway call models.list --json --timeout 30000 --params '{"view":"configured","refresh":true}' \
    | jq '.models[] | select(.provider == "anthropic" and .id == "claude-opus-5") | {provider,id,available}'
{
  "provider": "anthropic",
  "id": "claude-opus-5",
  "available": true
}

Screenshots, recordings, and evidence

Current main creates the standalone auth index without passing preparedRuntimeAuthModes or preparedRuntimeAuthMaterializations (list.list-command.ts#L127; model-auth-availability.ts#L625-L655). Synthetic-auth metadata alone produces unknown availability.

Related work: #129326, #129332, and #129346. Both PR merge commits are ancestors of the reproduced build. The observed standalone and refreshed Gateway outputs now disagree. PR #129346 correctly prevents structural synthetic-auth metadata alone from proving a native login; this report is not requesting a revert.

This is distinct from #126429, which covers secondary CLI backend IDs, and #129766, which covers Model Providers UI card aggregation. This report is limited to the primary claude-cli route in the standalone command.

Impact and severity

  • Affected: users inspecting configured Anthropic models routed through native Claude CLI
  • Severity in this reproduction: cosmetic; this report covers incorrect inspection output, not a routing failure
  • Frequency: all seven configured Claude CLI-routed Anthropic rows in the observed run; one representative row is shown above
  • Consequence: the standalone and refreshed Gateway listings disagree about the same configured model

Additional information

Suggested direction: determine why the refreshed Gateway resolves availability to true, then expose the same verified signal through the existing standalone auth-resolver boundary if appropriate. Preserve the default command's nonprompting, lazy behavior; do not import Anthropic plugin internals into core, infer login from plugin ownership, copy credentials, or revert #129346 wholesale.

AI-assisted investigation and drafting. The terminal and source evidence above were reproduced and checked directly.

Activity

  1. added
    clawsweeper:fix-shape-clear
    clawsweeper:queueable-fix
    clawsweeper:source-repro
    impact:auth-provider
    issue-rating: 🦞 diamond lobster
    maturity:stable
    no-stale
    P2
    on Aug 27, 2026
  2. clawsweeper commented on Aug 27, 2026

    @clawsweeper
    Contributor

    Codex review: this still needs some work.

    Summary
    The upstream repair is merged, but the open closing reference in Agi-Asi#11 triggers the keep-open guard.

    Reproducibility: no. current-main failure was reproduced in this read-only review; current source replaces the reported standalone path, and the merged repair records real native-login proof.

    Root-cause cluster
    Relationship: superseded
    Canonical: #130749
    Summary: The merged upstream repair owns the original detailed-list omission; later Gateway restart and Control UI selection reports have different triggers.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Next step
    Resolve the open closing reference in Agi-Asi#11 before reconsidering cleanup; current evidence indicates no new upstream repair.

    Review details

    Best possible solution:

    Retain the shared catalog projection and provider-owned native authentication facts, with explicit refresh when discovery is needed.

    Do we have a high-confidence way to reproduce the issue?

    No current-main failure was reproduced in this read-only review; current source replaces the reported standalone path, and the merged repair records real native-login proof.

    Is this the best way to solve the issue?

    The shared availability owner addresses the CLI/Gateway disagreement while preserving native credential ownership and the documented distinction between unknown readiness and verified login.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    Codex review notes: model internal, reasoning medium; reviewed against 8487c89fbedd; fix evidence: commit 7cac905c1eee, main fix timestamp 2026-08-30T03:26:36Z.

    Label changes

    Label changes:

    No label changes.

    Label justifications:

    • P2: The reported failure concerns incorrect inspection output without a demonstrated routing failure.
    • impact:auth-provider: The affected output reports authentication readiness for native Claude CLI model routes.
    Evidence reviewed

    What I checked:

    • Open closing reference: The fork PR remains open and unmerged. Its body explicitly contains a closing reference to this issue and describes the same standalone Claude CLI authentication discrepancy. (ed5564b7e42a)
    • Merged upstream repair: fix(models): verify native CLI auth in detailed lists #130749 explicitly relates to this issue and merged on August 30. Its final body records real installed Claude CLI proof: authenticated detailed lists became available, unrelated API credentials did not establish native login, and default listings remained lazy. (7cac905c1eee)
    • Human confirmation: Marvinthebored supplied isolated native-login proof; collaborator obviyus confirmed logged-in detailed availability, the logged-out negative case with an API key, and zero native probes for the default list.
    • Current command uses shared catalog: The command reads the selected Gateway catalog. Its local fallback passes published authentication materializations into the shared result builder, replacing the standalone auth-index construction identified in the report. (src/commands/models/list.list-command.ts:126, 8487c89fbedd)
    • Native readiness projection: The CLI-runtime evaluator returns availability true when the selected native runtime has a prepared authentication mode; disabled runtime owners and missing native authentication follow separate paths. (src/agents/model-auth-availability.cli-runtime.ts:145, 8487c89fbedd)
    • Current regression coverage: Catalog-result tests require authenticated native CLI routes to be available and distinguish unrelated provider API credentials and disabled plugins. These tests were inspected, not executed. (src/gateway/server-methods/models-list-result.cli-runtime-availability.test.ts:115, 8487c89fbedd)
    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 31, 2026, 7:27 AM ET / 11:27 UTC.

  3. clawsweeper commented on Aug 27, 2026

    @clawsweeper
    Contributor

    🦞🔧
    ClawSweeper is automatically building this issue.

    The issue review finished and no active implementation pull request was found.

    Automatic implementation progress:

    Result: implementation blocked.

    • Reason: validation command failed (pnpm check:changed): $ node scripts/check-changed.mjs [check:changed] lanes=core, coreTests [check:changed] src/commands/models/list.auth-index.test.ts: core test [check:changed] src/commands/models/list.auth-index.ts: core production [check:changed] src/commands/models/list.list-command.ts: core production [check:changed] conflict markers $ node scripts/check-no-conflict-markers.mjs [check:changed] max-lines suppression ratchet $ node --import tsx scripts/check-max-l...
    • Worker: https://github.com/openclaw/clawsweeper/actions/runs/33042723251
    • Updated: 2026-08-27T06:33:59.439Z
  4. added
    clawsweeper:linked-pr-open
    clawsweeper:needs-product-decision
    and removed
    no-stale
    clawsweeper:fix-shape-clear
    clawsweeper:queueable-fix
    on Aug 29, 2026
  5. 16 remaining items

  6. added
    stale
    on Oct 7, 2026
  7. added
    clawsweeper:not-repro-on-main
    on Oct 7, 2026
  8. removed
    stale
    on Oct 8, 2026
  9. added
    clawsweeper:intake:bug
    and removed
    clawsweeper:not-repro-on-main
    clawsweeper:intake:bug
    on Oct 18, 2026
  10. openclaw-barnacle commented on Oct 24, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale after 7 days without qualifying human activity.
    Without new human activity, Barnacle may close it as not planned 7 days after this message was posted. This is administrative inactivity cleanup, not a claim that the problem is fixed.
    A human update restarts the inactivity clock; a new PR head also restarts it. A maintainer can add no-stale for a durable hold, or bad-barnacle to suppress Barnacle. Remove the hold when work can resume.

  11. added
    stale
    on Oct 24, 2026
  12. added
    clawsweeper:intake:bug
    clawsweeper:not-repro-on-main
    and removed
    clawsweeper:intake:bug
    on Oct 31, 2026
  13. openclaw-barnacle commented on Nov 1, 2026

    @openclaw-barnacle

    Closing as not planned after the inactivity notice and full retest/update grace. This is an administrative close; the reported problem has not been confirmed fixed. Please reopen with current reproduction details if it still occurs.

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

    P2clawsweeper:linked-pr-openclawsweeper:no-new-fix-prclawsweeper:not-repro-on-mainimpact:auth-providerissue-rating: 🦪 silver shellfishstale

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions