# Claude Code Agent Runners

> How to connect a runner to your Infa board and let Claude Code agents execute tasks on your behalf.

Source: https://infa.ai/docs/runners

This feature is available on all Infa plans (Free, Pro, and Enterprise).

Runners let you trigger Claude Code agent sessions directly from your Infa board — without leaving the browser. You write a prompt, start a run, and a connected runner picks it up, executes the task in your local repository, and streams progress back to the board in real time.

## How it works

```
infa.ai board (browser)
    │
    │  You create a run (queued)
    ▼
Supabase Realtime
    │
    │  Runner subscribes and picks up the run
    ▼
Infa CLI / Electron app (your machine)
    │
    │  Spawns a Claude Code session in a git worktree of your repo
    ▼
Claude Code agent
    │
    │  Edits files, runs commands, reports progress via hooks
    ▼
Supabase Realtime → back to your board
```

We at Infa designed runners so that Claude works on your real repository, as it would in a normal Claude Code session, without getting in your way. Each run gets a git worktree of its own, on a new branch started from the base branch as your remote has it. Your own checkout is never switched, pulled or changed, so you can keep working while a run goes. When the run ends, a worktree with changes is kept for you to review and merge; one the run left untouched is removed. Everything the run does streams back to your board live, and its final message shows on the run as its report.

The run also reads what your board already knows: the paper it was started from, and the board memory that matches its prompt. Both are passed to Claude as information, never as instructions.

An agent on your board works the same way when its run configuration names a repository: in a worktree of its own, never in your checkout.

The Infa desktop app runs each run in a worktree too, but it cannot enforce a read-only or edit-files configuration. It refuses those runs and asks you to run them with the CLI, which does.

A run started from the capture overlay on your own app is the one exception in the CLI: it works in your checkout, on its current branch, so its changes show in the app you are running.

A worktree starts without installed dependencies and without git-ignored files such as `.env`. The run is told so, and installs or asks for them only when the task needs them.

You can start a run from a **Run** block in a document or on a canvas, from the Runs page, or ask an agent to start one over MCP.

## What you need

- [Infa CLI (recommended)](https://infa.ai/docs/infa-cli): Install the infa npm package and run infa preview from your repo folder. Lightweight, no UI required.
- **Infa Desktop App**: The Infa Electron app includes a built-in runner. Sign in and select a board to connect automatically.

Both options run a local server on `http://localhost:7100` that the board polls to detect runner status.

## Connect with Infa CLI

```bash
# 1. Install
npm install -g infa

# 2. Authenticate
infa auth

# 3. Link the board to your local repo
infa board

# 4. Start the runner
infa preview
```

Once running, the board shows a **"Runner connected"** indicator at `b/{boardId}/runs`. Any run you create is immediately picked up.

**Keep it running**
The runner only picks up queued runs while the process is active. Runs created while the runner is offline will queue and execute as soon as it reconnects.

## Connect with the Desktop App

1. Download and install the Infa desktop app
2. Sign in with the same account you use on infa.ai
3. Open the app and select the board you want to work with
4. The app starts the runner automatically — no extra steps needed

The board detects the connection within 30 seconds.

## Run configurations

Before starting runs, set up at least one **run configuration** on your board. A run configuration tells the runner which repository to use, which branch to base new work on, and what the agent is allowed to do.

Run configurations are managed per board. To create one:

1. In your terminal, run `infa board` from your repo folder — this walks you through linking a repo and creates the first configuration
2. Or open your board → overflow menu → **Integrations** to manage existing configurations

Each configuration stores:

| Field | Purpose |
|-------|---------|
| Repository path | The repository a run gets its worktree from |
| Base branch | Git branch new work branches off from |
| Branch prefix | Prefix applied to auto-created branches (e.g. `agent/`) |
| Permissions | What Claude is allowed to do: `read-only`, `edit` or `full` |

With the Infa CLI, permissions are enforced by Claude Code itself:

| Permissions | Claude can |
|-------------|-----------|
| `read-only` | Read and search files. It cannot edit files, run commands or use MCP servers. |
| `edit` | Read and edit files. It cannot run shell commands or use MCP servers, so it cannot commit or run tests. |
| `full` | Read and edit files and run commands. This is the default for a configuration that sets nothing. |

A value the runner does not recognise is treated as `read-only`.

## Connection status

The **Runs page** (`b/{boardId}/runs`) always shows current runner status at the top:

- **Runner connected** — a runner is active and will pick up new runs immediately
- **No runner connected** — runs will queue; connect a runner to start execution

If you see "No runner connected" but your CLI is running, check that `infa preview` started without errors and that you are authenticated (`infa auth --status`).

## Next steps

- [Managing Runs](https://infa.ai/docs/runners-runs): Start runs, track status, view logs, and open live Claude sessions
- [Board Agents](https://infa.ai/docs/runners-agents): AI teammates defined in your repository that answer mentions and run blocks through your runtime
- [Hooks & Agents](https://infa.ai/docs/infa-cli-hooks-agents): How Infa reports Claude activity back to the board in real time
- [Run Modes](https://infa.ai/docs/infa-cli-run-modes): Difference between local, automated, and remote runs
- [Infa CLI Reference](https://infa.ai/docs/infa-cli-reference): Full command and flag reference
