Skip to content

[Bug]: context-1m OAuth skip is now overly broad Anthropic accepts it for Extra Usage enabled accounts #30049

@jambrose

Description

@jambrose

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions