# ANTHROPIC_PROFILE

> It names the saved profile to sign in with.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** ANTHROPIC_PROFILE environment variable

## Think of it like

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

## 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

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

## Example code

```bash
export ANTHROPIC_PROFILE=work
claude
```

Sign in with the work profile.

## Why it matters

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

## Common mistake

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

## Three principles

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

## Related terms

- [/login Command](https://learn.benibix.com/term/ai/login-command)
- [ANTHROPIC_API_KEY](https://learn.benibix.com/term/ai/anthropic-api-key-variable)
- [claude auth login Command](https://learn.benibix.com/term/ai/claude-auth-login-command)

![When many sign-ins are set, Claude Code uses the first one it finds in this list.](https://learn.benibix.com/diagrams/env-auth-order.svg)

---

Source: https://learn.benibix.com/term/ai/anthropic-profile-variable
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
