Connect Agents

Connect to OpenCode

CheapestToken is listed in the OpenCode provider catalog like any other provider: search for it, connect your key, and every model is selectable.

Get an API Key

Create an account and a prepaid API key in the console — the quickstart walks through it step by step. Keys can be revoked at any time from the console.

Connect in the Terminal

Run /connect and find Cheapest Token in the provider list — once the models.dev listing merges it sits in the catalog exactly like DigitalOcean, searchable by name — paste your sk- key, then run /models to pick any model.

Until the listing merges: scroll to Other, enter the provider id cheapest-token, then paste the key.

/connect
# scroll to "Other", enter the provider id:
cheapest-token
# then paste your sk-… API key when prompted

Connect in OpenCode Desktop

Open Settings → the Providers tab, press View all (or use the search) and type Cheapest Token, hit Connect and paste your sk- key — every catalog model then appears in the model picker. It is the same key as the terminal app, and usage bills from your prepaid wallet.

Before the Listing Ships — Manual Config

Only if you want to start today, before the public listing is merged — afterwards the search-and-connect flow above is all you need. The blocks below are generated live from the catalog on every visit, so they always match the Models page.

OpenCode 2 / desktop

OpenCode 1 / terminal

For env-based auth instead of /connect, export CHEAPEST_TOKEN_API_KEY — the v2 shape above reads it via its env key; in the v1 shape set options.apiKey to { "env": "CHEAPEST_TOKEN_API_KEY" }. limit.context is each model's full window; per-1M prices are on the Models page.

What to Expect

  • Every catalog model appears under the CheapestToken provider in OpenCode's /models picker.
  • Streaming and tool calls are supported.
  • Usage bills from your prepaid wallet at the prices shown on the Models page.
  • The catalog endpoint GET /api/v1/models (Models API) stays the source of truth — new models land in the config on your next visit.
Was this helpful?