Source Intelligence
Sweep 28 Aug 2026 · 16:06Z Build v2.1.251 479 read Stable v2.1.236 Latest v2.1.250 Next v2.1.251 Feeds RSS JSON llms.txt

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

Search the documentation

50 pages for shell.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it. Cut at 50, so a narrower query shows the rest.

Or, for the model with the same capabilities and no access approval requirement: Claude Developer Platform · in the page about-claude/models/migration-guide …nt, set `thinking.display` to `"summarized"`: <CodeGroup exclude="shell"> ```python Python thinking = { "type": "adaptive", "display": "summarized", } ```… content-moderation Claude Developer Platform · in the page about-claude/use-case-guides/content-moderation …cial media platform might include the following: <CodeGroup exclude="shell"> ```python Python client = anthropic.Anthropic() allowed_user_comments = [ "This movie was great, I really enj… customer-support-chat Claude Developer Platform · in the page about-claude/use-case-guides/customer-support-chat …and one that processes each incoming user input. <CodeGroup exclude="shell"> ```python Python # In your chatbot.py, import these from the config.py you wrote above: # from config import IDENTIT… mcp-connector Claude Developer Platform · in the page agents-and-tools/mcp-connector …e helpers Import the helpers for your language: <CodeGroup exclude="shell"> ```python Python from anthropic.lib.tools.mcp import ( async_mcp_tool, mcp_message, mcp_resource_to_… Edit docker-compose.yaml: increment the integer in the setup service's Claude Developer Platform · in the page agents-and-tools/mcp-tunnels/deploy-compose …e tunnel token and use the copy icon to copy it. Set both as shell variables for the rest of the guide: ```bash export TUNNEL_DOMAIN=YOUR_TUNNEL_DOMAIN_HERE export TU… quickstart Claude Developer Platform · in the page agents-and-tools/mcp-tunnels/quickstart …from step 1 ``` </Tab> <Tab title="Windows (PowerShell)"> ```powershell New-Item -ItemType Directory -Force -Path mcp-tunnel/config, mcp-tunnel/data | Out-Null… security Claude Developer Platform · in the page agents-and-tools/mcp-tunnels/security …nel token lives in `data/tunnel-token` (programmatic flow) or in your shell environment (manual flow). The `config/` directory and `docker-compose.yaml` contain no secrets; keep them if you plan to re… advisor-tool Claude Developer Platform · in the page agents-and-tools/tool-use/advisor-tool …e mechanics are identical for any advisor model. <CodeGroup exclude="shell"> ```python Python client = anthropic.Anthropic() tools = [ { "type": "advisor_20260301", "… bash-tool Claude Developer Platform · in the page agents-and-tools/tool-use/bash-tool …n/agents-and-tools/tool-use/bash-tool description: Let Claude request shell commands that your application runs in a persistent bash session and returns as tool results. --- <Note> For how zero dat… browser-use-tool Claude Developer Platform · in the page agents-and-tools/tool-use/browser-use-tool …es an error for any member it doesn't implement. <CodeGroup exclude="shell"> ```python Python # Placeholder image data; a real executor captures the viewport and returns the PNG bytes PLACEHOLD… build-a-tool-using-agent Claude Developer Platform · in the page agents-and-tools/tool-use/build-a-tool-using-agent …s jq for cross-turn message-array state — building an agentic loop in shell # requires JSON manipulation beyond ant's single-call --transform scope. set -euo pipefail USER_MSG="Schedule a 30-mi… code-execution-tool Claude Developer Platform · in the page agents-and-tools/tool-use/code-execution-tool …Claude with the following capabilities: * **Bash commands:** Run shell commands for system operations * **File operations:** Create, view, and edit files directly, including writing code 3. C… computer-use-tool Claude Developer Platform · in the page agents-and-tools/tool-use/computer-use-tool …calls as finished. Here's a simplified example: <CodeGroup exclude="shell"> ```python Python def sampling_loop(model: str, messages: list[MessageParam], max_iterations: int = 10): """… how-tool-use-works Claude Developer Platform · in the page agents-and-tools/tool-use/how-tool-use-works …r a handful of common operations (managing scratchpad memory, running shell commands, editing files, controlling a desktop or a browser), Anthropic publishes the tool schema and your application handl… memory-tool Claude Developer Platform · in the page agents-and-tools/tool-use/memory-tool …ry store that you replace with your own storage. <CodeGroup exclude="shell"> ```python Python import anthropic from anthropic.tools import BetaLocalFilesystemMemoryTool client = anthropic.An… overview Claude Developer Platform · in the page agents-and-tools/tool-use/overview …form.claude.com/docs/en/agents-and-tools/tool-use/bash-tool"> Run shell commands in a persistent session that maintains state. </Card> <Card title="Text editor tool" icon="edit" href="https:/… parallel-tool-use Claude Developer Platform · in the page agents-and-tools/tool-use/parallel-tool-use …URL # This end-to-end test flow doesn't translate well to a one-off shell command. # See the SDK tabs for the full flow. The underlying HTTP request is a standard # tool use request with multipl… server-tools Claude Developer Platform · in the page agents-and-tools/tool-use/server-tools …{ "name": "run_command", "description": "Run a shell command on this computer and return its output.", "input_schema": { "type": "object", "pro… text-editor-tool Claude Developer Platform · in the page agents-and-tools/tool-use/text-editor-tool …calls from Claude based on the command type: <CodeGroup exclude="shell"> ```python Python def handle_editor_tool(tool_call): input_params = tool_call.input command… Agents Claude Developer Platform · in the page api/beta/agents …ts the runner-side bash session. - `command: optional string` Shell command to execute. Omit only when `restart` is true. - `restart: optional boolean` When true, restart the persisten… routines-fire Claude Developer Platform · in the page api/claude-code/routines-fire …secrets and call the endpoint directly. The following examples show a shell call and a GitHub Actions step that triggers the routine on CI failure. ```bash cURL curl -X POST https://api.anthropic.com… cache-diagnostics Claude Developer Platform · in the page build-with-claude/cache-diagnostics …"> <Info> This workflow doesn't translate well to a one-off shell command. See the SDK tabs for the loop pattern; the per-turn HTTP request is identical to [Basic usage](https://platform.cla… claude-on-vertex-ai Claude Developer Platform · in the page build-with-claude/claude-on-vertex-ai …sdk-go ``` </Tab> <Tab title="Java"> <CodeGroup exclude="shell, python, typescript, csharp, go, php, ruby"> ```groovy Gradle implementation("com.anthropic:anthropic-java:2.58.… claude-platform-on-aws Claude Developer Platform · in the page build-with-claude/claude-platform-on-aws …way you'd pass an AWS Console-generated API key: <CodeGroup exclude="shell, csharp, go, php, ruby"> ```python Python from token_generator_for_aws_external_anthropic import TokenGenerator from a… compaction Claude Developer Platform · in the page build-with-claude/compaction …continuing. The continue # step doesn't translate well to a one-off shell command; see the SDK tabs # for the full pause-and-continue flow. Single paused request: curl https://api.anthropic.com/… fast-mode Claude Developer Platform · in the page build-with-claude/fast-mode …al request with default retries for those cases. <CodeGroup exclude="shell:cURL"> ```bash CLI # `ant` retries 429/5xx automatically and has no per-request max_retries # override, so on a fast-m… handling-stop-reasons Claude Developer Platform · in the page build-with-claude/handling-stop-reasons …n done) **How to prevent empty responses:** <CodeGroup exclude="shell"> ```python Python # INCORRECT: Adding text immediately after tool_result messages = [ {"role": "user",… mid-conversation-effort-example Claude Developer Platform · in the page build-with-claude/mid-conversation-effort-example …ed the example. For clarity this example runs each call in a fresh subshell rather than maintaining the persistent session the `bash_20250124` contract describes; a production agent should back the to… overview Claude Developer Platform · in the page build-with-claude/overview …| Execute bash commands and scripts to interact with the system shell and perform command-line operations. | ZDR eligible | <PlatformAva… search-results Claude Developer Platform · in the page build-with-claude/search-results …application-side search logic that doesn't # translate to a one-off shell command. See the SDK tabs for the full flow. # The raw shape of a tool conversation with search results is shown in the… skills-guide Claude Developer Platform · in the page build-with-claude/skills-guide …RL # Multi-turn container reuse doesn't translate well to a one-off shell # command; one of the SDK options would be a better fit. Capture # container.id from the first response, then pass it in… structured-outputs Claude Developer Platform · in the page build-with-claude/structured-outputs …Raw JSON schemas passed through `output_config` <CodeGroup exclude="shell:cURL"> ```bash CLI ant messages create \ --transform 'content.#(type=="text").text|@fromstr|{name,email}' \ --fo… task-budgets Claude Developer Platform · in the page build-with-claude/task-budgets …e you left off rather than resetting to `total`: <CodeGroup exclude="shell"> ```python Python # Tokens spent before compaction, tracked client-side tokens_spent_so_far = 45000 output_config… thinking-steering-and-cost Claude Developer Platform · in the page build-with-claude/thinking-steering-and-cost …<Note> This workflow doesn't translate well to a one-off shell command. See the SDK tabs for the multi-turn pattern; per-turn HTTP requests follow the examples on the [Prompt caching](htt… thinking-tool-workflows Claude Developer Platform · in the page build-with-claude/thinking-tool-workflows …. Routing model-generated text # through a file keeps it out of shell-expansion position later. ant messages create --transform content --format jsonl \ > assistant_content.json <<… API usage primer for Claude Claude Developer Platform · in the page claude_api_primer …Calling the API ### Basic request and response <CodeGroup exclude="shell:cURL, typescript, csharp, go, java, php, ruby"> ```bash CLI ant messages create \ --model claude-opus-5 \ --max-… On a remote host without a browser: Claude Developer Platform · in the page cli-sdks-libraries/cli/authentication …ource ~/.bashrc ``` </Tab> <Tab title="Windows"> ```powershell setx ANTHROPIC_API_KEY "sk-ant-api03-..." ``` Open a new terminal for the change to take effect. </Tab> </Tab… quickstart Claude Developer Platform · in the page cli-sdks-libraries/cli/quickstart …the full API object, pretty-printed because stdout is a terminal. ## Shell completion The CLI ships completion scripts for bash, zsh, fish, and PowerShell. Generate and install one for your shell:… scripting Claude Developer Platform · in the page cli-sdks-libraries/cli/scripting …## Scripting patterns The CLI is designed to compose with standard shell tooling. ### Chain list output into a second command `--transform id --raw-output` on a list endpoint emits one bare ID pe… using Claude Developer Platform · in the page cli-sdks-libraries/cli/using …t`. The result prints without JSON quotes and is ready to assign to a shell variable: ```bash AGENT_ID=$(ant beta:agents create \ --name "My Agent" \ --model '{id: claude-opus-5}' \ --transform… middleware Claude Developer Platform · in the page cli-sdks-libraries/middleware …he way out; anything after runs on the way back. <CodeGroup exclude="shell"> ```python Python def logging_middleware(request: APIRequest, call_next: CallNext) -> APIResponse[Any]: # Before… overview Claude Developer Platform · in the page cli-sdks-libraries/overview …ding with the Claude API: * **CLI:** The `ant` command-line tool for shell scripting and interactive use. * **Client SDKs:** General-purpose Messages API clients for Python, TypeScript, C#, Go, Java,… admin-api Claude Developer Platform · in the page manage-claude/admin-api …file. The exported variable applies to every SDK and CLI call in that shell. Use a shell you reserve for administration, unset the variable when you're done, and switch the CLI back with `ant profile… cmek-azure-key-vault Claude Developer Platform · in the page manage-claude/cmek-azure-key-vault …alent. If you do not have the Azure CLI installed locally, open Cloud Shell from the Portal's top navigation bar. After the command succeeds, you can find the service principal's object ID in **Micros… compliance-api-access Claude Developer Platform · in the page manage-claude/compliance-api-access …les 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-ant-api01-... ``` </Step… inference-hooks-endpoint Claude Developer Platform · in the page manage-claude/inference-hooks-endpoint …reports the allow verdict your server returned. <CodeGroup exclude="shell"> ```python Python # Run with: python server.py from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer… wif-admin-api Claude Developer Platform · in the page manage-claude/wif-admin-api …, and the exported variable applies to every SDK and CLI call in that shell; so use a shell you reserve for administration, unset the variable when you are done, and switch the CLI back with `ant prof… gcp Claude Developer Platform · in the page manage-claude/wif-providers/gcp …e the token provider and re-exchange automatically before expiry. For shell scripts that run longer than the access token's `expires_in`, refresh on a timer and repeat the exchange. ## Verify the set… okta Claude Developer Platform · in the page manage-claude/wif-providers/okta …E` on each exchange, so refresh that file on a timer for long-running shells. ## Verify the setup A successful exchange returns an `access_token` beginning with `sk-ant-oat01-` and an `expires_in` v… Replace NODE_UID with the node's UID: Claude Developer Platform · in the page manage-claude/wif-providers/spiffe …o-spiffe)) have mature Workload API clients. <CodeGroup exclude="shell, typescript, java, csharp, php, ruby"> ```python Python import os import anthropic from anthropic im…