orla
Your Orla books from a terminal, and a stdio bridge for
MCP clients that cannot speak HTTP.
npx orla-cli login
npx orla-cli tx list --from 2026-08-01
npx orla-cli export --from 2026-01-01 > books.csv
No dependencies, no build step, no native module to compile. Node 22 or newer.
The package is orla-cli and the command it installs is orla. They differ
because npm refused the bare name as too close to packages that already exist
(ora, ol, rlp, url), and renaming the command would have been the worse
half of that trade: npm i -g orla-cli still gives you orla tx list.
What it is
A thin client over the same MCP endpoint Claude connects to. Every command is a
tool call, so the CLI cannot do anything a personal connection cannot do, and
nothing here has its own idea of authorization. orla login walks the ordinary
OAuth code flow with S256 PKCE: the browser lands on Orla's own consent page,
where you tick the spaces this machine may reach.
It does not move money. A personal connection reads and records. Payments,
transfers and card details belong to an agent connected for that purpose, with
its own limits, set in the app under Agents. The tools that move money are not
in the list this connection is given, and are refused at the endpoint if asked
for by name.
That is not a matter of trust in this client: orla login asks for the personal
address, where those tools do not exist, so the promise survives whatever gets
ticked on the consent page. orla login --agent asks for the other address, the
one where a bot with its own budget can be minted. A session remembers which
door issued its tokens and keeps using it, so an existing connection is not
re-pointed by an update.
Commands
| Command |
What it does |
orla login [--api URL] [--agent] |
Connect this machine. Opens a browser. --agent asks for the door where a bot can be minted. |
orla logout |
Revoke the connection on Orla, then forget the stored session. |
orla whoami |
Which connection this is and which spaces it reaches. |
orla spaces |
The spaces in reach. |
orla use <space-id> |
Remember one as the default. |
orla accounts |
Accounts in the space. |
orla tx list |
Transactions. --from --to --search --account --limit (50 by default, at most 200). |
orla tx add |
Record one. --account --kind --amount --date [--payee --note]. |
orla export |
Every matching row as CSV on stdout, read 200 at a time. --limit stops early. |
orla feedback <bug\|idea\|problem> "text" |
Tell the Orla team about a bug, a problem or an idea. Shows the text and asks first; --yes sends without asking (scripts), --space <id> names the space it is about. Nothing in the books changes. |
orla tools |
Which tools this connection was given. |
orla mcp [--api URL] |
stdio bridge (below). |
orla version |
Which version this is. |
--space <id> on anything space-scoped, --json for machine-readable output.
For a program, or an agent
With --json, every command answers with one envelope on stdout:
{ "ok": true, "data": ... }
{ "ok": false, "error": { "code": "cli.not_connected", "message": "not connected: run `orla login` first" } }
A list that left rows out (accounts, tx list, export) adds
"truncated": { "shown": 200, "total": 201, "reason": "server_cap" } beside
data; reason is server_cap (Orla's ceiling), limit (your --limit) or
incomplete (Orla stopped answering pages before its total). Without --json
the same is one line on stderr.
Read ok, then branch on error.code. Codes that begin cli. are the CLI's
own; any other code is Orla's, passed through unchanged, the same name the
REST API and the MCP endpoint use. The exit status says which kind of failure
it was, so a shell script can branch without parsing anything:
| Exit |
Meaning |
| 0 |
done |
| 1 |
a failure none of the rows below describes |
| 2 |
the command line: unknown command, missing flag |
| 3 |
no session here, or one Orla no longer honours |
| 4 |
a space-scoped command with no space to work in, or several |
| 5 |
Orla could not be reached, did not answer in time, or is not taking calls right now |
| 6 |
Orla was reached and said no, or answered in a shape the CLI cannot read |
| 7 |
signing in was abandoned or came back wrong |
The skill that teaches an agent all of this, including where paying stops, is
skills/orla/SKILL.md. It ships in the package and at
orla.finance/skill.md, and it is one of the
five skills the Claude Code plugin below installs. Into any other agent:
npx skills add cheetah-trade/orla-cli --skill orla # any agent the skills CLI knows
curl -fsSL https://orla.finance/skill.md # or just read it
For Claude Desktop there is a bundle, orla-<version>.mcpb, attached to
each release: double-click it to install. It runs the stdio bridge below, and
the bridge signs in by itself.
Environment variables the CLI reads:
| Variable |
Effect |
ORLA_NO_BROWSER=1 |
never launch a browser; the sign-in URL is printed on stderr instead |
ORLA_DEBUG=1 |
one stderr line per request to Orla: method, host and path, status, time; never a header, body or query |
ORLA_REQUEST_TIMEOUT_MS |
how long one request to Orla may take, in milliseconds (default 60000; a file upload or statement import gets twice that) |
ORLA_SIGN_IN_WAIT_MS |
how long a sign-in waits for the browser to come back, in milliseconds (default 300000, five minutes) |
ORLA_NO_KEYCHAIN=1 |
keep the session in a 0600 file instead of the OS keychain (tests, CI, headless boxes) |
XDG_CONFIG_HOME |
where that file lives (<dir>/orla/session.json) |
As an MCP server
Orla's MCP server is remote and speaks Streamable HTTP, and it answers at two
addresses:
https://app.orla.finance/api/mcp/personal your own books, and nothing that pays
https://app.orla.finance/api/mcp the same door plus the agent shape
A client that supports remote MCP needs nothing from this package. Point it at
an address and it will find the consent page by itself. Claude Code, for
example:
claude mcp add --transport http orla https://app.orla.finance/api/mcp/personal
The difference is not a label. At /mcp/personal every tool that moves money is
withheld from the list and refused if a model asks for one by name, so the
promise holds whatever the consent page was told. At /mcp the page offers both
shapes, and picking "connect an agent" mints a machine principal with a budget
of its own. Use the personal address unless you are deliberately connecting a
bot.
Clients that only support stdio servers can run this CLI as one. It relays
JSON-RPC to the HTTP endpoint and holds the token, so the client needs no OAuth
support of its own:
{
"mcpServers": {
"orla": { "command": "npx", "args": ["-y", "orla-cli", "mcp"] }
}
}
The bridge uses the session orla login stored, refreshes it, and posts to the
door that session was minted at. With no session it signs in by itself, since a client that spawned it has no terminal
to type into: it opens the browser on the consent page, stays a well-formed
server meanwhile (initialize and ping answered, tools/list empty, a tool
call refused with cli.sign_in_in_progress), and tells the client
tools/list_changed when the person is done.
The server is listed in the official MCP registry as finance.orla/orla,
which is the name a client or a directory should resolve it by. The entry
carries both doors: the remote endpoint above and this package for stdio.
Setup for individual clients is written up at
orla.finance/en/mcp. That is the personal
connection, which reads your books and cannot pay. /en/ai-agents is a
different door, where an agent gets a budget and a card of its own.
As a Claude Code plugin
This repository is also a plugin marketplace. Installing it brings five
skills, four for keeping the books and one for the CLI itself, and the personal
MCP connection they run on:
/plugin marketplace add cheetah-trade/orla-cli
/plugin install orla@orla
The first tool call opens the ordinary consent page in a browser, where you pick
the spaces this machine may reach. /mcp shows the connection and starts that
flow by hand.
| Skill |
What it does |
orla-categorize |
Sorts out what is still uncategorized: a preview of each batch, your yes, then exactly that batch applied. |
orla-month-close |
Closes a month from Orla's own reports: spend, budgets that broke, what is unsorted, bills due, what the space is worth, what waits for a signature. Reads only. |
orla-settle-up |
Who owes whom: the settle-up plan in a shared space, or what a space owes and is owed from its reports and supplier bills; records shared expenses and keeps the receipts in Documents. |
orla-statement-import |
Books a bank statement: the rows Orla read, your yes, then exactly those rows. When the entry limit leaves room for only part of it, the newest rows go first. |
orla |
The CLI from a terminal: the exact commands, the JSON envelope and exit codes, and where paying stops. |
The plugin points at https://app.orla.finance/api/mcp/personal, which is the
door that holds no tool that moves money. The skills say so, and the address is
what makes it true rather than a promise: payments, transfers and card details
are withheld there and refused if asked for by name.
Two things the skills lean on, worth knowing before you read them. A connection
without full payment details (the person switches them on in Orla, under Agents) receives payees
and addresses masked, which limits how much of a bank import can be categorized
from four characters. And
the tool list stops at 200 rows per call, with the true count beside it, so a
busy month is read month by month rather than in one gulp.
contracts/mcp-personal-tools.json is the committed shape of that door, and
test/skills.test.js checks every tool and argument the skills name against it.
Ready scenarios
The personal door also offers six ready scenarios (MCP prompts) to any client
that shows them. Pick one and it starts the job without you writing the
request first.
| Scenario |
What it does |
| Set up my books |
What is left to set up in your Orla books, one step at a time: what the books are for, a first bank statement or account, categories. Creates or records only what you approve. |
| Review a month |
Where the money went in one month: spending by category, budgets, the change from the month before, recurring payments and cash flow. Reads only. |
| Sort uncategorized transactions |
Finds transactions with no category, proposes a category for each group, and changes only what you approve after a preview. |
| Month-close checklist |
What is left before a month is closed: transactions without a category, expenses missing a document, budgets, supplier bills due, payments waiting for a signature, what is owed. Reads only. |
| Settle shared expenses |
Who owes whom in a group or family space, why, and how to settle in the fewest payments. Records new shared expenses only after you approve the list. |
| Import a bank statement |
Books a bank statement file into an account. You see every row first, and nothing is booked until you approve. |