Skip to content
← Back to release · 2.1.325
New features / v2.1.325

[VSCode] Add API-key-free Console sign-in

CHANGELOG · original

[VSCode] Added a Console sign-in that creates no API key
Open official changelog ↗

Documentation

Documentation excerpt

Sign in without an API key

You can sign in to your Console account without creating an API key, even when your organization doesn't let developers create them. Choose the Anthropic Console account at the /login prompt and Claude Code asks how you want to sign in. Requires Claude Code v2.1.242 or later. Both routes sign you in to Console in the browser and differ in what Claude Code stores afterwards:

  • Sign in with your Console account, labeled (recommended): Claude Code keeps the OAuth token from that sign-in and stores it as an Anthropic profile. It creates no API key
  • Create an API key, labeled (legacy): Claude Code creates a Console API key for you and stores it with your other credentials

In practice, the profile stores an OAuth login while an API key is a static credential. Claude Code refreshes the profile's login automatically, and when refresh fails, requests fail with an expired profile login error until you sign in again.

You don't get the choice on every machine. Claude Code creates an API key without asking in these cases:

Unset ANTHROPIC_API_KEY before you sign in without a key.

After you sign in without a key, you have a profile instead of a stored API key:

  • Which profile it writes: Claude Code writes the profile named by ANTHROPIC_PROFILE, or your active profile, or default. If that profile is a federation profile, Claude Code refuses the sign-in instead of overwriting it
  • What it signs you out of: Claude Code signs you out of any claude.ai login stored on the machine
  • How to undo it: run /logout, which removes and revokes the credential this sign-in wrote

Everything else about profiles applies to this sign-in, including where it ranks against your other credentials, the Profile row you get in /status, and the features that need a claude.ai login. See Anthropic profiles and federation credentials.

Documentation snapshot · 2026-11-20

Change details