Frontrunner

Frontrunner CLI

fr runs your Frontrunner workspace from a terminal: agents, campaigns, runs, sessions and the lists they produce. It uses the same API as the app, so anything below also works from your own code over HTTPS: HTTP API has every route.

For agents

This page is markdown at /docs.md (or /docs with Accept: text/markdown), the API reference at /docs/api.md, and both together at /llms-full.txt. With the CLI installed, fr docs, fr docs api and fr docs all print the same.

Install

Node 20 or newer.

mkdir -p ~/.local/bin
curl -fsSL https://app.usefr.com/cli/fr -o ~/.local/bin/fr
chmod +x ~/.local/bin/fr
fr --version

If fr is not found, add ~/.local/bin to your PATH.

Create a key

In Frontrunner open Settings, then API keys, then Create key. The key is shown once. It acts as you: it reaches the workspaces you are a member of and nothing else, and it stops working the moment you revoke it on the same page.

Sign in

fr login --key fr_... --ws <workspace>
fr whoami

fr login writes ~/.frrc (readable only by you) and verifies the key. fr whoami prints the workspace ids your key can act in; pass one of them as --ws. If you have exactly one, fr login picks it for you.

Lists

Pull a list. --csv prints every column with a key column first; --json prints the raw API response, rows included.

fr list ls
fr list show <listId> --csv > list.csv
fr list show <listId> --json > list.json

Create a list:

fr list create --name "Design partners" --column company:Company --column why:"Why now":longtext

Writing to a list

The case this was built for: a tool of yours writes one line per lead (an opener), that line has to become a variable on the list a campaign targets, and it has to reach the leads already sitting in the Instantly campaign so the copy can use it.

1. Pull the list with everything your tool needs. Keep the key column: it is how rows are matched on the way back.

fr list show <listId> --json > leads.json

2. Add the field, once. Existing rows keep their cells; the new column is empty until you fill it.

fr list add-column <listId> --key opener --label "Opener" --type longtext

Types: text (default), longtext, number, date, url, email, phone.

3. Write the line per row and push it back. A row is matched by its key: an existing key updates that row's cells, a new key adds a row. Only the cells you send change; an empty CSV cell leaves the stored value alone. Columns in the file must exist on the list; --add-columns adds any missing ones as text.

[
  { "key": "jane-doe-1a2b3c", "cells": { "opener": "Saw the Series A note. Congrats on the growth hire." } },
  { "key": "acme.com", "cells": { "opener": "Your pricing page changed twice this month." } }
]
fr list push <listId> --file openers.json
fr list push <listId> --file list.csv --add-columns

The file is JSON as above, or CSV with a key column plus one column per field (what fr list show --csv prints, so pull, edit and push round-trips). One row without a file:

fr list set <listId> acme.com --field opener="Your pricing page changed twice this month."

4. Send the field to the leads already in the Instantly campaign, matched by the list's email column. =personalization fills Instantly's own {{personalization}} field; a bare column name makes a custom variable of that name, so --var opener gives the copy {{opener}}.

fr list sync <listId> --instantly <campaignId> --var opener=personalization
fr list sync <listId> --instantly <campaignId> --var opener --var segment

Leads the campaign does not hold are listed, not added, and no mail is sent. Rows marked not relevant are skipped. Run it again after you improve the line; the value is overwritten. The campaign id is the one in the Instantly URL, or fr campaign get <campaignId> shows it for a campaign Frontrunner runs.

Context files

Your own material for agents to read: a customer export, a CRM dump, a list of the accounts you already work with. CSV, TSV, XLSX, JSON and text are read; anything else is stored as is. Up to 32 MB per file.

fr context upload customers.csv --title "Customers by monthly orders" --description "One row per customer account, orders per month since 2025"
fr context ls
fr context show <fileId>
fr context download <fileId> -o customers.csv

fr context ls lists the workspace's Business logic documents (the ones agents read) above its files; --all adds drafts, archived documents and older file versions, and --json prints { docs, files }. A document id starts bdoc_: fr context show <docId> prints its text and sources, fr context download <docId> -o icp.md writes it as markdown.

Business logic documents

Documents are markdown, and you or your own agents can write them from here as well as on the Business logic page. A new or edited document is active at once: agents read it on their next run.

fr context create --title "Competitors" --file competitors.md
fr context download <docId> -o icp.md       # edit the file, then
fr context edit <docId> --file icp.md        # replaces the body
fr context append <docId> --text "- New competitor: Acme Graph, seen in two lost deals."
cat notes.md | fr context append <docId> --file -
fr context archive <docId>                   # or publish (a draft), unarchive, rm, restore

append adds to the end and never drops what someone else wrote in the meantime: it reads the document, adds your text and writes it back only if nobody changed it since (else it reads again). edit replaces the whole body; pass --if-revision <n> (the v number fr context show prints) to refuse the write if the document changed since you read it. --title and --summary rename or redescribe it; --note is the line in its history. create --draft keeps a new document out of agents' reach until fr context publish. rm moves a document to the trash on the Business logic page, and restore brings it back. Every change is in the document's history under the key's person.

The description is what an agent reads to decide how to use the file, so say what a row is and what the columns mean. A file that matches one already here (the same bytes, the same filename, or the same columns) is not stored: the command says why and exits 1. Run it again with --on-conflict new_version to replace the earlier file (it stays in version history; pass --title and --description again, a new version does not inherit them), keep_both to store both, or skip.

A context file is read as a whole. To work row by row (add a field, push rows back, send a column to a campaign), load it into a list instead: fr list create and fr list push --file.

Inbox

Pull To message, the people your Inbox offers a first LinkedIn message to, to read them somewhere else (a sheet, or a model you ask which ones to write to first). The rows are the ones the Inbox shows you, in its order, on the LinkedIn accounts you can see there.

fr inbox to-message --seat manuel --csv -o to-message.csv
fr inbox to-message --seat <accountId> --list <listId>
fr inbox to-message --json > to-message.json

Outreach

How many connection requests, accepts, messages and replies your LinkedIn accounts had, per account and per day, and the emails each mailbox sent. The same counts the Sequences page reads, for a sheet or a dashboard of your own.

fr outreach                                   # the last 30 days, one row per LinkedIn account
fr outreach --from 2026-11-01 --to 2026-11-28 --by day
fr outreach --days 7 --seat manuel --by day
fr outreach --by campaign                     # per HeyReach campaign and account
fr outreach --csv -o outreach.csv             # one row per account per day
fr outreach --json > outreach.json

Outbound copy

Write LinkedIn messages and cold emails for the people on a list, one per person, from their row: the writer the Sequences page uses, with your workspace's Business Logic (ICP, positioning and messaging). Nothing is kept on the list and nothing is sent; read it, change it, then push it where it goes.

fr copy write <listId> --linkedin -m "first message to a new connection: one thing from their row, one question"
fr copy write <listId> --linkedin --mode connect -m "connection note, under 300 characters, no pitch"
fr copy write <listId> --email --subject "{{company}} and key custody" -m "short cold email, one reason from their row, one ask"
fr copy write <listId> --email --subject "..." -m "..." --rows key1,key2 --csv -o copy.csv
fr copy draft --email --list <listId> -m "book intro calls with security leads" --json > sequence.json
fr copy write <listId> --file sequence.json --all --csv copy.csv

Agents, campaigns and runs

fr agent list
fr agent get <agentId>
fr agent create --name "..." [--description ...] [--category Prospecting] [--project <projectId>] [--file agent.json]
fr agent run <agentId> [-m "what you want"] [--wait]
fr agent delete <agentId> [<agentId> ...]

fr campaign list
fr campaign get <campaignId>
fr campaign create --name "..." --agent <agentId> [--cron "0 7 * * 1-5"] [--tz Europe/Copenhagen] [--list <listId>]
fr campaign run <campaignId> [--as-of YYYY-MM-DD] [--wait]

fr run list [--campaign <campaignId>]
fr run get <runId>
fr run wait <runId>
fr run events <runId>

fr session new --agent <agentId> [-m "text"]
fr session send <sessionId> "text"
fr session status <sessionId>
fr session events <sessionId>
fr session watch <sessionId>

fr integration list
fr integration show <int_id>
fr integration connect <int_id> [--field k=v ...] [--file fields.json]
fr integration disconnect <int_id>

fr integration list has a PROBLEM column: a connection can be connected and still read nothing, for example an Attio token without a read scope. fr integration show <int_id> prints every problem in the vendor's words, the fields a connection takes and where in the vendor's app each one lives, and the fr integration connect line to run with the new key.

An agent is the work (its instructions and tools); a campaign runs an agent on a schedule; a run is one execution of either, and a session is the conversation behind it. fr agent run and fr campaign run print the run id; --wait blocks until it finishes. fr session watch follows a session until it stops working and exits 1 if it failed.

Projects

A project holds a piece of work as the Projects page shows it: its lists (Audiences), its Business Logic documents and files (Context) and its agents.

fr project ls
fr project show <projectId>
fr project create --name "Q1 fintech push" --description "Series A fintech CTOs"
fr project add <projectId> --list <listId> --doc <docId> --file <fileId> --agent <agentId>
fr project remove <projectId> --list <listId>
fr agent create --name "..." --project <projectId>

HTTP API

Every command is a request to https://app.usefr.com/api/v1/<workspace>/... with the header Authorization: Bearer fr_.... HTTP API lists every route; the list calls this page walks through:

# pull: { list, rows, suppressions }
curl -s https://app.usefr.com/api/v1/<workspace>/lists/<listId> -H "Authorization: Bearer $FR_API_KEY"

# add a field
curl -s -X POST https://app.usefr.com/api/v1/<workspace>/lists/<listId>/columns \
  -H "Authorization: Bearer $FR_API_KEY" -H "Content-Type: application/json" \
  -d '{"columns":[{"key":"priority","label":"Priority","type":"text"}]}'

# update or add rows (up to 2000 per call): { counts: { added, updated, reconfirmed, suppressed } }
curl -s -X POST https://app.usefr.com/api/v1/<workspace>/lists/<listId>/rows \
  -H "Authorization: Bearer $FR_API_KEY" -H "Content-Type: application/json" \
  -d '{"rows":[{"key":"acme.com","cells":{"opener":"Your pricing page changed twice this month."}}]}'

# carry a column onto the leads in an Instantly campaign: { updated, missing, failed, skipped }
curl -s -X POST https://app.usefr.com/api/v1/<workspace>/lists/<listId>/instantly-variables \
  -H "Authorization: Bearer $FR_API_KEY" -H "Content-Type: application/json" \
  -d '{"campaignId":"<instantly campaign id>","variables":{"opener":"personalization"}}'

GET /api/v1/whoami checks a key. GET /api/v1/<workspace>/lists lists the lists without their rows.

Configuration

WhereWhat
~/.frrc{"baseUrl","apiKey","workspace"}, written by fr login
FR_API_KEY, FR_WORKSPACE, FR_BASE_URLoverride the file
--key, --ws, --urloverride both, for one command

Errors

MessageMeaning
invalid_api_keythe key is wrong or revoked; create a new one in Settings
workspace_not_allowed, forbiddenyou are not a member of that workspace
no workspace setpass --ws <id> or run fr login --ws <id>
unauthorizedno key reached the server; check FR_API_KEY or ~/.frrc
list_not_foundthe list id is wrong or belongs to another workspace; fr list ls prints yours
seat_not_foundno LinkedIn account by that id or name in your Inbox; the error lists the ones you can see
inbox_export_lockedreading the Inbox from the CLI is not switched on for this workspace yet
rate_limitedmore than 30 Inbox reads in 10 minutes; wait and run it again
invalid_date, invalid_window, window_too_longfr outreach dates are YYYY-MM-DD, --from before --to, at most 366 days