Skip to content

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
sst/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
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