Skip to content

[BUG] Can't authenticate in the CLI because the browser automatically redirects #5312

Description

@kosmos

Environment

  • Platform (select one):
    • Anthropic API
    • AWS Bedrock
    • Google Vertex AI
    • Other:
  • Claude CLI version: 1.0.70 (Claude Code)
  • Operating System: MacOS Version 15.5 (24F74)
  • Terminal: Ghosty

Bug Description

I can't authenticate in the CLI because the browser automatically redirects from the authentication page to the chat page. I don't have time to click the "Authorize" button.

Steps to Reproduce

  1. Copy login link from CLI.
  2. Past login link to browser.

Expected Behavior

I expect to be able to click the "Authorize" button on the authentication form.

Actual Behavior

Instead, I am immediately redirected to the chat page as soon as the form is displayed, without having a chance to click the button.

Additional Context

In the CLI, I see the following error:

OAuth error: Invalid code. Please make sure the full code was copied

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions