export ANTHROPIC_MAX_TOKENS=4096

Category: AI Agents & MCP

export ANTHROPIC_MAX_TOKENS=4096

Limit max tokens per Claude API response

Setting a max token limit prevents runaway responses from consuming large amounts of your quota. For agent tasks, 4096 is usually sufficient for each step. The agent makes multiple calls, each capped at this limit.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.