TESSEN Platform
Documentation
Docs/Developer tools
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-zero

The 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

WhatWhere
Provider configuration~/.config/opencode/opencode.json, or your existing opencode.jsonc. Other providers are kept.
CredentialOpenCode'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 · codeMeaning
401The credential is missing, revoked or expired. Run tessen auth:login, then tessen opencode.
403 zero_entitlement_requiredThis account is not enrolled. tessen zero shows your access.
503 zero_capacity_unavailableA ZERO limit closed. Retry after the reset the response names; OpenCode retries per-minute limits for you.
503 zero_program_disabledZERO is switched off by Tessen. It is not your account.

Inspect and remove

BASH
tessen opencode --print

To remove it, delete the tessen entry from OpenCode's provider configuration and sign out with tessen auth:logout.

Search documentation

Titles, headings and guides↑ ↓ navigate · Enter open