{"version":"2.1.330","anchor":"sign-in-refused-when-anthropic-profile-would-set-an-api-key","canonical_anchor":"sign-in-refused-when-anthropic-profile-would-set-an-api-key","heading":"Sign-in explains when ANTHROPIC_PROFILE would make it pointless","tier":"notice","area":"Auth","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/sign-in-refused-when-anthropic-profile-would-set-an-api-key","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Sign-in explains when `ANTHROPIC_PROFILE` would make it pointless\n\nWith `ANTHROPIC_PROFILE` set, Claude Code refuses a Console sign-in that would create an API key and warns about Claude account sign-ins\n\n**What**\n\n`ANTHROPIC_PROFILE` is an environment variable (a setting passed in from your shell) naming the Anthropic profile to sign in with. When it is set:\n\n- A Console sign-in that would create an API key is not started. Claude Code tells you to run `ant auth login --profile <name>` or to unset the variable.\n\n- Signing in with a Claude account shows a warning that Claude Code won't use that sign-in until you unset the variable and restart.\n\nThe sign-in screen now offers a way to go back to the login options in place of retrying.\n\n**Why**\n\nWith a profile set, these sign-ins would be quietly ignored. You now get a clear message saying what to do instead.\n\n- Area: Auth\n- Names: `ANTHROPIC_PROFILE`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}