Skip to content

[FEATURE]: Allow --model free to randomly select free models #21863

@caretak3r

Description

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

Describe the enhancement you want to request

When users pass --model free to opencode run or the TUI, the CLI should randomly select from available free models on the opencode provider. Combined with --variant any, it should also randomly choose a variant for the selected model.

Useful for exploration, testing, and cost-free experimentation across the model catalog.

Adds Provider.resolveSelection() which filters for opencode provider models with zero cost and a recognized listing name, picks one at random, and optionally picks a random variant.

Metadata

Metadata

Assignees

Labels

coreAnything 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