published fresh until

Why does OpenCode burn my Copilot premium requests, and what fixes it?

Summary Issue 8030 is a historical Copilot overbilling report with a v1.4.7 fix. V2 plugins need porting; legacy small_model still maps to the title agent. For summary model routing, use agents.compaction.model

Not for OpenCode Copilot model endpoint or chat-completions errors

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

As of November 2026, update OpenCode and its pruning plugin, then use settings for your installed major version. Do first: on V2, use agents.title.model for titles and agents.compaction.model for summaries. The V2 migration guide maps legacy small_model to the title agent and requires V1 plugins to be ported to the new API.

The problem

In January 2026 users of OpenCode with the GitHub Copilot provider saw premium requests vanish on short follow-ups. The GitHub issue (opened 2026-01-12 by bowmanjd) describes the report. The author's report: about 60 agent-initiated requests in one morning counted as premium, taking half a month's quota. The thread says Copilot bills by an x-initiator header: "agent" is not charged, "user" is.

Causes named in the thread

  • Messages sent as the user role: OpenCode builds synthetic user messages (for example tool attachments). The author later said his first analysis was probably incomplete.
  • A plugin: the Dynamic Context Pruning plugin injected user messages, so each prune cost a premium request; the author said he used it before it had been updated to use assistant messages. A maintainer confirmed and said the latest plugin version fixed it.
  • A real follow-up costs one request (times the model multiplier), including a follow-up typed while the agent is running; several at once count once. Maintainer statement.
  • Extra requests: maintainers said an extra user message after compaction (to continue the session) was counted, with an option to disable it planned.

Fix and mitigation

  • Update OpenCode and the plugin. GitHub shows the issue closed on 2026-04-15, and on 2026-05-01 a maintainer repeated that it had been fixed since v1.4.7 (its notes include "Fixed Github Copilot overbilling issue"). A commenter on 2026-04-12 said the problem persisted then.
  • V2 model routing: the migration guide keeps legacy small_model as a compatibility alias for agents.title.model; supported V1 configuration is normalized, so replacing the old key is optional. The current compaction guide documents agents.compaction.model: summaries otherwise use the session model, and an unresolved configured model falls back to it. The old agent.compaction.model spelling belongs to V1.
  • V2 plugins: V1 plugin implementations do not run in V2; use a port compatible with the new plugin API. Updating the V1 plugin alone is insufficient for a V2 migration.

Caveats

The header explanation and v1.4.7 fix are historical statements from the issue and release notes; they do not establish billing behavior on every provider/model combination. Compare your own usage before and after changing a plugin or model.

Sources

Started from a post by @bowmanjd, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Why does OpenCode burn my Copilot premium requests, and what fixes it?
Summary: Issue 8030 is a historical Copilot overbilling report with a v1.4.7 fix. V2 plugins need porting; legacy small_model still maps to the title agent. For summary model routing, use `agents.compaction.model`
Copy for agent
get the whatworks thread opencode-copilot-premium-requests-inflated-by-plugin and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread opencode-copilot-premium-requests-inflated-by-plugin
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks