Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

619 pages for anthropic_api_key.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

migration Claude Developer Platform · in the page managed-agents/migration …pi.anthropic.com/v1/agents/$AGENT_ID?beta=true" \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ -H "content… multiagent-orchestration Claude Developer Platform · in the page managed-agents/multiagent-orchestration …curl -fsS https://api.anthropic.com/v1/agents \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ -H "content… onboarding Claude Developer Platform · in the page managed-agents/onboarding …url -fsSL https://api.anthropic.com/v1/sessions \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ -H "content… permission-policies Claude Developer Platform · in the page managed-agents/permission-policies …curl -fsSL https://api.anthropic.com/v1/agents \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ -H "content… quickstart Claude Developer Platform · in the page managed-agents/quickstart …</Tabs> Set your API key as an environment variable: ```bash export ANTHROPIC_API_KEY="your-api-key-here" ``` ## Create your first session <Steps> <Step title="Create an agent"> Create an ag… scheduled-deployments Claude Developer Platform · in the page managed-agents/scheduled-deployments …s://api.anthropic.com/v1/deployments?beta=true" \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ -H "content… secure-deployment Claude Developer Platform · in the page managed-agents/secure-deployment …-fsS https://api.anthropic.com/v1/environments \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ -H "content… spawn.sh: called once per claimed work item Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes …y https://api.anthropic.com/v1/environments \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \… self-hosted-sandboxes-custom-tools Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-custom-tools …e worker host: it # authenticates with your Claude API key (ANTHROPIC_API_KEY). async with ( streamable_http_client(MCP_SERVER_URL) as (read, write, _),… self-hosted-sandboxes-operations Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-operations …from outside the worker host with your organization API key. Setting `ANTHROPIC_API_KEY` on the worker host exposes an organization-scoped credential to agent tool calls. </Warning> ## Read queue dep… self-hosted-sandboxes-workers Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-workers …with-body https://api.anthropic.com/v1/sessions \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ -H "content… session-operations Claude Developer Platform · in the page managed-agents/session-operations …ps://api.anthropic.com/v1/sessions/$SESSION_ID" \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ -H "content… session-threads Claude Developer Platform · in the page managed-agents/session-threads ….anthropic.com/v1/sessions/$SESSION_ID/threads" \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" ``` ```bash… sessions Claude Developer Platform · in the page managed-agents/sessions …url -fsSL https://api.anthropic.com/v1/sessions \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ -H "content… skills Claude Developer Platform · in the page managed-agents/skills …l -X POST "https://api.anthropic.com/v1/skills" \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -F "files[]=@example_skill.zip" ``` <CodeGroupItem> ```… tools Claude Developer Platform · in the page managed-agents/tools …curl -fsSL https://api.anthropic.com/v1/agents \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ -H "content… tools-web-restrictions Claude Developer Platform · in the page managed-agents/tools-web-restrictions …curl -fsSL https://api.anthropic.com/v1/agents \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ -H "content… vaults Claude Developer Platform · in the page managed-agents/vaults …th-body -sS https://api.anthropic.com/v1/vaults \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ -H "content… Or, for Claude Mythos 5.1, which offers the same capabilities to verified organizations: Claude Developer Platform · in the page models/fable-5-1/migration-guide …\ -H "content-type: application/json" \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -d '{ "model": "claude-fable-5", "max_to… whats-new-fable-5-1 Claude Developer Platform · in the page models/fable-5-1/whats-new-fable-5-1 …n. curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: mid-conversation-output-config-2026-07-01" \… migration-guide Claude Developer Platform · in the page models/opus-5-5/migration-guide …RL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d '{ "model": "… migration-guide Claude Developer Platform · in the page models/sonnet-5-5/migration-guide …RL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d '{ "model": "… overview Claude Developer Platform · in the page release-notes/overview …points remain curl-only. The CLI and SDKs read an Admin 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… reduce-latency Claude Developer Platform · in the page test-and-evaluate/strengthen-guardrails/reduce-latency …rt curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d '{ "model": "… Set up Claude Code for your organization Claude Code CLI · in the page admin-setup …minal logins applied 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 unle… Configure your agent Claude Code CLI · in the page agent-sdk/configuration …` into `env` to keep inherited variables such as `PATH`, `HOME`, and `ANTHROPIC_API_KEY`. When you leave `env` unset, the subprocess inherits your environment in both languages. The example routes AP… Hosting the Agent SDK Claude Code CLI · in the page agent-sdk/hosting …s matter at hosting time: * **Anthropic API**: the subprocess reads `ANTHROPIC_API_KEY` from its environment. Supply it from your secret manager, or set `ANTHROPIC_BASE_URL` to route model calls thro… Observability with OpenTelemetry Claude Code CLI · in the page agent-sdk/observability …ronment in TypeScript, so spread // process.env first to keep PATH, ANTHROPIC_API_KEY, and other variables. options: { env: { ...process.env, ...otelEnv } }, })) { console.log(message); } ``` B… Quickstart Claude Code CLI · in the page agent-sdk/quickstart …ou'll run your agent: **macOS / Linux** ```bash theme={null} export ANTHROPIC_API_KEY=your-api-key ``` **Windows (PowerShell)** ```powershell theme={null} $env:ANTHROPIC_API_KEY = "your-api-key" `… Persist sessions to external storage Claude Code CLI · in the page agent-sdk/session-storage …ttings.json`, copy those files into the temp directory first, or set `ANTHROPIC_API_KEY` in `env` instead. Otherwise the run fails with `Not logged in`. Two options conflict with the mirror, and the… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …e) init message. ```typescript theme={null} type ApiKeySource = | "ANTHROPIC_API_KEY" | "apiKeyHelper" | "/login managed key" | "none" | "user" | "project" | "org" | "temporary" | "… Manage multiple agents with agent view Claude Code CLI · in the page agent-view …redentials. If you authenticate with an environment variable such as `ANTHROPIC_API_KEY` rather than `/login`, run that next command from a shell where the variable is set. See the [error reference](… Authentication Claude Code CLI · in the page authentication …, where it can skip the login prompt: * **API key**: you've set the `ANTHROPIC_API_KEY` environment variable and you approve the key when Claude Code asks whether to use it * **Earlier sign-in**: you… Claude Code changelog Claude Code CLI · in the page changelog …tion policy not refreshing until the hourly check after approving an `ANTHROPIC_API_KEY` at startup or switching "Use custom API key" in `/config` * Fixed sandboxed commands failing to start on Linux… Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry Claude Code CLI · in the page claude-apps-gateway …e whose managed settings set them, a session that authenticates with `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, or `apiKeyHelper` [exits at startup](/docs/en/errors.md#administrator-policy-requires-… Claude apps gateway configuration Claude Code CLI · in the page claude-apps-gateway-config …={null} upstreams: - provider: anthropic auth: api_key: ${ANTHROPIC_API_KEY} # OR an OAuth bearer (e.g. a Workload-Identity-Federation-exchanged token): # oauth_token: ${file:/va… Claude apps gateway deployment and operations Claude Code CLI · in the page claude-apps-gateway-deploy …gateway sign-in on this machine` | The developer's environment sets `ANTHROPIC_API_KEY` or `ANTHROPIC_AUTH_TOKEN`, their settings configure an [`apiKeyHelper`](/docs/en/settings-reference#apikeyhelpe… Development containers Claude Code CLI · in the page devcontainer …applies there too. To carry authentication across codespaces, store `ANTHROPIC_API_KEY` or a `CLAUDE_CODE_OAUTH_TOKEN` from [`claude setup-token`](/docs/en/authentication#generate-a-long-lived-token)… Environment variables Claude Code CLI · in the page env-vars …---------------------------------------------------------------- | | `ANTHROPIC_API_KEY` | API key sent as `X-Api-Key` header. When set, this key is used instead of… Error reference Claude Code CLI · in the page errors …us` and confirm the active credential is the one you expect. A stray `ANTHROPIC_API_KEY` in your environment can route requests through a low-tier key instead of your subscription. * Check your provid… Speed up responses with fast mode Claude Code CLI · in the page fast-mode …session whose resolved key is a gateway-issued credential, held in [`ANTHROPIC_API_KEY`](/docs/en/llm-gateway-connect#set-the-base-url-and-credential) or produced by an [`apiKeyHelper`](/docs/en/sett… Claude Code GitHub Actions Claude Code CLI · in the page github-actions …ey, it reuses that key, and offers to keep the repository's existing `ANTHROPIC_API_KEY` secret if one is already set * Otherwise, choose between creating a long-lived token with your Claude subscript… Claude Code GitLab CI/CD Claude Code CLI · in the page gitlab-ci-cd …iable** * Go to **Settings** → **CI/CD** → **Variables** * Add `ANTHROPIC_API_KEY` (masked, protected as needed) 2. **Add a Claude job to `.gitlab-ci.yml`** ```yaml theme={null} stages: - ai… Run Claude Code programmatically Claude Code CLI · in the page headless …the Read tool so the call completes without a permission prompt. Set `ANTHROPIC_API_KEY` before running it, because bare mode doesn't use your subscription login: ```bash theme={null} claude --bare -… Set up Claude Code (local mode) for a HIPAA-ready organization Claude Code CLI · in the page hipaa-setup …ttings) to block cloud providers, gateways, and credentials set with `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, or `apiKeyHelper`. ### Update Claude Code and Claude Desktop The HIPAA configuration… Connect Claude Code to an LLM gateway Claude Code CLI · in the page llm-gateway-connect …. * `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 naming a claude.ai account… Claude Code gateway compatibility guide Claude Code CLI · in the page llm-gateway-protocol …ns) pages describe | The main model, or the default Haiku model when `ANTHROPIC_API_KEY` or `apiKeyHelper` supplies an Anthropic Console key and `ANTHROPIC_AUTH_TOKEN` is unset | The main model | For… Roll out an LLM gateway for your organization Claude Code CLI · in the page llm-gateway-rollout …gateway that reads keys from the `x-api-key` header, developers set `ANTHROPIC_API_KEY` instead; the [credential table](/docs/en/llm-gateway-connect.md#set-the-credential-variable) covers the mapping… Connect Claude Code to tools via MCP Claude Code CLI · in the page mcp …n. The covered names are: * Claude Code's own credentials, such as `ANTHROPIC_API_KEY` and `ANTHROPIC_AUTH_TOKEN` * Your cloud provider's credentials, such as `AWS_BEARER_TOKEN_BEDROCK` * Other cred… Overview Claude Code CLI · in the page overview …` Claude Code prompts you to log in on first use. If you've set the `ANTHROPIC_API_KEY` environment variable and you approve the key when Claude Code asks whether to use it, Claude Code skips the log…
Feedback