Skip to main content

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?

  1. Create a key in the dashboard and run export TADLY_API_KEY=<your key>.
  2. Install: curl -fsSL https://opencode.ai/install | bash
  3. Paste the block: as opencode.json
  4. Run: opencode -m tadly/qwen3.5
opencode.json
{
  "$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?

Chat models on Tadly
Row labelModel idContextPay-per-use rate
Qwen-3.5qwen3.5128K 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.

Plan prices You are charged in rupees in India and US dollars elsewhere.
Row labelPricePeriodUsage
StarterFor side projects$1 or ₹9930 daysBase usage
ProFor daily coding$11 or ₹99930 days5× base usage
UltraFor heavy agents$102 or ₹8,99930 days100× 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.