[BUG] API Error: Claude's response exceeded the 32000 output token maximum.
### Preflight Checklist - [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) and this hasn't been reported yet - [x] This is a single bug report (please file separate reports for different bugs) - [x] I am using the latest version of Claude Code ### What's Wrong? Hi, I just asked Claude Code to implement something relatively hard. After 8 minutes of thinking, there is this error in the Claude Code terminal window: > ⎿ API Error: Claude's response exceeded the 32000 output token maximum. To configure this behavior, set the CLAUDE_CODE_MAX_OUTPUT_TOKENS environment variable. However it still seems to be thinking (14 minutes now), so it's probably still going. It hasn't given me any feedback of what it's doing or thinking. > ✽ Shenaniganing… (11m 35s · ↓ 35.0k tokens · thinking) Claude Code on PowerShell on Windows Terminal, Windows 11, latest version (updated today). Using Opus 4.6. On the Pro plan currently. I found a few related issues (other users encountering this issue) but they are all closed or in a different context. ### What Should Happen? No error, or a better explanation. ### Error Messages/Logs ```shell API Error: Claude's response exceeded the 32000 output token maximum. To configure this behavior, set the CLAUDE_CODE_MAX_OUTPUT_TOKENS environment variable. ``` ### Steps to Reproduce I can share my prompt privately if you want to contact me. But I suspect this
Posted by patrikhuber on Feb 8, 2026, 12:04 AM
Tags
Related issues
- [Meta] Feedback on granular control over Copilot changes
- unexpected status 401 Unauthorized issue
- [MODEL] Measurable quality regression in Claude generation 5 (Fable 5 / Opus 5 / Sonnet 5): worse nonsense detection, ~2x verbosity, under-disclosed model fallb
- [CRITICAL] Subagent spawning and subagent pattern bugs trigger infinite recursion, infinite token usage, grossly inefficient token usage, and lost accumulated s
- Video stops playing after some minutes
- [MODEL] Claude verbose code comments by default — ignores instructions to stop.
Raise real-world problems, find people facing the same issue, and discuss solutions.2,000 issues0 comments
github (Software)
[Meta] Feedback on granular control over Copilot changes
unexpected status 401 Unauthorized issue
[MODEL] Measurable quality regression in Claude generation 5 (Fable 5 / Opus 5 / Sonnet 5): worse nonsense detection, ~2x verbosity, under-disclosed model fallb
[CRITICAL] Subagent spawning and subagent pattern bugs trigger infinite recursion, infinite token usage, grossly inefficient token usage, and lost accumulated s
Video stops playing after some minutes
[MODEL] Claude verbose code comments by default — ignores instructions to stop.
Scope Codex VS Code chats to the current workspace/project
Update on "Co-authored-by: Copilot" in commit messages
[BUG] API Error: Claude's response exceeded the 32000 output token maximum.
### Preflight Checklist - [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) and this hasn't been reported yet - [x] This is a single bug report (please file separate reports for different bugs) - [x] I am using the latest version of Claude Code ### What's Wrong? Hi, I just asked Claude Code to implement something relatively hard. After 8 minutes of thinking, there is this error in the Claude Code terminal window: > ⎿ API Error: Claude's response exceeded the 32000 output token maximum. To configure this behavior, set the CLAUDE_CODE_MAX_OUTPUT_TOKENS environment variable. However it still seems to be thinking (14 minutes now), so it's probably still going. It hasn't given me any feedback of what it's doing or thinking. > ✽ Shenaniganing… (11m 35s · ↓ 35.0k tokens · thinking) Claude Code on PowerShell on Windows Terminal, Windows 11, latest version (updated today). Using Opus 4.6. On the Pro plan currently. I found a few related issues (other users encountering this issue) but they are all closed or in a different context. ### What Should Happen? No error, or a better explanation. ### Error Messages/Logs ```shell API Error: Claude's response exceeded the 32000 output token maximum. To configure this behavior, set the CLAUDE_CODE_MAX_OUTPUT_TOKENS environment variable. ``` ### Steps to Reproduce I can share my prompt privately if you want to contact me. But I suspect this
Comments (0)
No comments yet. Start the discussion.