Search the documentation
4 pages for claude_code_max_output_tokens.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Claude Code changelog
Claude Code CLI · in the page
changelog
…esult message when piping large responses from `claude -p` * Fixed `CLAUDE_CODE_MAX_OUTPUT_TOKENS` and similar env vars silently using the mantissa of scientific-notation values (`1e6` became `1`)…
Environment variables
Claude Code CLI · in the page
env-vars
…| | `CLAUDE_CODE_MAX_OUTPUT_TOKENS` | Set the maximum number of output tokens for most requests. Defaults and c…
Error reference
Claude Code CLI · in the page
errors
…g budget. **What to do:** * Lower `MAX_THINKING_TOKENS`, or raise [`CLAUDE_CODE_MAX_OUTPUT_TOKENS`](/docs/en/env-vars) above the thinking budget * See [Extended thinking](/docs/en/model-config#exten…
Connect Claude Code to an LLM gateway
Claude Code CLI · in the page
llm-gateway-connect
…t below 100,000, and `/compact` remains the recovery there. Also set `CLAUDE_CODE_MAX_OUTPUT_TOKENS` below the gateway model's output limit | | Models missing from the `/model` picker…