Skip to content

[FEATURE]: app: "Free" badge in model picker is limited to the opencode provider #59302

Open

Description

@ulab

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

What: In OpenCode Desktop, the "Free" badge next to a model name in the model picker is only shown for models served by the opencode provider, even when models on other providers have zero cost.

The check is hard-coded to the provider in packages/app/src/providers/models/models.tsx:

export const isFreeModel = (model: { provider: { id: string }; cost?: { input: number } }) =>
  model.provider.id === "opencode" && (!model.cost || model.cost.input === 0)

The TUI uses a provider-agnostic check in packages/tui/src/component/model-options.tsx (cost.length > 0 && cost.every((c) => c.input === 0)), so the same model shows a "Free" tag in the terminal but no badge in Desktop.

Request: Show the "Free" badge based on cost alone (zero input cost across all cost tiers), regardless of provider, matching the TUI behavior.

Why it's useful: Users with self-hosted or free endpoints (e.g. a LiteLLM proxy in front of free/university models) configure cost.input: 0 on those models, but Desktop gives them no visual marker in the picker. Currently the only workaround is putting "Free" in the model display name, which is inconsistent with how built-in providers are labeled.

Expected result: Any model whose input cost is zero shows the same "Free" badge as OpenCode's own free models. No routing or billing behavior changes.

Environment: OpenCode Desktop 2.1.4 (desktop-ssh), server on Linux x86_64 (Debian 13).

Activity

  1. opencode-agent commented on Oct 26, 2026

    @opencode-agent
    Contributor

    Thanks for the detailed request! You're asking for Desktop's model picker to show the "Free" badge for any model whose input cost is zero, whatever the provider, the same way the TUI tags them. Right now it is shown only for models from the opencode provider.

    You're right about the cause: isFreeModel in packages/app/src/providers/models/models.tsx checks provider.id === "opencode", while the TUI only looks at cost. That check looks intentional (it marks OpenCode's own free tier), so I've filed this as a feature request. Maintainers will consider it.

    Related issues:

    This can't be done as a plugin for now, because plugins can't change Desktop's model picker yet.

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