Skip to content

OpenCode

The Phinite Builder plugin for OpenCode lets the assistant design, deploy, test, debug, evaluate and ship your Phinite agent graphs. It has the same tools, skills and design rules as the Claude plugin, and it acts as you in the workspace you pick at sign-in.

The plugin lives in this public GitHub repository:

https://github.com/Auto-AI-Labs/phinite-opencode-plugin

  • A Phinite account. Sign up if you don’t have one.
  • Python 3.9 or later for the project script, which deploys project folders and sends local files.
  • No Phinite token is stored on your machine or in the repository.

OpenCode has no package format for commands, skills and MCP servers, so an install script copies them into your OpenCode config and adds the phinite server to opencode.json:

git clone https://github.com/Auto-AI-Labs/phinite-opencode-plugin phinite-opencode
python phinite-opencode/install.py # all projects: ~/.config/opencode
python phinite-opencode/install.py --project <repo> # one project: <repo>/.opencode

Restart OpenCode.

For the server only, without the skills: opencode mcp add phinite --url https://mcp.phinite.ai/mcp --global.

Run opencode mcp auth phinite (or /mcps in OpenCode), or /phinite-login. To switch workspace, run opencode mcp logout phinite and sign in again.

A browser opens on the Phinite login (Google, GitHub or email). Pick the organisation and the workspace to build in. The server supports OAuth discovery and dynamic client registration, so there is nothing to configure.

The plugin works in the organisation and workspace you picked on the Phinite login page, and stays there until you sign in again. There is no switch inside the chat: to change either one, sign out of the phinite server and sign in again.

  1. See where you are. Run /phinite-login. The assistant shows your user, organisation and workspace, and lists the workspaces you can switch to.
  2. Sign out of the phinite server. Run opencode mcp logout phinite.
  3. Sign in again. Run opencode mcp auth phinite (or /mcps in OpenCode). On the Phinite login page, pick the organisation and then the workspace you want.
  4. Confirm. Run /phinite-login again and check the workspace it reports before you deploy anything.
Command What it does
/phinite-login Sign in, check the sign-in, or switch workspace.
/phinite-new Scaffold a use-case project folder and design its graphs with you.
/phinite-deploy Dry run, then deploy: changed tools are upserted and published, graphs are created or updated by name.
/phinite-test Chat with the graph or run it autonomously, read the run log, and diagnose.
/phinite-ship Publish → build → environment → trigger or Chat API → API key → call it from outside.
/phinite-logs Explain a run: tool calls, inputs, outputs, variables and errors.
/phinite-eval Evaluate a graph with LLM judges and list the failures with fixes.

You can also just describe what you want:

"Build a support assistant that answers billing questions from our invoices API"
"Test my onboarding graph and explain the last run"
"Ship it to development behind an API trigger"

The rules the assistant follows are the same as in Writing Agent Prompts and How Variables Work.

Run git pull in the clone, then run install.py again. install.py --uninstall removes everything it added.

The plugin connects to the Phinite MCP server at https://mcp.phinite.ai/mcp, set as the url in opencode.json in the plugin folder. Check that it points to this server, and change it only if your organisation runs its own Phinite server.

Symptom Fix
The assistant says it isn’t signed in Sign in again (see Sign in).
It builds in the wrong workspace or organisation See Switch workspace or organisation.
A trigger says there is no build for the environment Ship again: a build is a snapshot, so publish and build after every change.

See Phinite Plugins for the other assistants and the Agents plugin.