I created a combo but i can't assign/find it on Opencode #8896
Replies: 4 comments 4 replies
|
I think it's a bug, you can manually create a config with random model names and change them to proper ones. That's what I do as workaround. |
|
@Paololalap -- @Edgarus79's workaround is the right instinct for OpenCode specifically. Here's why it happens (it's not a bug in your combo, and it's not a cache/restart issue): Your combo does exist and is reachable -- OmniRoute lists every active, non-hidden combo in the The reason it doesn't show in the OpenCode tool card is a deliberate setting: OmniRoute's OpenCode integration sets So the fix is to hand-edit the config OpenCode generated and add your combo by name. Open "provider": {
"omniroute": {
"options": { "baseURL": "http://localhost:20128/v1", "apiKey": "your-key" },
"models": {
"your-combo-name": { "name": "your-combo-name" }
}
}
}Use the combo name exactly as it appears in the OmniRoute combo editor. Then OpenCode will offer it as a model you can select. The "create a dummy entry then rename" trick works because the generator only writes concrete models -- so you seed one and swap its key to the combo name. Same result, just more steps. (Side note: I'm leaving the unrelated vulnerability follow-up posted in this thread for the maintainer to address in its own dedicated discussion -- it's not part of this combo question.) |
|
Fair point, @Paololalap. OpenCode currently has I opened #9070 to make custom-combo visibility an explicit OpenCode setup option. That preserves the compact default while giving users migrating from 9router a supported way to show their combos without editing |





@Paololalap -- @Edgarus79's workaround is the right instinct for OpenCode specifically. Here's why it happens (it's not a bug in your combo, and it's not a cache/restart issue):
Your combo does exist and is reachable -- OmniRoute lists every active, non-hidden combo in the
/v1/modelscatalog, and creating a combo invalidates that catalog immediately (no restart needed). So the combo is live and callable by its ID.The reason it doesn't show in the OpenCode tool card is a deliberate setting: OmniRoute's OpenCode integration sets
hideComboModels: true(src/shared/constants/cliTools.ts). The OpenCode config generator builds a staticmodelsrecord in~/.config/opencode/opencode.json, and that…