Skip to content

feat: anthropic oauth w/ 1m context#3670

Closed
haoxiangliew wants to merge 11 commits intoanomalyco:devfrom
haoxiangliew:anthropic-1m
Closed

feat: anthropic oauth w/ 1m context#3670
haoxiangliew wants to merge 11 commits intoanomalyco:devfrom
haoxiangliew:anthropic-1m

Conversation

@haoxiangliew
Copy link

@haoxiangliew haoxiangliew commented Nov 1, 2025

This is available with the Claude Max plans on "sonnet-4+' models

Has corresponding changes as a prerequisite in haoxiangliew/opencode-anthropic-auth
anomalyco/opencode-anthropic-auth#2

opencode on  anthropic-1m [!?] via 🥟 v1.3.1 took 8s
❯ bun dev run "Respond with the exact value of budget:token_budget"
$ bun run --cwd packages/opencode --conditions=browser src/index.ts run "Respond with the exact value of budget:token_budget"

1000000

At the start of a conversation, Claude receives information about its total context window:

<budget:token_budget>200000</budget:token_budget>

Might also need a corresponding models.dev update w/ claude-sonnet-4-5[1m] (if we are to use the same convention as claude code) and/or users should increase the limits under the provider/anthropic/models/claude-sonnet-4-5 options in ~/.config/opencode/config.json :)

This is available with the Claude Max plans on "sonnet-4+' models

Has corresponding changes in haoxiangliew/opencode-anthropic-auth
@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2026

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions bot closed this Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant