DEVELOPER TOOLS
OpenCode integration
How Tessen appears in OpenCode: one provider, one model, no secret in the config.
Restricted accessDeveloper Alpha for enrolled developers.
OpenCode talks to Tessen as an OpenAI-compatible provider. tessen opencode writes the provider for you and hands OpenCode the credential your device sign-in produced; you never edit it by hand.
SET UP AND RUN
curl -fsSL https://github.com/TessenLab/zero/releases/latest/download/install.sh | shtessen auth:logintessen opencodeopencode --model tessen/project-zeroThe provider
JSON
{ "$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. |
Choosing ZERO
In OpenCode select tessen/project-zero, from the model picker or with --model on the command line. In that spelling tessen is the provider and project-zero is the model.
When a request is refused
| Status · code | Meaning |
|---|---|
| 401 | The credential is missing, revoked or expired. Run tessen auth:login, then tessen opencode. |
403 zero_entitlement_required | This account is not enrolled. tessen zero shows your access. |
503 zero_capacity_unavailable | A ZERO limit closed. Retry after the reset the response names; OpenCode retries per-minute limits for you. |
503 zero_program_disabled | ZERO is switched off by Tessen. It is not your account. |
Inspect and remove
BASH
tessen opencode --printTo remove it, delete the tessen entry from OpenCode's provider configuration and sign out with tessen auth:logout.