Agents & CLI
AI agents welcome.
Claude Code, Codex or whichever agent you use can run your Nyrut from the terminal: create and send invoices, record payments, tell you who owes you and what's due this quarter. With your account, your data and the same rules as the web app.
npm install -g nyrut> Invoice Estudio Norte for October: 12 hours of web design at €60. Show it to me and, if it looks right, send it.
● nyrut invoice new --client "estudio norte" --line "Web design, October; 12; 60"
⎿ ✓ Draft 2026-018 · Estudio Norte · €720.00 + VAT 151.20 − IRPF 108.00 = €763.20
● nyrut invoice send 2026-018 --yes
⎿ ✓ Sent to administracion@estudionorte.es
● Done: invoice 2026-018, €763.20, is in Estudio Norte's inbox. It's due on 17 November; I can check then whether it's been paid.
Your agent does in Nyrut what you would.
Invoice
Creates the invoice with its line items, with the VAT and withholding that apply given where the client is. It stays a draft until it's sent.
$ nyrut invoice new --line "…"Send it
To the client's email. It shows who and how much first, because sending can't be undone.
$ nyrut invoice send 2026-018Record payments
Marks an invoice paid, on the date the money arrived.
$ nyrut invoice pay 2026-014Tell you who owes you
Overdue first, and how much of what you're owed is late.
$ nyrut invoices --status overdueShare it
The invoice's public link, to paste wherever you like.
$ nyrut invoice link 2026-018Review clients and expenses
Your clients with what each still owes, and the expenses you've recorded.
$ nyrut clients · nyrut expensesCheck the quarter
Spain's 303 and 130, estimated with the same maths as the web app. To check against, not to file.
$ nyrut summary
What it can't do from the terminal yet: record expenses (in the web app a receipt photo does it for you) or make the PDF. For those, nyrut invoice open opens the invoice in your browser.
Ask in your own words
The agent turns it into commands, reads the data as JSON and tells you the result.
- Tell me who owes me money, since when and how much in total. Most urgent first.
- Invoice Bodegas Sur the same as last month, dated today, and leave it as a draft for me to check.
- How much VAT will I owe this quarter? And if 2026-014 gets paid before the 30th?
- Make me a table of what I've invoiced each client this year, highest first.
- Mark 2026-011 as paid: the money arrived yesterday.
With a safety net.
- You sign in, in your browser
nyrut loginsends you to the web app, where you're already signed in, and asks before handing the session to the terminal. A link alone is never enough.- New invoices are drafts
- Nothing leaves the terminal already issued: sending is a separate step, and the command shows who and how much before it does.
- It's your session
- What the agent does, you do: same invoices, same rules, and everything shows up in the web app. Ask it to show you an invoice before sending it.
- Sign out whenever you like
- The session is stored only on your machine, readable only by you.
nyrut logoutremoves it.
What if the agent is you?
The terminal is for people too: what's pending with the urgent on top, each invoice drawn in its own language, and nothing in your scripts' way.
- Every listing comes out as JSON with
--json: no colour, no padding, no headers. - Colour never carries meaning: it reads the same through
| cator underNO_COLOR. - A mistyped option is an error, not a list of everything:
--stauts=paiddoesn't fly. - Animation stops by itself when nobody's watching: no TTY, piped, or in CI.
And the website, in Markdown
If your agent reads the website to understand Nyrut, every page has a Markdown version: add .md to the address or ask for it with Accept: text/markdown. And llms.txt sums up what Nyrut is and where everything lives.
Start in a minute.
1. Install the CLI
npm install -g nyrut2. Sign in with your account
nyrut login3. Tell your agent
nyrut --help
“Use the Nyrut CLI (nyrut --help) to handle my invoices. Show me before sending anything.”
Every command
Each one with --help. Options and examples in the full reference.
nyrut invoices [options]List invoices, most urgent firstnyrut invoice <number>Draw one invoicenyrut invoice new [options]Create an invoicenyrut invoice send <number> [options]Email the invoice to the clientnyrut invoice pay <number> [options]Mark an invoice paidnyrut invoice link <number>Public link to share the invoicenyrut invoice open <number>Open the invoice in the browsernyrut clientsYour clients and what each still owesnyrut issuersYour issuing entitiesnyrut expenses [options]Expenses you have recordednyrut summary [options]VAT by quarter, for one issuernyrut mcpServe these commands to an AI app over MCPnyrut loginSign in through your browsernyrut logoutForget the session on this machinenyrut whoamiWho you are signed in as
What you might be wondering
Is it safe to let an agent use my account?
The agent uses your session, so it can do what you do from the terminal: create drafts, send invoices and mark them paid. What it can't do is delete anything: there's no command for that. And sending asks for confirmation, unless you pass --yes.
Is there an API?
There's no separate API: the CLI talks to your account with the same permissions as the web app, and that's what your agent uses.
Which agents does it work with?
Any that can use a terminal: Claude Code, Codex, Cursor or whichever you use. Nothing else to install.
And from Claude Desktop, Cursor or an app without a terminal?
Through MCP: nyrut mcp serves the same commands to any app that speaks the Model Context Protocol. In Claude Code, claude mcp add nyrut -- npx -y nyrut mcp; in Claude Desktop or Cursor, add a server with the command npx -y nyrut mcp. It uses the session from nyrut login, and the app asks you before an invoice is sent.
Which systems does it run on?
macOS, Linux and Windows, with Node.js 20 or later.
Let someone else do it.
Your Nyrut account is the same on the web, on your phone and in the terminal. Ten days free, no card.
Start free