Skip to content

Github copilot costs hardcoded to 0 #24787

Closed

Description

@stevoland

Description

In advance of copilot's move to per-token pricing we would like to provide cost estimates but hardcoded zeros override model config:

cost: {
input: 0,
output: 0,
cache: { read: 0, write: 0 },
},

Will raise PR, thanks

Plugins

No response

OpenCode version

No response

Steps to reproduce

Add costs to model config:

{
  "provider": {
    "github-copilot": {
      "models": {
        "gpt-5.4": {
          "cost": {
            "input": 2.5,
            "output": 15,
            "cache_read": 0.25
          },
        },
      }
    }
  }
}

Costs remain $0.00

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

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

    @github-actions
    Contributor

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

    • Github Copilot: Tracking Premium Requests #768: Also concerns GitHub Copilot cost tracking always showing $0.00 (though that issue focuses on premium request quota display, while this one is about hardcoded zeros overriding model config costs — they may be related or complementary)
  3. stevoland commented on May 1, 2026

    @stevoland
    ContributorAuthor

    Working in 1.14.31

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