Sign in or check which account is active

getting started

// what it does

claude auth login opens the browser sign-in flow; add --console to authenticate against the Anthropic Console (API billing) instead of a Pro/Max subscription. claude auth status prints the current authentication state as JSON, and claude auth logout clears stored credentials. The in-session commands /login and /logout do the same interactively.

// shell

$ claude auth login
$ claude auth login --console
$ claude auth status

// gotcha

Console (API) auth and subscription auth bill differently. If you are unexpectedly being charged per token, run claude auth status to confirm you are logged in with your subscription and not a leftover ANTHROPIC_API_KEY.

// resources