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

# opencode

> Connect opencode to rendermate.

```bash theme={null}
opencode mcp add rendermate --url https://api.rendermate.com/mcp --global
```

Or add it to `opencode.json` in a project:

```json theme={null}
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "servers": {
      "rendermate": { "type": "remote", "url": "https://api.rendermate.com/mcp" }
    }
  }
}
```

Then run `opencode mcp auth rendermate`, or choose rendermate in `/mcps`, and sign in and pick the
workspace in the browser it opens.

To use an [API key](https://rendermate.com/docs/authentication.md#api-keys) instead, keep it in an environment variable and send
it as a header. The tools then act in the key's workspace:

```json theme={null}
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "servers": {
      "rendermate": {
        "type": "remote",
        "url": "https://api.rendermate.com/mcp",
        "oauth": false,
        "headers": { "Authorization": "Bearer {env:RENDERMATE_API_KEY}" }
      }
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.