OpenCode
OpenCode is an AI coding tool in the terminal. It supports custom OpenAI-compatible providers, so it can connect to Tianshu.
Configure
- Create a token in the Console (use a non-cconly group such as
codexorclaude-max/claude-kiro). - 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
- 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.
