Skip to content

Mismatch between token spent and billing against my account #8945

Closed

Description

@dariuszparys

Question

I enabled billing before I run this prompt. It was running for now 2,5 hours. I've set a spending limit of 14$ to avoid immediate charge of my card.

The opencode token estimation is giving me the amount of $4.70

Image

And now I get the message the I reached my spending limit.

Image

What is the top right estimation worth basically? It is off by $10?

Activity

  1. github-actions commented on Jan 16, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    All of these involve mismatches between OpenCode's displayed token/cost estimation and actual billing. Your issue specifically mentions that the displayed $4.70 estimation was off by ~$10 against a $14 spending limit. This aligns with the pattern seen in these other reports.

    Feel free to ignore if your specific case involves different providers or circumstances that aren't covered by these issues.

  2. rekram1-node commented on Jan 16, 2026

    @rekram1-node
    Contributor

    Would need to see your session more to debug, is it correct that you only had this 1 session ever? Were u using any plugins?

    How many subagents were called?

  3. dariuszparys commented on Jan 16, 2026

    @dariuszparys
    Author

    @rekram1-node No, I did not have 1 session ever. But I had 1 session ever since I enabled billing on Zen and configured the api key. So I just started opencode connected the api key and let the agent run.

    A couple of days ago I used Z.AI GLM 4.7 model in opencode, but it shouldn't be related I think.

    I have still my terminal in opencode open. Can you tell me how I share my session with you?

  4. rekram1-node commented on Jan 16, 2026

    @rekram1-node
    Contributor

    Can u dm me your workspace id and then I can have frank look into ur usage?

    Also u can do opencode export > session.json and send that

  5. dariuszparys commented on Jan 16, 2026

    @dariuszparys
    Author

    I dm'ed you on X the workspace ID, but I can't send you the export, it is giving me an error

  6. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  7. dariuszparys commented on Mar 25, 2026

    @dariuszparys
    Author

    @thdxr it was never answered, but it is fine for me to have it closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

zenRelates to Zen

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions