Skip to content
DOCUMENTATION / INTEGRATIONS

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

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.

Inspect before writing

BASH
tessen opencode --print

Remove

Delete the tessen entry from OpenCode's provider configuration, and sign out with tessen auth:logout.

OpenCode — Tessen Docs