Your tools
opencode
An openai-compatible provider block. Same base URL and key.
terminal
export OPENAI_BASE_URL=https://api.conifer.build/v1
export OPENAI_API_KEY=$CONIFER_API_KEY~/.config/opencode/opencode.json
~/.config/opencode/opencode.json
{
"provider": {
"conifer": {
"npm": "@ai-sdk/openai-compatible",
"name": "Conifer",
"options": {
"baseURL": "https://api.conifer.build/v1",
"apiKey": "{env:CONIFER_API_KEY}"
},
"models": { "claude-haiku-4-5": {} }
}
}
}terminal
opencode run --model conifer/claude-haiku-4-5 "add error handling to fetchUser"Add more catalog ids under models as empty objects. The id after the slash is what the gateway receives.