Lunch money

From mvanhorn/printing-press-library · View interactive version

Lunch money is an AI agent skill from the GitHub repository mvanhorn/printing-press-library. A Go CLI for Lunch Money's official v2 OpenAPI — offline SQLite store, subscription detection, and bulk smart... Trigger phrases: `categorize my transactions`, `find duplicate charges`, `subscription audit`, `what's my budget burn`, `net worth at a date`, `use lunch-money-pp`, `run lunch-money`.

How to use this skill

Skill file

Lunch Money — Printing Press CLI

Prerequisites: Install the CLI

This skill drives the lunch-money-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:

```bash

npx -y @mvanhorn/printing-press-library install lunch-money --cli-only

```

  1. Verify: lunch-money-pp-cli --version
  2. Ensure the reported install directory is on $PATH for the agent/runtime that will invoke this skill.

If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer):

go install github.com/mvanhorn/printing-press-library/library/payments/lunch-money/cmd/lunch-money-pp-cli@latest

If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.

When to Use This CLI

Use this CLI when you need to bulk-fix transactions, audit subscriptions or recurring items, reconcile net worth across Plaid + manual + crypto accounts, or expose Lunch Money to agent workflows. Especially valuable for Sunday-morning budgeting rituals (triage, retag, budget burn-down), end-of-month asset snapshots (manual account updates, balance history upserts), and expense-report assembly (transactions list --tag, attachment exports). Avoid it for one-off web-UI exploration — that's what lunchmoney.app is for.

Unique Capabilities

These capabilities aren't available in any other tool for this API.

Local-join transcendence

_When a user asks 'what subscriptions are draining my account?', this surfaces unlabeled recurring charges in one local SQL pass._

```bash

lunch-money-pp-cli transactions subscriptions --suspected-only --json --select 'payee,suggested_cadence,avg_amount,occurrences'

```

_Answers 'which subscriptions haven't hit my account yet?' which is a top-three Maya question with no API equivalent._

```bash

lunch-money-pp-cli recurring missing --month 2026-05 --json

```

_Use after a trip or when reviewing imports to catch the same Uber ride processed twice._

```bash

lunch-money-pp-cli transactions duplicates --window 3 --tolerance 1.00 --json --select 'cluster_id,payee,amount,date,id'

```

Net-worth tools

_Answers 'what manual balances do I owe an update?' before quarterly NAV updates or Sunday reconciliation._

```bash

lunch-money-pp-cli accounts stale --over 30d --json --select 'account_type,account_name,last_updated,days_stale'

```

_Use for quarterly snapshots, retirement-plan inputs, or 'what was my net worth before I bought the car?' questions._

```bash

lunch-money-pp-cli net-worth on 2026-03-31 --json --select 'as_of_date,total,by_account_type'

```

Bulk transaction tools

_Answers 'fix every Amazon transaction since January' in one command instead of pagination clicks._

```bash

lunch-money-pp-cli transactions retag --match '^AMZN' --category-id 73 --dry-run --json

```

_Sunday-morning ritual for power-user budgeters; agent-friendly suggested categories let an LLM bulk-approve high-confidence rows._

```bash

lunch-money-pp-cli triage --limit 20 --json --select 'id,payee,amount,suggested_category,confidence'

```

Budget intelligence

_Mid-month answer to 'am I on track?' that flows into agent workflows and dashboards._

```bash

lunch-money-pp-cli budgets burn --period 2026-05 --json --select 'category_name,target,spent,projected_end_spend,over_under'

```

Session orientation

_Agents starting a fresh session can ask 'what changed overnight?' in one call instead of paginating multiple list endpoints._

```bash

lunch-money-pp-cli changed --since 8h --json

```

Command Reference

balance-history — View and update historical account balances. Balance history is what drives the Net Worth views in the Lunch Money app. Balance history is generated for each account's balance on the first day of each month and can be edited in the Lunch Money app or via the API.

budgets — View settings and modify budget amounts.<p> Use the /summary endpoint to view the budget details performance.

categories — Work with categories

crypto — Manage crypto

cryptocurrencies — Manage cryptocurrencies

manual-accounts — Work with manually managed accounts (formerly called assets)

me — View details and settings for the current user and account

plaid-accounts — Work with accounts synced through Plaid

recurring-items — Work with recurring items

summary — View a summary of the user's budget

tags — Work with tags

transactions — Work with transactions

Finding the right command

When you know what you want to do but not which command does it, ask the CLI directly:

lunch-money-pp-cli which "<capability in your own words>"

which resolves a natural-language capability query to the best matching command from this CLI's curated feature index. Exit code 0 means at least one match; exit code 2 means no confident match — fall back to --help or use a narrower query.

Recipes

Morning triage: what changed overnight

lunch-money-pp-cli changed --since 8h --json

Show everything created or edited in the local store in the last 8 hours — use at session start to orient before taking action. Pulls from the offline SQLite store (no API call); refresh first with lunch-money-pp-cli sync if the cache is stale. Pass --types transactions (or categories,manual-accounts, etc.) to narrow, --limit 10 to cap per type, and combine with --select to pick specific fields out of the result.

Sunday triage with agent-applied suggestions

lunch-money-pp-cli triage --limit 50 --json --select 'id,payee,amount,suggested_category,confidence' | jq '[.[] | select(.confidence > 0.9) | .id] | join(",")'

Pipe the high-confidence triage rows to jq for an ID list, then apply them via transactions retag --ids "$IDS" --category-id <id> (which calls the bulk PUT /transactions endpoint under the hood).

Find the asset driving this month's drift

lunch-money-pp-cli net-worth on 2026-04-30 --json --select 'by_account_type.account_name,by_account_type.balance' && lunch-money-pp-cli net-worth on 2026-05-12 --json --select 'by_account_type.account_name,by_account_type.balance'

Run net-worth at two dates and diff the per-account balances — answers Devon's Sunday 'what moved?' question without exporting CSV.

Promote a stealth subscription to a recurring item

lunch-money-pp-cli transactions subscriptions --suspected-only --json --select 'payee,avg_amount,suggested_cadence' | jq '.[] | select(.avg_amount > 5)'

Surfaces local-detected subscription patterns (≥3 occurrences, monthly cadence) not yet flagged. Filter with jq for subscriptions over a threshold; the v2 API does not yet expose a recurring_items create endpoint, so promote each one in the web UI at https://my.lunchmoney.app/recurring.

Drill into a budget category with deeply nested occurrences

lunch-money-pp-cli summary --start-date 2026-01-01 --end-date 2026-05-31 --include-occurrences --json --select 'categories.name,categories.occurrences.amount_spent,categories.occurrences.budget_amount'

The summary endpoint returns category objects with nested occurrences arrays. Dotted --select narrows the payload to the three fields needed for a per-month spend-vs-budget table without parsing the rest.

Bulk retag every Amazon transaction since January

lunch-money-pp-cli transactions retag --match '^AMZN' --start-date 2026-01-01 --category-id 73 --add-tag amazon --dry-run --json

Dry-run shows count + sample rows from the local FTS5 search. Drop --dry-run to apply via the bulk PUT /transactions endpoint.

Auth Setup

Public API (api.lunchmoney.dev/v2) — used by every top-level command. Get a bearer token from https://my.lunchmoney.app/developers and set it as LUNCHMONEY_API_KEY:

export LUNCHMONEY_API_KEY="<your-token>"

Or save it to the config file:

lunch-money-pp-cli auth set-token <your-token>

The value IS the bearer token — the CLI prepends Authorization: Bearer for you.

Internal API (api.lunchmoney.app, web-UI backend) — only required for the internal subcommand tree (rules, Plaid taxonomy, bulk-edit primitives the public API doesn't expose). Seed once with lunch-money-pp-cli internal auth set-cookie '<paste your browser Cookie: header>', or set LUNCHMONEY_INTERNAL_COOKIE for a non-persistent override (CI / one-off shells). See internal/internalapi/README.md for the cookie-seeding walkthrough.

Run lunch-money-pp-cli doctor to verify setup.

Agent Mode

Add --agent to any command. Expands to: --json --compact --no-input --no-color --yes.

```bash

lunch-money-pp-cli balance-history get --agent --select id,name,status

```

Response envelope

Commands that read from the local store or the API wrap output in a provenance envelope:

{
  "meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
  "results": <data>
}

Parse .results for data and .meta.source to know whether it's live or local. A human-readable N results (live) summary is printed to stderr only when stdout is a terminal — piped/agent consumers get pure JSON on stdout.

Agent Feedback

When you (or the agent) notice something off about this CLI, record it:

lunch-money-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
lunch-money-pp-cli feedback --stdin < notes.txt
lunch-money-pp-cli feedback list --json --limit 10

Entries are stored locally at ~/.lunch-money-pp-cli/feedback.jsonl. They are never POSTed unless LUNCH_MONEY_FEEDBACK_ENDPOINT is set AND either --send is passed or LUNCH_MONEY_FEEDBACK_AUTO_SEND=true. Default behavior is local-only.

Write what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.

Output Delivery

Every command accepts --deliver <sink>. The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:

| Sink | Effect |

|------|--------|

| stdout | Default; write to stdout only |

| file:<path> | Atomically write output to <path> (tmp + rename) |

| webhook:<url> | POST the output body to the URL (application/json or application/x-ndjson when --compact) |

Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.

Named Profiles

A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.

lunch-money-pp-cli profile save briefing --json
lunch-money-pp-cli --profile briefing balance-history get
lunch-money-pp-cli profile list --json
lunch-money-pp-cli profile show briefing
lunch-money-pp-cli profile delete briefing --yes

Explicit flags always win over profile values; profile values win over defaults. agent-context lists all available profiles under available_profiles so introspecting agents discover them at runtime.

Exit Codes

| Code | Meaning |

|------|---------|

| 0 | Success |

| 2 | Usage error (wrong arguments) |

| 3 | Resource not found |

| 4 | Authentication required |

| 5 | API error (upstream issue) |

| 7 | Rate limited (wait and retry) |

| 10 | Config error |

Argument Parsing

Parse $ARGUMENTS:

  1. Empty, help, or --help → show lunch-money-pp-cli --help output
  2. Starts with install → ends with mcp → MCP installation; otherwise → see Prerequisites above
  3. Anything else → Direct Use (execute as CLI command with --agent)

MCP Server Installation

Install the MCP binary from this CLI's published public-library entry or pre-built release, then register it:

claude mcp add lunch-money-pp-mcp -- lunch-money-pp-mcp

Verify: claude mcp list

Direct Use

  1. Check if installed: which lunch-money-pp-cli

If not found, offer to install (see Prerequisites at the top of this skill).

  1. Match the user query to the best command from the Unique Capabilities and Command Reference above.
  2. Execute with the --agent flag:

```bash

lunch-money-pp-cli <command> [subcommand] [args] --agent

```

  1. If ambiguous, drill into subcommand help: lunch-money-pp-cli <command> --help.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.