# Connect OpenCode

## Quick start

Merge into `opencode.json`, preserving existing configuration:

```json
{
  "mcp": {
    "ezremote": { "type": "remote", "url": "https://tunnel.masti.lol/mcp", "enabled": true }
  }
}
```

Run `opencode mcp auth ezremote`. Remote MCP has automatic OAuth support.

## Starter prompt

> Set up ezremote for this agent using https://tunnel.masti.lol/skill.md. Run the setup steps you can perform yourself. Ask me to sign in when needed and give me the connection approval link. Wait for my computer to be online before working on it.

Continue with [local approval](approve-on-your-computer.md). For connection errors, follow [troubleshooting](troubleshooting.md).

## Verified source

[Official OpenCode documentation](https://dev.opencode.ai/docs/mcp-servers/), checked 2026-11-01. Documentation support is distinct from a live acceptance test. No real client account or computer was exercised for this guide.
