Skip to content

Instantly share code, notes, and snippets.

@jtmuller5
Created March 3, 2026 14:00
Show Gist options
  • Select an option

  • Save jtmuller5/3db7b1c6393444fa7563aec55b649cae to your computer and use it in GitHub Desktop.

Select an option

Save jtmuller5/3db7b1c6393444fa7563aec55b649cae to your computer and use it in GitHub Desktop.
Custom model in OpenCode (.config/opencode/opencode.json)
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"local": {
"npm": "@ai-sdk/openai-compatible",
"name": "Local Model",
"options": {
"baseURL": "http://100.77.220.87:8090/v1"
},
"models": {
"local-model": {
"name": "Local Model"
}
}
}
},
"model": "local/local-model"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment