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

980 pages for bash.

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

On a remote host without a browser: Claude Developer Platform · in the page cli-sdks-libraries/cli/authentication …authorize URL and paste the returned code back into the terminal. ```bash CLI ant auth login # On a remote host without a browser: ant auth login --no-browser # Bind to a specific workspace and ski… quickstart Claude Developer Platform · in the page cli-sdks-libraries/cli/quickstart …nfo> ## Installation <Tabs> <Tab title="Homebrew (macOS)"> ```bash brew install anthropics/tap/ant ``` </Tab> <Tab title="curl (Linux/WSL)"> For Linux environments, download t… scripting Claude Developer Platform · in the page cli-sdks-libraries/cli/scripting …are `./agents/summarizer.md` and `./environments/cloud.yaml`. ```bash ant beta:sessions create \ --agent agent_011CYm1BLqPXpQRk5khsSXrs \ --environment-id env_01595EKxaaTTGwwY3kyX… sessions-connect Claude Developer Platform · in the page cli-sdks-libraries/cli/sessions-connect …ate response, from `ant beta:sessions list`, or from the Console. ```bash CLI ant beta:sessions connect sesn_011CZkZAtmR3yMPDzynEDxu7 ``` Without `--web`, the command needs an interactive terminal.… using Claude Developer Platform · in the page cli-sdks-libraries/cli/using …he default (for example, to opt into a different schema version). ```bash ant models list ant messages create --model claude-opus-5-5 --max-tokens 1024 ... ant beta:agents retrieve --agent-id agent_0… csharp Claude Developer Platform · in the page cli-sdks-libraries/sdks/csharp …e package from [NuGet](https://www.nuget.org/packages/Anthropic): ```bash dotnet add package Anthropic ``` ## Requirements This library requires .NET Standard 2.0 or later. ## Usage ```csharp usi… go Claude Developer Platform · in the page cli-sdks-libraries/sdks/go …sdk-go/v2" // imported as anthropic ) ``` Install with `go get`: ```bash go get github.com/anthropics/anthropic-sdk-go/v2 ``` ## Requirements This library requires Go 1.25+. ## Usage ```go packa… java Claude Developer Platform · in the page cli-sdks-libraries/sdks/java …ng by setting the `ANTHROPIC_LOG` environment variable to `info`: ```bash export ANTHROPIC_LOG=info ``` Or to `debug` for more verbose logging: ```bash export ANTHROPIC_LOG=debug ``` <Accordion ti… php Claude Developer Platform · in the page cli-sdks-libraries/sdks/php …use the SDK configures it for streaming with no additional setup: ```bash composer require "anthropic-ai/sdk" "guzzlehttp/guzzle:^7" ``` ## Requirements PHP 8.1.0 or higher. ## Usage This library… For Amazon Bedrock support Claude Developer Platform · in the page cli-sdks-libraries/sdks/python …specific SDK features and configuration. </Info> ## Installation ```bash pip install anthropic ``` For platform-specific integrations or improved async performance, install with extras: ```bash #… Automatically handles tool execution loop Claude Developer Platform · in the page cli-sdks-libraries/sdks/ruby …lation Add the gem to your application's `Gemfile` with Bundler: ```bash bundle add anthropic ``` ## Requirements Ruby 3.2.0 or higher. ## Usage ```ruby anthropic = Anthropic::Client.new( api_… typescript Claude Developer Platform · in the page cli-sdks-libraries/sdks/typescript …specific SDK features and configuration. </Info> ## Installation ```bash npm install @anthropic-ai/sdk ``` ## Requirements TypeScript >= 5.0 is supported. The following runtimes are supported: *… get-api-key Claude Developer Platform · in the page get-api-key …ad. ## 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/en/cli-sdks-libraries/over… get-started Claude Developer Platform · in the page get-started …in the following step reads it from `$ANTHROPIC_API_KEY`. ```bash export ANTHROPIC_API_KEY="your-api-key-here" ``` </Step> <Step title="Make your first API call">… home Claude Developer Platform · in the page home …Console.WriteLine(textBlock.Text); } } ``` ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "content-type: application/json" \ -H "x-api-key: $ANTHR… access-transparency Claude Developer Platform · in the page manage-claude/access-transparency …the Compliance API Activity Feed. Filter with `activity_types[]`: ```bash curl --fail-with-body -sS -G \ "https://api.anthropic.com/v1/compliance/activities" \ --data-urlencode "activity_types[]=… access-transparency-log Claude Developer Platform · in the page manage-claude/access-transparency-log …test checkpoint `GET /v1/compliance/transparency_log/checkpoint` ```bash curl --fail-with-body -sS \ "https://api.anthropic.com/v1/compliance/transparency_log/checkpoint" \ -H "x-api-key: $ANTHR… admin-api Claude Developer Platform · in the page manage-claude/admin-api …one, and switch the CLI back with `ant profile activate default`: ```bash CLI ant auth login --profile admin --scope "org:admin" export ANTHROPIC_AUTH_TOKEN=$(ant auth print-credentials --profile adm… analytics-api Claude Developer Platform · in the page manage-claude/analytics-api …e="Call the API"> Pass the key in the `x-api-key` header: ```bash curl "https://api.anthropic.com/v1/organizations/usage_report/claude_code?starting_at=2025-09-08" \ -H "anthropic-v… api-and-data-retention Claude Developer Platform · in the page manage-claude/api-and-data-retention …| | [Bash tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/bash-tool) | `/v1/m… authentication Claude Developer Platform · in the page manage-claude/authentication …to limit how long a leaked credential stays usable. <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-… First request Claude Developer Platform · in the page manage-claude/claude-code-analytics-api …Get your organization's Claude Code analytics for a specific day: ```bash cURL curl "https://api.anthropic.com/v1/organizations/usage_report/claude_code?\ starting_at=2025-09-08&\ limit=20" \ -H "a… cmek Claude Developer Platform · in the page manage-claude/cmek …ills APIs, and by these tools: web search, web fetch, code execution, bash, text editor, MCP connector (beta), structured outputs, advisor tool (beta), computer use, browser use, and context managemen… cmek-aws-kms Claude Developer Platform · in the page manage-claude/cmek-aws-kms …hen create the key. Replace `<REGION>` with the key's region. ```bash aws kms create-key \ --region <REGION> \ --description "Anthropic CMEK" \ --key-usage ENCRYPT_DECRYPT \… cmek-azure-key-vault Claude Developer Platform · in the page manage-claude/cmek-azure-key-vault …l from the portal's top navigation bar. Run this command: ```bash az ad sp create --id 8635ae1a-3e5d-44e8-a4ed-e0f614466f87 ``` If the service principal already exist… cmek-claude-platform-on-aws Claude Developer Platform · in the page manage-claude/cmek-claude-platform-on-aws …hen create the key. Replace `<REGION>` with the key's region. ```bash aws kms create-key \ --region <REGION> \ --description "Anthropic CMEK" \ --key-usage ENCRYPT_DECRYPT \… cmek-google-cloud-kms Claude Developer Platform · in the page manage-claude/cmek-google-cloud-kms …Skip this step if you already have a key ring to reuse. ```bash gcloud kms keyrings create <your-keyring-name> \ --project=<your-project-id> \ --location=<region… Fetch the first page (newest activities first). Claude Developer Platform · in the page manage-claude/compliance-activity-feed …anization, and activity from before enablement is not backfilled. ```bash cURL curl --fail-with-body -sS \ "https://api.anthropic.com/v1/compliance/activities?limit=1" \ -H "x-api-key: $ANTHROPIC… compliance-api Claude Developer Platform · in the page manage-claude/compliance-api …platform.claude.com/docs/en/manage-claude/compliance-api-access). ```bash cURL curl --fail-with-body -sS \ "https://api.anthropic.com/v1/compliance/activities?limit=1" \ -H "x-api-key: $ANTHROPIC… compliance-api-access Claude Developer Platform · in the page manage-claude/compliance-api-access …ment variable so the shell samples in this guide can read it: ```bash export ANTHROPIC_COMPLIANCE_ACCESS_KEY=sk-ant-api01-... ``` </Step> </Steps> ## Create an Admin API key <Note>… WARNING: This operation PERMANENTLY deletes the chat, all of its messages, Claude Developer Platform · in the page manage-claude/compliance-content-data …st. The following request lists chats updated since a given date. ```bash cURL curl --fail-with-body -sS -G \ "https://api.anthropic.com/v1/compliance/apps/chats" \ -H "x-api-key: $ANTHROPIC_COMP… before_id is the first_id from a previous response Claude Developer Platform · in the page manage-claude/compliance-integration-patterns …euse the previous window's `lt` value as the next window's `gte`. ```bash cURL curl --fail-with-body -sS -G \ "https://api.anthropic.com/v1/compliance/activities" \ -H "x-api-key: $ANTHROPIC_COMP… compliance-org-data Claude Developer Platform · in the page manage-claude/compliance-org-data …ference for the `limit` and `page` parameter defaults and ranges. ```bash cURL curl --fail-with-body -sS \ "https://api.anthropic.com/v1/compliance/organizations" \ -H "x-api-key: $ANTHROPIC_COMP… compliance-sessions Claude Developer Platform · in the page manage-claude/compliance-sessions …The following request lists sessions created since a given date. ```bash cURL curl --fail-with-body -sS -G \ "https://api.anthropic.com/v1/compliance/apps/sessions/local" \ -H "x-api-key: $ANTHR… data-residency Claude Developer Platform · in the page manage-claude/data-residency …| ### API usage <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-… inference-hooks-endpoint Claude Developer Platform · in the page manage-claude/inference-hooks-endpoint …tool that Anthropic defines but the calling application runs, such as bash or computer use, is a client tool too, and carries its versioned type in `tool_type`. A call to a tool the request doesn't de… opentelemetry Claude Developer Platform · in the page manage-claude/opentelemetry …ssions.events.send`. 4. A turn starts and includes model requests, a `bash` tool use, and a turn on another thread (shown as the first `anthropic.session.turn` span and the spans under it). 5. The mod… api Claude Developer Platform · in the page manage-claude/opentelemetry/api …the workspaces of your AWS account in that Region. <CodeGroup> ```bash cURL curl --fail-with-body -sS "https://api.anthropic.com/v1/organizations/telemetry_destinations" \ -H "x-api-key: $AN… sdk Claude Developer Platform · in the page manage-claude/opentelemetry/sdk …test version of the Claude SDK: <Tabs> <Tab title="Python"> ```bash pip install --upgrade anthropic ``` If your application doesn't use the OpenTelemetry SDK yet, install it with a… organization-webhooks Claude Developer Platform · in the page manage-claude/organization-webhooks …s, using an Admin API key from `ANTHROPIC_API_KEY`. <CodeGroup> ```bash cURL curl "https://api.anthropic.com/v1/organizations/webhooks" \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropi… plugins-api Claude Developer Platform · in the page manage-claude/plugins-api …your organization's own marketplaces, newest first: <CodeGroup> ```bash cURL curl "https://api.anthropic.com/v1/organizations/plugins?owner_type=organization&limit=20" \ -H "x-api-key: $ANTHR… rate-limits-api Claude Developer Platform · in the page manage-claude/rate-limits-api …t the rate limits configured for your organization: <CodeGroup> ```bash cURL curl "https://api.anthropic.com/v1/organizations/rate_limits" \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthr… spend-limits-api Claude Developer Platform · in the page manage-claude/spend-limits-api …ctive monthly spend limit and period-to-date spend: <CodeGroup> ```bash cURL curl "https://api.anthropic.com/v1/organizations/spend_limits/effective?limit=20" \ -H "x-api-key: $ANTHROPIC_API_… First request Claude Developer Platform · in the page manage-claude/usage-cost-api …k start Get your organization's daily usage for the last 7 days: ```bash cURL curl "https://api.anthropic.com/v1/organizations/usage_report/messages?\ starting_at=2025-01-08T00:00:00Z&\ ending_at=20… user-management Claude Developer Platform · in the page manage-claude/user-management …ou. List the organization's members, newest first: <CodeGroup> ```bash cURL curl "https://api.anthropic.com/v1/organizations/users?limit=20" \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "an… user-profiles Claude Developer Platform · in the page manage-claude/user-profiles …-who-gets-a-profile) compares the two access types. <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/user_profiles \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version:… user-profiles-verification-portal Claude Developer Platform · in the page manage-claude/user-profiles-verification-portal …a profile ID it can't find, so check the ID first. <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/user_profiles/uprof_011CZkZCu8hGbp5mYRQgUmz9/action_urls \ -H "x-api-key: $ANTHR… wif-admin-api Claude Developer Platform · in the page manage-claude/wif-admin-api …one, and switch the CLI back with `ant profile activate default`: ```bash CLI ant auth login --profile admin --scope "org:admin" export ANTHROPIC_AUTH_TOKEN=$(ant auth print-credentials --profile adm… aws Claude Developer Platform · in the page manage-claude/wif-providers/aws …und web identity federation**. To enable it programmatically: ```bash python3 -c "import boto3; boto3.client('iam').enable_outbound_web_identity_federation()" ``` If this is not enab… Create the app registration that represents the Claude API audience. Claude Developer Platform · in the page manage-claude/wif-providers/azure …dentity endpoints, `AADSTS500011` from the Entra token endpoint). ```bash # Create the app registration that represents the Claude API audience. APP_ID=$(az ad app create --display-name claude-api-fe…
Feedback