← Claude Code / Environment Variables / Authentication
ANTHROPIC_API_KEY Anthropic API key for direct API access. Set this to use your own key instead of the logged-in account.
ANTHROPIC_API_KEY ← Claude Code / Environment Variables / Authentication
ANTHROPIC_API_KEY Anthropic API key for direct API access. Set this to use your own key instead of the logged-in account.
ANTHROPIC_API_KEY