API v1 · agent-friendly docs

CLI for agents & shell

Use @bennybooks/cli to wire Streamable HTTP MCP and run curated ledger commands from the terminal.

MCP is the product for IDE and chat agents. The CLI is the installer plus shell/CI companion — same bb_live_ token, same proposal-only writes, not a second API.

HostPrefer
Cursor / Claude / Codex with MCPStreamable HTTP tools at /api/mcp
Terminal, scripts, CI@bennybooks/cli (JSON) or REST /api/v1

Do not thrash

If BennyBooks MCP tools are already registered in the host, prefer those tools. Do not shell the CLI as a substitute.

Install

npx
npx @bennybooks/cli --help
# or
npm i -g @bennybooks/cli

Enable an agent

  1. Create a bb_live_ token in Settings → MCP & agents (read or propose-write)
  2. export BENNYBOOKS_TOKEN=bb_live_… (optional BENNYBOOKS_URL)
  3. npx @bennybooks/cli agent setup — merges ~/.cursor/mcp.json and prints Claude/Codex steps
  4. Restart / reload MCP; confirm list_transactions is available
Dry-run MCP config
npx @bennybooks/cli agent mcp-config

Curated commands

CommandMaps to
auth set-token | whoami | logoutLocal config + dashboard check
agent setup | mcp-configWire /api/mcp
transactions list | getGET /api/v1/transactions
dashboard summaryGET /api/v1/dashboard/summary
categories listGET /api/v1/categories
proposals listGET /api/v1/proposals
propose categorizePOST /api/v1/proposals/categorization

All commands print JSON to stdout. Writes create pending proposals until a human approves in Ledger → Approvals (also recorded in Log).

Agent skill

Install from this repo
npx skills add . --skill bennybooks -y
# source folder: agent-skills/bennybooks/SKILL.md

Remote playbook: https://bennybooks.com/skill.md · Auth: https://bennybooks.com/auth.md · Native MCP: Connect Streamable HTTP MCP.