Sign in to Claude Code

Authenticating the official Anthropic CLI in the Codespace.

Command

claude auth login
1

Run the command below in the Codespace terminal.

2

A new browser tab opens automatically to the Anthropic login page.

3

Sign in with an email or Google account.

4

Close the tab once authenticated. The terminal displays a success message.