Setup guide
Use OpenCode with open models
Updated
To run OpenCode on open-weight models, point it at https://api.tadly.dev with a Tadly API key and choose Qwen-3.5 as the model.
How do I set up OpenCode?
- Create a key in the dashboard and run
export TADLY_API_KEY=<your key>. - Install:
curl -fsSL https://opencode.ai/install | bash - Paste the block: as opencode.json
- Run:
opencode -m tadly/qwen3.5
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"tadly": {
"npm": "@ai-sdk/openai-compatible",
"name": "Tadly",
"options": {
"baseURL": "https://api.tadly.dev/v1",
"apiKey": "{env:TADLY_API_KEY}"
},
"models": { "qwen3.5": {} }
}
}
}Which model should OpenCode use?
| Row label | Model id | Context | Pay-per-use rate |
|---|---|---|---|
| Qwen-3.5 | qwen3.5 | 128K tokens | $0.15 / 1M tokens |
Agents read and resend your code, so a long session can reach the context limit. Start with Qwen-3.5, then check it on a real task in your own repository.
What does OpenCode cost on Tadly?
You keep using OpenCode as it is and pay Tadly for the model. Buy a one-time 30-day plan, or pay per request from a prepaid wallet. See pricing.
| Row label | Price | Period | Usage |
|---|---|---|---|
| StarterFor side projects | $1 or ₹99 | 30 days | Base usage |
| ProFor daily coding | $11 or ₹999 | 30 days | 5× base usage |
| UltraFor heavy agents | $102 or ₹8,999 | 30 days | 100× base usage |
Why did my first request return a 503?
A model that has been idle needs time to start. Until it is ready, the API answers 503 with the code model_warming. Starting can take several minutes, so retry until it answers. Every status is listed in the API errors reference.
Common questions
Do I have to change how I use OpenCode?
No. You keep using OpenCode as it is and pay Tadly for the model. Only its endpoint, its key and the model it calls change.
Which model should I use with OpenCode?
Start with Qwen-3.5, then check it on a real task in your own repository. Agents read and resend your code, so compare context windows if your sessions run long.
How do I pay for OpenCode on Tadly?
Buy a one-time 30-day plan, or pay per request from a prepaid US-dollar wallet. In India, plans are charged in rupees and can be paid by UPI.
Does a Tadly plan renew automatically?
No. A plan is a one-time payment for 30 days. No card is stored for later charges, so nothing renews and there is nothing to cancel.