Skip to content

[FEATURE]: Simplify LLM provider setup with OmniRoute integration #40506

Closed as not planned

Description

@afonsoft

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

I use a few different LLM providers and switching between them is a pain. Every time I want to try a new one or change providers, I have to dig into the config file and edit it manually. Sometimes I get the syntax wrong and have to fix it.

What would make my life easier is if OpenCode could just pull provider info automatically so I don't have to touch config files at all. OmniRoute does this - it handles the provider setup so users don't have to. Adding support for it would save me a lot of hassle.

The main benefit is just not having to edit config files every time I want to try something different.

Activity

  1. afonsoft commented on Aug 4, 2026

    @afonsoft
    Author

    Technical Details (for reference)

    Implementation Approach

    1. CLI Setup Wizard

    opencode config omniroute

    Interactive prompts for base URL, API key, and combo selection.

    2. Web UI Configuration Panel
    New route: /settings/omniroute with form fields and combo dropdown.

    3. Auto-Discovery

    • GET /api/combos - List user combos
    • GET /api/combos/auto - List auto-routing combos

    4. Combo Switcher
    Quick combo switcher in conversation header for changing combos mid-session.

    Key Files

    • packages/web/src/components/Share.tsx - WebSocket connection
    • packages/web/src/components/ComboSwitcher.tsx - New component for combo selection
    • packages/cli/src/commands/handlers/config/omniroute.ts - CLI wizard

    Environment Variables (fallback)

    OMNIROUTE_BASE_URL=https://omniroute.afonsoft.dev
    OMNIROUTE_API_KEY=sk-...
    OMNIROUTE_DEFAULT_COMBO=auto

    Reference: https://github.com/diegosouzapw/OmniRoute

  2. github-actions commented on Aug 4, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • The feature request template requires a verification checkbox confirming you have checked that this feature hasn't been suggested before — that field is missing here.
    • The title should start with [FEATURE]: (capital letters and colon) to match the feature request template.
    • The description reads as AI-generated (highly structured, corporate phrasing, no personal context about your actual use case or setup). Please replace it with a genuine description of the problem you are experiencing.

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


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

    If you believe this was flagged incorrectly, please let a maintainer know.

  3. changed the title [-][Feature] Simplify LLM provider setup with OmniRoute integration[/-] [+][FEATURE]: Simplify LLM provider setup with OmniRoute integration[/+] on Aug 4, 2026
  4. github-actions commented on Oct 5, 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