Agentbudget
Agent-first, YNAB-like zero-based envelope budgeting CLI (Turso/libSQL + Drizzle).
Install / Use
/learn @Tantanok221/AgentbudgetREADME
agentbudget
Agent-first, YNAB-like zero-based envelope budgeting CLI.
- TypeScript + Node CLI
- Turso/libSQL backend + Drizzle ORM migrations
- Agent-first output: most commands support
--jsonand return{ ok, data }/{ ok, error }
Installation
Prereqs
- Node.js 20+
- npm
Install CLI
npm i -g @tantanok221/agentbudget
agentbudget --help
Install skills
npx skills add Tantanok221/agentbudget
Initialize a database
agentbudget can use either:
- local SQLite/libSQL file DB (
file:/...) - Turso remote DB (
libsql://...)
Local (recommended to start)
agentbudget init --local
agentbudget system init
Turso (remote)
export TURSO_DATABASE_URL="libsql://..."
export TURSO_AUTH_TOKEN="..."
agentbudget init --remote
agentbudget system init
Config is written to:
~/.config/agentbudget/config.json
You can override per-command:
agentbudget --db "file:/absolute/path.db" overview --month 2026-02
Quickstart
Create accounts/envelopes:
agentbudget account create "Bank" --type checking --json
agentbudget envelope create "Food" --group "Living" --json
Add a transaction (major-unit inputs, stored as minor units internally):
agentbudget tx add \
--account "Bank" \
--amount -23.50 \
--date 2026-02-08 \
--payee "Grab" \
--envelope "Food" \
--json
See an overview:
agentbudget overview --month 2026-02
agentbudget overview --month 2026-02 --json
Development notes
Migrations
Migrations live in src/db/migrations.
Tests
npm test
Environment variables
TURSO_DATABASE_URL(e.g.libsql://...orfile:./data/local.db)TURSO_AUTH_TOKEN(if using Turso)
Testing helpers
AGENTBUDGET_TODAY=YYYY-MM-DDoverrides "today" for schedule/overview tests.
Development Setup
git clone https://github.com/Tantanok221/agentbudget.git
cd agentbudget
npm install
npm run build
# run from the repo
node dist/cli.js --help
# or dev runner
npm run dev -- --help
Optional: link globally during development:
npm link
agentbudget --help
