Skip to content

Multi Model Cost Calculations are Bugged #7387

Closed

Description

@maharshi365

Description

I think i found a bug with cost calculation. Occasionally i will use multiple models (generally claude to do an plan and initial implementation, and gemini to cleanup). I noticed today the cost calculation actually went down after i started using gemini. I think maybe its not taking into account what model each message was sent to ?

Plugins

No response

OpenCode version

1.1.6

Steps to reproduce

  1. Do some work using a model (im using Claude Opus 4.5 from Amazon Bedrock)
  2. Switch while in the session to a different model (im using Gemini 3 Pro Preview from Google)

See the costs not working right.

Screenshot and/or share link

https://opncd.ai/share/Un4b1u0T

Operating System

Windows 11

Terminal

Powershell 7

Activity

  1. github-actions commented on Jan 8, 2026

    @github-actions
    Contributor

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

    These issues all relate to cost calculation inaccuracies. Your case specifically mentions costs decreasing after switching models, which shares similarities with the cost tracking problems described in these issues.

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

  2. maharshi365 commented on Jan 8, 2026

    @maharshi365
    ContributorAuthor

    Got claude to do an analysis. It seems like a bug with TUI showing information for the last 100 messages, when the session is longer.
    https://opncd.ai/share/zM46uSja

  3. bluet commented on Feb 5, 2026

    @bluet
    Contributor

    I'm looking at this issue too. It seems that #7763 needs to be merged first before we can work on anything else.

  4. github-actions commented on Apr 7, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

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 workingwindowszenRelates to Zen

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions