Issue: OAuth + claude-opus-4-5 returns HTTP 500 #4083

Open
opened 2026-02-16 17:42:32 -05:00 by yindo · 3 comments
Owner

Originally created by @sucruf111 on GitHub (Jan 2, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

I was using Opencode with my Claude Max Subscription (OAuth) for a few days now and getting Internal Server Errors when its doing some work.

ERROR service=llm providerID=anthropic modelID=claude-opus-4-5 agent=build
error={
"name": "AI_APICallError",
"url": "https://api.anthropic.com/v1/messages",
"statusCode": 500
}

Notes:

  • OAuth authentication succeeds
  • Error occurs when making LLM request
  • Same issue with fresh session after /clear
  • Sonnet models may work (untested)

OpenCode version

Version 1.0.218

Steps to reproduce

  1. Authenticate via OAuth (/connect anthropic)
  2. Set model to claude-opus-4-5
  3. Send any prompt
  4. Receive "Internal Server Error"

Screenshot and/or share link

Image

Operating System

macOS 26.1 (25B78)

Terminal

Opencode TUI

Originally created by @sucruf111 on GitHub (Jan 2, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Description I was using Opencode with my Claude Max Subscription (OAuth) for a few days now and getting Internal Server Errors when its doing some work. ERROR service=llm providerID=anthropic modelID=claude-opus-4-5 agent=build error={ "name": "AI_APICallError", "url": "https://api.anthropic.com/v1/messages", "statusCode": 500 } **Notes:** - OAuth authentication succeeds - Error occurs when making LLM request - Same issue with fresh session after /clear - Sonnet models may work (untested) ### OpenCode version Version 1.0.218 ### Steps to reproduce 1. Authenticate via OAuth (/connect anthropic) 2. Set model to claude-opus-4-5 3. Send any prompt 4. Receive "Internal Server Error" ### Screenshot and/or share link <img width="474" height="150" alt="Image" src="https://github.com/user-attachments/assets/6f5772a6-488a-4f14-81e0-6fe53c76400f" /> ### Operating System macOS 26.1 (25B78) ### Terminal Opencode TUI
yindo added the bugweb labels 2026-02-16 17:42:32 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 2, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #4660: Claude Max not working (OAuth + Claude authentication issue)
  • #5294: claude-opus-4.5 on azure unusable (Similar HTTP error with Claude Opus 4.5 on different provider)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 2, 2026): This issue might be a duplicate of existing issues. Please check: - #4660: Claude Max not working (OAuth + Claude authentication issue) - #5294: claude-opus-4.5 on azure unusable (Similar HTTP error with Claude Opus 4.5 on different provider) Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Jan 2, 2026):

Do u use the tui too? Can u try this in tui?

@rekram1-node commented on GitHub (Jan 2, 2026): Do u use the tui too? Can u try this in tui?
Author
Owner

@sucruf111 commented on GitHub (Jan 2, 2026):

Yes, this happened in the TUI.

@sucruf111 commented on GitHub (Jan 2, 2026): Yes, this happened in the TUI.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4083