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

# Set up Hotkey (for agents)

> Steps an AI agent follows to add Hotkey to itself, have the person sign in once, check that it works and go back to their task.

This page is written for an AI agent that was asked to set up Hotkey. A person who wants to do it by hand can follow the [Quickstart](https://docs.hotkey.so/quickstart.md) instead.

Hotkey is an MCP server. It gives you always-on cloud browsers that stay signed in to the person's sites, and a way to ask the person when a step needs them. You add the server, the person signs in once in their own browser, you check it with one call, and then you go back to what they asked you.

## The MCP address

Use the address the person gave you. For Hotkey's own service it is:

```text theme={null}
https://mcp.hotkey.so
```

Name the server `hotkey`. It speaks Streamable HTTP and signs in with OAuth, so it needs no token.

## 1. Add the server

Do the part for the agent you are. If a command is refused (a sandbox, no network, a file outside your workspace), show the person the command and ask them to run it.

### Claude Code

```bash theme={null}
claude mcp add --scope user --transport http hotkey https://mcp.hotkey.so
```

`--scope user` makes it work in every project. Then install the Hotkey skill, which tells you how to use the tools well:

```bash theme={null}
mkdir -p ~/.claude/skills/hotkey && curl -fsSL https://docs.hotkey.so/skill.md -o ~/.claude/skills/hotkey/SKILL.md
```

### Codex

```bash theme={null}
codex mcp add hotkey --url https://mcp.hotkey.so
```

This writes the server to `~/.codex/config.toml`, which the Codex app and IDE extension read too.

### Cursor

Add the server to `~/.cursor/mcp.json`. Keep any servers already there:

```json theme={null}
{ "mcpServers": { "hotkey": { "url": "https://mcp.hotkey.so" } } }
```

### VS Code

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

### Gemini CLI

```bash theme={null}
gemini mcp add --scope user --transport http hotkey https://mcp.hotkey.so
```

### Hermes Agent

Add the server to `~/.hermes/config.yaml`, under `mcp_servers`. Keep any servers already there:

```yaml theme={null}
mcp_servers:
  hotkey:
    url: "https://mcp.hotkey.so"
    auth: oauth
```

### OpenClaw

```bash theme={null}
openclaw mcp add hotkey --url https://mcp.hotkey.so --transport streamable-http
```

Then set `auth: "oauth"` on the `hotkey` entry under `mcp.servers` in OpenClaw's config. Keep `transport: "streamable-http"`: without it OpenClaw uses SSE, which Hotkey doesn't serve.

### Any other agent

Add a remote MCP server named `hotkey` at the address above, over Streamable HTTP with OAuth. If you can't add servers yourself, give the person the address and ask them to add it in your settings.

## 2. Have the person sign in

You can't sign in for the person. The sign-in opens a Hotkey page in their browser, where they sign in (or make their Hotkey account) and press **Allow**. Tell them exactly what to do, then end your turn and wait for them to say it's done.

| Agent | What the person does |
| - | - |
| Claude Code | Type `/mcp` in Claude Code, choose **hotkey** and sign in. Or run `claude mcp login hotkey` in their own terminal. |
| Codex | `codex mcp add` opens the sign-in page itself. If none opened, run `codex mcp login hotkey` in their own terminal. |
| Cursor | Open Cursor's settings, find **hotkey** under MCP and press **Connect**. |
| VS Code | Start **hotkey** in the MCP servers list. VS Code asks them to sign in on first use. |
| Gemini CLI | Type `/mcp auth hotkey` in Gemini CLI. |
| Hermes Agent | Hermes opens the sign-in page on its first connection. If none opened, run `hermes mcp login hotkey`, then `/reload mcp` or start a new session. |
| OpenClaw | Run `openclaw mcp login hotkey` and open the link it prints. Or select **Sign in** next to **hotkey** in OpenClaw's **Settings**, **MCP**. |

A new server's tools may only show in a new session of your agent. If they don't show after the sign-in, ask the person to start one, and say what you will do when they do.

An agent that can't open a browser can use a token instead. The person makes one in the Hotkey console, under **Settings**, **Connect your agent**, **Tokens for scripts**, and you send it as `Authorization: Bearer <token>`.

## 3. Check that it works

Call `list_connected_browsers`. It lists the person's browsers, such as **My browser**. Then call `tabs_context_mcp` for the tabs of the one you will use.

If the call fails with a sign-in error, the sign-in didn't finish: ask the person to do step 2 again.

## 4. Go back to the task

Tell the person in one line that Hotkey is connected, then carry on with what they asked you. Before you act on their sites, read the [skill](https://docs.hotkey.so/skill.md) if you haven't installed it: one tab per task, read before acting, and ask them with `request_human` whenever a site wants a password, a code, a captcha or a payment.

The tools are listed in [Tools](https://docs.hotkey.so/tools.md).


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