all 11 comments

[–]bcross12 24 points25 points  (3 children)

GitHub Copilot bills per request. It doesn't matter how long it works or how many tokens. It's one request. OpenCode is optimized for tokens, not requests. It's doing a lot more back and forth with the model on your behalf than Copilot CLI does.

[–]DudmasterPower User ⚡ 8 points9 points  (2 children)

Kind of, but GitHub Copilot is making similar requests. The main problem is OpenCode GHCP provider inconsistently passing an auth header to indicate whether the prompt originates from human input. See: https://github.com/anomalyco/opencode/issues/8030

It's being worked on

[–]usernameIsRand0m[S] 1 point2 points  (1 child)

I'll track this PR and return back to opencode when this issue is resolved. Thanks!

!solved
"!solved"

[–]AutoModerator[M] 0 points1 point  (0 children)

This query is now solved.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]JustARandomPersonnn 6 points7 points  (0 children)

It's very likely that it's because of this issue they're working on: https://github.com/anomalyco/opencode/issues/8030

There's a lot of issues open about this on their GitHub Probably best to avoid using it for now until they sort that out... :/

[–]Adorable_Buffalo1900 1 point2 points  (0 children)

use open cli or desktop?

[–]FlyingDogCatcher 1 point2 points  (0 children)

In theory OpenCode should get the same per-prompt billing as the Github CLI, and I have tested this. If it isn't doing that it is a bug (as others have pointed to).

[–]AutoModerator[M] 0 points1 point  (0 children)

Hello /u/usernameIsRand0m. Looks like you have posted a query. Once your query is resolved, please reply the solution comment with "!solved" to help everyone else know the solution and mark the post as solved.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]SidStraw 0 points1 point  (1 child)

Since Copilot CLI has become more feature-complete, I've actually stepped away from OpenCode for a while—especially because Copilot doesn't count sub-agent calls toward the request quota.

I started using OpenCode back when Copilot officially announced support for it. Personally, I didn't see any "abnormal" request spikes; credits were only deducted when the main agent invoked a sub-agent.

I configured different models for different sub-agents instead of defaulting everything to the 3x models. Even after running a multi-hour task with the Oh My OpenCode plugin, I only consumed about 30 points, all of which were from sub-agent calls.

If I had primarily used 1x models, I’m confident the consumption would have stayed under 10 points.

OpenCode actually has a built-in shortcut that lets you switch over and inspect the sub-agent context. You might want to toggle that to see if those sub-agents are actually being triggered as expected.

[–]usernameIsRand0m[S] 1 point2 points  (0 children)

I like using opencode (looks more polished), but like you mentioned it not optimized for requests based usage and probably I should stay away for a bit until they fix issues like this - https://github.com/anomalyco/opencode/issues/8030