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.
- No prompt, no config file. Set
FR_API_KEYandFR_WORKSPACEin the environment and skipfr login; every command reads them.fr whoamiprints the workspace ids the key can act in. - Read JSON. Add
--jsonto any command: stdout is then one JSON value (the object or array the command is about).fr session watch --jsonprints one JSON event per line instead. - Errors go to stderr as one line starting
fr:, ending in the server's error code and detail. - Exit codes:
0ok,1an error or a run that failed,2a usage error (a missing argument or an unknown command). - Waiting:
--waitandfr run waitpoll every 2 seconds until the run issucceeded(exit 0) orfailed(exit 1);--timeout <secs>caps the wait (default 1800) and exits 1 when it runs out. A run inneeds_inputis waiting on a reply: read it withfr run events, answer withfr session send. - Retries are safe for list writes.
fr list push,set,add-columnandsyncmatch by row key or column key, so running one twice leaves the same result.fr agent run,fr campaign runandfr session sendstart new work each time: do not retry them blindly; checkfr run listfirst.fr copy writeandfr copy draftwrite again each time they run and count against the day's copy cap.fr project addis safe to run twice;fr project createmakes another project each time. - Find ids with
fr agent list,fr campaign list,fr run list,fr list lsandfr project ls.
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
--seattakes an account id or the account's name (--seat manuel); its count is the one the Inbox shows on that account's To message tab. Without it, every account you can see: each person once, under one account, with the others connected to them in "Also on", so an account's share there can be lower than its own tab. The first line says which accounts and how many people each.--listkeeps the people on one list, as the Inbox's list picker does.--csvand--jsonare the whole queue, read 500 people a call;--limitor--offsetreads one page.- A row has the name, headline, company, website, location, LinkedIn URL, when you connected, the lists they are on, the line from the list that put them there, the account, and the other accounts connected to them.
- It reads the copy the Inbox keeps: it never opens a LinkedIn profile and never sends anything, and asking again does not read LinkedIn again. Up to 5,000 people per queue and 30 asks every 10 minutes per person. Each ask is recorded under your name.
- It is switched on per workspace.
inbox_export_lockedmeans it is not on for yours yet: ask us.
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
- Days are UTC days.
--fromand--toname them (both included);--days Ncounts back from--to(today by default). The default is the last 30 days, at most 366. - REQUESTS, ACCEPTED, MESSAGED (people a sequence wrote to first), MESSAGES (every message, follow-ups included) and REPLIES come from HeyReach's stats per account. INBOX SENT is the people written to from the Inbox each day, INBOX FIRST the first messages among them, INBOX REPLIES the replies to those first messages.
- Each count is on the day it happened: an accept counts on the day of the accept, not the day of its request. A ratio of two counts over a window is activity, not a reply rate for one batch of people.
- An account is matched across HeyReach and the Inbox by its name.
--seattakes the name, or part of it; with--jsonthe totals and days are then that account's. - Each window is read at most every 15 minutes; asking again inside that serves the same answer. 60 asks every 10 minutes per person, and 12 new windows a workspace (3 with
--by campaign).
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
-mis what to write, as you would put it in a Sequences step; the writer adds the person's row and your Business Logic.--linkedinwrites a message to a connection (--mode connectthe connection note,--mode inmailan InMail, which takes--subject);--emailwrites the body, under the--subjectyou give (merge fields like{{first_name}}and{{company}}are filled per person).- People: the list's rows waiting to go out (new and reviewed, not pushed yet), in the list's order. The first 10 by default;
--limitup to 24 a call (12 when a sequence has two steps to write, and so on),--offsetfor the next page,--rowsnames them by row key.--allwalks the whole list; if a call fails (a refusal, the day's cap, a dropped connection) it keeps and prints what was written and names the--offsetor--rowsto go on from. fr copy draftdrafts a whole sequence (every step, waits, subjects, fixed words with merge fields, and the steps to write per person) from your best past HeyReach or Instantly campaigns and your Business Logic, and says which campaigns it learned from.fr copy write <listId> --file sequence.jsonwrites that sequence's per-person steps for the list.--csvprintskey,copy_for(who the row is; never pushed) and a column per step (copy_s1, andcopy_s1_subjectfor an email or an InMail), sofr list push <listId> --file copy.csv --add-columnsputs the words on the list as new columns.--jsonprints the people with each step.- It exits 1 when nothing was written or a page failed, and names on stderr the
--rowsto run again when some people were not written, so a script or an agent can tell. - 1,000 written steps per workspace per day (a person on a one-step write is one; a step the writer was asked for counts even when its answer could not be used), 50 drafts. Each ask is recorded under your name. It is on where Sequences is:
not_enabledmeans it is not on for your workspace yet.
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>
addandremovetake any number of--list,--doc,--fileand--agent(ids fromfr list ls,fr context lsandfr agent list). Adding what is already there changes nothing.- An agent joins a project as it does in the app: it leaves the project it was in, and its schedule, steps and tools stay as they are. One with unsaved changes is not moved until they are saved or discarded in the app. One taken out stays under Removed on the project's page.
fr agent create --projectchecks the project first: one that is not there or is archived is refused. fr project createmakes a project as New project does in the app, not an Outbound campaign. Private projects are their creator's and members': nobody else sees them here either.
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
| Where | What |
|---|---|
~/.frrc | {"baseUrl","apiKey","workspace"}, written by fr login |
FR_API_KEY, FR_WORKSPACE, FR_BASE_URL | override the file |
--key, --ws, --url | override both, for one command |
Errors
| Message | Meaning |
|---|---|
invalid_api_key | the key is wrong or revoked; create a new one in Settings |
workspace_not_allowed, forbidden | you are not a member of that workspace |
no workspace set | pass --ws <id> or run fr login --ws <id> |
unauthorized | no key reached the server; check FR_API_KEY or ~/.frrc |
list_not_found | the list id is wrong or belongs to another workspace; fr list ls prints yours |
seat_not_found | no LinkedIn account by that id or name in your Inbox; the error lists the ones you can see |
inbox_export_locked | reading the Inbox from the CLI is not switched on for this workspace yet |
rate_limited | more than 30 Inbox reads in 10 minutes; wait and run it again |
invalid_date, invalid_window, window_too_long | fr outreach dates are YYYY-MM-DD, --from before --to, at most 366 days |
