OpenCode¶
OpenCode connects to Claudin.io as an OpenAI-compatible provider. The quickest path is its built-in auth flow.
Quick setup¶
-
Run the login command:
-
Select Claudinio as the provider.
- Paste your API key when prompted — copy it from your dashboard.
Then start OpenCode and pick the claudinio model.
Environment-variable alternative¶
If you've already exported your key, OpenCode picks up the standard OpenAI variables — no need to paste anything:
| Setting | Value |
|---|---|
| Base URL | https://api.claudin.io/v1 |
| Model | claudinio |
| Provider | OpenAI-compatible |
Trouble? See common errors or the FAQ.