679 pages for env.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
working-with-messages
Claude Developer Platform · in the page
build-with-claude/working-with-messages
…```java Java AnthropicClient client = AnthropicOkHttpClient.fromEnv(); MessageCreateParams params = MessageCreateParams.builder() .model(Model.CLAUDE_OPUS_5_5) .maxTokens(1024L)…
apply
Claude Developer Platform · in the page
cli-sdks-libraries/cli/apply
…com/docs/en/cli-sdks-libraries/cli/apply description: Declare agents, environments, skills, memory stores, deployments, and vaults as files in your repository and keep the API's resources in sync with…
On a remote host without a browser:
Claude Developer Platform · in the page
cli-sdks-libraries/cli/authentication
…n-directory) for the OS-specific default). On a remote host or in any environment without a local browser, pass `--no-browser` to print the authorize URL and paste the returned code back into the term…
quickstart
Claude Developer Platform · in the page
cli-sdks-libraries/cli/quickstart
…/ant ``` </Tab> <Tab title="curl (Linux/WSL)"> For Linux environments, download the release binary directly. ```bash VERSION=2.1.0 OS=$(uname -s | tr '[:upper:]' '[:lower:]')…
scripting
Claude Developer Platform · in the page
cli-sdks-libraries/cli/scripting
…es/cli/using). ## Version-controlling API resources To keep agents, environments, and other Claude Managed Agents resources as files in your repository, see [Manage resources as code with ant apply]…
using
Claude Developer Platform · in the page
cli-sdks-libraries/cli/using
…ags. Resources in beta (including agents, sessions, deployments, and environments) live under the `beta:` prefix. Commands in this namespace automatically send the appropriate `anthropic-beta` header…
apple-foundation-models
Claude Developer Platform · in the page
cli-sdks-libraries/libraries/apple-foundation-models
…guageModel( name: .sonnet5, auth: .apiKey(ProcessInfo.processInfo.environment["ANTHROPIC_API_KEY"] ?? "") ) let session = LanguageModelSession(model: model) let response = try await session.respo…
openai-sdk
Claude Developer Platform · in the page
cli-sdks-libraries/libraries/openai-sdk
…os from openai import OpenAI client = OpenAI( api_key=os.environ.get("ANTHROPIC_API_KEY"), # Your Claude API key base_url="https://api.anthropic.com/v1/", # the Claude API endpoin…
middleware
Claude Developer Platform · in the page
cli-sdks-libraries/middleware
…AnthropicClient client = AnthropicOkHttpClient.builder() .fromEnv() .addInterceptor(Interceptor.syncOnly((nextClient, request, requestOptions) -> { // Before the request…
csharp
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/csharp
…on for this SDK. ## Client configuration Configure the client using environment variables: ```csharp using Anthropic; // Configured using the ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, and ANTHROPIC…
go
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/go
…option.WithAPIKey("my-anthropic-api-key"), // defaults to os.LookupEnv("ANTHROPIC_API_KEY") ) message, err := client.Messages.New(context.TODO(), anthropic.MessageNewParams{ MaxTokens: 1024,…
java
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/java
…`ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, and `ANTHROPIC_BASE_URL` environment variables AnthropicClient client = AnthropicOkHttpClient.fromEnv(); MessageCreateParams params = MessageCreateParams.…
php
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/php
…oogle Cloud (Google managed):** `Anthropic\Vertex\Client`. Use `::fromEnvironment()`. * **Bedrock:** `Anthropic\Bedrock\MantleClient`. Use `new MantleClient(awsRegion: ...)`. * **Bedrock (legacy):** `…
For Amazon Bedrock support
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/python
…nthropic( # This is the default and can be omitted api_key=os.environ.get("ANTHROPIC_API_KEY"), ) message = client.messages.create( max_tokens=1024, messages=[ { "…
Automatically handles tool execution loop
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/ruby
…her. ## Usage ```ruby anthropic = Anthropic::Client.new( api_key: ENV["ANTHROPIC_API_KEY"] # This is the default and can be omitted ) message = anthropic.messages.create( max_tokens: 1024, me…
typescript
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/typescript
…gure the Anthropic TypeScript SDK for Node.js, Deno, Bun, and browser environments --- This library provides convenient access to the Claude API from TypeScript or JavaScript. <Info> For API featu…
get-api-key
Claude Developer Platform · in the page
get-api-key
…ccount key for your workload. ## Use your API key Set the key as an environment variable: ```bash export ANTHROPIC_API_KEY="sk-ant-api03-..." ``` The [client SDK](https://platform.claude.com/docs/…
get-started
Claude Developer Platform · in the page
get-started
…<Step title="Set your API key"> Export your API key as an environment variable. The cURL command in the following step reads it from `$ANTHROPIC_API_KEY`. ```bash export A…
home
Claude Developer Platform · in the page
home
…ropicOkHttpClient; var client = AnthropicOkHttpClient .fromEnv(); var msg = client.messages().create( MessageCreateParams.builder() .model(Model.CLAUDE_OPUS_5_5)…
intro
Claude Developer Platform · in the page
intro
…n. <Steps> <Step title="Make your first API call"> Set up your environment, install an SDK, and send your first message to Claude. [Go to the quickstart](https://platform.claude.com/docs/e…
access-transparency
Claude Developer Platform · in the page
manage-claude/access-transparency
…on, date-range filtering (`created_at.gte` / `.lt`), and the response envelope (`has_more`, `first_id`, `last_id`) are shared with the rest of the Activity Feed. See [Query the Activity Feed](https://…
access-transparency-log
Claude Developer Platform · in the page
manage-claude/access-transparency-log
…erved. ### Errors Errors use the standard Compliance API JSON error envelope on every endpoint, including the text and binary ones. See [Handle Compliance API errors](https://platform.claude.com/doc…
admin-api
Claude Developer Platform · in the page
manage-claude/admin-api
…n, and the SDK and CLI perform the token exchange from the federation environment variables. See [Bootstrap a workload to manage WIF](https://platform.claude.com/docs/en/manage-claude/wif-admin-api#bo…
api-and-data-retention
Claude Developer Platform · in the page
manage-claude/api-and-data-retention
…ud's Agent Platform, retained data stays within your cloud provider's environment; review each platform's documentation for enablement steps. ### Enable 30-day retention for a workspace Organization…
authentication
Claude Developer Platform · in the page
manage-claude/authentication
…Bearer <key>` on direct HTTP requests, or set the `ANTHROPIC_API_KEY` environment variable and the [client SDK](https://platform.claude.com/docs/en/cli-sdks-libraries/overview) picks it up automatical…
First request
Claude Developer Platform · in the page
manage-claude/claude-code-analytics-api
…Claude Console organization * **terminal\_type:** Type of terminal or environment where Claude Code was used (for example, `vscode`, `iTerm.app`, `tmux`) #### Core metrics * **num\_sessions:** Numbe…
cmek
Claude Developer Platform · in the page
manage-claude/cmek
…managed-agents/overview) (beta) data, including agent configurations, environments, webhooks, sessions and their events, [memory stores](https://platform.claude.com/docs/en/managed-agents/memory) (bet…
cmek-admin-api
Claude Developer Platform · in the page
manage-claude/cmek-admin-api
…() { AnthropicClient client = AnthropicOkHttpClient.fromEnv(); var params = ExternalKeyCreateParams.builder() .displayName("<friendly-name>")…
cmek-coverage-claude-enterprise
Claude Developer Platform · in the page
manage-claude/cmek-coverage-claude-enterprise
…al telemetry. To turn this telemetry off, set the `DISABLE_TELEMETRY` environment variable to `1`, as described under [Telemetry services](https://code.claude.com/docs/en/data-usage#telemetry-services…
cmek-coverage-claude-platform
Claude Developer Platform · in the page
manage-claude/cmek-coverage-claude-platform
…managed-agents/overview) (beta) data, including agent configurations, environments, webhooks, sessions and their events, [memory stores](https://platform.claude.com/docs/en/managed-agents/memory) (bet…
cmek-how-it-works
Claude Developer Platform · in the page
manage-claude/cmek-how-it-works
…on keys (CMEK), your key encrypts, or wraps, those data keys. This is envelope encryption. To write or read data, Anthropic asks your key management service (KMS) to wrap or unwrap a data key. Data k…
compliance-api
Claude Developer Platform · in the page
manage-claude/compliance-api
…claude.ai web or mobile, which run in the cloud in Anthropic-managed environments (remote sessions). A standalone Claude Console organization (one with no parent organization) is not part of a Claude…
compliance-api-access
Claude Developer Platform · in the page
manage-claude/compliance-api-access
…Export the key for the examples in this guide"> Set the key as an environment variable so the shell samples in this guide can read it: ```bash export ANTHROPIC_COMPLIANCE_ACCESS_KEY=sk-an…
WARNING: This operation PERMANENTLY deletes the chat, all of its messages,
Claude Developer Platform · in the page
manage-claude/compliance-content-data
…t_deleted" } ``` Each successful delete returns a small confirmation envelope with an `id` and a `type` discriminator. The chat endpoint returns `claude_chat_deleted`; check the `type` field before t…
compliance-faq
Claude Developer Platform · in the page
manage-claude/compliance-faq
…claude.ai web or mobile, which run in the cloud in Anthropic-managed environments, are available through the [remote session endpoints](https://platform.claude.com/docs/en/manage-claude/compliance-se…
compliance-sessions
Claude Developer Platform · in the page
manage-claude/compliance-sessions
…ion endpoints for sessions that run in the cloud in Anthropic-managed environments. Both families are read-only, and neither is available to Admin API keys (`sk-ant-admin01-...`): calls authenticated…
data-residency
Claude Developer Platform · in the page
manage-claude/data-residency
…```java Java AnthropicClient client = AnthropicOkHttpClient.fromEnv(); Message response = client.messages().create( MessageCreateParams.builder() .model(Model.CLAUDE_OPUS_5_5)…
api
Claude Developer Platform · in the page
manage-claude/opentelemetry/api
…oid main() { AnthropicClient client = AnthropicOkHttpClient.fromEnv(); var params = TelemetryDestinationCreateParams.builder() .endpointUrl("https://gateway.example.com/otlp")…
sdk
Claude Developer Platform · in the page
manage-claude/opentelemetry/sdk
…version of the SDK can rename a span, an attribute, an option, or an environment variable. Pin the SDK version in your dependencies to choose when you adopt the changes. </Note> ## 1. Install the SD…
organization-webhooks
Claude Developer Platform · in the page
manage-claude/organization-webhooks
…```java Java AnthropicClient client = AnthropicOkHttpClient.fromEnv(); var endpoints = client.beta().organization().webhooks().list(); for (var endpoint : endpoints.autoPager()) { IO…
plugins-api
Claude Developer Platform · in the page
manage-claude/plugins-api
…ples on this page read the Admin API key from the `ANTHROPIC_API_KEY` environment variable. Where an SDK or the CLI fetches more pages for you, `limit` sets the page size, not the total (see [Paginati…
rate-limits-api
Claude Developer Platform · in the page
manage-claude/rate-limits-api
…lt client, which reads the Admin API key from the `ANTHROPIC_API_KEY` environment variable. The SDKs expose these endpoints as `client.organization.rate_limits` (typescript: `client.organization.rateL…
spend-limits-api
Claude Developer Platform · in the page
manage-claude/spend-limits-api
…you. The examples read the Admin API key from the `ANTHROPIC_API_KEY` environment variable. The SDK and the CLI fetch more pages for you as you go through the results, so `limit` sets the page size, n…
user-management
Claude Developer Platform · in the page
manage-claude/user-management
…but cannot change them. ## Quick start Set the `ANTHROPIC_API_KEY` environment variable to your Admin API key. The examples on this page read the key from it. The SDK and the `ant` CLI send the `Au…
user-profiles
Claude Developer Platform · in the page
manage-claude/user-profiles
…oid main() { AnthropicClient client = AnthropicOkHttpClient.fromEnv(); var params = UserProfileCreateParams.builder() .name("Acme Analytics, Inc.") .accessType(UserPro…
user-profiles-verification-portal
Claude Developer Platform · in the page
manage-claude/user-profiles-verification-portal
…oid main() { AnthropicClient client = AnthropicOkHttpClient.fromEnv(); var params = ActionUrlCreateParams.builder() .userProfileId("uprof_011CZkZCu8hGbp5mYRQgUmz9") .a…
wif-admin-api
Claude Developer Platform · in the page
manage-claude/wif-admin-api
…the exchange itself. Point the client at the rule with the federation environment variables and construct it with no arguments, exactly as for inference in [Construct the SDK client](https://platform.…
aws
Claude Developer Platform · in the page
manage-claude/wif-providers/aws
…OPIC_SERVICE_ACCOUNT_ID, and ANTHROPIC_WORKSPACE_ID are read from the environment ant messages create \ --model claude-opus-5-5 \ --max-tokens 1024 \ --message '{role: user, content: "He…
Create the app registration that represents the Claude API audience.
Claude Developer Platform · in the page
manage-claude/wif-providers/azure
…\ --identifier-uris "api://$APP_ID" \ --set api.requestedAccessTokenVersion=2 # Create the service principal so the audience resolves in your tenant. az ad sp create --id "$APP_ID" ``` <Note>…
gcp
Claude Developer Platform · in the page
manage-claude/wif-providers/gcp
…tity tokens instead of static API keys. --- Any Google Cloud compute environment with access to the instance metadata server (Cloud Run, Cloud Functions, App Engine, Compute Engine (GCE), and GKE wit…