You can also try ANTHROPIC_AUTH_TOKEN via the claude setup-token or another method if it exists. See: https://docs.anthropic.com/en/docs/claude-code/settings#environment-variables
ANTHROPIC_AUTH_TOKEN
claude setup-token