329 pages for shell.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
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", } ```…
optimizing-for-cost-and-intelligence
Claude Developer Platform · in the page
about-claude/models/optimizing-for-cost-and-intelligence
…e/compaction-on-demand) as a keep-alive request. <CodeGroup exclude="shell:CLI, python, typescript, csharp, go, java, php, ruby"> ```bash cURL # Within 4 minutes of the last request's start (time…
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 earlier: # from config import IDENT…
legal-summarization
Claude Developer Platform · in the page
about-claude/use-case-guides/legal-summarization
…might want to extract the following key points: <CodeGroup exclude="shell"> ```python Python details_to_extract = [ "Parties involved (sublessor, sublessee, and original lessor)", "P…
ticket-routing
Claude Developer Platform · in the page
about-claude/use-case-guides/ticket-routing
…an example ticket routing classification prompt: <CodeGroup exclude="shell"> <CodeGroupItem language="cURL"> Build the prompt in code. </CodeGroupItem> <CodeGroupItem language="CLI"> B…
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> To learn how zer…
browser-use-sdk
Claude Developer Platform · in the page
agents-and-tools/tool-use/browser-use-sdk
…and set them up as the provider's docs describe. <CodeGroup exclude="shell:cURL, shell:CLI, csharp, go, java, php, ruby"> ```python Python from anthropic import Anthropic from example_browser_p…
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
…se `tool_use_id` matches the `id` from the call. <CodeGroup exclude="shell:cURL, shell:CLI"> <CodeGroupItem language="cURL"> This workflow needs more logic than a single shell command. Use the…
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 complete. Here's a simplified example: <CodeGroup exclude="shell"> ```python Python def sampling_loop(model: str, messages: list[MessageParam], max_iterations: int = 10): """…
fine-grained-tool-streaming
Claude Developer Platform · in the page
agents-and-tools/tool-use/fine-grained-tool-streaming
…t array. The delta strings build the real value. <CodeGroup exclude="shell"> <CodeGroupItem language="cURL"> Accumulating the input fragments of each `tool_use` block needs more logic than a si…
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
…sult` block so Claude can reply with the answer. <CodeGroup exclude="shell:cURL, shell:CLI"> <CodeGroupItem language="cURL"> This workflow needs more logic than a single shell command. Use the…
parallel-tool-use
Claude Developer Platform · in the page
agents-and-tools/tool-use/parallel-tool-use
…ith `ANTHROPIC_API_KEY` set in your environment: <CodeGroup exclude="shell"> <CodeGroupItem language="cURL"> This end-to-end test needs more logic than a single shell command. Use the [Claude S…
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…
Log at info level
Claude Developer Platform · in the page
agents-and-tools/tool-use/tool-runner
…JSON object or a number, encode it as a string first. <Tabs exclude="shell"> <Tab title="Python"> Use the `@beta_tool` decorator to define tools with type hints and docstrings. <Note>…
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…
errors
Claude Developer Platform · in the page
api/errors
…identical to what a non-streaming call returns: <CodeGroup exclude="shell:cURL"> <CodeGroupItem language="cURL"> A curl request prints the raw stream events and can't combine them into the fin…
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. Use the Claude SDK to run the loop; the per-turn HTTP request is identical to [Basic usage](https://platform.claude…
claude-on-amazon-bedrock-legacy
Claude Developer Platform · in the page
build-with-claude/claude-on-amazon-bedrock-legacy
…edrock ``` </Tab> <Tab title="Java"> <CodeGroup exclude="shell, python, typescript, csharp, go, php, ruby"> ```groovy Gradle implementation("com.anthropic:anthropic-java:3.1.0…
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:3.1.0…
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…
sent_count = len(messages sent in the compaction request)
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/…
compaction-background
Claude Developer Platform · in the page
build-with-claude/compaction-background
…t takes them in the order the program runs them. <CodeGroup exclude="shell, php"> ```python Python from concurrent.futures import Future, ThreadPoolExecutor import anthropic from anthropic.t…
compaction-keep-recent-turns
Claude Developer Platform · in the page
build-with-claude/compaction-keep-recent-turns
…ghted lines show where it differs from the loop. <CodeGroup exclude="shell"> ```python Python from anthropic.types.beta import BetaMessageParam client = anthropic.Anthropic() # Set this nea…
compaction-on-demand
Claude Developer Platform · in the page
build-with-claude/compaction-on-demand
…compacts. Set yours near your real input budget. <CodeGroup exclude="shell"> ```python Python from anthropic.types.beta import BetaMessageParam client = anthropic.Anthropic() # Set this nea…
compaction-thinking-blocks
Claude Developer Platform · in the page
build-with-claude/compaction-thinking-blocks
…s` has; no entries means the kept thinking held: <CodeGroup exclude="shell"> ```python Python from anthropic.types.beta import BetaMessageParam, BetaThinkingConfigParam client = anthropic.Anth…
compaction-threshold
Claude Developer Platform · in the page
build-with-claude/compaction-threshold
…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/…
fallback-credit
Claude Developer Platform · in the page
build-with-claude/fallback-credit
…laude/fallback-credit#when-a-retry-is-rejected). <CodeGroup exclude="shell:cURL, shell:CLI"> <CodeGroupItem language="cURL"> This workflow needs more logic than a single shell command. Use the…
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, shell:CLI"> ```python Python client = anthropic.Anthropic() def create_message_with_fast_fallback(max_retries=…
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
…eave it unset when running the example yourself. <CodeGroup exclude="shell:cURL, shell:CLI"> ```python Python import atexit import concurrent.futures import hashlib import json import os…
mid-conversation-system-messages
Claude Developer Platform · in the page
build-with-claude/mid-conversation-system-messages
…system", "clear_at": "next_user_message", "content": "The shell exited with status 137." } ] } ``` Rules for turn-scoped messages: * **Re-send cleared messages verbatim.** A cleare…
overview
Claude Developer Platform · in the page
build-with-claude/overview
…| Run bash commands and scripts to interact with the system shell and perform command-line operations. | ZDR eligible | <Platform…
preserved-thinking
Claude Developer Platform · in the page
build-with-claude/preserved-thinking
…n the response and the number of dropped blocks: <CodeGroup exclude="shell:cURL, shell:CLI"> <CodeGroupItem language="cURL"> This workflow needs more logic than a single shell command. Use the…
Request 2 caches its request content (not the response)
Claude Developer Platform · in the page
build-with-claude/prompt-caching
…longer requires the beta prefix. Instead of: <CodeGroup exclude="shell:cURL, shell:CLI, typescript, csharp, go, java, php, ruby"> ```python Python client.beta.prompt_caching.messages.…
Delivering work
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-fable-5-1
…fresh turn-scoped copy of the nudge follows it. <CodeGroup exclude="shell"> ```python Python import anthropic from anthropic.types.beta import ( BetaMessageParam, BetaToolParam,…
refusals-and-fallback
Claude Developer Platform · in the page
build-with-claude/refusals-and-fallback
…instance across the requests of a conversation. <CodeGroup exclude="shell"> <CodeGroupItem language="cURL"> The refusal-fallback middleware is part of the Claude SDK, so a cURL request can't u…
search-results
Claude Developer Platform · in the page
build-with-claude/search-results
…ns every time. ### Example: Knowledge base tool <CodeGroup exclude="shell"> <CodeGroupItem language="cURL"> The tool-calling flow needs search logic in your application, which needs more than…
skills-guide
Claude Developer Platform · in the page
build-with-claude/skills-guide
…xample: creating and downloading an Excel file** <CodeGroup exclude="shell:cURL, shell:CLI"> <CodeGroupItem language="cURL"> This workflow needs more logic than a single shell command. Use the…
streaming
Claude Developer Platform · in the page
build-with-claude/streaming
…. See the documentation in each SDK for details. <CodeGroup exclude="shell:cURL"> ```bash CLI ant messages create --stream \ --model claude-opus-5-5 \ --max-tokens 1024 \ --message '{…