VibeHost
Guides

OpenCode

Use VibeHost from inside OpenCode, the open-source terminal AI coding agent by SST. MCP server or vibehost CLI as a tool.

OpenCode is an open-source terminal coding agent built by the SST team — heavily-adopted, model-agnostic, supports 75+ LLM providers. It talks to VibeHost two ways: through our MCP server (interactive, OAuth) or via the vibehost CLI wrapped as a tool (scripted, PAT).

Add VibeHost to your OpenCode config (~/.config/opencode/opencode.json):

{
  "mcp": {
    "vibehost": {
      "type": "remote",
      "url": "https://api.vibehost.com/mcp"
    }
  }
}

Restart OpenCode. First tool call opens your browser for OAuth. After approval, OpenCode has the full VibeHost tool surface — deploy, promote, rollback, list logs, manage custom domains.

In an OpenCode session, just describe what you want:

Deploy this directory to VibeHost as a new app called my-opencode-app.

OpenCode picks the right tools (create_app + create_deployment) and returns the live URL.

Install the CLI:

curl -fsSL https://vibehost.com/install.sh | sh

Authenticate with a Personal Access Token:

export VIBEHOST_TOKEN=$(pass vibehost/pat)
vibehost whoami --json

OpenCode can shell out to vibehost deploy ./dist, vibehost app inspect, etc. Every command takes --json and returns {ok, data | error} for clean agent parsing — see the CLI reference.

When to pick which

SituationUse
First-time setupMCP (OAuth is one-click)
Interactive deploys inside OpenCodeMCP
Scripted / unattended workflowsCLI + PAT
You want every write to prompt for confirmationMCP
You want raw stdout / stderr from the deployCLI

Both can coexist.

See also

On this page