Skip to content

OpenCode

OpenCode is an AI coding tool in the terminal. It supports custom OpenAI-compatible providers, so it can connect to Tianshu.

Configure

  1. Create a token in the Console (use a non-cconly group such as codex or claude-max / claude-kiro).
  2. Add a custom provider in OpenCode's config:
    • Type: OpenAI Compatible
    • Base URL: https://tian-shu.org/v1
    • API Key: your Tianshu token
    • Model: a model name from that group on the Model Marketplace
  3. Save, select the model, and start using it.

TIP

Different OpenCode versions name the config fields slightly differently, but the core is just three things: Base URL, API Key, model name. Point the Base URL at https://tian-shu.org/v1 and fill in the rest accordingly.