Cost is always displayed as zero ($0.00) for custom models that extend built-in ones #2753

Closed
opened 2026-02-16 17:37:06 -05:00 by yindo · 2 comments
Owner

Originally created by @updbqn on GitHub (Nov 10, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

When extending a built-in model the session cost does not update.

e.g. Using the example from the docs:

https://opencode.ai/docs/models/#configure-models

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "opencode": {
      "models": {
        "gpt-5-high": {
          "id": "gpt-5",
          "options": {
            "reasoningEffort": "high",
            "textVerbosity": "low",
            "reasoningSummary": "auto",
          },
        },
        "gpt-5-low": {
          "id": "gpt-5",
          "options": {
            "reasoningEffort": "low",
            "textVerbosity": "low",
            "reasoningSummary": "auto",
          },
        },
      },
    },
  },
}

Using gpt-5-high the cost is always 0.
Using gpt-5 the cost updates as expected.

Originally created by @updbqn on GitHub (Nov 10, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description When extending a built-in model the session cost does not update. e.g. Using the example from the docs: https://opencode.ai/docs/models/#configure-models ```json { "$schema": "https://opencode.ai/config.json", "provider": { "opencode": { "models": { "gpt-5-high": { "id": "gpt-5", "options": { "reasoningEffort": "high", "textVerbosity": "low", "reasoningSummary": "auto", }, }, "gpt-5-low": { "id": "gpt-5", "options": { "reasoningEffort": "low", "textVerbosity": "low", "reasoningSummary": "auto", }, }, }, }, }, } ``` Using `gpt-5-high` the cost is always 0. Using `gpt-5` the cost updates as expected.
yindo added the bug label 2026-02-16 17:37:06 -05:00
yindo closed this issue 2026-02-16 17:37:06 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 10, 2025):

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

  • #2891: Similar cost tracking issue where cost is always displayed as 0 in sessions, though that one specifically mentions Copilot provider

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

@github-actions[bot] commented on GitHub (Nov 10, 2025): This issue might be a duplicate of existing issues. Please check: - #2891: Similar cost tracking issue where cost is always displayed as 0 in sessions, though that one specifically mentions Copilot provider Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Nov 10, 2025):

Ah prolly a merging issue will fix

@rekram1-node commented on GitHub (Nov 10, 2025): Ah prolly a merging issue will fix
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2753