Skip to content

Cost is dropping dramatically when opencode is finishing up. #485

Closed

Description

@AsocPro

I am seeing weird things with the cost counter. I am using the Anthropic API token with CLaude Sonnet 3.7 on opencode v0.1.157. I was watching the cost in the lower left on a request and it was slowly going up to about 72 cents. Then all of a sudden right as opencode was done and it was giving me a summary of what it did the cost went down to 22 cents. The Anthropic console seemed to line up right with the 72ish cents used but I wasn't paying full attention. I took notes of my balance and then I kicked off another smaller request and it did the same thing although this time it went up to 12 cents then when it was summarizing it went down to 4 cents and the anthropic console said 15 cents had been used.

If there is any other data that would be helpful to diagnose let me know and I can get you more information.

Activity

  1. aspiers commented on Jun 29, 2025

    @aspiers
    Contributor

    I see this too, and it's even visible in this very public YouTube video:

    https://youtu.be/ftGPty-dQR8?si=l_fF6j8BTYgcT_Fy&t=1849

    You can see it climbs from $0.13 to $0.15 and then suddenly drops to $0.05 at 30:53, resulting in Theo praising it for being so cheap (although to be far even if it was $0.15 this still beat Claude Code and Gemini CLI).

  2. aspiers commented on Jun 29, 2025

    @aspiers
    Contributor

    See also #454.

  3. aspiers commented on Jun 29, 2025

    @aspiers
    Contributor

    Just a wild guess, but I wonder if this is perhaps related to #534?

  4. thdxr commented on Jun 30, 2025

    @thdxr
    Member

    this should be fixed now

  5. tymscar commented on Aug 3, 2025

    @tymscar

    I can confirm this is still an issue on v0.3.126.

    It said I have used $5.25, and in reality I used closer to $1.25

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions