Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save brandonbryant12/bb7773552e12d5f7f9dc478d6b63b92b to your computer and use it in GitHub Desktop.
Save brandonbryant12/bb7773552e12d5f7f9dc478d6b63b92b to your computer and use it in GitHub Desktop.
{
"$schema": "https://opencode.ai/config.json",
// 3-a. Register WebUI as a provider
"provider": {
"openwebui": {
"npm": "@ai-sdk/openai-compatible", // tells OpenCode the wire protocol
"name": "Open WebUI (local)", // label shown in the /models list
"options": {
"baseURL": "http://localhost:3000/api" /* <-- your URL here */
},
// 3-b. Expose whichever model(s) WebUI advertises
"models": {
"llama3:instruct": { "name": "Llama-3-Instruct" }
}
}
},
// 3-c. Pick a default model so OpenCode boots without asking
"model": "openwebui/llama3:instruct"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment