@agent-receipt/cli
v0.2.14
Published
A checkable record of every change your AI coding agent makes: what it was asked, what it changed, and what looked risky. Works with Claude Code, Cursor and Antigravity. Local-first, secrets redacted.
Maintainers
Readme
agentreceipt
A checkable record of every change your AI coding agent makes.
AI coding agents change your code fast. When one finishes, you get a diff and a confident summary, but no record of what it was asked, what it changed and what looked risky. AgentReceipt keeps that record: one receipt for each agent session, next to the change.
- What it was asked: the prompt, with secrets removed.
- What it changed: the files and the diff.
- What looked risky: flagged by plain, fixed rules (no AI model makes these calls), so the same input always gives the same result.
Works with Claude Code, Cursor and Antigravity (Google's agent editor, with Gemini models). It is local-first: everything runs on your machine, secrets are redacted before anything is written to disk, and nothing is uploaded until you log in.
Website and team dashboard: https://www.agentreceipt.online (free 2-day trial, then $7 per person per month)
Watch how it works (1 minute 30)
Set up in three commands, then see how managers and employees see receipts, and how every receipt is emailed as a PDF report and deleted after seven days.
Quick start
Needs Node 20 or newer and git.
npm install -g @agent-receipt/cli
agentreceipt --version
cd /path/to/your/repo
agentreceipt init --pre-pushThen start a new session in your coding agent (agents read their hooks when a session starts), make a
change, and finish the session. Run agentreceipt show to read the receipt.
That is all you need to use it on your own computer. Nothing leaves your machine.
Set up a repository
Run this once in each repository, then commit the files it creates:
agentreceipt init --pre-push # Claude Code (the default)
agentreceipt init --agent cursor --pre-push # Cursor
agentreceipt init --agent antigravity --pre-push
agentreceipt init --agent all --pre-push # all threeinit merges its hooks into the agent's own config and never overwrites your other settings.
--pre-push also adds a git hook that runs agentreceipt check before each push.
Use it
Work with your agent as usual, then:
agentreceipt check # run the rules on the latest session; exit 1 on a violation
agentreceipt finalize # write the receipt and attach it to HEAD as a git note
agentreceipt show # print the receipt stored for a commitWhat it flags
Secret-like values in a diff, tests quietly weakened, checks switched off (eslint-disable,
@ts-ignore, ...), new dependencies, sensitive paths (auth, payments, migrations, CI), changes that
stray from the prompt, and oversized changes.
The team dashboard (optional)
The dashboard at https://www.agentreceipt.online gives a manager every employee's receipts in one place: who ran which session, what changed, why (the prompt), and the flags raised, employee by employee. A manager can download any receipt as a PDF. An employee sees only their own receipts. Receipts are kept 7 days; after that the manager is emailed a report with one PDF per employee and they are deleted from the dashboard.
- The manager asks for early access on the website (they get a sign-in by email) and adds each employee under Team. The manager does not need an API key.
- Each employee signs in, opens API keys and creates their own key.
- On their computer, each employee runs this once and pastes the key when asked:
agentreceipt login --api-url https://www.agentreceipt.onlineFrom then on, every git push uploads your recorded sessions in the background (nobody has to close a chat), and a
session that ends is uploaded too. Each upload carries the prompt and the changes (secrets
removed). You do not need to run anything else.
Choose what is sent with "sync" in agentreceipt.config.json at the repository root:
{ "sync": "full-redacted" }"full-redacted": the prompt and the changes, secrets removed (the default once you are logged in)"summary-only": only counts, file names and flags (no prompts, no code)"off": nothing is uploaded
To see exactly what would be sent, or to upload by hand:
agentreceipt sync --dry-run
agentreceipt syncProblems are written to .agentreceipt/errors.log in the repository.
If something does not work
| What you see | What to do |
| -------------------------- | ------------------------------------------------------------------------------ |
| command not found | Install again with npm install -g @agent-receipt/cli and open a new terminal |
| No receipt after a session | Start a new session after init, let it end, then run agentreceipt sync |
| Key rejected | Create a new key in the dashboard and run agentreceipt login again |
Commands
Run agentreceipt with no arguments for the full list.
Help and feedback
Questions, bugs or ideas: [email protected], or visit https://www.agentreceipt.online. Every message is read.
License
MIT. See LICENSE.

