OpenCode
How Tessen appears in OpenCode: one provider, one model, no secret in the config.
OpenCode talks to Tessen as an OpenAI-compatible provider. tessen opencode writes the provider for you; you never edit it by hand.
The provider
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"tessen": {
"npm": "@ai-sdk/openai-compatible",
"name": "Tessen",
"options": { "baseURL": "https://api.tessen.ai/v1" },
"models": {
"project-zero": {
"name": "Project Zero",
"options": { "program": "project_zero" }
}
}
}
}
}Where things are written
| What | Where |
|---|---|
| Provider configuration | ~/.config/opencode/opencode.json, or your existing opencode.jsonc. Other providers are kept. |
| Credential | OpenCode's credential store, ~/.local/share/opencode/auth.json (mode 0600). Never the config file. |
Inspect before writing
tessen opencode --printRemove
Delete the tessen entry from OpenCode's provider configuration, and sign out with tessen auth:logout.