{"slug": "show-hn-a-cli-to-fetch-invoices-in-your-inbox", "title": "Show HN: A CLI to fetch invoices in your inbox", "summary": "Visnia AI released invoice-fetcher, an open-source command-line tool that automatically finds invoices and receipts in email inboxes and processes them locally without sending data to third parties. The tool supports IMAP and Gmail OAuth, runs on macOS, Linux, and Windows, and requires Node.js 22 or later to build from source.", "body_md": "A dead simple CLI that automatically finds invoices & receipts in your inbox, so you can close your books faster. Everything is processed locally, and no data is sent to third parties.\n\nTo install on macOS or Linux, run the following command:\n\n```\ncurl -fsSL https://raw.githubusercontent.com/visnia-ai/invoice-fetcher/main/install.sh | sh && export PATH=\"$HOME/.local/bin:$PATH\"\n```\n\nor this command if you use Windows, in the Powershell:\n\n```\nirm https://raw.githubusercontent.com/visnia-ai/invoice-fetcher/main/install.ps1 | iex\n```\n\nRun this command and follow the instructions:\n\n```\ninvoice-fetcher add imap accounts@example.com\n```\n\nGoogle requires OAuth read-only authorization to the Gmail API. Run this command and follow the instructions of the guided setup to authenticate your google account:\n\n```\ninvoice-fetcher add google accounts@gmail.com\ninvoice-fetcher <start-date> <end-date> <email-address> <destination-folder>\n```\n\nExample:\n\n```\ninvoice-fetcher 2026-01-01 2026-03-31 accounts@example.com ~/Documents/Invoices\n```\n\nDates use inclusive `YYYY-MM-DD`\n\nbounds. The email address selects a previously configured account.\n\nMulti-month searches produce:\n\n```\ndestination/\n└── 2026-01/\n    └── sender.example/\n        └── invoice.pdf\n```\n\nBuilding from source requires Node.js 22 or later:\n\n```\nnpm install\nnpm run build\nnpm link\n```\n\n", "url": "https://wpnews.pro/news/show-hn-a-cli-to-fetch-invoices-in-your-inbox", "canonical_source": "https://github.com/visnia-ai/invoice-fetcher", "published_at": "2026-08-27 10:51:21+00:00", "updated_at": "2026-08-27 11:19:51.538402+00:00", "lang": "en", "topics": ["developer-tools", "ai-products"], "entities": ["Visnia AI", "invoice-fetcher", "Node.js"], "alternates": {"html": "https://wpnews.pro/news/show-hn-a-cli-to-fetch-invoices-in-your-inbox", "markdown": "https://wpnews.pro/news/show-hn-a-cli-to-fetch-invoices-in-your-inbox.md", "text": "https://wpnews.pro/news/show-hn-a-cli-to-fetch-invoices-in-your-inbox.txt", "jsonld": "https://wpnews.pro/news/show-hn-a-cli-to-fetch-invoices-in-your-inbox.jsonld"}}