r/opencode • u/andersonse • 3d ago
TUI has stopped listing Litellm models.
The OpenCode CLI TUI does not display the models defined in `opencode.json` when I use the `/models` command.
The attached images show that it displays the model defined under the "model" key in the file, but it fails to show the entries from the "models" list.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"MyProvider": {
"npm": "@ai-sdk/openai-compatible",
"name": "Our Litellm",
"options": {
"baseURL": "https://myserver",
"apiKey": "mysupersecretapikey"
},
"models": {
"global.anthropic.claude-haiku-5-5": { "name": "My > Anthropic > Claude Haiku 4.5" },
"global.openai.gpt-6-luna": { "name": "My > OpenAI > GPT 6 Luna" },
"gemini-2.5-flash": { "name": "My > Google > Gemini 2.5 flash" }
}
}
},
"model": "MyProvider/global.anthropic.claude-haiku-5-5"
}
3
Upvotes




1
u/andersonse 2d ago
It was a bug; updating fixed it: https://www.reddit.com/r/opencodeCLI/s/pob8FcpJFS