Run Use Wild West API in OpenCode
OpenCode defines providers in opencode.json using the AI SDK provider packages. Add Wild West API with the openai-compatible package and point it at the /v1 base URL.
- Base URL
- https://wildwestapi.com/v1
- API key
- Get one free, starts sk-ww-
- Example model
- outlaw-1-xploded
Add a provider in opencode.json
In ~/.config/opencode/opencode.json or a project opencode.json:
JSON
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"wildwest": {
"npm": "@ai-sdk/openai-compatible",
"name": "Wild West API",
"options": {
"baseURL": "https://wildwestapi.com/v1",
"apiKey": "{env:WILDWEST_API_KEY}"
},
"models": {
"outlaw-1-xploded": {
"name": "GLM 5.3 Flash Xploded",
"limit": { "context": 1048576, "output": 8192 }
}
}
}
},
"model": "wildwest/outlaw-1-xploded",
"small_model": "wildwest/outlaw-1-xploded"
}Set the real context and output limits from the model's catalogue page. For an agent that edits files, choose a tool-capable model. You can also run /connect in OpenCode, choose Other, and paste the key against a provider id of wildwest.
Pick a model
Each page has the OpenCode setup with that model's id and limits filled in, and what a session costs.
Outlaw 1 Xploded in OpenCode1M context, $0.30 in / $1.00 out per 1M
GLM 5.3 Xploded in OpenCode1M context, $2.50 in / $4.50 out per 1M
GLM 5.3 Flash Xploded in OpenCode1M context, $0.40 in / $1.60 out per 1M
MiMo V2.6 Flash Xploded in OpenCode1M context, $1.00 in / $3.00 out per 1M
Qwen3.8 27B Xploded in OpenCode524K context, $0.30 in / $2.40 out per 1M