---
updatedAt: 2026-08-20T00:47:13.000Z
agentTools:
  projectIndex: https://docs.catio.tech/llms.txt
---

# OpenCode

Connect the Catio MCP to OpenCode.

### OpenCode

[OpenCode](https://opencode.ai) is the AI coding agent.

**1. Add the server**

Open your OpenCode config file (`~/.config/opencode/opencode.json`) and add the Catio server under `mcp`:

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

**2. Authenticate**

Restart OpenCode. To authenticate, run the following command in your terminal: \`

`opencode mcp auth catio`

This opens a browser window — select your org and workspace to complete the flow

**3. Verify**

Start a session and ask:

```
Tell me about my Catio session
```