---
title: "Connect your agent"
description: "Create, edit, deploy, and test Run projects with Claude Code, Codex, or Cursor."
---

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

# Connect your agent

Run uses the **rakerun CLI** and the [rakerun skills](https://github.com/CloudRaker/rakerun-skills).

## Start with your agent

1. Select **Copy prompt** in the Run console or on the sign-up page.
2. Paste the prompt into your AI agent, for example Claude Code, Codex, or Cursor. The agent needs a terminal.
3. The agent asks what work you want to automate. It uses what it already knows about you first.
4. The agent gives you a link and a code. Open the link, sign in, and select your organization.
5. Check that the page shows the same code, then select **Connect**. An AI agent then gets admin access to that organization.
6. The agent runs `npx rakerun login --session <id>`, builds your agents on a Draft, and tests them on a preview.

The prompt holds a session link that expires in 24 hours. Nothing goes live until you say so.
Never paste a token or a secret into the chat.

## Connect your agent to an organization that works

Copy the setup prompt from the toast at the bottom right of the console. Paste it into Claude, ChatGPT, or Codex.
To reopen the toast, select **Connect your agent** in the account menu.
Your agent installs the skills and connects the CLI. An administrator approves access in the browser.

The CLI needs Node.js 22 or later. The manual setup commands are below.

## Install the skills

Run one command in your local project directory:

```bash
# Claude Code
npx skills add CloudRaker/rakerun-skills --agent claude-code

# Codex
npx skills add CloudRaker/rakerun-skills --agent codex

# Cursor
npx skills add CloudRaker/rakerun-skills --agent cursor
```

Select the skills to install when the installer asks. Cursor discovers the installed project skills.

Claude Code also supports a plugin:

```text
/plugin marketplace add CloudRaker/rakerun-skills
/plugin install rakerun
```

## Connect the CLI

For an existing organization:

```bash
npx rakerun login --org your-org
```

Compare the terminal code with the console code before you select **Connect**.
An administrator must approve CLI token creation. Members can read the instructions without that permission.
Keep credentials in the terminal. Never paste a token into a coding agent's chat.
For a remote terminal, add `--paste`.

To create an organization and its first project:

```bash
npx rakerun start
```

## Edit and test a project

A project is a git repository. Each folder with `AGENTS.md` is an agent.
The optional `agent.yml` configures the agent. Front doors use `doors/{name}.yml`.

```bash
npx rakerun --help
npx rakerun template list
npx rakerun new my-project
cd my-project
git switch -c first-change
# Edit the agent files.
npx rakerun lint
npx rakerun deploy
npx rakerun run start hello --branch first-change --input "Hello" --stream
```

Use the agent name from your template in the last command.
`deploy` checks the files, commits, and pushes. A branch push deploys a preview.
Test the preview before publication. See [Repo layout](https://docs.cloudraker.com/run/guides/repo-layout) and [Protection and previews](https://docs.cloudraker.com/run/guides/protection-and-previews).

## Product boundaries

`mcp.cloudraker.com` serves Paperwork and Workspace. Use the rakerun CLI for Run projects, deployments, and executions.
The MCP server at `docs.cloudraker.com/_mcp/server` reads documentation. It does not administer Run.
Run CLI access does not require a separate agent identity at `auth.cloudraker.com`.

## Public discovery

Agents can read [run.cloudraker.com/llms.txt](https://run.cloudraker.com/llms.txt) without sign-in.
The [Run documentation index](https://docs.cloudraker.com/run/llms.txt) links to guides and API references.
Append `.md` to a documentation page URL for Markdown.

Source: https://docs.cloudraker.com/run/guides/coding-agents/index.mdx
