Home›Blog›Larzscript
Larzscript

LarzBudget: A Real CLI Built in Larzscript

2026-08-01 · Larzscript

Larzscript is a real, general-purpose, money-native language - but a language is only as convincing as what's actually been built with it. [larzscript-budget](https://github.com/larz-scripter/larzscript-budget) is a real, public, MIT-licensed personal budget tracker CLI, one Larzscript file, with a test suite and CI, built to answer a simple question: does the money-native design hold up for something a person would actually use?

What it does

$ larzscript budget.lz init
$ larzscript budget.lz account-add checking 5000.00
$ larzscript budget.lz category-add food --limit=300.00
$ larzscript budget.lz category-add housing
$ larzscript budget.lz add "coffee" -4.50 food
spent $4.50 on 'coffee' (food)
$ larzscript budget.lz add "rent" -1200.00 housing
spent $1200.00 on 'rent' (housing)
$ larzscript budget.lz add "big grocery run" -400.00 food
Error: 'food' limit $300.00 would be exceeded ($404.50 this month)
$ larzscript budget.lz income "paycheck" 2000.00
$ larzscript budget.lz report

Report for 2026-08

  food                $4.50 / $300.00 limit  #
  housing          $1200.00  ##############################

Total across accounts: $5795.50

Accounts, categories with spending limits, income, monthly recurring bills, a report with an ASCII bar chart, and transaction history - a small but complete personal finance tool.

Why this project, specifically

Every expense is a real pay statement between real wallet values. Every spending limit is a real require/unless guardrail - checked *before* the money moves, not an if bolted on after. A budget category is a wallet: its balance is the running total spent in that category, for free, from the language's own primitive, not a sum computed separately. This is the money-native pitch made concrete instead of illustrative - the same wallet/pay/require from a two-line playground example, holding up across a real, multi-command, stateful application.

The interesting engineering problem

wallet/pay are runtime constructs scoped to one script execution, and wallet NAME binds to a literal identifier in source code - neither survives a CLI tool exiting and restarting, and neither supports an unbounded, user-defined set of account names out of the box. The project's solution - persist balances as plain cents in JSON, rehydrate the specific wallets a given command needs as real values each run - is written up in full in Part 1, along with the require-message restriction found in Part 2 and the missing-date-parser limitation documented honestly in Part 3. None of it is hidden - the code and the blog series both show the real constraints of building something real in a language that's still growing.

Get it

curl -fsSL https://raw.githubusercontent.com/larz-scripter/larzscript/main/install.sh | sh
git clone https://github.com/larz-scripter/larzscript-budget
cd larzscript-budget && larzscript budget.lz init

New to Larzscript? Try it in your browser first, or read what it actually is.

Ready to get started?

View larzscript-budget on GitHub →

Explore the apps