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.

Action URLs Claude Developer Platform · in the page api/user_profiles/action_urls …Anyone who holds it can open it until `expires_at`. ### Example ```bash curl https://api.anthropic.com/v1/user_profiles/$USER_PROFILE_ID/action_urls \ -H 'Content-Type: application/json' \… Create Action URL Claude Developer Platform · in the page api/user_profiles/action_urls/create …. Anyone who holds it can open it until `expires_at`. ## Example ```bash curl https://api.anthropic.com/v1/user_profiles/$USER_PROFILE_ID/action_urls \ -H 'Content-Type: application/json' \… Create User Profile Claude Developer Platform · in the page api/user_profiles/create …than watching this timestamp. format: date-time ## Example ```bash curl https://api.anthropic.com/v1/user_profiles \ -H 'Content-Type: application/json' \ -H 'anthropic-version: 2026-1… Delete User Profile Claude Developer Platform · in the page api/user_profiles/delete …ifier of the deleted user profile, prefixed `uprof_`. ## Example ```bash curl https://api.anthropic.com/v1/user_profiles/$USER_PROFILE_ID \ -X DELETE \ -H 'anthropic-version: 2026-10-21' \… List User Profiles Claude Developer Platform · in the page api/user_profiles/list …next page, or `null` when there are no more results. ## Example ```bash curl https://api.anthropic.com/v1/user_profiles \ -H 'anthropic-version: 2026-10-21' \ -H "Authorization: Bearer $ANT… Get User Profile Claude Developer Platform · in the page api/user_profiles/retrieve …than watching this timestamp. format: date-time ## Example ```bash curl https://api.anthropic.com/v1/user_profiles/$USER_PROFILE_ID \ -H 'anthropic-version: 2026-10-21' \ -H "Authoriza… Update User Profile Claude Developer Platform · in the page api/user_profiles/update …than watching this timestamp. format: date-time ## Example ```bash curl https://api.anthropic.com/v1/user_profiles/$USER_PROFILE_ID \ -H 'Content-Type: application/json' \ -H 'anthropi… Message Batches API Claude Developer Platform · in the page build-with-claude/batch-processing …by passing this list into the `requests` parameter: <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages/batches \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-versio… cache-diagnostics Claude Developer Platform · in the page build-with-claude/cache-diagnostics …ed, and requests that still send it work as before. <CodeGroup> ```bash cURL # Turn 1: establish the cache and opt in to diagnostics curl -sS --fail-with-body https://api.anthropic.com/v1/messa… citations Claude Developer Platform · in the page build-with-claude/citations …ons on a plain text document with the Messages API: <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "content-type: application/json" \ -H "x-api-key: $ANTHROPIC_A… claude-in-amazon-bedrock Claude Developer Platform · in the page build-with-claude/claude-in-amazon-bedrock …ock-specific package or module. <Tabs> <Tab title="Python"> ```bash pip install -U "anthropic[bedrock]" ``` </Tab> <Tab title="TypeScript"> ```bash npm install @anthropic-a… claude-in-microsoft-foundry Claude Developer Platform · in the page build-with-claude/claude-in-microsoft-foundry …ilable in the Ruby SDK. </Note> <Tabs> <Tab title="Python"> ```bash pip install -U "anthropic" # For Entra ID authentication, also install the Azure Identity library pip install az… anthropic-managed Claude Developer Platform · in the page build-with-claude/claude-models-on-google-cloud/anthropic-managed …ice that attributes the project's usage to your subscription. ```bash CLI gcloud services enable claude.googleapis.com \ anthropic-managed-claude.cloudpartnerservices.goog \ --pro… google-managed Claude Developer Platform · in the page build-with-claude/claude-models-on-google-cloud/google-managed …l the package that provides it: <Tabs> <Tab title="Python"> ```bash pip install -U "anthropic[vertex]" ``` </Tab> <Tab title="TypeScript"> ```bash npm install @anthropic-ai… claude-on-amazon-bedrock-legacy Claude Developer Platform · in the page build-with-claude/claude-on-amazon-bedrock-legacy …in the modal window. 3. Verify that your credentials are working: ```bash AWS CLI aws sts get-caller-identity ``` ## Install an SDK for accessing Bedrock Anthropic's [client SDKs](https://platform.… claude-platform-on-aws Claude Developer Platform · in the page build-with-claude/claude-platform-on-aws …default** on every AWS account. Enable it once for each account: ```bash CLI aws iam enable-outbound-web-identity-federation ``` If the response is `[ERROR] (FeatureEnabled) ... already enabled`, t… sent_count = len(messages sent in the compaction request) Claude Developer Platform · in the page build-with-claude/compaction …ext_management.edits` in your Messages API request. <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-… compaction-on-demand Claude Developer Platform · in the page build-with-claude/compaction-on-demand …tem` prompt or tools, so the request sends neither: <CodeGroup> ```bash cURL # max_tokens caps the whole call, including any thinking, so allow several thousand tokens. curl https://api.anthrop… compaction-threshold Claude Developer Platform · in the page build-with-claude/compaction-threshold …ext_management.edits` in your Messages API request. <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-… context-editing Claude Developer Platform · in the page build-with-claude/context-editing …for-tool-result-clearing) use their default values: <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-… effort Claude Developer Platform · in the page build-with-claude/effort …lowing example runs one request at `medium` effort. <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-… This will automatically use the environment variable VOYAGE_API_KEY. Claude Developer Platform · in the page build-with-claude/embeddings …*. 3. Set the API key as an environment variable for convenience: ```bash export VOYAGE_API_KEY="<your model API key>" ``` For more detail, see [Voyage AI quick start](https://www.mongodb.com/docs/v… extended-thinking Claude Developer Platform · in the page build-with-claude/extended-thinking …ple of using extended thinking in the Messages API: <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-… fast-mode Claude Developer Platform · in the page build-with-claude/fast-mode …details, including which models need a beta header. <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-… files Claude Developer Platform · in the page build-with-claude/files …le Upload a file to reference in future API calls: <CodeGroup> ```bash cURL curl -X POST https://api.anthropic.com/v1/files \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version:… handling-stop-reasons Claude Developer Platform · in the page build-with-claude/handling-stop-reasons …Indicates Claude completed its response naturally. <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-… mid-conversation-effort-example Claude Developer Platform · in the page build-with-claude/mid-conversation-effort-example …the user's request directly." ) REQUEST_TIMEOUT_SECONDS = 600 BASH_TIMEOUT_SECONDS = 60 TOOL_RESULT_MAX_CHARS = 8000 MAX_CONCURRENT = 10 DOC_TEST_MODE = bool(os.environ.get("DOC_TEST_MOD… mid-conversation-system-messages Claude Developer Platform · in the page build-with-claude/mid-conversation-system-messages …st sends the `inline-tools-2026-09-15` beta header. <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "content-type: application/json" \ -H "x-api-key: $ANTHROPIC_A… multilingual-support Claude Developer Platform · in the page build-with-claude/multilingual-support …ruction stable across every turn of a conversation. <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "content-type: application/json" \ -H "x-api-key: $ANTHROPIC_A… overview Claude Developer Platform · in the page build-with-claude/overview …---------------------------------------------------------------- | | [Bash](https://platform.claude.com/docs/en/agents-and-tools/tool-use/bash-tool) | Run bash commands and scripts to… pdf-support Claude Developer Platform · in the page build-with-claude/pdf-support …approach is to reference a PDF directly from a URL: <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "content-type: application/json" \ -H "x-api-key: $ANTHROPIC_A… preserved-thinking Claude Developer Platform · in the page build-with-claude/preserved-thinking …eplay, so `input_transformations` comes back empty: <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-… Request 2 caches its request content (not the response) Claude Developer Platform · in the page build-with-claude/prompt-caching …he simplest way to start is with automatic caching: <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "content-type: application/json" \ -H "x-api-key: $ANTHROPIC_A… claude-prompting-best-practices Claude Developer Platform · in the page build-with-claude/prompt-engineering/claude-prompting-best-practices …se case. Even a single sentence makes a difference: <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "content-type: application/json" \ -H "x-api-key: $ANTHROPIC_A… prompting-claude-fable-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-fable-5 …ccuracy, often while using fewer output tokens, and is trained to use bash and crop tools to handle flipped, blurry, or noisy images. * **Enterprise workflows.** Claude Fable 5 follows instructions, s… Delivering work Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-fable-5-1 …d by the task rather than explicitly requested (custom coding agents, bash-and-editor harnesses, computer use): there it might issue them one in each turn instead. This doesn't affect answer quality,… prompting-claude-sonnet-5-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-sonnet-5-5 …a declared tool by a name that differs only in letter case, such as `bash` for `Bash`. It can also pass a known parameter under a slightly different name. Rather than treating such a call as a fatal… refusals-and-fallback Claude Developer Platform · in the page build-with-claude/refusals-and-fallback …ld-with-claude/refusals-and-fallback#manual-retry). <CodeGroup> ```bash cURL curl --fail-with-body -sS https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "ant… search-results Claude Developer Platform · in the page build-with-claude/search-results …and development ### Example: Direct search results <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-… skills-guide Claude Developer Platform · in the page build-with-claude/skills-guide …lly include `version` to pin to a specific version: <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-… streaming Claude Developer Platform · in the page build-with-claude/streaming …ation in each SDK for details. <CodeGroup exclude="shell:cURL"> ```bash CLI ant messages create --stream \ --model claude-opus-5-5 \ --max-tokens 1024 \ --message '{role: user, conten… structured-outputs Claude Developer Platform · in the page build-with-claude/structured-outputs …ype. </Step> </Steps> ## Usage <Tabs> <Tab title="cURL"> ```bash curl https://api.anthropic.com/v1/messages \ -H "content-type: application/json" \ -H "x-api-key: $ANTHROPIC_… task-budgets Claude Developer Platform · in the page build-with-claude/task-budgets …et` to `output_config` and include the beta header: <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -N \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-versi… thinking Claude Developer Platform · in the page build-with-claude/thinking …king text is visible, and use a large `max_tokens`: <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-… thinking-tool-workflows Claude Developer Platform · in the page build-with-claude/thinking-tool-workflows …gents-and-tools/tool-use/overview) request: <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "anthropic-version: 2023-06-01" \ -H "content-type… token-counting Claude Developer Platform · in the page build-with-claude/token-counting …models. </Note> ### Count tokens in basic messages <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages/count_tokens \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "content-typ… vision Claude Developer Platform · in the page build-with-claude/vision …structure. </Tip> ### Base64-encoded image example <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-… working-with-messages Claude Developer Platform · in the page build-with-claude/working-with-messages …/migration-guide#opus-46-breaking-changes). </Note> <CodeGroup> ```bash cURL #!/bin/sh curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-ve… API usage primer for Claude Claude Developer Platform · in the page claude_api_primer …p exclude="shell:cURL, typescript, csharp, go, java, php, ruby"> ```bash CLI ant messages create \ --model claude-opus-5-5 \ --max-tokens 1024 \ --message '{"role": "user", "content":… apply Claude Developer Platform · in the page cli-sdks-libraries/cli/apply …e under `agents/` and apply it: <CodeGroup> <CodeGroupItem> ```bash CLI ant apply agents/summarizer.md ``` <File filename="agents/summarizer.md"> ```markdown ---…
Feedback