Skip to content

[FEATURE]: Model Management UI — custom order, aliases, favorites, and default model #38228

Closed as not planned

Description

@loechsler

Is your feature request related to a problem? Please describe.

Managing many models across multiple providers is cumbersome in the current UI:

  • Models are sorted alphabetically within hardcoded provider groups — users cannot reorder to prioritize frequently used models
  • The model name is read-only, taken directly from the provider catalog — users cannot assign friendly aliases (e.g. "My Cheap Fast Model" for a long API ID)
  • There is no way to set a default model for new conversations; OpenCode falls back to last-used or an internal priority, which is unpredictable

Describe the solution you'd like

A redesigned model management screen (both dialog-manage-models and settings-models) with four new capabilities:

1. Drag-and-drop reordering

  • Allow dragging providers and individual models to set a custom display order
  • A toggle in settings to switch between "automatic sort" (current behavior) and "custom order" (user-defined)
  • Custom order persisted to opencode.json as a displayOrder array (or equivalent)

2. Inline alias/rename

3. Favorite / pin models

  • Star/pin icon on models for quick access at the top of the list
  • Pinned models appear in a separate "Pinned" section regardless of provider grouping

4. Default model for new conversations

  • A "Set as default" button / radio indicator per model
  • The default is written to the model field in opencode.json
  • New conversations pre-select this model instead of falling back to last-used
// Example resulting config
{
  "model": "anthropic/my-sonnet",              // default model
  "provider": {
    "anthropic": {
      "models": {
        "my-sonnet": {
          "id": "claude-sonnet-4-20250514",
          "name": "Meu Sonnet Padrão"          // alias
        }
      }
    }
  },
  "displayOrder": [                            // custom order
    "anthropic/claude-sonnet-4-20250514",
    "openai/gpt-5",
    "google/gemini-2.5-flash"
  ]
}

Describe alternatives you've considered

  • Using only the existing name field in config — works but has no UI, making it inaccessible to non-technical users
  • Keyboard shortcut to cycle models — useful but does not solve discoverability or organization

Additional context

This proposal builds on prior discussions:

The implementation touches:

  • packages/app/src/components/dialog-manage-models.tsx — drag handles, rename inputs, pin button, default indicator
  • packages/app/src/context/models.tsx — displayOrder, customName, pinned, defaultModel state
  • packages/app/src/hooks/use-providers.ts — respect custom order over hardcoded sort
  • Persistence layer — write changes back to opencode.json

Activity

  1. github-actions commented on Jul 22, 2026

    @github-actions
    Contributor

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

    If these don't fully cover your proposal (particularly the custom ordering, inline aliases, and default model selection), this issue may still be valuable as a more comprehensive feature request.

  2. github-actions commented on Sep 22, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

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