# Install Relaybraid

> Connect 2,400+ apps and run their actions from code, from the terminal, or from an AI client. One account covers all three surfaces.


## Terminal and code projects: the CLI

Run this in the project root:

```bash
npx -y https://relaybraid.com/dl/relaybraid-cli.tgz init --ref 2R6WM4WG
```


`init` writes `.relaybraid/config.json`. Requires Node.js 18 or later.

## Sign in

```bash
npx -y https://relaybraid.com/dl/relaybraid-cli.tgz login
```

`login` prints a sign-in URL and a one-time code. Open the URL in a browser, check that the code matches and approve. The command finishes by itself once the sign-in is approved, usually within a minute, and saves the API key in `.relaybraid/credentials.json`.

## Run your first action

```bash
npx -y https://relaybraid.com/dl/relaybraid-cli.tgz run slack.send_message --input '{"channel":"#orders","text":"New order received"}'
```

A successful run prints `status: success` and a run id. From code, call the HTTP API directly:

```bash
curl -X POST https://relaybraid.com/api/v1/actions/run \
  -H "Authorization: Bearer $RELAYBRAID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"app":"slack","action":"send_message","input":{"channel":"#orders","text":"New order received"}}'
```

## AI clients: the MCP server

Add this server URL to an MCP client (Streamable HTTP):

```
https://relaybraid.com/api/mcp/mcp?ref=2R6WM4WG
```

- Claude Code: `claude mcp add --transport http relaybraid "https://relaybraid.com/api/mcp/mcp?ref=2R6WM4WG"`
- Codex: `codex mcp add relaybraid --url "https://relaybraid.com/api/mcp/mcp?ref=2R6WM4WG"`
- Cursor: add the URL under `mcpServers.relaybraid.url` in `.cursor/mcp.json`

## No account yet

Create one at https://relaybraid.com/sign-up?ref=2R6WM4WG.

## More

- [CLI reference](https://relaybraid.com/docs/cli)
- [HTTP API quickstart](https://relaybraid.com/docs/sdk/quickstart)
- [MCP quickstart](https://relaybraid.com/docs/mcp/quickstart)
- [How sign-in works](https://relaybraid.com/docs/auth)
- [App directory](https://relaybraid.com/apps/slack/integrations)
