Claude Code — Codespaces & VS Code Extension Login Helper

This tool helps you complete the OAuth login flow for Claude Code (CLI) and the Claude Code VS Code extension when running inside a GitHub Codespace, where the normal localhost redirect cannot be reached from your browser.

Privacy note: This page is entirely client-side. Every URL and token you paste stays in your browser — nothing is sent to any server.

Step 1 — Get your authorization URL

Using the CLI? Run this in your Codespace terminal to install Claude Code, then run claude — it will print an authorization URL for you to copy.

curl -fsSL https://claude.ai/install.sh | bash

Using the VS Code extension? Open the Claude Code extension panel and click Sign in — it will also give you an authorization URL to copy.

Paste whichever authorization URL you received below:

Step 2 — Provide the Codespace port-forwarding URL

Step 3 — Authorize Claude Code

Click the link below to open the Claude authorization page in a new tab. Complete the login there, then come back here.

After authorizing, your browser will try to redirect to a localhost URL that fails in Codespaces. Copy that failed URL from the address bar and paste it below.

Step 4 — Complete the authorization

Click the link below. It routes the OAuth callback through your Codespace port-forwarding URL.

If you see "Build something great" — you're done! Claude Code is authorized.