Vibe Hosting with OpenCode

Vibe Hosting with OpenCode

Yulei Chen - Content-Engineerin bei sliplane.ioYulei Chen
5 min

What if you could list your services, inspect service logs, and even fix failed deployments without leaving OpenCode? That's vibe hosting: you stay in the flow, and your AI assistant talks to Sliplane for you via the Sliplane MCP server. Deploy from chat, read logs in chat, and say "fix it" when a build fails. This post walks you through setup and a short showcase so you can try it yourself.

Prerequisites

Before installing the Sliplane MCP server in OpenCode, have:

  • A Sliplane account (start free trial if you don't have one).
  • Your API key and Organization ID from your Team. You'll paste these into OpenCode later.

Installation

Create or edit opencode.json in your project root, or ~/.config/opencode/opencode.json for global config.

# Global config
vim ~/.config/opencode/opencode.json

# Or project level config
vim opencode.json

To add Sliplane MCP server, paste the following code into the file. Remember to replace the placeholders with your API Key and Organization ID.

{
  "mcp": {
    "sliplane": {
      "type": "remote",
      "url": "https://mcp.sliplane.io",
      "headers": {
        "Authorization": "Bearer your_api_key",
        "X-Organization-Id": "your_organization_id"
      },
      "enabled": true
    }
  }
}

If you create opencode.json in your project, don't forget to add it to .gitignore since you have your authorization keys in it.

Showcase

Here's a simplified use case from a Git repo to deploying on Sliplane and debugging a failed build with OpenCode and the Sliplane MCP server.

LLMs can make mistakes. Always double-check what the agent is doing and verify the plan before approving any actions.

Step 1: Prepare the repo

For this example we use a small Git repo sliplane-mcp-demo with a minimal Docker static deployment.

  • Dockerfile – builds a tiny static site and serves it (e.g. with a minimal web server).
FROM nginx:alpine
COPY index.html /usr/share/nginx/html/
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
  • index.html – a single page that displays "Hello Sliplane" centered on the screen.
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Hello Sliplane</title>
    <!-- CSS is omitted here -->
</head>
<body>
    <h1>Hello Sliplane</h1>
</body>
</html>

That's it: two files, one container, one page.

Step 2: Deploy the repo on Sliplane

  1. Open container.new.
  2. Select projectSelect serverAdd serviceRepository.
  3. Choose your repo. In our example it's sliplane-mcp-demo. Noted that you may need to configure repo access for the first time.
  4. Add service and then Deploy. Wait until the service is running.

Step 3: List services in OpenCode chat

In OpenCode, open chat and ask something like: "List my Sliplane services". The model will use the MCP server to call the Sliplane API and show your services.

Step 4: Introduce a typo

In your repo:

  1. In the Dockerfile, change the line that references index.html to indexl.html (typo).
FROM nginx:alpine
COPY index.html /usr/share/nginx/html/ 
COPY indexl.html /usr/share/nginx/html/  
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
  1. Commit and push the change.

The next build will fail because the file doesn't exist.

Step 5: Fix in OpenCode chat

In OpenCode chat, ask like: "Show me the logs for the service sliplane-mcp-demo." The model will fetch the latest logs and report that the build failed. Then, in the same conversation, say: "Fix it." The model should correct the Dockerfile back to index.html. Again, commit and push your change. Checkout the log, you will find everything works now.


Vibe hosting is exactly this: your services and deployments stay on Sliplane, and OpenCode + the Sliplane MCP server give you a single place to check services, read logs, and iterate on fixes. The example above focused on listing services and debugging failed builds from logs, but that's only the beginning. With the Sliplane MCP server, you can also:

  • Create new services, e.g. "Add a new service from this repo to my project".
  • Deploy databases, e.g. "Deploy a Postgres service".
  • Deploy AI workflow automation, e.g "Deploy n8n to my project".
  • Inspect events, domains, volumes, and settings without leaving OpenCode.

... and more. Enjoy and have fun with vibe hosting!

Welcome to the container cloud

Sliplane makes it simple to deploy containers in the cloud and scale up as you grow. Try it now and get started in minutes!