Skip to content

tui: /models footer shows "Free" but no price for paid models, even when Model.Info.cost is provided #60856

Open

Description

@mfh7

Description

The right-hand footer of each row in /models renders only:

  • Free when the model is considered free (cost.length > 0 && cost.every(tier => tier.input === 0)),
  • a favorite icon,

and nothing for paid models. The cost data is already present on Model.Info.cost (plugins and providers supply it — the internal detail render even formats it as $X/$Y per 1M), but the footer never renders it.

For providers that expose many paid models (e.g. custom/plugin providers), there is no way to see pricing while picking a model; users must memorize prices or check the provider's dashboard.

Related: #14524 (Display model cost in the model picker — auto-closed without the feature landing), #60653 (mini/run footer cost estimate — different surface).

Environment

  • opencode 2.2.5, TUI

Reproduction

  1. A provider supplies Model.Info.cost = [{ input: 0.125, output: 0.625, cache: { read: 0, write: 0 } }] (verified via GET /api/model).
  2. Open /models.
  3. The row footer shows nothing for that model; only zero-cost rows show Free.

Expected behavior

Render the price in the footer for paid models, e.g. $0.125/$0.625 (per 1M tokens), keeping Free for zero-cost ones. Optionally behind a setting.

Actual behavior

Footer is empty for paid models.

Activity

  1. opencodejr commented on Oct 31, 2026

    @opencodejr
    Contributor

    Thanks for the detailed request! You'd like /models to show each paid model's price (e.g. $0.125/$0.625 per 1M tokens) in the row itself, next to the existing Free label, so you can compare models while picking. Maintainers will consider it.

    The picker doesn't add a price to each row today. The redesigned picker shows input/output pricing for the highlighted model in its detail row instead. You can turn it on now with "experimental": { "new-designs": true } in ~/.config/opencode/cli.json. It only shows one model at a time, not a price on every row as you're asking.

    Related issues:

    This can't be done as a plugin right now, because TUI plugins don't have a slot in the model dialog.

  2. jack5github commented on Nov 12, 2026

    @jack5github

    I just turned on "experimental": { "new-designs": true } in ~/.config/opencode/cli.json and have verified that the TUI design has updated, yet I do not see any costs for any model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions