All integrations

Connect OpenCode to Guard.ch

Let OpenCode open and interact with websites in an isolated cloud browser. Watch live or hand over a running session.

Connect OpenCode

Install OpenCode and set up a model provider.

  1. 1. Add the connection

    Add this to opencode.json in your project or to ~/.config/opencode/opencode.json. If the file already has an mcp section, add only the guardch entry.

    ~/.config/opencode/opencode.json

    Add the entry below. Keep any other servers already in the file.

    {
      "$schema": "https://opencode.ai/config.json",
      "mcp": {
        "guardch": {
          "type": "remote",
          "url": "https://api.guard.ch/mcp"
        }
      }
    }
  2. 2. Sign in and allow access

    Run opencode mcp auth guardch, or let OpenCode ask on first use. Sign in and allow access on the Guard.ch page that opens.

    opencode mcp auth guardch
  3. 3. Try it in a new chat

    Run opencode mcp list and check that guardch is signed in. Then start opencode and send the task below.

    opencode mcp list

    Open example.com in a Guard.ch browser and tell me what the page says.

0 of 3 steps marked done

Need help?

Run opencode mcp debug guardch to test the connection and sign-in. To start over, run opencode mcp logout guardch and then opencode mcp auth guardch.

Hand over a running session

Choose “Hand off to an agent” in the Guard.ch viewer and paste the prepared prompt into your assistant’s chat. The session ID in that prompt lets the assistant continue in the same browser. Sign your assistant in with the same Guard.ch account.

MCP reference and all browser tools