333 pages for shell.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
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 '{…
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
…e="Effort changes invalidate the prompt cache"> <CodeGroup exclude="shell:cURL, shell:CLI"> <CodeGroupItem language="cURL"> This workflow needs more logic than a single shell command. Use…
thinking-tool-workflows
Claude Developer Platform · in the page
build-with-claude/thinking-tool-workflows
…llow-up using the response it just received. <CodeGroup exclude="shell:cURL, shell:CLI"> <CodeGroupItem language="cURL"> This workflow needs more logic than a single shell command.…
vision-coordinates
Claude Developer Platform · in the page
build-with-claude/vision-coordinates
…putes the exact size Claude resizes an image to: <CodeGroup exclude="shell"> <CodeGroupItem language="cURL"> Compute this size in code. </CodeGroupItem> <CodeGroupItem language="CLI">…
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-5 \ --ma…
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
…en/cli-sdks-libraries/cli/apply). ### Run the applied agent from the shell Once an agent and environment exist, you can drive a session from the shell: <Steps> <Step title="Start a session">…
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-5}' \ --transfo…
openai-sdk
Claude Developer Platform · in the page
cli-sdks-libraries/libraries/openai-sdk
…features are supported. ### Quick start example <CodeGroup exclude="shell, php"> ```python Python import os from openai import OpenAI client = OpenAI( api_key=os.environ.get("ANTHROP…
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
…i/azure/?view=azure-cli-latest) installed and authenticated, or Cloud Shell in the Azure portal. Some steps have no portal equivalent. * To register the key through the API, an Anthropic Admin API ke…
cmek-google-cloud-kms
Claude Developer Platform · in the page
manage-claude/cmek-google-cloud-kms
…lready have:** Add the organization label with this command, in Cloud Shell or with the gcloud CLI: ```bash gcloud kms keys update <your-key-name> \ --project=<your-project-id> \ --locati…
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…
api
Claude Developer Platform · in the page
manage-claude/opentelemetry/api
…r message to a session inside your own span: <CodeGroup exclude="shell"> ```python Python from opentelemetry import trace tracer = trace.get_tracer("my-service") with tr…
sdk
Claude Developer Platform · in the page
manage-claude/opentelemetry/sdk
…sion if your build file already declares it: <CodeGroup exclude="shell, python, typescript, csharp, go, php, ruby"> ```kotlin Gradle implementation("com.anthropic:anthropic-java:3.1.0…
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
…oken provider again and re-exchanges 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` starting with `sk-ant-oat01-` and an `expires_in` va…
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…
workload-identity-federation
Claude Developer Platform · in the page
manage-claude/workload-identity-federation
…esh loop for you. The cURL tab shows the underlying HTTP exchange for shell scripts, debugging, or languages without SDK support. ### Construct the SDK client You can construct the client with expli…
event-deltas
Claude Developer Platform · in the page
managed-agents/event-deltas
…anaged-agents/event-deltas#preview-session-thread-events). `[]` is a shell glob pattern, so quote the URL whenever you build the request in a shell. The examples percent-encode the brackets as `%5B%5…
events-and-streaming
Claude Developer Platform · in the page
managed-agents/events-and-streaming
…any events already returned by the history list. <CodeGroup exclude="shell:cURL, shell:CLI"> <CodeGroupItem language="cURL"> This workflow needs more logic than a single shell command. Use the…
memory
Claude Developer Platform · in the page
managed-agents/memory
…here: the worker's file tools refuse to write to them, and anything a shell command writes there is never synced to a store. For a `read_only` store, the worker's `write` and `edit` tools refuse ch…
migration
Claude Developer Platform · in the page
managed-agents/migration
…son **Before** (Messages API loop, simplified): <CodeGroup exclude="shell:cURL, shell:CLI"> ```python Python messages = [{"role": "user", "content": task}] while True: response = client.…
overview
Claude Developer Platform · in the page
managed-agents/overview
…ents gives Claude access to a set of built-in tools: * **Bash:** Run shell commands in the sandbox * **File operations:** Read, write, edit, glob, and grep files in the sandbox * **Web search and fet…
quickstart
Claude Developer Platform · in the page
managed-agents/quickstart
…r event, then process events as they arrive: <CodeGroup exclude="shell"> <CodeGroupItem language="cURL"> This workflow needs more logic than a single shell command. Use the [Claude…
spawn.sh: called once per claimed work item
Claude Developer Platform · in the page
managed-agents/self-hosted-sandboxes
…self-hosted-sandboxes#before-you-begin). <CodeGroup exclude="shell"> ```python Python import asyncio import contextlib import os import signa…
self-hosted-sandboxes-custom-tools
Claude Developer Platform · in the page
managed-agents/self-hosted-sandboxes-custom-tools
…nt-worker)), alongside the built-in toolset: <CodeGroup exclude="shell, csharp, java, php, ruby"> ```python Python import asyncio import os from anthropic import AsyncAnth…
self-hosted-sandboxes-memory
Claude Developer Platform · in the page
managed-agents/self-hosted-sandboxes-memory
…only log the deletes the worker would have made: <CodeGroup exclude="shell, csharp, java, php, ruby"> ```python Python worker = EnvironmentWorker( client, environment_id=environment_i…
self-hosted-sandboxes-reference
Claude Developer Platform · in the page
managed-agents/self-hosted-sandboxes-reference
…`ToolsFunc`) factory to customize the tool list: <CodeGroup exclude="shell, csharp, java, php, ruby"> ```python Python EnvironmentWorker(client, ..., tools=lambda env: [beta_bash_tool(env), my_cu…
self-hosted-sandboxes-workers
Claude Developer Platform · in the page
managed-agents/self-hosted-sandboxes-workers
…xes#run-your-first-session) from the quickstart: <CodeGroup exclude="shell:cURL, csharp, java, php, ruby"> ```bash CLI ant beta:worker poll --workdir /workspace ``` ```python Python import…
session-threads
Claude Developer Platform · in the page
managed-agents/session-threads
…on as its `agent.custom_tool_use` event arrives. <CodeGroup exclude="shell:cURL, shell:CLI"> <CodeGroupItem language="cURL"> This workflow needs more logic than a single shell command. Use the…
tools
Claude Developer Platform · in the page
managed-agents/tools
…-------------- | | Bash | `bash` | Run bash commands in a shell session | | Read | `read` | Read a file from the sandbox filesystem | | Write…
webhooks
Claude Developer Platform · in the page
managed-agents/webhooks
…ec_`-prefixed secret shown at endpoint creation. <CodeGroup exclude="shell:cURL, shell:CLI"> ```python Python from flask import Flask, request import anthropic client = anthropic.Anthropic()…
workflow-runs
Claude Developer Platform · in the page
managed-agents/workflow-runs
…_action`, and on `end_turn` while a run is open. <CodeGroup exclude="shell"> <CodeGroupItem language="cURL"> This workflow needs more logic than a single shell command. Use the [Claude SDK](htt…
whats-new-fable-5-1
Claude Developer Platform · in the page
models/fable-5-1/whats-new-fable-5-1
…grate from Claude Fable 5, update your model ID: <CodeGroup exclude="shell"> ```python Python model = "claude-fable-5" # Before model = "claude-fable-5-1" # After ``` ```typescript TypeS…
migration-guide
Claude Developer Platform · in the page
models/opus-5-5/migration-guide
…ad, set `thinking.display` to `"summarized"`: <CodeGroup exclude="shell"> ```python Python thinking = { "type": "adaptive", "display": "summarized", } ```…
whats-new-opus-5-5
Claude Developer Platform · in the page
models/opus-5-5/whats-new-opus-5-5
…igrate from Claude Opus 5 Update your model ID: <CodeGroup exclude="shell"> ```python Python model = "claude-opus-5" # Before model = "claude-opus-5-5" # After ``` ```typescript TypeScr…
whats-new-sonnet-5-5
Claude Developer Platform · in the page
models/sonnet-5-5/whats-new-sonnet-5-5
…rate from Claude Sonnet 5 Update your model ID: <CodeGroup exclude="shell"> ```python Python model = "claude-sonnet-5" # Before model = "claude-sonnet-5-5" # After ``` ```typescript Typ…
develop-tests
Claude Developer Platform · in the page
test-and-evaluate/develop-tests
…1,000 tweets with human-labeled sentiments. <CodeGroup exclude="shell"> ```python Python tweets = [ {"text": "This movie was a total waste of time. 👎", "sentiment": "negati…
handle-streaming-refusals
Claude Developer Platform · in the page
test-and-evaluate/strengthen-guardrails/handle-streaming-refusals
…d handle streaming refusals in your application: <CodeGroup exclude="shell:cURL, shell:CLI"> <CodeGroupItem language="cURL"> Detecting a refusal in the stream and resetting the conversation nee…
Use Claude Code with a screen reader
Claude Code CLI · in the page
accessibility
…ion: run `claude --ax-screen-reader`. * For sessions started from one shell: set the `CLAUDE_AX_SCREEN_READER` environment variable to `1`. In Bash or Zsh, run `export CLAUDE_AX_SCREEN_READER=1`. In P…
How the agent loop works
Claude Code CLI · in the page
agent-sdk/agent-loop
…y pattern, search content with regex | | **Execution** | `Bash` | Run shell commands, scripts, git operations | | **Web** | `WebSearch`, `WebFetch` | Search the web, fetch and parse pages | | **Discov…
Use Claude Code features in the SDK
Claude Code CLI · in the page
agent-sdk/claude-code-features
…to define hooks, and they run side by side: * **Filesystem hooks:** shell commands defined in `settings.json`, loaded when `settingSources` includes the relevant source. These are the same hooks you…