[Bug] Anthropic API Error: Authentication incompatible with long context beta header

Resolved 💬 2 comments Opened Feb 9, 2026 by Tomosius Closed Mar 10, 2026

Bug Description
claude code with pro plan sonnet[1m] is not working... i am getting:  API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"This authentication style is incompatible with the long context beta
header."},"request_id":"req_011CXy3cGbPo45TVR4JNUKUa"}

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.37
  • Feedback ID: 20d64e76-d10c-48fb-a576-35d550c069ff

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"This authentication style is incompatible with the long context beta header.\"},\"request_id\":\"req_011CXy3cGbPo45TVR4JNUKUa\"}\n    at generate (/$bunfs/root/claude:319:8796)\n    at makeRequest (/$bunfs/root/claude:336:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-09T19:27:12.837Z"}]

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗