Search the documentation
25 pages for anthropic_auth_token.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
claude-in-microsoft-foundry
Claude Developer Platform · in the page
build-with-claude/claude-in-microsoft-foundry
…Defaults keeps the // client from also reading ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN from // the environment and sending a Claude API credential to your Foundry // endpoint. Features that Fo…
scripting
Claude Developer Platform · in the page
cli-sdks-libraries/cli/scripting
…", "content": "hi"}] }' ``` <Note> Keep `ANTHROPIC_API_KEY` and `ANTHROPIC_AUTH_TOKEN` unset when working from a CLI login. Either variable takes precedence over the login for `ant` commands (see…
csharp
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/csharp
…``csharp using Anthropic; // Configured using the ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN and ANTHROPIC_BASE_URL environment variables AnthropicClient client = new(); ``` Or manually: ```csharp usi…
java
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/java
…l` system properties // Or configures using the `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN` and `ANTHROPIC_BASE_URL` environment variables AnthropicClient client = AnthropicOkHttpClient.fromEnv(); Me…
admin-api
Claude Developer Platform · in the page
manage-claude/admin-api
…Admin API key from `ANTHROPIC_API_KEY` or an OAuth bearer token from `ANTHROPIC_AUTH_TOKEN`. SDK list methods in Python, TypeScript, C#, Go, and Java return an iterator that fetches more pages on dema…
wif-admin-api
Claude Developer Platform · in the page
manage-claude/wif-admin-api
…```bash CLI ant auth login --profile admin --scope "org:admin" export ANTHROPIC_AUTH_TOKEN=$(ant auth print-credentials --profile admin --access-token) ``` Interactive tokens are short-lived; if requ…
wif-reference
Claude Developer Platform · in the page
manage-claude/wif-reference
…| | 2 | `ANTHROPIC_API_KEY` or `ANTHROPIC_AUTH_TOKEN` | Shadows federation entirely. Unset these when migrating from API keys.…
workload-identity-federation
Claude Developer Platform · in the page
manage-claude/workload-identity-federation
…e five-tier order: constructor arguments, then `ANTHROPIC_API_KEY` / `ANTHROPIC_AUTH_TOKEN`, then an explicit `ANTHROPIC_PROFILE`, then the federation environment variables, then the implicit active p…
overview
Claude Developer Platform · in the page
release-notes/overview
…API key from `ANTHROPIC_API_KEY` or an `org:admin` OAuth token from `ANTHROPIC_AUTH_TOKEN`. ### August 20, 2026 * We've released **v1.0 of the [Python SDK](https://platform.claude.com/docs/en/cli-s…
Set up Claude Code for your organization
Claude Code CLI · in the page
admin-setup
…either key. When set, sessions authenticated by `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, or `apiKeyHelper` are blocked at startup; cloud provider sessions aren't affected | `forceLoginMethod`, `fo…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…ns as a fresh dispatch, so a session authenticated through a gateway `ANTHROPIC_AUTH_TOKEN` resumes on the gateway instead of reporting `Not logged in`. Attaching to a stopped session that was backgro…
Authentication
Claude Code CLI · in the page
authentication
…settings reference for the full behavior. * **`ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, or `apiKeyHelper`**: blocked at startup, since organization membership can't be verified for an environment…
Claude Code changelog
Claude Code CLI · in the page
changelog
…e telemetry to your organization for sessions that authenticate with `ANTHROPIC_AUTH_TOKEN` directly against the Anthropic API, so its data-handling settings apply * Improved native binary size: abo…
Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry
Claude Code CLI · in the page
claude-apps-gateway
…**Credentials**: the gateway token is the session's only credential. `ANTHROPIC_AUTH_TOKEN`, `ANTHROPIC_API_KEY`, `apiKeyHelper`, [Anthropic profiles](/docs/en/authentication#anthropic-profiles-and-fe…
Claude Code on Claude Platform on AWS
Claude Code CLI · in the page
claude-platform-on-aws
…forwarding to AWS. If the gateway requires its own token, set it in `ANTHROPIC_AUTH_TOKEN`. ```bash theme={null} export CLAUDE_CODE_USE_ANTHROPIC_AWS=1 export CLAUDE_CODE_SKIP_ANTHROPIC_AWS_AUTH=1 e…
Environment variables
Claude Code CLI · in the page
env-vars
…| | `ANTHROPIC_AUTH_TOKEN` | Custom value for the `Authorization` header (the value you set here will…
Error reference
Claude Code CLI · in the page
errors
…e bad value came from: * `Invalid auth token`: a bearer token from [`ANTHROPIC_AUTH_TOKEN`](/docs/en/env-vars) or [`CLAUDE_CODE_OAUTH_TOKEN`](/docs/en/env-vars) * `Invalid ANTHROPIC_CUSTOM_HEADERS`:…
Speed up responses with fast mode
Claude Code CLI · in the page
fast-mode
…ization has fast mode enabled: * A session that authenticates with [`ANTHROPIC_AUTH_TOKEN`](/docs/en/llm-gateway-connect#set-the-base-url-and-credential) alone skips the check: without a claude.ai lo…
Run Claude Code through a gateway
Claude Code CLI · in the page
gateways
…, and their claude.ai subscriptions aren't used or charged. Setting [`ANTHROPIC_AUTH_TOKEN`](/docs/en/env-vars) for a gateway you run, or signing in to a Claude apps gateway with `/login`, turns off s…
Connect Claude Code to an LLM gateway
Claude Code CLI · in the page
llm-gateway-connect
…code-yourself) below. * `Auth token` or `API key`: a line naming `ANTHROPIC_AUTH_TOKEN`, `ANTHROPIC_API_KEY`, or an `apiKeyHelper` confirms a gateway credential is active. A `Login method` line na…
Gateway protocol reference
Claude Code CLI · in the page
llm-gateway-protocol
…URL. The discovery request sends exactly one credential header: * `ANTHROPIC_AUTH_TOKEN` as a bearer token, when set * Otherwise the resolved API key, including an [`apiKeyHelper`](/docs/en/llm-gat…
Roll out an LLM gateway for your organization
Claude Code CLI · in the page
llm-gateway-rollout
…s in the `Authorization: Bearer` header, developers set their key in `ANTHROPIC_AUTH_TOKEN`. For a gateway that reads keys from the `x-api-key` header, developers set `ANTHROPIC_API_KEY` instead; the…
Connect Claude Code to tools via MCP
Claude Code CLI · in the page
mcp
…, even if you previously ran `/login`, when: * `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, or `apiKeyHelper` is active * A third-party provider such as Amazon Bedrock or Google Cloud's Agent Platfor…
Automate work with routines
Claude Code CLI · in the page
routines
…ou still see `Unknown command: /schedule`. If `ANTHROPIC_API_KEY` or `ANTHROPIC_AUTH_TOKEN` is set in your shell, or `apiKeyHelper` is set in `settings.json`, remove it first, since these take precede…
Configure server-managed settings
Claude Code CLI · in the page
server-managed-settings
…BASE_URL` * Authentication credentials, such as `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, and `CLAUDE_CODE_OAUTH_TOKEN` * The configuration-directory selector `CLAUDE_CONFIG_DIR` * Credential-sourc…