Created
July 25, 2025 00:49
-
-
Save brandonbryant12/bb7773552e12d5f7f9dc478d6b63b92b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$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