Skip to content

Cash Runway CLI ​

@cashrunway/cli is a standalone command-line client for the Cash Runway agent API. Every subcommand maps to one GET /api/agent/* endpoint behind your cr_live_… API key — read-only, no surprises. Use it for ad-hoc inspection, shell pipelines, CI checks, or as a stateless caller from an agent harness that already knows which token belongs to which org.

Install ​

bash
npm install -g @cashrunway/cli

Requires Node.js ≥ 20.

Quickstart ​

bash
# 1. Save a token (verified against the server before it hits disk).
cashrunway auth login --token cr_live_xxxxxxxxxxxxxxxxxxxx

# 2. Check plan + quota.
cashrunway auth status

# 3. Bootstrap the session — composite "how's my business" surface.
cashrunway cash summary

# 4. Aggregate reads (FY YTD by default).
cashrunway revenue summary --top-n 10
cashrunway expenses summary --from 2026-01-01 --to 2026-03-31
cashrunway contacts summary

# 5. Drill into records.
cashrunway invoices list --status AUTHORISED --from 2026-01-01
cashrunway bills list --limit 25 --lines
cashrunway contacts list --type customer --sort revenue
cashrunway contacts show <contact-id>
cashrunway forecast --weeks 4

Get an API token from Settings → API keys in the Cash Runway dashboard. See API keys for scope picking, rotation, and the sensitive-data audit trail.

Subcommand reference ​

The CLI groups subcommands by domain. Every read-command accepts the shared auth flags (--token, --url, --profile).

CommandEndpointScope
cashrunway auth login --token <t> [--profile <name>] [--url <u>]—(login)
cashrunway auth logout [--profile <name>] [--all]——
cashrunway auth status [--all]GET /api/agent/statusany
cashrunway cash positionGET /api/agent/cash-positionREAD_FORECAST
cashrunway cash summaryGET /api/agent/daily-summaryREAD_SUMMARY
cashrunway forecast [--scenario <id>] [--weeks <n>]GET /api/agent/forecastREAD_FORECAST
cashrunway invoices list [...filters]GET /api/agent/invoicesREAD_INVOICES
cashrunway bills list [...filters]GET /api/agent/billsREAD_INVOICES
cashrunway contacts list [...filters]GET /api/agent/contactsREAD_CONTACTS
cashrunway contacts show <id>GET /api/agent/contacts/{id}READ_CONTACTS
cashrunway contacts summary [--top-n <n>]GET /api/agent/contacts/summaryREAD_SUMMARY
cashrunway revenue summary [...filters]GET /api/agent/revenue/summaryREAD_SUMMARY
cashrunway expenses summary [...filters]GET /api/agent/expenses/summaryREAD_SUMMARY
cashrunway purchase-orders list [...filters]GET /api/agent/purchase-ordersREAD_PURCHASE_ORDERS
cashrunway purchase-orders show <id>GET /api/agent/purchase-orders/{id}READ_PURCHASE_ORDERS
cashrunway quotes list [...filters]GET /api/agent/quotesREAD_QUOTES
cashrunway quotes show <id>GET /api/agent/quotes/{id}READ_QUOTES
cashrunway credit-notes list [...filters]GET /api/agent/credit-notesREAD_INVOICES
cashrunway credit-notes show <id>GET /api/agent/credit-notes/{id}READ_INVOICES
cashrunway usage [--json]GET /api/agent/statusany
cashrunway bank listGET /api/agent/bank-accountsREAD_BANK
cashrunway accounts get-account-balances [...]GET /api/agent/account-balancesREAD_ACCOUNTS
cashrunway cohorts summary / cohorts retentionGET /api/agent/cohorts/*READ_SUMMARY
cashrunway orgs listGET /api/agent/orgsany
cashrunway brief [--org <id>]GET /api/agent/orgs/{orgId}/daily-briefREAD_FORECAST

cashrunway usage is the one to know if you run batches. It reports the rolling 5-hour query-credit budget — credits remaining plus a reset estimate — which is the number to pace against. It is distinct from auth status, which shows plan and key scopes. See Pacing a batch sweep for the run-until-429 pattern.

READ_PURCHASE_ORDERS is a dedicated scope — it is not implied by READ_INVOICES, so a key that can read bills cannot read purchase orders unless the scope was granted explicitly.

READ_QUOTES is likewise a dedicated scope — it is not implied by READ_INVOICES, so a key that can read invoices cannot read quotes unless the scope was granted explicitly. Quotes are read-only and do not feed the forecast.

cashrunway bank list shows per-account reconciled / statement balances. cash position folds the same per-account balances in alongside the org-wide reconciled total, so use it when you want the position rather than the account list.

Flag reference ​

Shared auth flags ​

Every read-command (cash, forecast, invoices, bills, contacts, revenue, expenses) accepts:

FlagEnv varNotes
--profile <name>CASHRUNWAY_PROFILEPick a saved profile. Default profile is default.
--token <token>CASHRUNWAY_API_KEYStateless. Skips the saved profile entirely. Best for agents / CI.
--url <url>CASHRUNWAY_API_URLOverride the API base URL (defaults to https://api.cashrunway.ai).

Precedence (highest first): --token flag → $CASHRUNWAY_API_KEY → saved profile selected by --profile / $CASHRUNWAY_PROFILE / config's default. The --url flag and $CASHRUNWAY_API_URL follow the same rules and can override the profile's URL while keeping its token.

List flags (invoices list, bills list) ​

FlagNotes
--status <csv>Filter by Xero status: DRAFT,SUBMITTED,AUTHORISED,PAID,VOIDED,DELETED. Comma-separated for OR. Voided and deleted documents are excluded unless you name VOIDED or DELETED, so existing counts don't shift under you. As filters the two are aliases — naming either returns both — so discriminate on the row's Status / Voided columns rather than on which one you asked for.
--contact <id>Filter by contact id (use cashrunway contacts list to discover).
--from <YYYY-MM-DD>Lower bound on the issue date (inclusive), falling back to the due date on legacy rows that have no issue date.
--to <YYYY-MM-DD>Upper bound on the issue date (inclusive), same legacy fallback.
--cursor <cursor>Opaque pagination cursor returned by the previous page.
--limit <n>Rows per page (max 200).
--unsentInvoices only. Return only invoices Xero records as never sent — raised but never delivered, i.e. money the customer has never been asked for. Combine with --status AUTHORISED. Matching is exact, so invoices whose send status is still unknown are excluded rather than reported as unsent.
--creditsAdd a Credited column (creditedAmount) and, under --json, the full creditNotes[] array. "0" means no credit note applies. — means no credit-note data is recorded for this org, which can be permanent — CashRunway only syncs credit notes that still carry a balance, so it can never prove an org has none. Never read it as "still loading". — also appears when a credit note applied to that document is sensitive and your key lacks the sensitive-data scope: it is left out of creditNotes[] and the total is withheld (this hides the itemisation, not necessarily the amount). On bills list these are supplier credit notes applied to each bill; the API also lists supplier credits directly via GET /api/agent/credit-notes?type=supplier.
--linesInclude lines[] (line-item expansion).
--auto-paginateServer-side auto-pagination: one response, up to 5,000 rows. Sets truncated: true if the cap is hit. Cursor is ignored.
--totalsOpt-in byStatus + grandTotal aggregation across the full filtered set. Sets totalsTruncated: true if the matched set exceeds 100,000 rows. It aggregates amount, which is state-dependent (see Outstanding below), so the sum mixes outstanding balances on open rows with gross totals on settled ones. Do not report it as invoiced revenue or AP spend — use revenue summary / expenses summary for that. The same applies to any jq '.invoices[].amount' pipeline.
--jsonEmit canonical JSON instead of the table renderer.

The Sent column — invoices list only ​

bills list has no Sent column.

invoices list shows whether each invoice was ever sent to the customer, sourced from Xero's SentToContact. It has three states, and the third one matters:

ShownMeaning
YesSent, or marked as sent by hand in Xero. Not proof an email was delivered.
NoNever sent. The actionable one — you raised it and the customer was never asked.
—Unknown. Not yet checked against Xero — records synced before this feature. The one-off backfill covers open (unpaid) invoices only, so paid history stays unknown until a sync happens to touch it.

— is not a quiet "no". Treating it as one would tell you that you never billed customers you did bill. --unsent returns only the No rows.

If every row shows —, this org hasn't been backfilled yet — ask whoever administers your CashRunway instance to run the one-off invoice send-status backfill. bills list --json also carries sent: null on every row: bills have no send status, and it is never false.

Outstanding, Credited and Voided — and how to read a blank cell ​

Three columns arrived with the AR chase pack. They share one reading rule, and it is worth learning once because every one of them can mislead you if you read a blank as a zero:

CellMeans
0Known zero. Nothing is owed / nothing was credited. Act on it.
(empty)Known absence. We asked Xero and there is genuinely nothing here — e.g. a live document has no void date. Also act on it.
—Unknown. We have not read this from Xero. Not zero, not none — a per-column footnote under the table says what it means for that column.
  • Outstanding (amountDue) is the chase figure — read it rather than Amount, even though the two usually carry the same number on an open row. Two reasons, and neither is "Amount is the face value": when Xero returns no balance, Amount records 0 — indistinguishable from settled — while Outstanding records — for unknown; and Amount changes meaning as a document settles, holding the outstanding balance while open but rewritten toward the face value once it does, so it measures different things on different rows. Outstanding does not move like that. A — here means the balance has not been re-synced: it is not settled and not zero.
  • Credited appears with --credits. See the flag table above for what its — means, including why that state can be permanent.
  • Voided appears only when a voided document is on the page. Voided documents are tombstoned rather than deleted, so "this invoice was voided" is now a fact you can state, instead of "I can't see an invoice for it". A live document's blank cell is a known absence — it means this document is live, not that a value is missing. The date is when the sync OBSERVED the void, not when it was performed in Xero. Do not report it as the moment someone voided the document.

Recovery of historic voids reaches back 90 days, or to the sync cursor if that is earlier — so an older reconciliation may still have gaps.

Do not infer a credit by arithmetic. On an open invoice Amount and Outstanding track the same figure, so subtracting them reveals nothing — a part-paid open invoice makes amount − amountDue − amountPaid non-zero with no credit anywhere in sight. --credits / creditedAmount is the only reliable signal. On a paid row, amountDue: "0" with amountPaid: "0" is a hint worth confirming, not a rule.

Note there is no Paid column in the table — amountPaid is returned under --json only. Any reasoning about payments applied has to go through --json, not the rendered rows.

totalCount is always returned (no flag needed) — pre-redaction count of rows matching the filter. Cheapest way to answer "how many?" without paying for --auto-paginate or --totals. May exceed page length when sensitive rows are dropped — see redactedItemCount for the delta.

Purchase-order flags (purchase-orders list) ​

FlagNotes
--status <csv>Filter by raw Xero PO status: DRAFT,SUBMITTED,AUTHORISED,BILLED,DELETED. Direct string match, comma-separated for OR. Unlike invoices/bills, purchase orders carry no cash-flow status collapse — the raw status is the axis.
--contact <id>Filter by supplier contact id.
--item-code <code>Filter to POs containing this Xero item code. See the note below.
--from <YYYY-MM-DD>Lower bound on issueDate (inclusive).
--to <YYYY-MM-DD>Upper bound on issueDate (inclusive).
--cursor, --limit, --auto-paginate, --totals, --jsonAs for invoices list above; --totals groups by raw Xero status.

Every row carries itemCodes — the distinct Xero item codes across that PO's line items, stored verbatim, [] when the PO has no coded lines. The default table renders them in a compact Items column: the first two codes, then a +N suffix counting the rest. --json is unaffected and carries the full array.

--item-code matching is fully case-insensitive in both directions — --item-code zc-relay finds a PO stored as ZC-RELAY, and a mixed-case stored code such as TCI-DALI Supply Fit Leads is found by any casing of the query. It takes a single value: unlike --status it is not comma-split, so a comma-separated list matches nothing. The filter ANDs with the other filters and narrows totalCount and --totals alongside the rows.

bash
# Which POs commit us to item ZC-RELAY, and what's the total?
cashrunway purchase-orders list --item-code zc-relay --totals

# Still open (not yet billed) for that item.
cashrunway purchase-orders list --item-code ZC-RELAY --status AUTHORISED

purchase-orders show <id> takes a Xero GUID or a PO-#### number and renders the line-item table with an Item column (the per-line itemCode) ahead of Description.

The In fcst column reflects suppressedReason: no means the PO has been matched to a supplier bill and is excluded from the cash-flow forecast to avoid double-counting the outflow.

Quote flags (quotes list) ​

FlagNotes
--status <csv>Filter by raw Xero quote status: DRAFT,SENT,DECLINED,ACCEPTED,INVOICED,DELETED, comma-separated for OR, case-insensitive. Omitted = every status except DELETED; deleted quotes are returned only when you ask for them with --status DELETED.
--contact <id>Filter by customer contact id (Xero GUID).
--created-by <text>Match part of the name of the person who raised the quote in Xero, ignoring case. Narrows the rows, the total count and --totals together; quotes whose history has not been fetched yet never match. Blank is ignored.
--from <YYYY-MM-DD>Lower bound on issue date (inclusive).
--to <YYYY-MM-DD>Upper bound on issue date (inclusive).
--expiry-from <YYYY-MM-DD>Lower bound on expiry date (inclusive).
--expiry-to <YYYY-MM-DD>Upper bound on expiry date (inclusive).
--cursor <cursor>Pagination cursor. It is opaque: pass back the exact Next page cursor the CLI printed (nextCursor in --json) from the previous page. A malformed or made-up cursor is not rejected and gives unpredictable results (it may restart from the first page or return nothing). Ignored when --auto-paginate is set.
--limit, --auto-paginate, --totals, --jsonAs for invoices list above (--limit 1-200; --auto-paginate returns every match in one response, up to 5,000, and ignores --cursor); --totals groups by raw Xero status, statuses with no rows omitted.

The CLI does not validate dates; it passes --from, --to, --expiry-from and --expiry-to straight to the server. Use YYYY-MM-DD. A date the server cannot parse is ignored, not rejected, so the list comes back unfiltered. (The MCP tools do reject a malformed date before making the request.)

The default table columns are Quote #, Customer, Title, Created by, Status, Issued, Expires, Total, Cur (Created by needs CLI 0.3.1). Total is tax-inclusive, in the quote's own currency. A quote with no number shows its Xero GUID in the Quote # column, which quotes show accepts. Titles are collapsed to one line and cut at 60 characters in the table only; --json is never altered. The show header is <number> (<GUID>).

--totals grandTotal sums every returned status together. With no --status that includes DRAFT, DECLINED and INVOICED quotes, so it is not "what we have out to customers". For the open quoted value, filter first: --status DRAFT,SENT.

Sensitive customers. Quotes whose customer is marked sensitive are excluded from the rows, from totalCount and from --totals unless the key also carries READ_SENSITIVE. redactedItemCount on a quotes list is a 0/1 flag, not a count: 1 means this organisation has quotes withheld from this key (regardless of the filters you passed), and the CLI prints one line saying so; it is always 0 with READ_SENSITIVE. quotes show on a withheld quote is a 404, exactly like an unknown id.

bash
# Open quoted value (Draft + Sent), by status.
cashrunway quotes list --status DRAFT,SENT --totals

# Open quotes expiring inside a date window, with a count and value by status.
cashrunway quotes list --status DRAFT,SENT --expiry-from 2026-01-01 --expiry-to 2026-12-31 --totals

# Deleted quotes must be asked for.
cashrunway quotes list --status DELETED --limit 20

# Everything one customer was quoted, as JSON.
cashrunway quotes list --contact <contact-guid> --auto-paginate --json

quotes show <id> takes a Xero GUID (the externalId) or a quote number (e.g. QU-0042) — not the internal id — and prints the detail plus a line-item table (Item, Description, Qty, Unit, Disc %, Tax, Amount). The detail also has three people lines, Created by, Last edited by and Last sent by, each with the person and the date, or a dash when there is none. Quote numbers are editable and not unique in Xero: a number lookup prefers a non-deleted quote, then the most recently updated; a quote that exists only as DELETED is still returned with status: "DELETED". Quote lines carry no account code. In --json, lineItems is null when line items have not been fetched and [] when they were fetched and the quote has none.

People. Every quote carries createdBy / createdAt, lastEditedBy / lastEditedAt and lastSentBy / lastSentAt (all in --json). Xero has no such fields on a quote, so the names come from its quote history: they are null until that history has been fetched (newest quotes first, a batch per sync), or when Xero has no such event (a quote that was never edited has no lastEditedBy). createdBy is who raised the quote in Xero, which is not always the deal owner; createdAt is the Xero creation time.

Quote support needs @cashrunway/cli 0.3.0 or newer; the people fields, the Created by column and --created-by need 0.3.1. The CLI validates responses against its own schema and silently drops fields it does not know, so an older CLI has no quotes command at all.

Contacts flags (contacts list) ​

FlagNotes
--type <kind>One of customer, supplier, both.
--sort <key>One of revenue, spend, recent.
--include-archivedBring archived Xero contacts back into the list (and into --totals). Excluded by default — see below.
--cursor, --limit, --auto-paginate, --totals, --jsonAs above. --totals returns counts only (contacts have no $ axis).

Archived Xero contacts are excluded by default from contacts list and contacts summary — archiving a contact says the relationship is finished, so it does not belong on a chase list. Pass --include-archived (or ?includeArchived=true on the HTTP API) to bring them back. The exclusion applies to --totals as well, so counts and rows agree.

GET /api/agent/contacts also returns each contact's email, accountNumber, contactStatus and contactDetailsSyncedAt, and the drill adds contactPersons, paymentTerms and contactGroups — all under the existing READ_CONTACTS scope. null on any of them means unknown, never "none": a null email alongside a populated contactDetailsSyncedAt means Xero genuinely holds no AR contact, while a null stamp means those fields have never been read from Xero for that contact. See the MCP guide for the full semantics.

contacts list shows Email and Account columns, and contacts show adds Reachability and Account classification blocks, from CLI 0.1.10.

Sweep with one call, not N. The address is on the list row, so a chase across N customers costs a single contacts list — not N contacts show drills. Looping the drill to collect addresses burns N query credits for information you already had.

accountNumber is on the list row too, but it is one signal of three, not a verdict: it is just a Xero customer code, and prepay customers have them. paymentTerms and contactGroups are drill-only, and together the three answer "on account, or prepay?". Drill when the answer decides whether goods are released — the cost of one extra call is nothing against sending a prepay demand to someone you shipped to three weeks ago.

The distinction above is visible in the table, and a footnote states both whenever either can appear:

  • a blank Email cell — Xero was asked and holds nothing on file. You can write "no address on file in Xero" plainly, with no hedge.
  • — — this contact's details have never been read, so we cannot say whether an address exists. Say "not yet synced" — never "no email on file".

Under --json both emit email: null. The discriminator is contactDetailsSyncedAt: a timestamp means the blank case, null means the — case. The CLI invents no extra field, so a JSON consumer has exactly the information a human reading the table has — but only if it reads the stamp rather than the address.

The CLI validates responses against its own schema and silently drops fields it does not know, so a client older than 0.1.10 shows none of this even against an up-to-date server. If a field documented here is missing, check your CLI version first.

Credit-note flags (credit-notes list) ​

FlagNotes
--invoice-number <n>Return only credit notes allocated against that invoice number (e.g. LR-4359).
--invoice-id <id>Same, by the invoice's Xero external id.
--status <csv>, --contact <id>, --from, --to, --cursor, --limit, --auto-paginate, --totals, --jsonAs per the list flags above.

--invoice-number and --invoice-id name the same invoice by different keys, and Xero populates either, both, or neither per allocation — so they compose as OR, not AND. Passing both widens the search rather than narrowing it; ANDing them would return nothing on exactly the half-populated rows the lookup exists to find.

This is the one-call answer to "what credited this invoice?" — the reconciliation question that otherwise means reading every credit note in the period and matching by eye.

Coverage caveat — read before you report a nil result. CashRunway lists AUTHORISED credits that still carry a remaining balance from Xero. A stored credit that is later fully applied, voided or deleted is re-read once and kept with its final status (PAID, VOIDED, DELETED), but a credit that was already fully consumed or voided before the org's first sync was never stored at all. So an empty reverse-lookup means no credit is recorded here, not no credit exists. Say the first. Likewise --status VOIDED only returns credits that were voided after CashRunway first saw them.

Summary flags (revenue summary, expenses summary, contacts summary) ​

FlagNotes
--from <YYYY-MM-DD>Lower bound on the aggregation window (revenue / expenses only).
--to <YYYY-MM-DD>Upper bound (inclusive; expanded to end-of-day).
--top-n <n>Cap on topContacts length (1–100, default 10).
--jsonCanonical JSON output.

When --from / --to are omitted, revenue summary and expenses summary default to the current financial-year YTD per the org's Xero financialYearEndDay/Month setting. Calendar-month buckets use the org's IANA timezone (default Australia/Sydney).

Forecast flags ​

FlagNotes
--scenario <id>Scenario id; defaults to the org's BASE scenario.
--weeks <n>Limit the number of weeks shown (positive integer).
--jsonCanonical JSON.

Output formats ​

The CLI renders compact tables by default and falls back to canonical JSON with --json. Tables are designed for human eyes; JSON is sorted keys + ISO dates so it composes safely into shell pipelines.

Pretty (default) ​

text
$ cashrunway revenue summary --top-n 3

Revenue summary as of 2026-05-24 (FY2026 YTD)
  Currency: AUD
  Grand total (PAID, ex-GST): $1,099,419.91 (847 invoices)
  By status:
    PAID         $1,099,419.91  847 invoices
    AUTHORISED   $   84,210.00   42 invoices

Top customers (by PAID ex-GST):
  Globex Industries       $312,000.00   18 invoices
  Acme Holdings           $214,500.00   24 invoices
  Initech Pty Ltd         $187,300.00   33 invoices

JSON ​

bash
$ cashrunway revenue summary --top-n 3 --json | jq '.byStatus.PAID'
{
  "count": 847,
  "amount": "1099419.91"
}

Compose into pipelines:

bash
cashrunway invoices list --status PAID --json | jq '.invoices[].amountDue'
cashrunway forecast --json | jq '.weeks[] | {weekStart, closing, net}'

The first example reads amountDue deliberately. amount is state-dependent — outstanding balance on open rows, gross total on settled ones — so summing it across a page produces a figure that is neither, and reporting it as invoiced revenue is the mistake this page's Outstanding section exists to prevent. If you want revenue or spend, use revenue summary / expenses summary, which read the payment leg.

Profiles and multi-company use ​

Each cr_live_* token is bound to one org server-side, so a CLI invocation always queries the org of whichever token it's using. Two patterns:

bash
# Named profiles — switch between known orgs by name.
cashrunway auth login --profile lumen --token cr_live_xxx
cashrunway auth login --profile acme  --token cr_live_yyy

cashrunway --profile lumen cash position
cashrunway --profile acme  revenue summary

cashrunway auth status --all      # list saved profiles
cashrunway auth logout --profile lumen
cashrunway auth logout --all

# Stateless --token — best for agents, CI, or self-documenting commands.
cashrunway --token cr_live_xxx cash position
CASHRUNWAY_API_KEY=cr_live_xxx cashrunway invoices list

Credentials live in ~/.config/cashrunway/config.json ($XDG_CONFIG_HOME honoured) with 0600 perms. The first profile you save becomes the default; promote a different one by passing --profile X to auth login, or delete the current default to auto-promote another.

Advisory partner keys (multi-client) ​

Advisors (accountants, bookkeepers, business coaches, fractional CFOs) install the same CLI — they just authenticate with a partner key instead of a single-org user key. A partner key starts with crun_… and reaches every client org linked to your practice, where a cr_live_… user key is bound to one org. Partner keys are minted in the Partner Portal → API keys, not under an individual business's Settings → API keys.

Discover the client set, then target one client per command:

bash
# 1. Who am I, and which clients can I reach?
cashrunway orgs list --token crun_xxx
#   → "Connected as partner → 3 clients."
#   → a table of { Org id, Name, Slug }

# 2. Run a per-client command against a chosen org.
cashrunway brief --org <org-id> --token crun_xxx

orgs list reports keyKind (PARTNER vs USER): a user key simply lists the single org it belongs to. brief --org <id> fetches that client's latest daily brief — the org id is sent in the request path, which the agent API honours as the per-request org for partner keys. Usage is metered to each client's account.

Errors ​

The CLI prints concise, kind-tagged messages and exits non-zero:

text
error: invalid_scope — key lacks READ_CONTACTS

Error kinds: auth_required, invalid_scope, quota_exhausted, not_found, bad_request, server_error, network_error, validation_error.

quota_exhausted prints its own line and exits 2:

text
You're out of query credits — resets in ~42 min.

(or You're out of query credits. Try again shortly. when the server sends no reset estimate).

The budget is a rolling 5-hour window, not a daily quota — so the reset is minutes away, not tomorrow. Do not tell an operator to come back the next day. cashrunway usage reports the remaining credits and the reset estimate without waiting to be refused.

Programmatic use ​

The package also exposes the typed client for direct embedding:

ts
import { CashrunwayClient } from "@cashrunway/cli";

const client = new CashrunwayClient({
  apiUrl: "https://api.cashrunway.ai",
  apiToken: process.env.CASHRUNWAY_API_KEY!,
});

const summary = await client.getRevenueSummary({ topN: 5 });
for (const c of summary.topContacts) {
  console.log(`${c.name}: ${c.amount}`);
}
  • API keys — provisioning, rotation, audit.
  • Agent API — endpoint surface and daily-summary tour.
  • API Reference — full schema catalogue.
  • MCP server — same surface for Claude Desktop / Cursor / Continue.

Released under a proprietary license. · cashrunway.ai