---
title: "Set up your agent"
description: "Commands to connect Claude Code, Claude, Cursor, Codex, VS Code, Gemini CLI, and other agents to Reachloom."
---

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

# Set up your agent

Pick your agent below. Each tab shows how to connect with [OAuth](/ai/mcp-oauth) (sign in) and with an [API key](/ai/mcp-api-key).

Every example uses the hosted server address:

```txt
https://app.reachloom.app/mcp
```

If you use another Reachloom address, copy yours from the workspace's **Settings → MCP**.

## Before you start

- **OAuth:** nothing to prepare. You sign in in your browser and choose a workspace.
- **API key:** create a key in the workspace's **Settings → Developer API**. Then save it in an environment variable, so it does not end up in a config file or in Git:

```sh
export REACHLOOM_API_KEY="rl_live_..."
```

> **Agent versions change**
>
> These steps follow each agent's own documentation. Menus and commands can change. If a command does not work, check your agent's MCP docs, or see [MCP troubleshooting](/ai/troubleshooting).

## Choose your agent

### Claude Code

**OAuth**

```sh
claude mcp add --transport http reachloom https://app.reachloom.app/mcp
```

Then sign in. Inside Claude Code run `/mcp`, choose **reachloom**, and follow the browser sign-in. Or run this in your shell:

```sh
claude mcp login reachloom
```

**API key**

```sh
claude mcp add --transport http reachloom https://app.reachloom.app/mcp \
  --header "Authorization: Bearer $REACHLOOM_API_KEY"
```

**Share it with a project (optional)**

Add `--scope project` to save the server in `.mcp.json`. Use a variable so the key is not written into the file:

```json
{
  "mcpServers": {
"reachloom": {
  "type": "http",
  "url": "https://app.reachloom.app/mcp",
  "headers": { "Authorization": "Bearer ${REACHLOOM_API_KEY}" }
}
  }
}
```

**Check it**

```sh
claude mcp list
```

You should see `reachloom` as connected.
### Claude app

The Claude app and claude.ai use custom connectors. They connect with OAuth.

1. Open **Settings**, then **Connectors**.
2. Choose **Add custom connector**.
3. Enter the name `Reachloom` and the server address `https://app.reachloom.app/mcp`.
4. Click **Add**, then **Connect**. Sign in to Reachloom and click **Allow**.

Claude on the web needs an address it can reach from the internet. It cannot reach `localhost`.

Custom connectors are not on every Claude plan. If you do not see the option, check your plan or ask your workspace admin.
### Cursor

**OAuth**

Add the server to `.cursor/mcp.json` in your project, or to `~/.cursor/mcp.json` for all projects:

```json
{
  "mcpServers": {
"reachloom": {
  "url": "https://app.reachloom.app/mcp"
}
  }
}
```

Cursor shows a sign-in prompt for the server. Click it and allow access in your browser.

**API key**

Cursor can read environment variables in `headers`:

```json
{
  "mcpServers": {
"reachloom": {
  "url": "https://app.reachloom.app/mcp",
  "headers": { "Authorization": "Bearer ${env:REACHLOOM_API_KEY}" }
}
  }
}
```

Start Cursor from a shell where `REACHLOOM_API_KEY` is set, or the variable will be empty.

You can also add the server in Cursor under **Settings**, then **MCP**.
### Codex

**OAuth**

```sh
codex mcp add reachloom --url https://app.reachloom.app/mcp
codex mcp login reachloom
```

The second command opens your browser. Sign in, choose a workspace, and click **Allow**.

**API key**

Add the server to `~/.codex/config.toml`, or to `.codex/config.toml` in a project you trust:

```toml
[mcp_servers.reachloom]
url = "https://app.reachloom.app/mcp"
bearer_token_env_var = "REACHLOOM_API_KEY"
```

Codex reads the key from the `REACHLOOM_API_KEY` environment variable. The key itself is not stored in the file.

**Check it**

```sh
codex mcp list
```
### VS Code

VS Code uses GitHub Copilot's agent mode for MCP.

**OAuth**

Run this in a terminal. It adds the server to your VS Code user profile:

```sh
code --add-mcp '{"name":"reachloom","type":"http","url":"https://app.reachloom.app/mcp"}'
```

Or open the Command Palette and run **MCP: Add Server**, choose **HTTP**, and enter the address. VS Code asks you to sign in when it first connects.

**API key**

Add this to `.vscode/mcp.json`. VS Code asks for the key the first time the server starts, and stores it safely:

```json
{
  "inputs": [
{
  "type": "promptString",
  "id": "reachloom-key",
  "description": "Reachloom API key",
  "password": true
}
  ],
  "servers": {
"reachloom": {
  "type": "http",
  "url": "https://app.reachloom.app/mcp",
  "headers": { "Authorization": "Bearer ${input:reachloom-key}" }
}
  }
}
```

The top-level key is `servers`, not `mcpServers`.
### Gemini CLI

**OAuth**

```sh
gemini mcp add --transport http reachloom https://app.reachloom.app/mcp
```

Then start Gemini CLI and run:

```txt
/mcp auth reachloom
```

OAuth needs a browser on the same computer. It does not work over plain SSH or in a container with no browser. Use an API key there.

**API key**

```sh
gemini mcp add --transport http reachloom https://app.reachloom.app/mcp \
  --header "Authorization: Bearer $REACHLOOM_API_KEY"
```

This saves the key in your Gemini settings file. By default the server is saved for the current project. Add `--scope user` to save it for all projects.

**Check it**

```sh
gemini mcp list
```
### Other agents

Any agent that supports remote MCP over **Streamable HTTP** can connect. You need two things:

- The server address: `https://app.reachloom.app/mcp`.
- A way to sign in: OAuth, or the header `Authorization: Bearer YOUR_API_KEY`.

If your agent supports OAuth, add the server with no header. The agent gets a `401` answer, finds the sign-in page, and opens your browser.

If it only supports headers, add the header with an API key.

If your agent only supports local (stdio) MCP servers, it cannot connect to Reachloom directly. Use a bridge tool that turns a remote server into a local one, such as `mcp-remote`:

```sh
npx -y mcp-remote https://app.reachloom.app/mcp
```

For the exact details of how the server checks credentials, see [Authentication](/api/authentication).

## Check that it works

After you connect, ask your agent:

> Show my Reachloom workspace status and list its campaigns.

It should call `get_status` and `list_campaigns`. Then try an [example workflow](/ai/workflows).

## If something goes wrong

- A `401` or a sign-in loop: see [MCP troubleshooting](/ai/troubleshooting#authentication-fails).
- OAuth problems: see [Connect with OAuth](/ai/mcp-oauth#if-sign-in-fails).
- Key problems: see [Connect with an API key](/ai/mcp-api-key#see-check-and-revoke-keys).

Source: https://docs.reachloom.app/ai/clients/index.mdx
