2 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.
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…
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 | | `400` errors on every request, in the gateway's own word…