Skip to content

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

@Jaaaky

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

Metadata

Metadata

Assignees

Labels

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

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