Coding agents

Use TokenBazaar with OpenCode

Use TokenBazaar as a custom OpenAI-compatible provider in OpenCode.

Before you start

  • A TokenBazaar API key
  • A version of the app that accepts a custom OpenAI-compatible base URL

Step-by-step setup

  1. 1

    Open your opencode.json configuration file.

  2. 2

    Add a custom OpenAI-compatible provider named TokenBazaar.

  3. 3

    Set its baseURL to https://tokenbazaar.in/api/public/v1, add your key, and register an exact model ID.

  4. 4

    Open /models inside OpenCode and choose the TokenBazaar model.

Verify the connection

Start a short chat, then confirm the request appears in your TokenBazaar Dashboard with the model ID you selected.