Long Context Beta Not Available for Current Subscription

Open 💬 40 comments Opened Aug 30, 2025 by ali7733

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.

View original on GitHub ↗

40 Comments

github-actions[bot] · 10 months ago

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

zfogg · 10 months ago

same issue

thelinuxkid · 9 months ago

same, using team with premium account

mattpodolak · 9 months ago

also having this issue, just upgraded to MAX plan

mndwave · 9 months ago

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

KJ7LNW · 8 months ago

requires max 20x

ppisljar · 8 months ago

i have max 20x and still getting this error

mardausdennis · 8 months ago
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

zymawy · 7 months ago

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.

mardausdennis · 7 months ago
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

zamabama · 6 months ago

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

Pichardescu · 6 months ago

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.

peixotorms · 6 months ago

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

zamabama · 6 months ago
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? 😅

peixotorms · 6 months ago

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

Saransh16 · 6 months ago

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.

peixotorms · 6 months ago
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.

zamabama · 6 months ago
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.

shawon-majid · 5 months ago

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

egmnklc · 5 months ago

I'm having the same issue even though I'm on a Max plan, won't let me use the 1M context window model
<img width="1988" height="564" alt="Image" src="https://github.com/user-attachments/assets/91544f3a-d808-4930-92c8-6b8753e562f3" />

mardausdennis · 5 months ago
I'm having the same issue even though I'm on a Max plan, won't let me use the 1M context window model <img alt="Image" width="1988" height="564" src="https://private-user-images.githubusercontent.com/31808389/545289509-91544f3a-d808-4930-92c8-6b8753e562f3.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzAzMDk2MDUsIm5iZiI6MTc3MDMwOTMwNSwicGF0aCI6Ii8zMTgwODM4OS81NDUyODk1MDktOTE1NDRmM2EtZDgwOC00OTMwLTkyYzgtNmI4NzUzZTU2MmYzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAyMDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMjA1VDE2MzUwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgwNjQ3OGZiMGY5MTY5ODVhZmNlYzY0OWQ5ZGY4NDMwNTdjYTY5YzgzY2ExNzQ0YzQyZjkwNTFiZGU4ZTU5MDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.cXQkiAFai406RnF8h1qs6yjyYJpEK9UMAJmrfIDiu2M">

https://github.com/anthropics/claude-code/issues/6871#issuecomment-3636634552

davidkny22 · 5 months ago
> 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.

Already over a month later and still not fixed. I hope they add back the 1m model for max users soon.

Pichardescu · 5 months ago

Same:

/model opus[1m]

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_011CXqcQZGUZMEZKxosRVajr"}

This is unfair for $200 a month, we have been requesting it for 4 months now.

mardausdennis · 5 months ago

One more time... Yall have to be Tier 4. Else you dont get access its simple as that.

peixotorms · 5 months ago

Tier 4 aside, why can't max 20x users have access to it?
This could reduce the quota faster anyway, so as an option, it should be available.
Like in the past, opus would use up quota faster than sonnet.

mardausdennis · 5 months ago
Tier 4 aside, why can't max 20x users have access to it? This could reduce the quota faster anyway, so as an option, it should be available. Like in the past, opus would use up quota faster than sonnet.

Because x20 is already the highest tier. if you use all your quote you wont spend more money but you will spend more money if you use the api as fallback.

zamabama · 5 months ago
One more time... Yall have to be Tier 4. Else you dont get access its simple as that.

Honestly, I don't think you're correct on this at all. Because after I made this issue and Anthropic contacted me, I now have it working for me again. I no longer use it though, because Opus 4.5 is just far superior and I have better context management knowledge now.

I'm just a solo dev on a 20x plan. I don't know anything about tier 4 and I assume that's not what I would be because from what I understand for corporations and businesses?

mardausdennis · 5 months ago
> One more time... Yall have to be Tier 4. Else you dont get access its simple as that. Honestly, I don't think you're correct on this at all. Because after I made this issue and Anthropic contacted me, I now have it working for me again. I no longer use it though, because Opus 4.5 is just far superior and I have better context management knowledge now. I'm just a solo dev on a 20x plan. I don't know anything about tier 4 and I assume that's not what I would be because from what I understand for corporations and businesses?

It's in their documentations and faq, you can read it for yourself.

peixotorms · 5 months ago
> Tier 4 aside, why can't max 20x users have access to it? This could reduce the quota faster anyway, so as an option, it should be available. Like in the past, opus would use up quota faster than sonnet. Because x20 is already the highest tier. if you use all your quote you wont spend more money but you will spend more money if you use the api as fallback.

This is not a valid reason... if people use up all quota, they will still need to fallback to api usage to get work done or at least get a second account. If people will not spend more, that's their budget but they will also not get any more work done as well.

This was never a problem when Opus was much more expensive than sonnet and was causing quotas to be used up more quickly than if you used sonnet only. So giving opus 1M and making it use more quota, it all ends up the same way.

You cannot use up more than your quota anyway, so limiting usage, would only make sense for performance reasons.
It is understandable, if they want to reserve that for api users or enterprise users, to ensure quality... but again, quality should be ensured regardless.

zamabama · 5 months ago
> > One more time... Yall have to be Tier 4. Else you dont get access its simple as that. > > > Honestly, I don't think you're correct on this at all. Because after I made this issue and Anthropic contacted me, I now have it working for me again. I no longer use it though, because Opus 4.5 is just far superior and I have better context management knowledge now. > I'm just a solo dev on a 20x plan. I don't know anything about tier 4 and I assume that's not what I would be because from what I understand for corporations and businesses? It's in their documentations and faq, you can read it for yourself.

Are you listening to me? I have it and it works

mardausdennis · 5 months ago
> > > One more time... Yall have to be Tier 4. Else you dont get access its simple as that. > > > > > > Honestly, I don't think you're correct on this at all. Because after I made this issue and Anthropic contacted me, I now have it working for me again. I no longer use it though, because Opus 4.5 is just far superior and I have better context management knowledge now. > > I'm just a solo dev on a 20x plan. I don't know anything about tier 4 and I assume that's not what I would be because from what I understand for corporations and businesses? > > > It's in their documentations and faq, you can read it for yourself. Are you listening to me? I have it and it works

That's good for you. For everybody else, please refer to the Claude pricing docs:
platform.claude.com/docs/en/about-claude/pricing

The 1M token context window is currently in beta for organizations in usage tier 4 and organizations with custom rate limits. The 1M token context window is only available for Claude Opus 4.6, Sonnet 4.5, and Sonnet 4.
Haidar0096 · 5 months ago
One more time... Yall have to be Tier 4. Else you dont get access its simple as that.

Thats plain wrong, I have 2 20x accounts, I don't even know what tier 4 is, and I have 1m sonnet on one of them, while on the other i don't have it
So its something else the reason
but VERY DISAPPOINTING, definitely gonna cancel the other 200$ subs if i don't get the 1m before the end of the month

Haidar0096 · 5 months ago
> > > One more time... Yall have to be Tier 4. Else you dont get access its simple as that. > > > > > > Honestly, I don't think you're correct on this at all. Because after I made this issue and Anthropic contacted me, I now have it working for me again. I no longer use it though, because Opus 4.5 is just far superior and I have better context management knowledge now. > > I'm just a solo dev on a 20x plan. I don't know anything about tier 4 and I assume that's not what I would be because from what I understand for corporations and businesses? > > > It's in their documentations and faq, you can read it for yourself. Are you listening to me? I have it and it works

how did you contact them and get it to work? link please?

mardausdennis · 5 months ago
> One more time... Yall have to be Tier 4. Else you dont get access its simple as that. Thats plain wrong, I have 2 20x accounts, I don't even know what tier 4 is, and I have 1m sonnet on one of them, while on the other i don't have it So its something else the reason but VERY DISAPPOINTING, definitely gonna cancel the other 200$ subs if i don't get the 1m before the end of the month

How can it be wrong if its in their official docs? How do you know your account is not Tier 4 if you don't even know how to check. vibecoding is rotting yall brains

Haidar0096 · 5 months ago
> > One more time... Yall have to be Tier 4. Else you dont get access its simple as that. > > > Thats plain wrong, I have 2 20x accounts, I don't even know what tier 4 is, and I have 1m sonnet on one of them, while on the other i don't have it So its something else the reason but VERY DISAPPOINTING, definitely gonna cancel the other 200$ subs if i don't get the 1m before the end of the month How can it be wrong if its in their official docs? How do you know your account is not Tier 4 if you don't even know how to check. vibecoding is rotting yall brains
How do you know your account is not Tier 4 -> I know because I created this account from scratch, as an individual account, and never bought API credits, I only subscribed to it as individual 200$ max plan

Also, on my other personal account I had access to 1m sonnet on the 200$ plan, and never bought credits on this account as well. But after I unsubscribed for some months then resub'd this month, I lost access to 1m model. No way I am making this up.
Anyway it really feels like a scam from anthropic, regardless of whether its a scam or not, it feels like it

peixotorms · 5 months ago

Well, I think both are correct.
Probably, the account with 1m context, is from before at least August last year.
The new account is not, or its at least since they made the change.

I had it in my personal account around that time last year, then I canceled the subscription and opened another account (client paid) and no longer had it on the new account.

So probably, until certain time, max account had it, then if they expire or cancel, or new accounts, no longer have it.
Which would make sense, if they updated the docs... so it may be a legacy perk.

Pichardescu · 5 months ago
One more time... Yall have to be Tier 4. Else you dont get access its simple as that.

And for the millionth time. We request access for the highest MAX x20 level account. It's simple as that.

I'm Tier 4 in the API, that's not the issue, it's not that hard to understand,

Pichardescu · 5 months ago
> > One more time... Yall have to be Tier 4. Else you dont get access its simple as that. > > > Thats plain wrong, I have 2 20x accounts, I don't even know what tier 4 is, and I have 1m sonnet on one of them, while on the other i don't have it So its something else the reason but VERY DISAPPOINTING, definitely gonna cancel the other 200$ subs if i don't get the 1m before the end of the month How can it be wrong if its in their official docs? How do you know your account is not Tier 4 if you don't even know how to check. vibecoding is rotting yall brains

Tier 4 in the API does not apply for the MAX x20 subscription. Two different things, check your rotted brain ASAP.

mardausdennis · 5 months ago
> One more time... Yall have to be Tier 4. Else you dont get access its simple as that. And for the millionth time. We request access for the highest MAX x20 level account. It's simple as that. I'm Tier 4 in the API, that's not the issue, it's not that hard to understand,

I get what you’re saying. but if we’re discussing this publicly, we have to rely on whats officially stated in the FAQs and documentation.

if the docs say that feature X requires Tier 4, then thats the only solid baseline we can use. individual account experiences can differ due to rollouts, flags, or other factors (like the country of your residence!), but that does not change the documented requirement

if you have a section of the documentation that says otherwise, feel free to share it. otherwise the only real way to resolve account specific access issues is through support.

also the Tier is bound to your organization and applies to both the API and Claude Code, as its stated in the documentation aswell..

ancientnerds · 4 months ago

/model claude-opus-4-6 fixed it for me