AI Integrations

AI coding agents

Deploy to Buddy with your favorite AI coding agents - pipelines, sandboxes, domains and logs from your terminal or editor.
Buddy's Remote MCP Server is available.

OpenCode + Buddy

OpenCode is an open-source, terminal-based AI coding agent that works with the full context of your project and is model-agnostic, so you can pair it with the provider of your choice. Paired with Buddy, it deploys your project, triggers and monitors pipelines, ships changes across environments, and digs through build output when something needs fixing.

OpenCode is model-agnostic, so you can point it at whichever provider you already pay for and the Buddy setup stays identical. Buddy is registered as a remote MCP server in opencode.json, which lives next to the project.

Info
This page is a quick overview. For the full walkthrough - including MCP setup - see the OpenCode docs. You can also run agents in a fully isolated Buddy sandbox or as a pipeline action.

Quick start

1 Install the Buddy CLI
npm install -g bdy
4 Install the Buddy skill
npx skills add buddy/buddy-plugin
5 Start OpenCode
opencode

The Buddy skill teaches the agent how to drive Buddy through the CLI, so you can ask for deployments and pipelines in your own words.

Example prompts

  • Create a snake app and deploy it for me
  • Deploy an Umami analytics instance and wire it into my app
  • Add a pipeline that runs every minute, checks that my site is up, and notifies me on Slack if anything is wrong
  • Analyze the logs from the last production deployment and fix the errors

Available commands

Available commands
bdy proj link
Link the current directory with a project in Buddy. See bdy project.
bdy sandbox
Create, start and manage on-demand sandboxes with apps, endpoints and snapshots.
bdy pipeline
Create, run and inspect pipelines and their runs.
bdy tunnel
Expose a locally running app to the internet over HTTP, TCP or TLS. See bdy tunnel.
bdy artifact
Publish, download and version build artifacts, including static sites.
bdy domain
Search, buy and manage domains used in distribution routes.

Connect MCP

Buddy's remote MCP server exposes over 90 tools, so OpenCode can run pipelines, manage deployments, and read logs straight through the API. Add the server to opencode.json:

json
{ "$schema": "https://opencode.ai/config.json", "mcp": { "buddy": { "type": "remote", "url": "https://mcp.buddy.works/mcp", "enabled": true } } }

Point it at the endpoint closest to your workspace region - mcp.buddy.works, mcp.eu.buddy.works or mcp.asia.buddy.works - and use the ?tools= parameter to narrow the exposed tool categories.