-
-
Notifications
You must be signed in to change notification settings - Fork 53k
Description
Summary
PR #24620 skipped context-1m-* for OAuth tokens because Anthropic "currently" returned HTTP 401. That's no longer universally true. Once an account is funded with "Extra Usage" billing, the 1M context window works via OAuth in Claude Code CLI. The blanket sk-ant-oat-* filter now breaks 1M context for users who have paid to unlock it.
I can access the 1M models for both Sonnet and Opus with Claude Code CLI AFTER I funded the "Extra Usage". One need not tap the extra usage. I discovered that if you do run it out, the 1M models will fail until you top it back up. Extra Usage only hits AFTER you max out your current Max plan usage which, obviously, gets eaten up faster by going over the standard context limit.
Suggest: attempt the header, fall back to skipping only on 401, rather than pre-emptively blocking.
Steps to reproduce
Try to switch to 1M model, or do openclaw models status --probe
Expected behavior
1M context window active for Opus and Sonnet
Actual behavior
No 1M Model available even though Extra Usage is funded and models available through CLI after OAuth authentication.
OpenClaw version
2026.2.26
Operating system
Debian GNU/Linux 13 (Trixie) 13.3, aarch64 (Raspberry Pi 5).
Install method
No response
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response