Skip to content

Incorrect token usage #5440

Closed
Closed

Description

@southseact-3d

Description

When using opencode via the terminal, I dont think it is counting the tokens correctly, it is saying around 50 tokens for a 10 minute task, when i checked in my api dashboard, it was around 75,000 tokens that were used.

OpenCode version

1.0.150

Steps to reproduce

You would just need to send a message

Screenshot and/or share link

Image

Operating System

ubuntu 24.04

Terminal

No response

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 12, 2025
  2. github-actions commented on Dec 12, 2025

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case.

  3. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 12, 2025
  4. rekram1-node commented on Dec 12, 2025

    @rekram1-node
    Contributor

    what provider are you using? The token calculation comes from the data they send back but maybe its bugged

  5. southseact-3d commented on Dec 13, 2025

    @southseact-3d
    Author

    it seems to have been fixed with 1.0.152

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions