claude-code - 💡(How to fix) Fix [FEATURE] Add an `/auth` command to manage the active authentication provider [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#60569Fetched 2026-05-20 03:55:10
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Root Cause

This makes authentication state difficult to reason about, especially because switching back often requires manually unsetting environment variables or editing ~/.claude/settings.json. It can also create confusion around billing, since users may unintentionally use API/Vertex billing instead of their Claude subscription.

Fix Action

Fix / Workaround

The workaround is to edit manually the settings.json.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Claude Code currently supports multiple authentication methods, such as Claude subscription login, Anthropic API keys, and third-party providers like Google Vertex AI.

However, once more than one authentication method has been configured, it is not very clear which provider is currently active or how to switch between them safely. For example, a user may log in with a Claude subscription using /login, then configure Google Vertex AI using /setup-vertex. After that, Vertex may take precedence, but the subscription login still exists in the background.

This makes authentication state difficult to reason about, especially because switching back often requires manually unsetting environment variables or editing ~/.claude/settings.json. It can also create confusion around billing, since users may unintentionally use API/Vertex billing instead of their Claude subscription.

Proposed Solution

Add a dedicated /auth command that allows users to view and manage authentication providers from inside Claude Code.

The command could provide an interactive menu like: /auth

Active provider: Google Vertex AI

Configured providers: [1] Claude subscription [2] Anthropic API key [3] Google Vertex AI

Actions:

  • Switch active provider
  • Reconfigure provider
  • Remove provider
  • Show provider details

Alternative Solutions

The workaround is to edit manually the settings.json.

Priority

Medium - Would be very helpful

Feature Category

Interactive mode (TUI)

Use Case Example

No response

Additional Context

Suggested capabilities:

  • Show the currently active authentication provider

  • Show all configured authentication methods

  • Allow switching between Claude subscription, Anthropic API, and Vertex/Bedrock providers

  • Provide a non-interactive mode, for example: claude auth status claude auth use subscription claude auth use vertex claude auth logout vertex

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [FEATURE] Add an `/auth` command to manage the active authentication provider [1 comments, 2 participants]