Run Use Wild West in OpenCode
OpenCode defines providers in opencode.json using the AI SDK provider packages. Add Wild West with the openai-compatible package and point it at the /v1 base URL.
- Base URL
- https://wildwestapi.com/v1
- API key
- Get one, starts sk-ww-
- Example model
- glm-5.3-outlaw
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",
"options": {
"baseURL": "https://wildwestapi.com/v1",
"apiKey": "{env:WILDWEST_API_KEY}"
},
"models": {
"glm-5.3-outlaw": {
"name": "Hipshooter",
"limit": { "context": 1048576, "output": 8192 }
}
}
}
},
"model": "wildwest/glm-5.3-outlaw",
"small_model": "wildwest/glm-5.3-outlaw"
}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.
Slingshooter in OpenCode1M context, $2.00 in / $5.00 out per 1M
GLM 5.3 Lite Outlaw in OpenCode262K context, $0.86 in / $2.90 out per 1M
Hipshooter in OpenCode1M context, $0.30 in / $1.00 out per 1M
Kimi K3.1 Pro Outlaw in OpenCode1M context, $7.50 in / $37.50 out per 1M
Kimi K3.1 Pro Lite Outlaw in OpenCode980K context, $2.80 in / $5.60 out per 1M
Hy4 Outlaw in OpenCode1M context, $3.20 in / $6.40 out per 1M
DeepSeek V4.1 Flash 1017 Outlaw in OpenCode1M context, $0.46 in / $1.84 out per 1M
DeepSeek Flash Lite Outlaw in OpenCode512K context, $0.30 in / $1.20 out per 1M
High Noon in OpenCode1M context, $1.00 in / $2.00 out per 1M
Sidewinder in OpenCode1M context, $1.50 in / $5.00 out per 1M
Qwen3.8 27B Ultrafast Outlaw in OpenCode1M context, $1.75 in / $5.50 out per 1M