Note
🦀 Formanator is now built with Rust and distributed through Homebrew and Crates.io! v2.x, built in TypeScript and distributed through npm, is still available.
Formanator allows you to:
- Submit benefit claims to Forma and track progress from the command line, either one-by-one or in bulk
- Understand your Forma benefits and track and submit claims from any Model Context Protocol (MCP) client, for example Copilot CLI, Visual Studio Code or Claude Code
With the power of large language models 🧠👀 - free of charge thanks to GitHub Models - it can even analyse your receipts and generate your claims automatically.
macOS or Linux via Homebrew
brew tap timrogers/tap && brew install formanatormacOS, Linux, or Windows via Cargo, Rust's package manager
- Install Rust on your machine, if it isn't already installed.
- Install the
formanatorcrate by runningcargo install formanator. - Run
formanator --helpto check that everything is working and see the available commands.
- Download the latest release for your platform. macOS, Linux, and Windows devices are supported.
- Add the binary to your
PATH(or$PATHon Unix-like systems), so you can execute it from your shell/terminal. For the best experience, call itformanator(orformanator.exeon Windows). - Run
formanator --helpto check that everything is working.
git clone https://github.com/timrogers/formanator
cd formanator
cargo install --path .To infer claim details for PDF receipts, you need to have GraphicsMagick and Ghostscript installed.
# macOS
brew install graphicsmagick ghostscriptTo get started, you'll need to connect Formanator to your Forma account:
- Run
formanator login. - Press Enter to open your browser to the Forma login page.
- Enter your email address and request a magic link.
- Copy the magic link from your email and paste it into the terminal.
- You're logged in 🥳
The access token is stored in ~/.formanatorrc.json (the same location used by the original Node.js implementation, so the two clients can share state).
When submitting a claim you can either provide every detail manually or let an LLM infer them. Two providers are supported:
- GitHub Models — free, with a generous quota. Set the
GITHUB_TOKENenvironment variable to a GitHub Personal Access Token with read access to GitHub Models, or pass--github-token. - OpenAI — billed to your OpenAI account. Set the
OPENAI_API_KEYenvironment variable, or pass--openai-api-key.
If both are configured, Formanator prefers OpenAI.
formanator submit-claims-from-directory --directory input/All .jpg, .jpeg, .png, .pdf and .heic receipts in the directory will be analysed by the LLM. You'll be asked to confirm the inferred claim details for each receipt before it's submitted, and successfully-submitted receipts are moved into a processed/ subdirectory.
- Generate a template:
formanator generate-template-csv(writesclaims.csv). - Fill in one row per claim. If you've configured an LLM, you can leave
benefitandcategoryblank to have them inferred from the other fields, or leave every column exceptreceiptPathblank to have all claim details inferred from the receipt. Comma-separate paths in thereceiptPathcolumn to attach multiple receipts. - Optionally validate up-front:
formanator validate-csv --input-path claims.csv. - Submit:
formanator submit-claims-from-csv --input-path claims.csv.
formanator submit-claim --receipt-path receipt.jpgFormanator will ask the LLM to extract the amount, merchant, purchase date, description, benefit and category, show you the result and ask you to confirm before submitting.
formanator submit-claim \
--amount 2.28 \
--merchant Amazon \
--description "USB cable" \
--purchase-date 2024-01-15 \
--receipt-path USB.pdfformanator submit-claim \
--amount 2.28 \
--merchant Amazon \
--description "USB cable" \
--purchase-date 2024-01-15 \
--receipt-path USB.pdf \
--benefit "Remote Life" \
--category "Cables & Cords"Use formanator benefits and formanator categories --benefit <benefit> to discover the valid values.
formanator list-claims
formanator list-claims --filter in_progressFormanator can run as an MCP server over stdio so AI assistants can interact with your Forma account programmatically.
The server exposes three tools:
list_benefits_with_categories— list all benefits with their categories and remaining balances.list_claims— list claims, with optional filtering (currently onlyin_progress).create_claim— create a new claim.
You must be logged in (formanator login) before starting the MCP server.
To build a binary without MCP support (smaller binary, fewer dependencies):
cargo install formanator --no-default-featurescargo build # build with default features (CLI + MCP)
cargo test --all-features
cargo clippy --all-features --all-targets -- -D warnings
cargo fmt --all

{ "mcpServers": { "formanator": { "command": "/path/to/formanator", "args": ["mcp"] } } }