> ## 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.

# Pi

> Connect the Pi coding agent to rendermate.

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

The second command opens the rendermate sign-in page in your browser, where you sign in and pick
the workspace. In a running session, `/mcp` shows rendermate and can sign in too; run `/reload`
after adding it.

Or add it to `~/.pi/agent/mcp.json` yourself:

```json theme={null}
{
  "mcpServers": {
    "rendermate": { "url": "https://api.rendermate.com/mcp" }
  }
}
```

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

```bash theme={null}
pi mcp add rendermate --url https://api.rendermate.com/mcp \
  --bearer-token-env-var RENDERMATE_API_KEY
```


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