Follow Discord
Sweep 06 Nov 2026 · 01:32Z Build v2.1.319 537 read Stable v2.1.311 Latest v2.1.318 Next v2.1.319 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

130 pages for stderr.

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

pricing Claude Developer Platform · in the page about-claude/pricing …| Additional tokens are consumed by: * Command outputs (stdout/stderr) * Error messages * Large file contents See [tool use pricing](https://platform.claude.com/docs/en/about-claude/pricing#to… bash-tool Claude Developer Platform · in the page agents-and-tools/tool-use/bash-tool …session. 3. Your application returns the command’s output, stdout and stderr together, to Claude in a `tool_result` block. 4. Claude either requests another command in the same session or responds wit… code-execution-tool Claude Developer Platform · in the page agents-and-tools/tool-use/code-execution-tool …data.csv\n-rw-r--r-- 1 user user 180 Jan 1 12:00 config.json", "stderr": "", "return_code": 0, "content": [] } } ``` ### File operation responses **View file:** ```json Output { "… computer-use-tool Claude Developer Platform · in the page agents-and-tools/tool-use/computer-use-tool …```ruby Ruby require "logger" LOGGER = Logger.new($stderr) def log_action(action_type, params, result) LOGGER.info("Action: #{action_type}, Params: #{params}, Result:… Process results programmatically Claude Developer Platform · in the page agents-and-tools/tool-use/programmatic-tool-calling …revenue': 28500}, {'customer_id': 'C3', 'revenue': 24000}]", "stderr": "", "return_code": 0, "content": [] } }, { "type": "text", "text": "I've analyz… Beta Claude Developer Platform · in the page api/beta …_id: string` - `return_code: number` - `stderr: string` - `stdout: string` - `BetaEncryptedCodeExecutionResultBlockParam object`… Messages Claude Developer Platform · in the page api/beta/messages …_id: string` - `return_code: number` - `stderr: string` - `stdout: string` - `BetaEncryptedCodeExecutionResultBlockParam object`… Batches Claude Developer Platform · in the page api/beta/messages/batches …ing` - `return_code: number` - `stderr: string` - `stdout: string` - `BetaEncryptedCodeExecutionResultBlockParam object`… Create a Message Batch Claude Developer Platform · in the page api/beta/messages/batches/create …ing` - `return_code: number` - `stderr: string` - `stdout: string` - `BetaEncryptedCodeExecutionResultBlockParam object`… Retrieve Message Batch results Claude Developer Platform · in the page api/beta/messages/batches/results …string` - `return_code: number` - `stderr: string` - `stdout: string` - `BetaEncryptedCodeExecutionResultBlock object`… Count tokens in a Message Claude Developer Platform · in the page api/beta/messages/count_tokens …_id: string` - `return_code: number` - `stderr: string` - `stdout: string` - `BetaEncryptedCodeExecutionResultBlockParam object`… Create a Message Claude Developer Platform · in the page api/beta/messages/create …_id: string` - `return_code: number` - `stderr: string` - `stdout: string` - `BetaEncryptedCodeExecutionResultBlockParam object`… errors Claude Developer Platform · in the page api/errors …] }' ``` ```bash CLI # The request-id header is printed to stderr with --debug: ant --debug messages create \ --model claude-sonnet-5 \ --max-tokens 1024 \ --message '{role: u… Messages Claude Developer Platform · in the page api/messages …_id: string` - `return_code: number` - `stderr: string` - `stdout: string` - `EncryptedCodeExecutionResultBlockParam object` Th… Batches Claude Developer Platform · in the page api/messages/batches …ing` - `return_code: number` - `stderr: string` - `stdout: string` - `EncryptedCodeExecutionResultBlockParam object`… Create a Message Batch Claude Developer Platform · in the page api/messages/batches/create …ing` - `return_code: number` - `stderr: string` - `stdout: string` - `EncryptedCodeExecutionResultBlockParam object`… Retrieve Message Batch results Claude Developer Platform · in the page api/messages/batches/results …string` - `return_code: number` - `stderr: string` - `stdout: string` - `EncryptedCodeExecutionResultBlock object` T… Count tokens in a Message Claude Developer Platform · in the page api/messages/count_tokens …_id: string` - `return_code: number` - `stderr: string` - `stdout: string` - `EncryptedCodeExecutionResultBlockParam object` Th… Create a Message Claude Developer Platform · in the page api/messages/create …_id: string` - `return_code: number` - `stderr: string` - `stdout: string` - `EncryptedCodeExecutionResultBlockParam object` Th… Before Claude Developer Platform · in the page api/migration-2026-10-21 …ounts as unset. When both of the first two are set, a warning goes to stderr once. The client looks when it is first used, so an `ANTHROPIC_PROFILE` that doesn’t exist now throws from the first reques… claude-platform-on-aws Claude Developer Platform · in the page build-with-claude/claude-platform-on-aws …sponse, including the X-Amzn-Requestid and # Request-Id headers, to stderr ant --debug messages create \ --base-url https://aws-external-anthropic.us-west-2.api.aws \ --workspace-id "$ANTH… mid-conversation-effort-example Claude Developer Platform · in the page build-with-claude/mid-conversation-effort-example …ns the requested command with a timeout, captures combined stdout and stderr, and truncates the result so a runaway command can’t flood the context window. Commands run in the directory you launch the… On a remote host without a browser: Claude Developer Platform · in the page cli-sdks-libraries/cli/authentication …edential, whichever profile you select, and `ant` prints a message to stderr that says so. </Note> ## Manage profiles The `ant profile` subcommands inspect and edit profile state directly: ```bash… using Claude Developer Platform · in the page cli-sdks-libraries/cli/using …| Print full HTTP request and response to stderr… workspaces Claude Developer Platform · in the page manage-claude/workspaces …he HTTP response, including the Anthropic-Workspace-Id # header, to stderr ant --debug messages create \ --model claude-opus-5-5 \ --max-tokens 1024 \ --message '{role: user, content:… spawn.sh: called once per claimed work item Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes …NTHROPIC_WORK_SECRET="+work.Secret, ) launcher.Stdout, launcher.Stderr = os.Stdout, os.Stderr return launcher.Run() } func main() { environmentID := os.Getenv("ANTHROPIC_ENVIRONMENT_I… self-hosted-sandboxes-workers Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-workers …NTHROPIC_WORK_SECRET="+work.Secret, ) launcher.Stdout, launcher.Stderr = os.Stdout, os.Stderr return launcher.Run() } func main() { environmentID := os.Getenv("ANTHROPIC_ENVIRONMENT_I… Observability with OpenTelemetry Claude Code CLI · in the page agent-sdk/observability …application. To surface exporter errors, set [`CLAUDE_CODE_OTEL_DIAG_STDERR=1`](https://code.claude.com/docs/en/env-vars) alongside the exporter variables and read the diagnostics through the SDK's `… Agent SDK reference - Python Claude Code CLI · in the page agent-sdk/python …efault_factory=dict) max_buffer_size: int | None = None debug_stderr: Any = sys.stderr # Deprecated stderr: Callable[[str], None] | None = None can_use_tool: CanUseTool | None = None… Troubleshoot the Agent SDK Claude Code CLI · in the page agent-sdk/troubleshooting …`` Command failed with exit code 1 (exit code: 1) Error output: Check stderr output for details ``` The message states the exit code twice, and the `Error output` line is fixed text rather than your… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …se to run Claude Code in VMs, containers, or remote environments | | `stderr` | `(data: string) => void` | `undefined` | Callback for stderr output | | `strictMcpConfig` | `boolean` | `false` | Use on… Manage multiple agents with agent view Claude Code CLI · in the page agent-view …ge says how it ended, such as `exited 1`, and quotes the start of its stderr. The message also tells you which of these to do next: * Delete the session again to remove the directory anyway, by pre… Auto mode classifier request charges Claude Code CLI · in the page auto-mode-classifier-billing …/code.claude.com/docs/en/headless.md) with `-p` it prints the text to stderr, and in `stream-json` output it emits a `system` warning message, which Agent SDK applications can read from the message st… Best practices for Claude Code Claude Code CLI · in the page best-practices …. Exit code 2 is what blocks the stop. Whatever the command prints to stderr goes back to Claude as the reason it can't finish yet, which is why the compiler output is redirected there: ```json .clau… Claude Code changelog Claude Code CLI · in the page changelog …`claude -p` JSON results (`credential_expires_at`) * Added a one-line stderr warning to `claude -p` text output, starting 10 days before a stored claude.ai sign-in ends * Gateway: Added a log warning… Channels reference Claude Code CLI · in the page channels-reference …ly means a dependency or import error in your server file. To see the stderr trace, restart with `claude --debug --dangerously-load-development-channels server:webhook` and check the debug log at `~/.… Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry Claude Code CLI · in the page claude-apps-gateway …nstance credentials resolve on the first request, not at boot. Watch stderr for the boot sequence. Log lines use the format `[gateway] <timestamp> <level> <message>`, audit events are single-line JSO… Claude apps gateway deployment and operations Claude Code CLI · in the page claude-apps-gateway-deploy …es and rollbacks behave. ### Logs The gateway writes two streams to stderr, both JSON-friendly: * **Audit events**: single-line JSON per security-relevant event. Pipe stderr to your log aggregator.… Deploy Claude apps gateway on AWS Claude Code CLI · in the page claude-apps-gateway-on-aws …ECS Fargate > > Create the cluster and a log group for the gateway's stderr, which carries both its audit events and operational logs. Retention is a separate call, and without one CloudWatch keeps t… Use Claude Code in the cloud Claude Code CLI · in the page claude-code-on-the-web …s an unsupported provider or a disabled organization policy, print to stderr without JSON. `--output-format stream-json` isn't supported with `--cloud <session-id>`. If the send fails, see [Errors wh… Explore the context window Claude Code CLI · in the page context-window …` to send info to Claude. For PostToolUse hooks, exit code 2 surfaces stderr as an error but cannot block since the tool already ran. Output over 10,000 characters is saved to a file; Claude gets a pr… Debug your configuration Claude Code CLI · in the page debug-your-config …e count stays at zero, run `claude --debug=mcp` and read the server's stderr in the debug log at `~/.claude/debug/<session-id>.txt`. For configuration locations and scope rules, see [MCP](https://cod… Error reference Claude Code CLI · in the page errors …execution error. With the default text output, the message prints on stderr. * When a [subagent](https://code.claude.com/docs/en/sub-agents.md) hit the limit, the subagent stops before finishing, and… Run Claude Code programmatically Claude Code CLI · in the page headless …status. If you pass an invalid flag, Claude Code reports the error to stderr before the run starts. When a failure happens inside the run, such as missing authentication, Claude Code prints the failur… Hooks reference Claude Code CLI · in the page hooks …`, runs in the background and wakes Claude on exit code 2. The hook's stderr, or stdout if stderr is empty, is shown to Claude as a [system reminder](https://code.claude.com/docs/en/glossary.md#system… Automate actions with hooks Claude Code CLI · in the page hooks-guide …e, so Claude Code blocks the command and shows Claude the guardrail's stderr. The log entry is still written because the logging hook already ran. ### Read input and return output Hooks communicate… Interactive mode Claude Code CLI · in the page interactive-mode …ks are automatically terminated if output exceeds 5GB, with a note in stderr explaining why * On macOS and Linux, Claude Code stops your running background tasks when the operating system reports crit… Connect Claude Code to an LLM gateway Claude Code CLI · in the page llm-gateway-connect …| `Your apiKeyHelper script is failing`, or `apiKeyHelper failed:` on stderr in non-interactive mode | The command in the [`apiKeyHelper`](https://code.claude.com/docs/en/settings-reference#apikeyhelp… Control MCP server access for your organization Claude Code CLI · in the page managed-mcp …ich servers were left out. Claude Code names them in a warning on its stderr, which a self-hosted runner records at the `debug` log level. The `--strict-mcp-config` flag asks to replace the managed s… Deploy managed settings Claude Code CLI · in the page managed-settings …ude doctor` record the failure, and a run with `-p` also prints it to stderr. * For any other read failure, such as an I/O error, every session exits at startup with [a message to contact an administr…
Feedback