> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getunblocked.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Install: OpenCode

## Quick install (macOS and Linux)

Run the following command to install Unblocked MCP:

```bash theme={null}
curl -fsSL https://getunblocked.com/install-mcp.sh | bash
```

This will download the Unblocked CLI and configure your supported tools and agents automatically.

<Note>
  The install script supports macOS and Linux. Windows users should use the manual install instructions below.
</Note>

The installer detects OpenCode and adds a local Unblocked MCP server to its global configuration.

## Manual install (macOS, Windows, Linux)

Add the remote Unblocked MCP server to `~/.config/opencode/opencode.json` or `~/.config/opencode/opencode.jsonc`:

```json theme={null}
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "unblocked": {
      "type": "remote",
      "url": "https://getunblocked.com/api/mcpsse",
      "enabled": true
    }
  }
}
```

OpenCode prompts you to authenticate when you first use Unblocked. To start OAuth immediately, run:

```bash theme={null}
opencode mcp auth unblocked
```

Confirm the server is connected with:

```bash theme={null}
opencode mcp list
```

See the [OpenCode MCP documentation](https://opencode.ai/docs/mcp-servers/) for more configuration options.
