Skip to content

opencode is double spending or half reporting openrouter credit spent #20937

Closed

Description

@Jaaaky

Description

I'm new to opencode, but for 2nd time when I use it and spending few dollars on a single session using openrouter, I found the credit spent was ~double the amount reported by opencode.

Plugins

none

OpenCode version

1.3.13

Steps to reproduce

  1. Add openrouter
  2. use any cheap model to test
  3. spend like $2
  4. check balance/activity in openrouter account.. You'll find it like $4 spent!

Nothing else is using openrouter at the same time.
I confirmed by choosing unique model and unique api key

Screenshot and/or share link

No response

Operating System

archlinux

Terminal

konsole

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 3, 2026
  2. github-actions commented on Apr 3, 2026

    @github-actions
    Contributor

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

    If your issue is covered by one of those, please consider adding a comment there instead.

  3. Jaaaky commented on Apr 4, 2026

    @Jaaaky
    Author

    Solved in proxysoul/Empryo#9 !! Very good. You can check/see how they solved it
    @rekram1-node

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions