Skip to content
BENIBIX Learn

ANTHROPIC_PROFILE

AI⌨️ Claude CodeConfiguration

Also known as ANTHROPIC_PROFILE environment variable

It names the saved profile to sign in with.

Think of it like

It is like you say which of your saved cards to pay with.

Example

Jack has a work profile and a home one saved. He sets this to work in his work folder. Then the right account pays.

Why it matters

One person with two accounts can pick the right one per folder or per script.

Definition

ANTHROPIC_PROFILE names the Anthropic profile Claude Code signs in with. A profile is a saved sign-in, such as one that ant auth login wrote. When you name it here, it ranks above your /login plan. When you do not, a saved profile ranks below it.

Example code

bash
export ANTHROPIC_PROFILE=work
claude
Sign in with the work profile.
A named profile sits just above /login.

Common mistake

Expecting a saved profile to be used on its own. Unless you name it, your /login plan wins.

Key takeaways

  1. 1
    Names a profile. A saved sign-in.
  2. 2
    Named, it ranks high. Above /login.
  3. 3
    Unnamed, it ranks low. Below /login.