← All integrationsIntegrations
opencode
Hackable terminal agent — wire it to the OpenAI-compatible endpoint with one provider block.
01
Create a key
Generate one sk-pool-* key in your dashboard.
02
Point to apiToken.sale
Set the base URL and key using the config below.
03
Start building
Every supported Claude and GPT model runs on the same balance.
Configuration
// opencode.json — provider block
{
"provider": {
"apitoken": {
"npm": "@ai-sdk/openai-compatible",
"name": "apiToken.sale",
"options": {
"baseURL": "https://openai.api.apitoken.sale/v1",
"apiKey": "{env:APITOKEN_API_KEY}"
},
"models": {
"gpt-5.6-sol": { "name": "GPT-5.6 Sol" }
}
}
}
}