OpenCode on your own key
OpenCode is an open source terminal agent in the spirit of Claude Code. It takes any OpenAI format provider, so with a KLINCH key it runs Claude, GPT, DeepSeek and the rest of the list.
In short. Claude Fable 5.2: $0.8 / $4 per 1M tokens, input / output, official $8 / $40; Claude Opus 5.5: $0.4 / $2 per 1M tokens, input / output, official $4 / $20. To connect: base URL https://api.klinch.cloud/v1 and a kl_live_… key, delivered in the FunPay chat right after payment. Pay as you go, no subscription. Prices as of 25.11.2026.
The opencode.json file
Put it in your project folder, or in ~/.config/opencode/opencode.json for every project. Add any listed model to the models block.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"klinch": {
"npm": "@ai-sdk/openai-compatible",
"name": "Klinch",
"options": { "baseURL": "https://api.klinch.cloud/v1", "apiKey": "kl_live_…" },
"models": {
"claude-sonnet-5-5": { "name": "Claude Sonnet 5.5", "tool_call": true, "limit": { "context": 128000, "output": 16384 } },
"deepseek-flash": { "name": "DeepSeek Flash", "tool_call": true, "limit": { "context": 128000, "output": 16384 } }
}
}
},
"model": "klinch/claude-sonnet-5-5"
}Plan and Build
In Plan mode the agent only reads files and proposes a plan. To let it create and edit files, switch to Build with Tab.
If the provider is missing
The JSON has an error, most often a missing comma. Copy the whole block with the button and change only the key.
Prices per 1M tokens
| Model | Official | KLINCH |
|---|---|---|
| Claude Fable 5.2 | $8 / $40 | $0.8 / $4 |
| Claude Opus 5.5 | $4 / $20 | $0.4 / $2 |
| DeepSeek Flash | $0.3 / $1.2 | $0.065 / $0.12 |
| DeepSeek V4 Pro | $1.32 / $3.96 | $0.132 / $0.396 |
| GPT-6.2 Sol | $2 / $10 | $0.26 / $1 |
| GPT-6.2 Astra | $8 / $40 | $0.8 / $4 |
Price per 1 million tokens: input / output. You pay only for what you use, no subscription. Token packs are sold on FunPay. All models and prices
How to start
- 1Step 1Install OpenCode from opencode.ai and open your project folder.
- 2Step 2Create
opencode.jsonwith the klinch provider and your key. - 3Step 3Run
opencodeand pick the klinch model in/models.
FAQ
How is OpenCode different from Claude Code?
OpenCode is open source and works with any OpenAI format provider. Claude Code is made by Anthropic for Claude models. A KLINCH key works with both.
Which model for OpenCode?
Claude Sonnet for most tasks, DeepSeek Flash to save, Opus for the hard ones.
Are my requests used to train models?
No. We do not train models on your requests. Texts are kept for no more than 30 days and only the account owner can see them.
One key and one balance for Claude, GPT, Gemini and more
Claude, GPT, Gemini, DeepSeek and Grok at a tenth of the official price. No subscription, pay as you go.