You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Copilot CLI has higher context window than GitHub Copilot extension #16861
opencode appears to use static GitHub Copilot model limits that are lower than the live Copilot CLI /models response.
Examples from the same account:
claude-opus-4.6: live CLI 200000, opencode/models.dev 128000
claude-sonnet-4.6: live CLI 200000, opencode/models.dev 128000
claude-haiku-4.5: live CLI 144000, opencode/models.dev 128000
This looks like opencode is using static catalog metadata instead of live Copilot model metadata.
Plugins
I forked https://github.com/zhzy0077/opencode-copilot-auth and simply add below and re login to use.
At first glance the values seem correct with this plugin. It also adds model multipliers to the model name in the picker.
The only issue is that it breaks device code flow auth for copilot (since it overwrites the building copilot plugin) - I've fixed that by patching the opencode source.
Activity
github-actions commentedon Mar 10, 2026
This issue might be a duplicate of existing issues. Please check:
/modelsendpoint instead of static catalog metadataIf your issue is distinct from the above, please add clarifying details about how it differs.
Zakariaaben commentedon Mar 16, 2026
why are you requesting access to so much things as repo and org read access, gists read write access etc ? @zhzy0077
ayqazi commentedon Mar 18, 2026
This is a serious issue for copilot actually, as compaction occurs when it doesn't really need to, wasting valuable premium requests.
SadE54 commentedon Mar 23, 2026
Latest 1.3 seems to have changed the behavior a little . Now it seems Opencode can see ~142000 tokens , instead of 200000 😅
krasen1234 commentedon Mar 27, 2026
Yup, why isnt this being fixed?
jcubic commentedon Mar 27, 2026
It seems this is a limitation of GitHub Copilot. To fix this, you need to contact GitHub.
mdarocha commentedon Mar 27, 2026
I got copilot to quickly whip up a plug-in that I believe fixes this issue:
https://github.com/mdarocha/dotfiles/blob/main/config/llm-agents/opencode/plugins/copilot-fix-models.js
At first glance the values seem correct with this plugin. It also adds model multipliers to the model name in the picker.
The only issue is that it breaks device code flow auth for copilot (since it overwrites the building copilot plugin) - I've fixed that by patching the opencode source.
jensenojs commentedon Apr 7, 2026
Is this issue still present?
SadE54 commentedon Apr 7, 2026
It seems to be fixed in the last version (1.3.17)
pnacovsky commentedon Apr 8, 2026
144k context in 1.4.0
zhzy0077 commentedon Apr 8, 2026
yes it's officially fixed. so no plugin is needed.
aysbg commentedon Apr 23, 2026
No, this most definitely isn't fixed: