[BUG] 401 "Access denied due to missing subscription key" error in v2.1.94 (regression from v2.1.92)
Preflight Checklist
- [x] I have searched existing issues 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?
Starting with v2.1.94, Claude Code returns a 401 error on every request. The same setup works correctly on v2.1.92.
What Should Happen?
Requests succeed as they did on v2.1.92.
Error Messages/Logs
401 Access denied due to missing subscription key. Make sure to include subscription key when making requests to an API.
Steps to Reproduce
- Upgrade Claude Code from v2.1.92 to v2.1.94
- Run any Claude Code command
- Error is returned immediately
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.92
Claude Code Version
2.1.94
Platform
AWS Bedrock
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
## Actual Behavior
All requests fail with 401 — missing subscription key.
## Workaround
Downgrade to v2.1.92:
npm install -g @anthropic-ai/claude-code@2.1.92
## Environment
- Claude Code version (broken): v2.1.94
- Claude Code version (working): v2.1.92
## Notes
This appears to be a regression introduced in v2.1.94. The error message format ("subscription key") suggests it may be related to a change in how the API key is
passed in request headers.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗