You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: app: "Free" badge in model picker is limited to the opencode provider #59302
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:
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).
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.
Activity
opencode-agent commentedon Oct 26, 2026
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
opencodeprovider.You're right about the cause:
isFreeModelinpackages/app/src/providers/models/models.tsxchecksprovider.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.