Skip to content

Github copilot costs hardcoded to 0 #24787

@stevoland

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

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