Skip to main content
Glama

Rastrata

Open-source accounting your own agent runs.

Rastrata is double-entry small-business accounting built from a formally verified, immutable ledger outward. The AI agent you already use (Claude Code, Codex, opencode, or your own CLI/MCP agent) does the daily bookkeeping while you review, reconcile, and close the month.

  • Free forever on your machine: run the single-file rastrata-service binary locally with a SQLite book you own, the web app, the Go CLI/TUI, and the MCP server.

  • Rastrata Cloud: managed hosting at rastrata.com ($19/month flat for all businesses you own, 30-day free trial) with daily US bank feeds, native Stripe payout splitting via the Stripe App Marketplace, team and accountant seats, and full export to run locally anytime.

  • No hosted agent, no AI credits: connect the agent you already pay for over scoped, revocable tokens.

  • Formally proved kernel: core double-entry, immutability, reversal, period-close, and Cedar authorization invariants are proved in Lean 4 (proofs/).

Quick start (local development)

Tool versions are pinned in .bun-version and .go-version.

bun install --frozen-lockfile
bun run dev:api          # http://127.0.0.1:4010
RASTRATA_API_URL=http://127.0.0.1:4010 bun run dev:web   # http://127.0.0.1:4000

Build the Go CLI and TUI:

bun run --cwd apps/terminal build
apps/terminal/dist/rastrata tui

Build the self-contained single-executable local package (rastrata-service + rastrata + install.sh):

bun run package

Related MCP server: tillbooks

Verify

bun run gate             # fast static checks + unit & screen tests
bun run typecheck
bun run lint
bun run format:check
bun run test

Repository layout

Path

License

Purpose

packages/kernel/

AGPL-3.0

Immutable double-entry accounting kernel (100% test coverage)

packages/ledger/

AGPL-3.0

Durable append-only book storage and replay

packages/application/

AGPL-3.0

Bookkeeping workflows, ingestion, rules, reconciliation, tax, and reports

packages/booklog/

AGPL-3.0

Hash-chained book log and snapshotting

packages/plugin-sdk/

MIT

Zero-dependency SDK, runner, and test harness for Rastrata ingestion plugins

packages/plugin-stripe/

MIT

Official Stripe payout, evidence, and bank-clearing plugin

packages/plugin-ramp/

MIT

Official Ramp corporate card, pending authorizations, and OCR receipt plugin

packages/mcp-tools/

MIT

Shared MCP tool schemas and handlers for local and remote agent connectors

packages/telemetry/

AGPL-3.0

Static OpenTelemetry metric and span catalog

packages/ui/

AGPL-3.0

SolidJS + Ark UI ledger design system

apps/api/

AGPL-3.0

Application HTTP server and single-file rastrata-service binary

apps/web/

AGPL-3.0

Web application (SolidJS)

apps/terminal/

MIT

Go CLI and TUI (rastrata)

apps/mcp/

MIT

Model Context Protocol (MCP) server for agent integrations

plugins/rastrata/

MIT

Agent plugin manifest and bookkeeping skills

proofs/

AGPL-3.0

Lean 4 formal proofs of the accounting kernel

docs/

AGPL-3.0

Tutorials, how-to guides, and architecture explanations

Licensing, trademarks, and contributing

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Enables AI assistants to query and manage self-hosted accounting data—invoices, balances, and books—through natural language, with read-only tools by default and optional scoped write operations.
      30
      33 PyPI
      2
      AGPL 3.0
    • A
      license
      B
      quality
      B
      maintenance
      Free, open-source (MIT), local-first Swiss accounting MCP server: an AI agent posts double-entry journal entries, categorises and chases invoices, and prepares the MWST-Abrechnung (the Swiss VAT return), with a minimalist Studio for human oversight. Posted entries are append-only and immutable, corrections are reversing entries, and every query is tenant-scoped.
      500
      96 npm
      2
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Double-entry books an agent keeps as the user, on your own Postgres or Supabase: invoices, VAT returns, bank reconciliation, financial statements and 130 country packs.
      43
      AGPL 3.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to operate a self-hosted double-entry personal finance ledger: answering spending, net-worth and cash-flow forecast questions, searching transactions, and managing schedules, rules and imports through audited, reversible tools. Read and write access is scoped by token, with privacy controls over what financial details reach the agent.
      1
      AGPL 3.0