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

# Set up Rendermate with your agent

> Instructions for AI agents: sign your user in to Rendermate, connect the MCP server or the CLI, pick a workspace and make a first video. Tell your agent: set me up with rendermate.com/docs/setup

This page is written for an AI agent, such as Claude Code, Codex, Cursor, Claude, ChatGPT or Amp,
that a person has asked to set them up with Rendermate. A person can hand it to their agent with:

```text theme={null}
Set me up with Rendermate: https://rendermate.com/docs/setup
```

This page is also plain Markdown at `https://rendermate.com/docs/setup.md`.

## What does the agent do, in order?

Agent, work through these steps in order, and finish each step's check before you start the next:

1. [Check the user has a Rendermate account](#does-the-user-have-a-rendermate-account).
2. [Pick how you connect](#how-should-the-agent-connect): the MCP server, the CLI, or both.
3. [Pick the workspace](#which-workspace-should-the-agent-work-in) you work in.
4. Connect: [the MCP server](#how-do-i-connect-the-mcp-server-in-each-client) or
   [the CLI](#how-do-i-install-and-sign-in-to-the-cli).
5. [Check the connection](#how-do-i-check-the-connection-works).
6. [Make a first video or upload the user's media](#how-do-i-make-a-first-video).
7. [Tell the user what's set up](#what-do-i-tell-the-user-at-the-end).

Rules for the whole setup:

* The user signs in themselves, in their own browser. Never ask for their password or a sign-in
  code, and never type into a sign-in page for them.
* An API key is a secret. Ask the user to put it where it's needed (an environment variable or the
  client's config) themselves. If they paste one to you, use it without repeating it back.
* Commands that change a client's config only add a `rendermate` entry. Keep the rest of the file.
* When a step needs the user (signing in, restarting the client, clicking in the dashboard), say
  exactly what to do, then wait for them to say it's done before you check it.

## Does the user have a Rendermate account?

Ask the user: "Do you already have a Rendermate account?"

* **They have an account:** go on to [how to connect](#how-should-the-agent-connect), even if they
  never opened the dashboard. The first time they sign in, from an MCP client, `rendermate login`
  or the dashboard, the page shows a **region** menu and a **create workspaces** button: they pick
  where their data lives and choose **create workspaces**. That makes their organization's two
  workspaces, **Production** and **Sandbox**, and the sign-in goes on to pick the one the client
  works in.
* **They have no account:** new accounts start on a waitlist. Ask them to open
  [https://rendermate.com/signup](https://rendermate.com/signup) and fill in the waitlist form. Rendermate emails an invitation
  when their access is ready; they sign up from that email.
  Stop the setup here and tell them to come back to you with this page once they're in.
* **Someone invited them to an existing organization:** they accept the invitation email and sign
  in to the dashboard. If the dashboard says they don't have a role on any workspace yet, an admin
  of that organization has to give them one.

**Check:** the user can sign in at [https://rendermate.com/login](https://rendermate.com/login).

## How should the agent connect?

Pick by what you are and where you run:

| You are | Connect with |
| - | - |
| A chat app: Claude (claude.ai or Claude Desktop), ChatGPT | The [MCP server](#how-do-i-connect-the-mcp-server-in-each-client). The user adds it in the app's settings. |
| A coding agent on the user's computer: Claude Code, Codex, Cursor, VS Code, Amp | The [MCP server](#how-do-i-connect-the-mcp-server-in-each-client), and the [CLI](#how-do-i-install-and-sign-in-to-the-cli) too when the user has media files to upload or wants to call the API from the terminal. |
| An agent in a remote sandbox, a container or CI, where the user's browser can't reach | An [API key](#how-do-i-connect-with-an-api-key-instead) in `RENDERMATE_API_KEY`, for the MCP server or the CLI. |

The MCP server is `https://api.rendermate.com/mcp`. Every REST endpoint has an MCP tool, so the
MCP server alone can do everything. Signing in needs no API key: the client opens a Rendermate
sign-in page in the user's browser, and the user picks the workspace there.

## Which workspace should the agent work in?

Ask the user before they sign in: "Which workspace should I work in: **Sandbox**, for trying things
out, or **Production**, for real work?" Suggest **Sandbox** for a first setup.

Every connection acts in one workspace:

* An MCP sign-in or `rendermate login` acts in the workspace the user picks on the sign-in page.
* An API key acts in the workspace it was created in. Sandbox keys start with `sk_test_`,
  Production keys with `sk_live_`.
* `https://api.rendermate.com/mcp/<workspace_id>` always acts in that one workspace. A
  workspace's ID starts with `ws_`.

To change workspace later, sign in again and pick the other one: run `rendermate login` again, or
sign out of the MCP server in the client and sign in again.

## How do I connect the MCP server in each client?

Use the section for the client you are. Each adds a server named `rendermate` at
`https://api.rendermate.com/mcp`. When the user signs in, Rendermate shows **connect** with the
client's name and a button for each workspace: they choose the one they picked.

### Claude Code

Run:

```bash theme={null}
claude mcp add --transport http --scope user rendermate https://api.rendermate.com/mcp
```

`claude mcp list` then shows `rendermate: https://api.rendermate.com/mcp (HTTP) - ! Needs
authentication`. Ask the user to start a new Claude Code session (the server loads when a session
starts), run `/mcp`, choose **rendermate** and sign in in the browser.

**Check:** `claude mcp list` shows rendermate as connected, and the `get_account` tool works.

### Codex

Run:

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

Codex adds the server, says `Detected OAuth support. Starting OAuth flow…` and prints a sign-in
URL, which it opens in the browser. The command waits until the user has signed in, so if your
shell tool times out first, ask the user to run `codex mcp login rendermate` in their own terminal
instead. Then ask them to restart Codex so the tools load.

**Check:** `codex mcp list` shows rendermate, and the `get_account` tool works.

### Cursor

Add rendermate to `~/.cursor/mcp.json` (every project) or `.cursor/mcp.json` (one project),
keeping any servers already there:

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

Or give the user this link, which adds the same entry when they open it:
`cursor://anysphere.cursor-deeplink/mcp/install?name=rendermate&config=eyJ1cmwiOiJodHRwczovL2FwaS5yZW5kZXJtYXRlLmNvbS9tY3AifQ==`.

Ask the user to open Cursor's settings, find rendermate in the MCP list, and sign in in the
browser it opens.

**Check:** the `get_account` tool works.

### VS Code

Run:

```bash theme={null}
code --add-mcp '{"name":"rendermate","type":"http","url":"https://api.rendermate.com/mcp"}'
```

Ask the user to start the rendermate server (the **MCP: List Servers** command, then
**rendermate**), and sign in in the browser VS Code opens.

**Check:** the `get_account` tool works.

### Claude (claude.ai and Claude Desktop)

The user adds the server; you can't do it from a chat. Ask them to:

1. Open **Settings**, then **Connectors**, and choose **Add custom connector**.
2. Name it `rendermate` and enter `https://api.rendermate.com/mcp`.
3. Choose **Connect**, sign in and pick the workspace.
4. Turn the connector on in this chat, or start a new chat.

**Check:** the `get_account` tool works.

### ChatGPT

The user adds the server; you can't do it from a chat. Ask them to:

1. Open **Settings**, then **Apps & Connectors**, and turn on **Developer mode** under
   **Advanced settings**.
2. Create a connector named `rendermate` with the address `https://api.rendermate.com/mcp` and
   **OAuth** as its authentication.
3. Sign in and pick the workspace.
4. Add the connector to this chat, or start a new chat with it.

**Check:** the `get_account` tool works.

### Amp

On the user's computer, run:

```bash theme={null}
amp mcp add rendermate https://api.rendermate.com/mcp
```

Ask the user to restart Amp: it opens the Rendermate sign-in page in the browser when it starts.

In an Amp thread that runs in an orb or on ampcode.com, a local config can't sign in. Add it to
the user's Amp account instead, and have them open the sign-in URL the second command prints:

```bash theme={null}
amp mcp remote --personal add rendermate https://api.rendermate.com/mcp --auth oauth
amp mcp remote --personal login rendermate
```

**Check:** the `get_account` tool works.

### Any other MCP client

Add a remote (Streamable HTTP) MCP server named `rendermate` at
`https://api.rendermate.com/mcp`. A client that signs in to MCP servers with OAuth finds the
sign-in on its own: the server's `401` points to
`https://api.rendermate.com/.well-known/oauth-protected-resource/mcp`, and clients register
themselves with dynamic client registration. A client that can't sign in sends an
[API key](#how-do-i-connect-with-an-api-key-instead) as an `Authorization: Bearer sk_…` header.

## How do I install and sign in to the CLI?

The `rendermate` CLI syncs folders of media to the workspace, records the screen on macOS and calls
any API route. On macOS and Linux, run:

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

It installs to `~/.local/bin`. If `rendermate --version` isn't found, add `~/.local/bin` to the
`PATH` or run `~/.local/bin/rendermate`. On Windows, the user downloads the Windows build from
[rendermate.com](https://rendermate.com/#cli) and puts `rendermate.exe` in a folder on the `PATH`.

Then sign in:

```bash theme={null}
rendermate login
```

It prints `Opening your browser to sign in. If it doesn't open, go to:` and a URL, then waits up to
10 minutes for the user to sign in and pick the workspace. The browser must be on the same computer
as the CLI, because sign-in comes back to `http://127.0.0.1:<port>/callback`. If your shell tool
can't wait that long, ask the user to run `rendermate login` in their own terminal.

**Check:** `rendermate whoami` prints the `workspace` (its name and `ws_…` ID) and the
`organization`.

## How do I connect with an API key instead?

Use an API key when the user's browser can't reach you, such as in a remote sandbox or CI, or
when the client can't sign in to MCP servers. Ask the user to:

1. Open [https://rendermate.com/dashboard](https://rendermate.com/dashboard) and pick the workspace in the sidebar.
2. Open **api keys**, enter a **key name** such as the agent's name, and choose **create key**. The
   key is shown once.
3. Put it where you'll read it, without sending it in the chat: `RENDERMATE_API_KEY` in your
   environment, or the client's config.

Then:

* **CLI:** `RENDERMATE_API_KEY` takes precedence over a sign-in. To save it instead, the user runs
  `echo "$RENDERMATE_API_KEY" | rendermate login --with-key`.
* **MCP:** send it as a header, such as
  `claude mcp add --transport http rendermate https://api.rendermate.com/mcp --header "Authorization: Bearer $RENDERMATE_API_KEY"`,
  `codex mcp add rendermate --url https://api.rendermate.com/mcp --bearer-token-env-var RENDERMATE_API_KEY`,
  or `"headers": { "Authorization": "Bearer sk_…" }` in Cursor's `mcp.json`.
* **REST:** `curl https://api.rendermate.com/v1/account -H "Authorization: Bearer $RENDERMATE_API_KEY"`.

## How do I check the connection works?

Ask Rendermate who you act for, and compare the answer with the workspace the user picked:

* **MCP:** call `get_account`. It returns `organization_name`, `workspace_name`, `workspace_id`
  and `region`, and either the signed-in member or the API key.
* **CLI:** `rendermate whoami`.
* **REST:** `GET https://api.rendermate.com/v1/account`.

Tell the user which organization and workspace you're connected to. If it's the wrong workspace,
[sign in again](#which-workspace-should-the-agent-work-in) and pick the right one. If a call fails,
see [Why doesn't the setup work?](#why-doesnt-the-setup-work)

## How do I make a first video?

Ask the user: "Shall I make a short test video, or upload some of your media first?"

**A test video**, which costs nothing:

1. Create a document from the example on [Documents](https://rendermate.com/docs/documents.md#what-does-a-document-look-like):
   two seconds of a red background with a white dot. Over MCP, call `create_document` with its JSX
   as `jsx` and `"name": "Setup check"`. From the CLI, write
   `{"name": "Setup check", "jsx": "<the JSX>"}` to a file and run
   `rendermate api POST /v1/documents --data @document.json`. The answer has the document's `id`
   (`doc_…`) and `"version": 1`.
2. Make a preview: `create_preview` with that `document_id`, or
   `rendermate api POST /v1/documents/<id>/previews --data '{}'`. The answer's `url` is a page that
   plays the document live in the browser, for 12 hours.
3. Give the user the URL and ask them to open it in Chrome, Edge or Safari (it renders with
   WebGPU). They should see a red frame with a white dot in the middle.

**The user's media:**

* Files on the user's computer: `rendermate sync ./folder media` uploads the folder to the
  workspace folder `media/` and prints a line per file (`+` uploaded) and a summary. Over MCP
  alone, `upload_asset` uploads one file.
* Files on the web: `import_asset` with the URL and a name, then `get_import` until its status is
  `succeeded`.
* **Check:** `rendermate assets ls media/`, or `list_assets` with the folder as `prefix`, lists
  them. Documents use an asset as `asset://<name>`.

Frames (`get_frame`), share links (`create_link`) and MP4 exports (`create_export`) render on
Rendermate's servers and cost credits. A new organization has none: they fail with `402
credits.empty` until an organization admin buys credits on the dashboard's **billing** page (at
least \$5). See [Billing and credits](https://rendermate.com/docs/billing.md).

## What do I tell the user at the end?

Tell the user, in a few lines:

* which client is connected (MCP server, CLI or both), and how it signs in (their account, or an
  API key);
* the organization and workspace, from `get_account` or `rendermate whoami`;
* the preview URL of the test video, or the assets you uploaded;
* that frames, share links and exports need credits, if their balance is empty.

Then offer next steps, such as editing the test document into a real video. Before writing
documents, read [Documents](https://rendermate.com/docs/documents.md); the MCP server's instructions and its `search_docs`
tool cover the rest.

## Why doesn't the setup work?

| What you see | What to do |
| - | - |
| The sign-in page shows only **Join the waitlist** for the user's email | They have no account yet: see [Does the user have a Rendermate account?](#does-the-user-have-a-rendermate-account) |
| **welcome to rendermate** with a **region** menu on the sign-in page | The user is new to Rendermate: they pick a region and choose **create workspaces**, then pick the workspace the client works in. |
| **couldn't sign you in** | Sign-in didn't finish, often because the user is still on the waitlist. Once their invitation email arrives and they've signed up, they sign in from the client again. |
| `401 unauthorized` from the MCP server | The client hasn't signed in yet, or its sign-in expired: sign in again from the client. With a key, check it's sent as `Authorization: Bearer sk_…`. |
| `mcp_sign_in.expired` | The sign-in page was open too long. Start again from the client. |
| `workspace.not_found` | The user has no role in the workspace they picked. Pick another, or ask an organization admin for a role. |
| The client never opens a sign-in page | It can't sign in to MCP servers. Use an [API key](#how-do-i-connect-with-an-api-key-instead). |
| `rendermate login` says `signing in timed out` | The user didn't finish in 10 minutes, or the browser was on another computer. Run it again on the user's computer, or use an API key. |
| `402 credits.empty` | The organization has no credits. An admin buys some on the **billing** page. |
| `403 forbidden` | The user's role in the workspace doesn't allow it. An organization admin can change it under **members**. |

Every error has a `doc_url` to its row on [Errors](https://rendermate.com/docs/errors.md), and
[Troubleshooting](https://rendermate.com/docs/troubleshooting.md) answers more.


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