A lot of discussion about using AI for this. I'm not really sure I see the point of that. I used Quickbooks desktop and Freshbooks prior to switching to hledger, and the whole appeal of using hledger has been that I understand everything that's happening.
My business admittedly has very simple books (a checking account, a Visa, some vendors and clients), but I can explain everything from the transaction import process through to the reports. The whole thing was pretty opaque to me when I was using QB and Freshbooks.
hledger has really good tools for importing transactions from CSV files from your bank, by the way. If you can download those, you can probably write a rules file to import the transactions into journal files. I don't see a huge upside to having an LLM guess my intentions in light of this.
hledger also lets you set up balance assertions. I pull my monthly statement balance, and set one that on the date of the statement closing, hledger's balance for my bank accounts is equal to my statement balance. Transfers between bank accounts (paying the Visa bill) go through a couple synthetic accounts, and I have balance asssertions set up to ensure a zero balance in those at the end of the year.
I spent maybe half a week setting things up from scratch last January, and keeping things up to date monthly now takes about 10-15 minutes depending on how many checks I've had to deal with. Those don't come with enough information in the CSV files to categorize/annotate them automatically.
All my orchestration is via Makefile. It's honestly painless at this point.
I've been using plain text accounting for years! But always struggled to get my bank statements imported correctly while using the Python beancount libary, so I built my own based on Go :) https://github.com/robinvdvleuten/beancount
The problem with using (non-local) LLMs for PTA is that you end up sending all of your financial data to Anthropic/OpenAI, which is a privacy nightmare. A good local model would of course solve this and in theory you shouldn't need too beefy a model to categorise your financial transactions, but I haven't spent much time playing around with them (would be happy to receive recommendations for small models).
The `smart_importer` plugin already gives you a way to automatically guess at the appropriate accounts for transactions (based, I assume, on some old pre-LLM machine learning or similar). It's okay but quickly falls apart on transactions that don't look extremely similar to past ones.
Manual journaling (with help from `smart_importer`) isn't so bad if you keep it up regularly. You need to appreciate the process though. It can feel like a real chore downloading, importing and categorising all of your transactions but at the same time it's probably no bad thing to review your finances like that occasionally.
Personally I moved to beancount from GnuCash which I used for years. Mainly to have more flexibility to use my own scripts, etc. It takes a bit more work to set up but have had no issues since.
PTA is great, especially with AI agents. I use hledger, which has deterministic checks like balance assertions. And AI agents are good at investigating discrepancies and fixing the underlying entries until those checks pass.
And if your bank doesn’t offer a way to access your transactions programmatically, you can just throw a PDF at the agent or use something like Chrome DevTools MCP to let it read the transactions from your online banking portal. And you can set things up so that AI providers never see your actual data.
I'm not interested in connecting my finances to an LLM, but I'm happy to use an LLM-developed app or to use an LLM to keep an app up-to-date with current laws.
I've done my own taxes for years, but this year I'm running an LLC (S-Corp technically) for the first time, so I'm considering how to scale up and do my own taxes with this whole new "self employed" concept.
I've seen a couple tax projects on github but I haven't yet gone and done my own taxes as a business owner yet.
Have any of you?
--
https://github.com/emmilco/us-tax-model (via https://news.ycombinator.com/item?id=50275626) “Publicly available tax calculators (PolicyEngine, UsTaxes, OpenTaxSolver, etc.) are used to cross check derived numbers from this system”
https://github.com/IRS-Public/direct-file https://github.com/IRS-Public/fact-graph
A question I haven't found an answer for yet: how do I enter the food I bought into such a system? Is a hot-dog an asset that depreciates when I eat it later tonight?
The intro to BeanCount written by the author of the program was horrible. It claims that it is written from a Computer Scientist's point of view and that it will explain the benefits of double-entry accounting. It never does. The message I came away with was that single-entry accounting can be the same as double entry as long as the the same metadata is collected. I know that not what the author intended, but they never explained the benefits.
I discovered beancount a couple of years ago and really like the concept of plain text accounting. I wanted to do a first real rust project so I wrote my own software for doing double entry accounting called Sou: https://github.com/fotisk07/sou
I have been using it for a while to handle my personal financial life and absolutely love it
big fan. I moved all my finances to hledger a few years back and it's been amazing. LLMs wrote parsers for all my banking services and now everything is imported to the cent into ledgers that are updated every month.
Excellent. I love the idea but I was never able to keep up with the journaling. I will now have Claude make me a Telegram bot to whom I can send pictures of bills and yadda yadda in the end everything will land as a beancount transaction in a file in my computer. And finally I will become the master of my money.
This has always followed the fallacy that credits are secretly negative numbers, slapping negative signs all over the place, which really just fundamentally doesn't get accounting at all.
How many pages on this site would I have to randomly choose to click on and read before it actually shows me whatever the hell it does? I gave up after four.
The submission barely mentions AI, and yet so many comments here are about LLMs/AI.
Why? The bulk of plain text accounting users likely don't use AI in their finance workflow.
I can't imagine what my accountant thinks when they get my bunch of .txt files each year.
Tried this before AI and it's amazing. Stopped using it because I got way too obssessed with adding as much data as possible to the journal. LLMs are probably the cure for this.
I've been working on "productizing" the double entry plaintext system I've used for years for both my personal and business accounts. The plaintext itself is just the storage format with a full UI for users. It differs from other plaintext accounting formats as it uses positive debits and credits instead of positive/negative amounts.
The goal is to offer a free forever (Electron-based) desktop app and a paid saas web version - both using the same code and the same plaintext backend so you can move between desktop and web.
The UI lets you switch from "accounting" view (debits and credits) to "flow" view where you see money flowing from one account to the other (basically debits and credits renamed and reversed) which seems to make more sense to non-accountant types.
It is early days but I have some demos at https://doublebooks.com/demos/ if you are interested.
Edit: here are some example transactions (since I just noticed I don't have a page on the site showing the plaintext. The // are comment lines)
// Each transaction is one line: date, status, description; from account -> to account, amount.
// Money moves left to right, so there are no signed amounts.
// After the date, * means the bank has it and ** that it is on a checked statement.
2024-01-05 * Wegmans; Assets:M&T:Checking -> Expenses:Groceries $64.10
2024-01-12 Pizza; Assets:Cash -> Expenses:Dining Out $18.00
2024-01-02 ** Rent [check: 1042]; Assets:M&T:Checking [posted: 2024-01-04] -> Expenses:Housing:Rent $1,200.00
2024-01-31 ** Initech payroll; Income:Salary -> Assets:M&T:Checking $3,150.00
// A split puts each destination on its own -> row.
2024-01-03 ** Costco; Liabilities:Capital One:Venture One $182.40
-> Expenses:Groceries $120.00
-> Expenses:Household $48.15
-> Expenses:Pharmacy $14.25
// A transfer between banks in two currencies, reconciled at one bank and only cleared at the other, with the fee on the same line.
2024-01-15 Wise transfer; ** Assets:M&T:Checking $1,005.00
-> * Assets:RBC:Chequing CA$1,368.20 [value: $1,000.00]
-> Expenses:Bank Fees $5.00
// Buying shares, with cost and lot.
2024-01-26 Buy VTI; Assets:Vanguard:Brokerage $2,300.00 -> Assets:Vanguard:Brokerage 10 VTI [cost: $2,300.00; lot: 2024-01-26]
// An invoice and its payment, matched by ref.
2024-03-02 Invoice 1042; Income:Sales -> Assets:Receivable $1,080.00 [ref: INV-1042; due: 2024-04-01; payee: "Acme Ltd"]
2024-03-20 * Acme payment; Assets:Receivable [ref: INV-1042] -> Assets:M&T:Checking $1,080.00Hmm, this appears to be quite the accounting software ecosystem!
Prior to reading this, I was only aware of GnuCash as Open Source accounting software -- but it appears that there's been quite the development of a whole bunch of command-line based, text-based Open Source accounting software (and utilities) since around 2016 or so...
This is relevant now more than ever, because these tools, being command-line based, are perfect for AI agents (and other software that makes use of, or could make use of what they do...)
You know, if there might be something lacking from this entire ecosystem, I'm guessing that it would be a standard database type and a standard database schema for accounting that all of the tools in this ecosystem could read and write data to/from...
Oh sure, you can say "text files" are that already -- but that's not really an agreement; a consensus of all of the tools with a standard database (something like Postgres, MySQL, SQLite, etc.) and it's not really an agreement; a consensus of all of the tools on an interoperable accounting database schema -- which each tool knows how to implicitly work with...
I'm guessing there have been probably been attempts at formalizing such specifications; i.e., GnuCash (or another such open-source accounting software package's) database and schema could be used for such a default, but I'm not really sure where they are in those standardization processes, I'm not sure which tools would support it, and I'm not sure about the potential future limitations of such a schema (i.e., in which businesses or business types, under what business and/or accounting circumstances does or would such a database schema fail? SAP or BAAN or another large ERP would be the people to ask/know about such things; they serve huge international businesses and their database schemas are absolutely ginormous to handle all possible use-cases, and have been expanded many times over their lifetimes...)
Until then, text is probably the simplest, most neutral, most agreed-upon format for accounting, now we have AI which can parse it better, but I still yearn for a future with a standardized open-source accounting database and a standardized (also open) accounting schema for that database, and standardized access methods to/from that data (local JSON server? local BSON server? Something else?)
Anyway, the space of these tools, text-based or not, this evolving accounting ecosystem -- is definitely worth watching!
An excellent submission to HN, and an excellent discussion!
I just ended up writing a simple app to forecast what I have on hand each day. The ledger is a simple, text file.
https://www.heswithjesus.com/apps/budgetapp/
I've since added reserves and partial, double-entry bookkeeping. I need to update it now, maybe a differemt visualization. Also, support both charge and posted dates because banks keep changing the dates on me. I find this app handles most of what I need.
what a rush!
[dead]
[dead]
[dead]
This isn't covered in detail on that page (but it's mentioned), but I do plain text accounting with https://github.com/nickjj/plutus.
It's a single file Python script that lets you fully manage how you track income and expenses on the command line as well as generate reports from your data. It supports importing CSVs in a general way so you can import bank CSV exports or anything you'd like. It also supports manual entry with a bunch of quality of life things to help validate / lint your data.
Unlike Ledger and other tools, Plutus uses a CSV file as its source of truth so it's portable and can be used in other tools if you want.
I use it to help file my taxes every year, it takes me literally 15 minutes once a year to have the final numbers with a complete breakdown of business income, business expenses and personal expenses. I import CSVs from multiple sources.
It's 100% hand coded and can generate a full report on 100,000 items in ~500ms on 12 year old hardware.
I used to use GnuCash for ~10 years but replaced it with Plutus. I also imported everything from GnuCash and ran the same reports, everything lined up to the cent. There's also an extensive test suite and a way to play around with the tool using auto-generated demo data.
The readme has more details along with a demo video.