Skip to content

Token count is way off #5951

@abdurahmanshiine

Description

@abdurahmanshiine

Description

Hey there,

I started using OpenCode today and I got an out-of-credit error very quickly, that surprised me because the token count in OpenCode said: ~85k tokens, but when I went to the billing page of my API provider (Fireworks AI) it said I had used close to 3.55m tokens, which is a crazy gap. And so I'm wondering where is that difference coming from

OpenCode version

1.0.185

Steps to reproduce

No response

Screenshot and/or share link

Image Image

Operating System

WSL

Terminal

Windows Terminal

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions