opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Incorrect token usage

Open southseact-3d opened this issue 1 month ago • 2 comments

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

southseact-3d avatar Dec 12 '25 15:12 southseact-3d

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

  • #3322: web and tui reports token usage differently - TUI token counting logic differs from web version
  • #2020: bug: token cost seems inaccurate - similar concern about token count discrepancies

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

github-actions[bot] avatar Dec 12 '25 15:12 github-actions[bot]

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

rekram1-node avatar Dec 12 '25 20:12 rekram1-node

it seems to have been fixed with 1.0.152

southseact-3d avatar Dec 13 '25 13:12 southseact-3d