Skip to content

[BUG] Claude Code Sign In broken on remote environments -> hardcoded localhost redirectUri #10531

@soundyogi

Description

@soundyogi

Problem (one or two sentences)

The OAuth flow uses a hardcoded localhost redirect URI which breaks authentication in remote environments like GitHub Codespaces.

Cause: In src/integrations/claude-code/oauth.ts:12: redirectUri: "http://localhost:54545/callback",

Solution: Use VS Code's vscode.env.asExternalUri() API to dynamically generate the redirect URI.

Context (who is affected and when)

This happens when users in remote environments like github codespaces try to authenticate with claude code

Reproduction steps

create a github codespace, install roo and claude code cli - then try to sign in to claude code

Expected result

I am able to login by alternatively entering a code similar to claude code which has a workaround for this

Actual result

I am not able to authenticate and always alnd on a 404 webpage when trying to (the localhost return redirect)

Variations tried (optional)

No response

App Version

3.38.3

API Provider (optional)

Anthropic

Model Used (optional)

Claude Code

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions