claude-code - 💡(How to fix) Fix [Bug] Opus model access revoked despite active max subscription [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#49509Fetched 2026-04-17 08:39:06
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3commented ×2

Error Message

[{"error":"Error: Failed to delete keychain entry: security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n at uAq (/$bunfs/root/src/entrypoints/cli.js:253:283569)\n at async huq (/$bunfs/root/src/entrypoints/cli.js:406:898)\n at async BS6 (/$bunfs/root/src/entrypoints/cli.js:406:796)\n at async m8_ (/$bunfs/root/src/entrypoints/cli.js:2724:2084)\n at async cjH (/$bunfs/root/src/entrypoints/cli.js:2749:5698)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2773:3363)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T19:59:58.405Z"},{"error":"Error: 400 {"error":{"message":"400: {'error': 'anthropic_messages: Invalid model name passed in model=claude-opus-4-7. Call /v1/models to view available models for your key.'}","type":"None","param":"None","code":"400"}}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52701)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T20:03:03.579Z"},{"error":"Error: 400 {"error":{"message":"400: {'error': 'anthropic_messages: Invalid model name passed in model=claude-opus-4-7. Call /v1/models to view available models for your key.'}","type":"None","param":"None","code":"400"}}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52701)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T20:03:25.349Z"},{"error":"Error: Tool mcp__google-docs__read_file_content not found\n at oe9 (/$bunfs/root/src/entrypoints/cli.js:3084:30819)\n at JD (/$bunfs/root/src/entrypoints/cli.js:477:21011)\n at x$ (/$bunfs/root/src/entrypoints/cli.js:477:39565)\n at SHH (/$bunfs/root/src/entrypoints/cli.js:477:50277)\n at GO (/$bunfs/root/src/entrypoints/cli.js:477:86962)\n at imH (/$bunfs/root/src/entrypoints/cli.js:477:85926)\n at q2H (/$bunfs/root/src/entrypoints/cli.js:477:85748)\n at c3H (/$bunfs/root/src/entrypoints/cli.js:477:82103)\n at h_ (/$bunfs/root/src/entrypoints/cli.js:477:6495)\n at SH (/$bunfs/root/src/entrypoints/cli.js:477:4980)","timestamp":"2026-04-16T20:03:54.412Z"},{"error":"Error: Tool mcp__google-docs__read_file_content not found\n at oe9 (/$bunfs/root/src/entrypoints/cli.js:3084:30819)\n at JD (/$bunfs/root/src/entrypoints/cli.js:477:21011)\n at x$ (/$bunfs/root/src/entrypoints/cli.js:477:39565)\n at SHH (/$bunfs/root/src/entrypoints/cli.js:477:50277)\n at GO (/$bunfs/root/src/entrypoints/cli.js:477:86962)\n at imH (/$bunfs/root/src/entrypoints/cli.js:477:85926)\n at q2H (/$bunfs/root/src/entrypoints/cli.js:477:85748)\n at c3H (/$bunfs/root/src/entrypoints/cli.js:477:82103)\n at T_ (/$bunfs/root/src/entrypoints/cli.js:477:6374)\n at Qb6 (/$bunfs/root/src/entrypoints/cli.js:470:6877)","timestamp":"2026-04-16T20:03:56.363Z"},{"error":"Error: Tool mcp__google-docs__read_file_content not found\n at oe9 (/$bunfs/root/src/entrypoints/cli.js:3084:30819)\n at JD (/$bunfs/root/src/entrypoints/cli.js:477:21011)\n at x$ (/$bunfs/root/src/entrypoints/cli.js:477:39565)\n at SHH (/$bunfs/root/src/entrypoints/cli.js:477:50277)\n at GO (/$bunfs/root/src/entrypoints/cli.js:477:86962)\n at imH (/$bunfs/root/src/entrypoints/cli.js:477:85926)\n at q2H (/$bunfs/root/src/entrypoints/cli.js:477:85748)\n at c3H (/$bunfs/root/src/entrypoints/cli.js:477:82103)\n at h_ (/$bunfs/root/src/entrypoints/cli.js:477:6495)\n at SH (/$bunfs/root/src/entrypoints/cli.js:477:4980)","timestamp":"2026-04-16T20:03:56.505Z"}]

Code Example

[{"error":"Error: Failed to delete keychain entry: security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n    at uAq (/$bunfs/root/src/entrypoints/cli.js:253:283569)\n    at async huq (/$bunfs/root/src/entrypoints/cli.js:406:898)\n    at async BS6 (/$bunfs/root/src/entrypoints/cli.js:406:796)\n    at async m8_ (/$bunfs/root/src/entrypoints/cli.js:2724:2084)\n    at async cjH (/$bunfs/root/src/entrypoints/cli.js:2749:5698)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2773:3363)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T19:59:58.405Z"},{"error":"Error: 400 {\"error\":{\"message\":\"400: {'error': 'anthropic_messages: Invalid model name passed in model=claude-opus-4-7. Call `/v1/models` to view available models for your key.'}\",\"type\":\"None\",\"param\":\"None\",\"code\":\"400\"}}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52701)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T20:03:03.579Z"},{"error":"Error: 400 {\"error\":{\"message\":\"400: {'error': 'anthropic_messages: Invalid model name passed in model=claude-opus-4-7. Call `/v1/models` to view available models for your key.'}\",\"type\":\"None\",\"param\":\"None\",\"code\":\"400\"}}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52701)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T20:03:25.349Z"},{"error":"Error: Tool mcp__google-docs__read_file_content not found\n    at oe9 (/$bunfs/root/src/entrypoints/cli.js:3084:30819)\n    at JD (/$bunfs/root/src/entrypoints/cli.js:477:21011)\n    at x$ (/$bunfs/root/src/entrypoints/cli.js:477:39565)\n    at SHH (/$bunfs/root/src/entrypoints/cli.js:477:50277)\n    at GO (/$bunfs/root/src/entrypoints/cli.js:477:86962)\n    at imH (/$bunfs/root/src/entrypoints/cli.js:477:85926)\n    at q2H (/$bunfs/root/src/entrypoints/cli.js:477:85748)\n    at c3H (/$bunfs/root/src/entrypoints/cli.js:477:82103)\n    at h_ (/$bunfs/root/src/entrypoints/cli.js:477:6495)\n    at SH (/$bunfs/root/src/entrypoints/cli.js:477:4980)","timestamp":"2026-04-16T20:03:54.412Z"},{"error":"Error: Tool mcp__google-docs__read_file_content not found\n    at oe9 (/$bunfs/root/src/entrypoints/cli.js:3084:30819)\n    at JD (/$bunfs/root/src/entrypoints/cli.js:477:21011)\n    at x$ (/$bunfs/root/src/entrypoints/cli.js:477:39565)\n    at SHH (/$bunfs/root/src/entrypoints/cli.js:477:50277)\n    at GO (/$bunfs/root/src/entrypoints/cli.js:477:86962)\n    at imH (/$bunfs/root/src/entrypoints/cli.js:477:85926)\n    at q2H (/$bunfs/root/src/entrypoints/cli.js:477:85748)\n    at c3H (/$bunfs/root/src/entrypoints/cli.js:477:82103)\n    at T_ (/$bunfs/root/src/entrypoints/cli.js:477:6374)\n    at Qb6 (/$bunfs/root/src/entrypoints/cli.js:470:6877)","timestamp":"2026-04-16T20:03:56.363Z"},{"error":"Error: Tool mcp__google-docs__read_file_content not found\n    at oe9 (/$bunfs/root/src/entrypoints/cli.js:3084:30819)\n    at JD (/$bunfs/root/src/entrypoints/cli.js:477:21011)\n    at x$ (/$bunfs/root/src/entrypoints/cli.js:477:39565)\n    at SHH (/$bunfs/root/src/entrypoints/cli.js:477:50277)\n    at GO (/$bunfs/root/src/entrypoints/cli.js:477:86962)\n    at imH (/$bunfs/root/src/entrypoints/cli.js:477:85926)\n    at q2H (/$bunfs/root/src/entrypoints/cli.js:477:85748)\n    at c3H (/$bunfs/root/src/entrypoints/cli.js:477:82103)\n    at h_ (/$bunfs/root/src/entrypoints/cli.js:477:6495)\n    at SH (/$bunfs/root/src/entrypoints/cli.js:477:4980)","timestamp":"2026-04-16T20:03:56.505Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description not sure i understand why i lost access to opus when i have a max subscription? Please respond.

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 2.1.111
  • Feedback ID: d5be7a80-481a-42c2-bda0-bc3bd3b83757

Errors

[{"error":"Error: Failed to delete keychain entry: security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n    at uAq (/$bunfs/root/src/entrypoints/cli.js:253:283569)\n    at async huq (/$bunfs/root/src/entrypoints/cli.js:406:898)\n    at async BS6 (/$bunfs/root/src/entrypoints/cli.js:406:796)\n    at async m8_ (/$bunfs/root/src/entrypoints/cli.js:2724:2084)\n    at async cjH (/$bunfs/root/src/entrypoints/cli.js:2749:5698)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2773:3363)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T19:59:58.405Z"},{"error":"Error: 400 {\"error\":{\"message\":\"400: {'error': 'anthropic_messages: Invalid model name passed in model=claude-opus-4-7. Call `/v1/models` to view available models for your key.'}\",\"type\":\"None\",\"param\":\"None\",\"code\":\"400\"}}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52701)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T20:03:03.579Z"},{"error":"Error: 400 {\"error\":{\"message\":\"400: {'error': 'anthropic_messages: Invalid model name passed in model=claude-opus-4-7. Call `/v1/models` to view available models for your key.'}\",\"type\":\"None\",\"param\":\"None\",\"code\":\"400\"}}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52701)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T20:03:25.349Z"},{"error":"Error: Tool mcp__google-docs__read_file_content not found\n    at oe9 (/$bunfs/root/src/entrypoints/cli.js:3084:30819)\n    at JD (/$bunfs/root/src/entrypoints/cli.js:477:21011)\n    at x$ (/$bunfs/root/src/entrypoints/cli.js:477:39565)\n    at SHH (/$bunfs/root/src/entrypoints/cli.js:477:50277)\n    at GO (/$bunfs/root/src/entrypoints/cli.js:477:86962)\n    at imH (/$bunfs/root/src/entrypoints/cli.js:477:85926)\n    at q2H (/$bunfs/root/src/entrypoints/cli.js:477:85748)\n    at c3H (/$bunfs/root/src/entrypoints/cli.js:477:82103)\n    at h_ (/$bunfs/root/src/entrypoints/cli.js:477:6495)\n    at SH (/$bunfs/root/src/entrypoints/cli.js:477:4980)","timestamp":"2026-04-16T20:03:54.412Z"},{"error":"Error: Tool mcp__google-docs__read_file_content not found\n    at oe9 (/$bunfs/root/src/entrypoints/cli.js:3084:30819)\n    at JD (/$bunfs/root/src/entrypoints/cli.js:477:21011)\n    at x$ (/$bunfs/root/src/entrypoints/cli.js:477:39565)\n    at SHH (/$bunfs/root/src/entrypoints/cli.js:477:50277)\n    at GO (/$bunfs/root/src/entrypoints/cli.js:477:86962)\n    at imH (/$bunfs/root/src/entrypoints/cli.js:477:85926)\n    at q2H (/$bunfs/root/src/entrypoints/cli.js:477:85748)\n    at c3H (/$bunfs/root/src/entrypoints/cli.js:477:82103)\n    at T_ (/$bunfs/root/src/entrypoints/cli.js:477:6374)\n    at Qb6 (/$bunfs/root/src/entrypoints/cli.js:470:6877)","timestamp":"2026-04-16T20:03:56.363Z"},{"error":"Error: Tool mcp__google-docs__read_file_content not found\n    at oe9 (/$bunfs/root/src/entrypoints/cli.js:3084:30819)\n    at JD (/$bunfs/root/src/entrypoints/cli.js:477:21011)\n    at x$ (/$bunfs/root/src/entrypoints/cli.js:477:39565)\n    at SHH (/$bunfs/root/src/entrypoints/cli.js:477:50277)\n    at GO (/$bunfs/root/src/entrypoints/cli.js:477:86962)\n    at imH (/$bunfs/root/src/entrypoints/cli.js:477:85926)\n    at q2H (/$bunfs/root/src/entrypoints/cli.js:477:85748)\n    at c3H (/$bunfs/root/src/entrypoints/cli.js:477:82103)\n    at h_ (/$bunfs/root/src/entrypoints/cli.js:477:6495)\n    at SH (/$bunfs/root/src/entrypoints/cli.js:477:4980)","timestamp":"2026-04-16T20:03:56.505Z"}]

extent analysis

TL;DR

The issue is likely due to an invalid model name being passed, and calling /v1/models to view available models for the key may resolve the issue.

Guidance

  • The error messages indicate that the model name claude-opus-4-7 is invalid, suggesting that the model may not be available for the user's key.
  • Calling /v1/models to view available models for the key may help identify the correct model name to use.
  • The repeated errors about Tool mcp__google-docs__read_file_content not found may be unrelated to the main issue, but could indicate a separate problem with the tooling or configuration.
  • Verifying the model name and available models for the key is a crucial step in resolving the issue.

Example

No code snippet is provided as the issue seems to be related to model names and availability, rather than code syntax.

Notes

The issue may be specific to the user's key or configuration, and further investigation into the available models and tooling may be necessary to fully resolve the issue.

Recommendation

Apply workaround: Call /v1/models to view available models for the key and verify the correct model name to use, as the error messages suggest that the model name claude-opus-4-7 is invalid.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] Opus model access revoked despite active max subscription [2 comments, 2 participants]