Signup comes with $1 in credit. No subscription needed.Claim your $1
Docs: CLI reference
CLI reference

CLI reference

Every routergrowth command and flag: setup and keys, discover, inspect, run and batch, runs, watches, history, events, tables, the spend guard and the wallet.

The routergrowth CLI covers the API with the same names. It prints plain text with no colors and never prompts, so agents can drive it directly: listings as tables, runs and batches as JSON. -j (--json) prints the API's JSON in place of a table. It needs Node.js 18 or later.

npm install -g routergrowth

EACCES? Install per-user: npm install --prefix ~/.local routergrowth, then symlink ~/.local/node_modules/.bin/routergrowth into your PATH.

The config lives in ~/.routergrowth/config.json, readable by your user only. ROUTERGROWTH_API_KEY and ROUTERGROWTH_API_URL in the environment override the stored key and API URL. An API error prints API error <status>: <code>: <message> on stderr and exits with status 1. routergrowth help lists every command and routergrowth --version prints the version.

Commands

setup

routergrowth setup --client "my-agent"

Writes the config file with the API URL (--api-url, default https://api.routergrowth.com) and a name for the calling agent (--client, kept in the config), and checks that the API answers. Next, add a key: sign up on the dashboard, mint a key under API keys and store it with keys add. There is no signup from the CLI: routergrowth signup works only against a local development server, and on the hosted API it is refused.

keys

routergrowth keys add -k rg_live_... -l main   # store a key under a label (main when -l is omitted)
routergrowth keys list                          # labels, masked keys, which one is active
routergrowth keys activate -l main              # switch the active key
routergrowth keys remove -l old                 # delete a stored key (local only)
routergrowth keys create                        # prints where to mint one: keys are minted in the dashboard
routergrowth whoami                             # the workspace and key behind the active credential

The first key you add becomes the active one. Keys live in the local config only; never commit them.

balance

routergrowth balance
routergrowth transactions -n 20

balance prints the wallet's balance, reserved and available amounts, from GET /v1/wallet. transactions lists the ledger entries, newest first (20 unless -n says more, up to 200).

discover

routergrowth discover -q "find a verified email for a person"
routergrowth discover -q "tiktok video comments" --kind endpoint --provider tikhub

Catalog search by job description; free, no key needed. One ranked list of capabilities and raw provider endpoints, each with its kind, status, relevance score, price or cost model and health verdict, followed by the server's hints on what to do next. --kind and --provider narrow it; -n sets how many (default 10, up to 50).

endpoints

routergrowth endpoints -p dataforseo -q backlinks

Everything one provider serves raw, with a substring filter (-q) and -n (default 50). Free, no key needed.

inspect

routergrowth inspect -c contact.find
routergrowth inspect -p dataforseo -e /v3/serp/google/organic/live/advanced

For a capability: its description, status, billing unit and whether a miss is billed, every input field with its type, allowed values and default, and one row per provider with your workspace's price, status, whether it can run now and its health, then the waterfall: the providers in the order they try and max_cost_for_all, the --max-cost that lets every one of them try (CLI 0.7.2 or later). -j prints the whole contract, including output_fields and waterfall.max_cost_for_all. For a raw endpoint (-p and -e): the provider's own input spec, cost model, hold, health, which capability wraps it, and a ready-to-paste run line. Run it before the first run of a capability or endpoint.

run

routergrowth run -c contact.find \
  -i '{"first_name":"Alex","last_name":"Rivera","company_domain":"example.com"}' \
  --max-cost 0.10
# prints the submitted run at once
routergrowth runs get -r <run_id> --wait 60 -o result.json
Flag Notes
-c capability slug
-i, --input-file input JSON, inline or from a file (must match the inspected schema)
--max-cost USD cap applied to every routing attempt; on a lookup (find, verify, phone, enrich) a cap under waterfall.max_cost_for_all is raised to it
--prefer try this provider first and keep the rest of the waterfall behind it
--provider pin a provider instead of auto: no waterfall behind it (on a lookup, the pinned provider only goes first)
--strategy cheapest, fastest, highest_success_rate, best_value (default)
--fresh run even when this exact input missed in the last 12 hours or a table row already holds the result (both otherwise answered free)
--idempotency-key reuse a key to retry without paying twice; otherwise the CLI sends a new one with every run
-w, --wait [seconds] opt into polling; bare --wait waits up to 120 seconds
-o write the run, result included, to a file instead of printing it
-j print the JSON even with -o

run submits immediately by default and prints the run as JSON at once, with its run ID and status, which keeps provider latency out of the agent's request path. Add --wait, or poll with runs get -r <run_id> --wait 60. Write large results to a file with -o; a summary line on stderr still gives the status, the provider and what was charged.

A raw endpoint run addresses the provider directly:

routergrowth run -p dataforseo -e /v3/serp/google/organic/live/advanced \
  -i '{"keyword":"best crm","location_code":2840,"language_code":"en"}' \
  --max-cost 0.05 -o serp.json
Flag Notes
-p, -e provider slug and the provider's endpoint path, from discover or endpoints
-i the provider's request body (on GET endpoints: its query parameters)
--query extra query parameters as JSON
--path values for {placeholders} in the endpoint path, as JSON
--max-cost bounds the hold and the charge; set it on every raw call

There is no quote: the run settles on the provider's measured cost after the call, never above --max-cost.

When a finished run carries next_steps (verify a risky email, find the emails of a people.search page, the next page), the CLI prints each one on stderr as next, <goal>: <command>, its input already filled from the result; a batch step ends in --max-total-cost USD for you to fill in. Routing a step names stays on the command as flags: a "rerun with max_cost X" step prints with --max-cost X (CLI 0.7.1 or later).

batch

routergrowth batch -c contact.find --input-file people.json --max-total-cost 2 --wait 120 -o found.json

One run per input: 1 to 200 objects, as a JSON array (-i or --input-file) or a file of JSON lines. It is the CLI side of the MCP batch_run tool, built on POST /v1/run; batch-run is an alias.

Flag Notes
--max-total-cost required: nothing is submitted when inputs x --max-cost is above it
--max-cost per input; defaults to waterfall.max_cost_for_all from inspect, so every provider gets its try
--prefer, --provider, --strategy, --fresh as on run, for every input
--idempotency-key the batch key; each input runs under <key>:<index>. One is generated and printed when omitted
--record {table, keys: [one row key per input, same order], set, save, on_miss} links each input to its row
--into lands each input's list result as rows, as on run
-w, --wait [seconds] collect the results; without it the runs are submitted and the receipt lists their IDs
-o, -j write the answer to a file; print the JSON even with -o

The answer sums the batch: counts by status, billing.charged for the whole batch, the run IDs, every run, and the follow-ups shared across inputs merged into one batch command. To collect runs still going, or to resume after an error, rerun the same command with the printed --idempotency-key: runs already submitted replay and nothing is charged twice. A suppressed or repeat recipient blocks its own input, not the batch. Sends from one connected LinkedIn or Instagram account are paced, so a batch of them mostly ends blocked with paced: send those one at a time.

runs

routergrowth runs                              # recent runs, newest first (20 unless -n says more)
routergrowth runs --status no_match -c contact.find -n 50
routergrowth runs get -r run_... --wait 60 -o result.json
routergrowth runs stop -r run_...              # cancel a run that is still queued

Same records as GET /v1/runs. The list shows each run's status, capability or endpoint, provider, charge and time; -j gives every field. --status, -c, -p and -e filter by status, capability, provider and raw endpoint. runs get returns one run with its result, long-polling up to 120 seconds with --wait. runs stop cancels a queued run; a run already at the provider cannot be stopped and settles or releases on its own.

watch

routergrowth watch -c company.jobs -i '{"company":"Acme","query":"account executive","limit":20}' --name "acme AE postings" --max-cost 0.10
routergrowth watch refresh wch_... --wait 60    # new and changed records, plus the keys that disappeared
routergrowth watches                            # every watch, its record count and last change
routergrowth watches get wch_... --wait 60
routergrowth watches delete wch_...

A watch saves a query and runs it once, keying every record of the result. Each refresh reruns it, billed like any run, and answers with what changed only. Raw endpoints work too (-p, -e, --query, --path), and --prefer and --into work as on run. Same as POST /v1/watch.

tables

Workspace tables are off until the workspace turns them on; see Tables. These commands are free.

routergrowth features --enable tables           # or --disable tables; bare features shows their state
routergrowth tables create skincare-creators-fr --key handle --title "Skincare creators, France" --columns handle,followers,email
routergrowth tables edit skincare-creators-fr --description "Approved creators for the March campaign" --rename creators-fr
routergrowth tables                             # every table with row counts by status, and the quota
routergrowth tables creators-fr                 # one table: counts by status, rows due, columns, latest rows
routergrowth tables drop old-list --confirm     # deletes a table and its rows for good
routergrowth rows creators-fr --status new --where '{"followers":{"gte":10000}}' -n 50
routergrowth rows upsert creators-fr -f rows.json --status new
routergrowth rows update creators-fr --keys instagram:janedoe --set '{"status":"approved"}'
routergrowth rows delete creators-fr --keys instagram:janedoe
routergrowth rows import creators-fr leads.csv --status new
routergrowth rows export creators-fr -o creators.csv
routergrowth suppress add jane@example.com,example.org --reason unsubscribe
routergrowth suppress list --reason bounce
routergrowth suppress remove jane@example.com
routergrowth outbound-guard --days 30

tables create makes a table up front with its identity key (auto for people, domain, email, linkedin, phone, handle or field:<name>); the first row write also creates one. tables edit changes the title, description, columns or name. --columns takes names separated by commas or a JSON list of {name, type, description}. rows also takes --due, --fields, --order and --cursor; rows update with --if-status S changes only rows still in that status, which makes it a claim. rows import takes a CSV of up to 1 MB. A suppressed subject is never sent to again, on any channel (suppressions): remove one only when the person asked to hear from you again. outbound-guard shows or sets the repeat first-touch window (default 30 days, 0 turns it off). On run and batch, --record links a run to a row, --into lands a list result as rows, and --allow-repeat sends a new conversation inside the repeat window, with the user's say-so.

history

routergrowth history alex.rivera@example.com          # every run that mentions this person: touches, results to reuse
routergrowth history example.com                      # a company: enrichments, people found there, anyone at it contacted
routergrowth history https://www.linkedin.com/in/alex-rivera
routergrowth history "Alex Rivera" --kind text
routergrowth history --file leads.txt                 # up to 200 identifiers, one per line: seen / contacted / reusable

Check it before enriching or messaging anyone. It is GET /v1/history over the run log, so it is exactly as complete as what went through RouterGrowth. --kind is email, domain, linkedin, url, handle, phone or text; -n caps the runs listed (default 50). Free.

events

routergrowth events                                              # the oldest events still kept (30 days), 50 at a time
routergrowth events --types email.received,email.bounced         # only these event types
routergrowth events --since 2026-10-03T09:00:00Z                 # start from a time when there is no cursor yet
routergrowth events --cursor-file out/events-cursor.txt -o out/events.json   # only what is new since the last run

Replies, bounces, spam complaints, LinkedIn, Instagram and WhatsApp messages, new LinkedIn connections and dropped sessions across every inbox and connected account, in one call. --cursor-file reads the last event id from the file and writes the new one back, so a daily run returns only what came in since the previous one; --after EVT_ID does the same by hand. -n sets how many a call (default 50, up to 200). Same stream as GET /v1/events. Free. Needs CLI 0.6.0 or later.

guard

routergrowth guard                 # daily cap, per-run ceiling, today's spend
routergrowth guard --daily 25      # block runs once $25 is spent in a UTC day
routergrowth guard --per-run 1     # block any single run holding more than $1 (off by default)
routergrowth guard --per-run off
routergrowth guard --off

--off switches the daily cap off and keeps its amount, so switching it back on from the dashboard restores the same cap (CLI 0.7.2 or later; older versions reset the amount to $25).

Ground rules for agents

  • inspect before the first run of a capability or endpoint: its input schema is the source of truth, never guess inputs.
  • Report costs when they matter to the user: they asked, they set a budget, or a multi-run job ends (the sum of billing.charged).
  • Cap every call with --max-cost: on a capability at waterfall.max_cost_for_all (inspect -c <capability> -j); on raw endpoints it is the only price control you have before the run.
  • Prefer a capability over the raw endpoint it wraps (discover says which): normalized output, a quote, failover.
  • Stop and ask before a batch that would exceed about $1, and give every batch a --max-total-cost.

Reading this as an agent? This page as markdown: /docs/cli/overview.md · every page: /docs/llms.txt