claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Long Context Beta Not Available for Current Subscription

Open ali7733 opened this issue 1 year ago • 40 comments

Bug Description API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"The long context beta is not yet available for this subscription."},"request_id":"req_011CSdgdx1PBMSWB6iidiqAZ"}

Environment Info

  • Platform: linux
  • Terminal: vte-based
  • Version: 1.0.88
  • Feedback ID: 956494a9-90a0-4bb7-9c54-4527b4272f12

Errors

[{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n    at file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:934:6454","timestamp":"2025-08-30T09:46:32.245Z"},{"error":"Error: Failed to install new version of claude:  npm error code ENOTEMPTY\nnpm error syscall rename\nnpm error path /root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/.claude-code-RkuqecGI\nnpm error errno -39\nnpm error ENOTEMPTY: directory not empty, rename '/root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code' -> '/root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/.claude-code-RkuqecGI'\nnpm error A complete log of this run can be found in: /root/.npm/_logs/2025-08-30T09_48_25_861Z-debug-0.log\n    at H31 (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1626:392)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3427:10962","timestamp":"2025-08-30T09:48:26.722Z"},{"error":"Error: Failed to install new version of claude:  npm error code ENOTEMPTY\nnpm error syscall rename\nnpm error path /root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/.claude-code-RkuqecGI\nnpm error errno -39\nnpm error ENOTEMPTY: directory not empty, rename '/root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code' -> '/root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/.claude-code-RkuqecGI'\nnpm error A complete log of this run can be found in: /root/.npm/_logs/2025-08-30T09_48_34_718Z-debug-0.log\n    at H31 (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1626:392)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3427:10962","timestamp":"2025-08-30T09:48:35.430Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"The long context beta is not yet available for this subscription.\"},\"request_id\":\"req_011CSdgdx1PBMSWB6iidiqAZ\"}\n    at v4.generate (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:926:2412)\n    at XP.makeStatusError (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:2101)\n    at XP.makeRequest (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async DZ1.showErrors (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:27329)\n    at async DZ1 (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:16486)\n    at async s2B (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:27180)\n    at async file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:22275\n    at async eD0 (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:3656)\n    at async Fe (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:22245)","timestamp":"2025-08-30T09:48:36.849Z"},{"error":"Error: Failed to install new version of claude:  npm error code ENOTEMPTY\nnpm error syscall rename\nnpm error path /root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/.claude-code-RkuqecGI\nnpm error errno -39\nnpm error ENOTEMPTY: directory not empty, rename '/root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code' -> '/root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/.claude-code-RkuqecGI'\nnpm error A complete log of this run can be found in: /root/.npm/_logs/2025-08-30T09_49_03_729Z-debug-0.log\n    at H31 (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1626:392)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///root/.nvm/versions/node/v22.18

Note: Error logs were truncated.

ali7733 avatar Aug 30 '25 09:08 ali7733

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/6545
  2. https://github.com/anthropics/claude-code/issues/6782
  3. https://github.com/anthropics/claude-code/issues/6777

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Aug 30 '25 10:08 github-actions[bot]

same issue

zfogg avatar Sep 01 '25 23:09 zfogg

same, using team with premium account

thelinuxkid avatar Sep 25 '25 23:09 thelinuxkid

also having this issue, just upgraded to MAX plan

mattpodolak avatar Oct 01 '25 17:10 mattpodolak

in ~/.claude/settings.json change sonnet[1m] to sonnet and will work...

mndwave avatar Oct 09 '25 09:10 mndwave

requires max 20x

KJ7LNW avatar Oct 26 '25 00:10 KJ7LNW

i have max 20x and still getting this error

ppisljar avatar Oct 28 '25 06:10 ppisljar

i have max 20x and still getting this error

yea because it has nothing to do with it guys. in ahtropics docs you can read you have to be Tier4 at least

mardausdennis avatar Oct 28 '25 09:10 mardausdennis

I’ve set up two subsections: one for the team and another for my own max-20x output. When switching to /model sonnet-1m, it shows an error saying that max-20x isn’t supported for this model.

zymawy avatar Dec 08 '25 09:12 zymawy

I’ve set up two subsections: one for the team and another for my own max-20x output. When switching to /model sonnet-1m, it shows an error saying that max-20x isn’t supported for this model.

You can check in the Limits tab under console if you have the Tier 4 for your personal account as its needed for the 1m token model. For Tier 4 you need to atleast deposit 400$ for Anthropic API. Enterprise plans should all have the 1m token model

mardausdennis avatar Dec 10 '25 11:12 mardausdennis

Same issue, on 20x Max plan for many months now. 1M context was available and working for months for me till about 2 weeks ago

zamabama avatar Dec 22 '25 14:12 zamabama

Claude Max 20x for months, Tier 4 and still doesn't work.

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"The long context beta is not yet available for this subscription."},"request_id":"req_011CWQ8yZYSLEvb6BaocYmHv"}

This is not paying off.

I'm working on enterprise-scale distributed systems and multi-session research projects (100+ development sessions). The current 200K token limit creates significant bottlenecks when working with complex codebases that require loading architecture documentation, interdependent service files, and deployment configurations simultaneously.

I have been waiting months for beta access to 1M context window. My use case involves projects with 40K~600K Lines of Code, creation of extensive technical documentation (30mb+), and multi-session continuity protocols specifically designed to work around current context limits.

When I configure the 1M "model" I receive: "The long context beta is not yet available for this subscription."

I'll be happy to provide detailed feedback about my projects or personal MCP's that allows me to make reingeniering of 100K+ LOC aplications with perfect congruence and 9/10 score from the client. But I really NEED this ASAP.

Pichardescu avatar Dec 23 '25 19:12 Pichardescu

The long context beta is not yet available for this subscription. Max 20x

peixotorms avatar Dec 31 '25 13:12 peixotorms

The long context beta is not yet available for this subscription. Max 20x

So I was just hallucinating that I was using it for months on my 20x plan? 😅

zamabama avatar Jan 01 '26 04:01 zamabama

No, I had it before as well. It was probably discontinued.

peixotorms avatar Jan 01 '26 04:01 peixotorms

I am on the 20x Max plan, The default model was not set in my case, as soon as I did that all is working for me.

Saransh16 avatar Jan 01 '26 09:01 Saransh16

I am on the 20x Max plan, The default model was not set in my case, as soon as I did that all is working for me.

What do you mean by not set? Claude Code has a default, and it doesn't matter which model I set, its not 1M. sonnet[1m] also triggers the The long context beta is not yet available for this subscription error.

peixotorms avatar Jan 01 '26 13:01 peixotorms

No, I had it before as well. It was probably discontinued.

Ah, okay, I misunderstood you then, apologies! I've actually heard back from Anthropic about this today and they've admitted that this is an issue on their end, and that certain accounts had this capability accidentally removed and that they are looking to reinstate it.

zamabama avatar Jan 01 '26 14:01 zamabama

I was facing the same issue, than I switched model, it has start working!

shawon-majid avatar Jan 28 '26 11:01 shawon-majid

I'm having the same issue even though I'm on a Max plan, won't let me use the 1M context window model Image

egmnklc avatar Feb 04 '26 23:02 egmnklc