Deploy from 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. It is heavily adopted and model-agnostic, and it supports 75+ LLM providers. It talks to VibeHost two ways: through our MCP server (interactive, OAuth) or through the vibehost CLI wrapped as a tool (scripted, PAT).
Option 1: MCP server (recommended for interactive use)
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 access to every VibeHost tool, so it can deploy, promote, roll back, read logs, and manage custom domains.
In an OpenCode session, describe what you want:
Deploy this directory to VibeHost as a new app called my-opencode-app.
OpenCode creates the app, uploads the files, deploys them and returns the live URL. The tool calls behind that are described once, in Choosing an upload path.
Option 2: CLI as a tool (recommended for scripts and CI)
Install the CLI:
curl -fsSL -o vibehost-install.sh https://vibehost.com/install.sh
cat vibehost-install.sh
sh vibehost-install.sh && rm vibehost-install.shAuthenticate with a Personal Access Token:
export VIBEHOST_TOKEN=$(pass vibehost/pat)
vibehost whoami --jsonOpenCode can shell out to vibehost deploy ./dist, vibehost app inspect, etc. Every command takes --json and returns {ok, data | error}, which an agent can parse without reading prose. See the CLI reference.
When to pick which
| Situation | Use |
|---|---|
| First-time setup | MCP (browser sign-in, no token to paste) |
| Interactive deploys inside OpenCode | MCP |
| Scripted / unattended workflows | CLI + PAT |
| You want every write to prompt for confirmation | MCP |
| You want raw stdout / stderr from the deploy | CLI |
Both can coexist.
See also
- MCP server lists every tool and explains authentication.
- Personal access tokens covers PAT setup for CI and scripts.
- Sibling coding agents: Claude Code, Codex CLI, Cursor, Antigravity, Antigravity CLI, Windsurf, Copilot CLI, Hermes Agent, Grok Build