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

# Install Rheos in your AI chat

> Step-by-step setup for the Rheos MCP connector in Claude, ChatGPT, Claude Code, Cursor and other MCP clients — covering OAuth login and API keys.

<Warning>
  **Work in progress** — early access only. Public rollout coming soon. Email **[hello@rheos.app](mailto:hello@rheos.app)** if you'd like an invite.
</Warning>

The Rheos connector lives at:

```
https://mcp.rheos.app
```

Two ways to sign in:

* **Log in with Rheos** (OAuth) — used by chat tools like **claude.ai** and **ChatGPT**. You select "Connect", get bounced to rheos.app to approve, and you're done. No keys to copy.
* **API key** — used by local tools like **Claude Code**, **Cursor**, and other CLI clients. Generate a key in **Settings → MCP**, paste it into the client's config.

<Note>
  Pick whichever your tool supports. Most chat tools use OAuth; most local tools use API keys.
</Note>

## Generate an API key

<Steps>
  <Step title="Open MCP settings">
    Go to [dashboard.rheos.app/settings/mcp](https://dashboard.rheos.app/settings/mcp).
  </Step>

  <Step title="Create a key">
    Select **Generate new key**, give it a label (e.g. "Cursor laptop"), and copy the secret. You'll only see it once.
  </Step>

  <Step title="Store it safely">
    Treat the key like a password. Anyone with it can act as you in Rheos. Revoke unused keys from the same screen.
  </Step>
</Steps>

## Client setup

<Tabs>
  <Tab title="claude.ai">
    Claude.ai uses OAuth — no API key needed.

    <Steps>
      <Step title="Open Connectors">
        In claude.ai, select your avatar → **Settings** → **Connectors** → **Add custom connector**.
      </Step>

      <Step title="Add Rheos">
        * **Name:** `Rheos`
        * **URL:** `https://mcp.rheos.app`

        Select **Add**.
      </Step>

      <Step title="Authorize">
        Claude.ai will redirect you to `rheos.app` to sign in and approve. After approval you'll be bounced back with the connection active.
      </Step>

      <Step title="Test">
        Start a new chat and ask: *"What Rheos brands do I have?"* Claude should call `rheos_list_brands` and return your brands.
      </Step>
    </Steps>
  </Tab>

  <Tab title="Claude Code">
    Claude Code can connect either directly (HTTP transport) or through the `mcp-remote` shim. Direct HTTP is preferred where the client supports it.

    **Option A — direct HTTP** (`~/.claude/settings.json`):

    ```json theme={null}
    {
      "mcpServers": {
        "rheos": {
          "type": "http",
          "url": "https://mcp.rheos.app",
          "headers": {
            "Authorization": "Bearer rk_live_your_api_key_here"
          }
        }
      }
    }
    ```

    **Option B — via `mcp-remote`** (works everywhere `npx` does):

    ```json theme={null}
    {
      "mcpServers": {
        "rheos": {
          "command": "npx",
          "args": [
            "-y",
            "mcp-remote",
            "https://mcp.rheos.app",
            "--header",
            "Authorization: Bearer rk_live_your_api_key_here"
          ]
        }
      }
    }
    ```

    Restart Claude Code (or run `/mcp` to reload). You should see `rheos` listed under connected servers.
  </Tab>

  <Tab title="Cursor">
    Edit `~/.cursor/mcp.json` (create it if it doesn't exist):

    ```json theme={null}
    {
      "mcpServers": {
        "rheos": {
          "command": "npx",
          "args": [
            "-y",
            "mcp-remote",
            "https://mcp.rheos.app",
            "--header",
            "Authorization: Bearer rk_live_your_api_key_here"
          ]
        }
      }
    }
    ```

    Restart Cursor. The Rheos tools will appear in the MCP panel.
  </Tab>

  <Tab title="ChatGPT">
    <Note>
      ChatGPT's custom connector framework is rolling out gradually. If you don't see the option in your account, fall back to claude.ai or Claude Code in the meantime.
    </Note>

    <Steps>
      <Step title="Open Connectors">
        In ChatGPT, go to **Settings** → **Connectors** → **Create**.
      </Step>

      <Step title="Add Rheos">
        * **Name:** `Rheos`
        * **MCP Server URL:** `https://mcp.rheos.app`
        * **Authentication:** OAuth

        Save.
      </Step>

      <Step title="Authorize">
        ChatGPT will open a `rheos.app` window for sign-in and consent.
      </Step>
    </Steps>
  </Tab>

  <Tab title="Other clients">
    Any MCP client that supports the Streamable HTTP transport will work. The
    pattern is always the same:

    ```bash theme={null}
    npx -y mcp-remote https://mcp.rheos.app \
      --header "Authorization: Bearer rk_live_your_api_key_here"
    ```

    Drop that command into the client's MCP server config and you're done. The
    `mcp-remote` package handles the HTTP-to-stdio bridge.
  </Tab>
</Tabs>

## Verifying the connection

Once connected, any of these prompts should produce a tool call:

* *"List my Rheos brands."* → `rheos_list_brands`
* *"What's my Rheos credit balance?"* → `rheos_get_credits`
* *"Show me the formula tree."* → `rheos_get_formulas`

If the client returns "no tools available", check:

1. The Authorization header is exact — `Bearer ` prefix included, no trailing whitespace.
2. The key hasn't been revoked. Re-check **Settings → MCP** in the dashboard.
3. Your client supports the Streamable HTTP transport (most do as of 2026).

<Warning>
  Never commit API keys to git. Use environment variables, a secret manager, or the client's native credential store.
</Warning>

## Rotating or revoking keys

Open **Settings → MCP** in the Rheos dashboard. Each key shows its last-used
timestamp. Select **Revoke** to invalidate it immediately — any client using
that key will start returning 401 within seconds.

To rotate, generate a new key first, update your client config, then revoke
the old one.
