Self-hosting
Run the double-entry engine, web app, and CLI on your own server or computer for $0 forever. Each book lives in one SQLite file with no external database.
- Core engine, web app, and Lean 4 proofs:
AGPL-3.0-only(github.com/Gant-Street/rastrata) - CLI, MCP server, and plugin SDK:
MIT
Run with Docker (recommended for servers)
Section titled “Run with Docker (recommended for servers)”One container runs the web app, API, SQLite storage, automated backups, and the rastrata CLI. Rastrata refuses to listen on a network address until you set a password.
- Download
docker-compose.ymlfrom the repository. - Generate a password (at least 12 characters) and start the container:
export RASTRATA_PASSWORD="$(openssl rand -base64 18)"docker compose up -d- Open
http://localhost:7278and sign in with your password.
Reverse proxy, custom domain, and secrets
Section titled “Reverse proxy, custom domain, and secrets”- Custom domain or PaaS (Railway, Render, Coolify, Caddy, Nginx): Set
RASTRATA_PUBLIC_ORIGIN=https://books.example.com. Rastrata adds that hostname to its allowed hosts, checks browser origins against HTTPS, and enables HSTS. - Dynamic port: Rastrata reads
PORTon Railway and Render whenRASTRATA_API_PORTis unset. Otherwise it listens on7278. - Docker Secrets: Pass
RASTRATA_PASSWORD_FILE=/run/secrets/rastrata_passwordinstead ofRASTRATA_PASSWORD. - Health checks:
GET /liveandGET /readyanswer200on any host header. The container includes a built-inHEALTHCHECK. - Data volume: Mount
/datato persistent storage. The container drops root privileges on startup and runsrastrata-serviceas PID 1 so SQLite flushes on stop.
Run CLI diagnostics or mint an agent token inside the running container:
docker exec rastrata rastrata doctordocker exec rastrata rastrata tokens create --label "Claude Code" --preset autoInstall on Mac or Linux (no Docker)
Section titled “Install on Mac or Linux (no Docker)”- Supported platforms: macOS (Apple silicon or Intel) and Linux (
x64orarm64withsystemd). - Use a non-root account. The installer keeps all files inside your home directory.
- Download
rastrata-VERSION-OS-ARCH.tar.gzand its.sha256file from GitHub releases. - Check the hash and run the installer:
shasum -a 256 -c rastrata-VERSION-darwin-arm64.tar.gz.sha256tar -xzf rastrata-VERSION-darwin-arm64.tar.gzcd rastrata-VERSION-darwin-arm64./install.sh- Open the web app and run checks:
rastrata openrastrata doctorPass --port 7300 or --data-dir /path/to/books to ./install.sh to pick another port or data folder.
Default file locations
Section titled “Default file locations”| Component | Default path |
|---|---|
Binaries (rastrata, rastrata-service) |
~/.local/bin/ |
| macOS launchd service | ~/Library/LaunchAgents/com.rastrata.service.plist |
| Linux systemd user unit | ~/.config/systemd/user/rastrata.service |
| Books, backups, owner key, and logs (macOS) | ~/Library/Application Support/Rastrata |
| Books, backups, owner key, and logs (Linux) | ${XDG_DATA_HOME:-~/.local/share}/rastrata |
| Local web address | http://127.0.0.1:7278 (loopback only) |
Connect your agent
Section titled “Connect your agent”Mint a scoped token and write your agent runbook:
rastrata connect --preset autorastrata agent statusTo connect a desktop agent over stdio MCP in Docker (Claude Desktop, Cursor, or Docker Desktop MCP Toolkit):
docker run --rm -i \ -e RASTRATA_API_URL="https://books.example.com" \ -e RASTRATA_TOKEN="rst_..." \ ghcr.io/gant-street/rastrata-mcp:latestBackups and recovery
Section titled “Backups and recovery”Point backups at an external drive or synced folder, and test a restore anytime:
rastrata backup folder /Volumes/Backups/rastratarastrata backup createrastrata backup verifyrastrata backup drillRestore an offline backup to a fresh SQLite file:
rastrata restore BACKUP_ID --to /path/to/restored.sqliteSelf-hosted vs. Rastrata Cloud
Section titled “Self-hosted vs. Rastrata Cloud”| Capability | Self-hosted ($0) | Rastrata Cloud ($19/mo) |
|---|---|---|
| Double-entry engine, web app, and Lean 4 proofs | Included | Included |
| SQLite storage and CSV / JSONL export | Included | Included |
| CLI and MCP server with no AI markup | Included | Included |
| Statement imports (CSV, XLSX, OFX, QFX, QBO) and MIT plugins | Included | Included |
| Live US bank feeds (Stripe Financial Connections) | Manual / SimpleFIN / plugins | Included (daily sync) |
| One-click Stripe & Ramp OAuth sync | CLI / API key / plugins | Included |
Remote MCP access (https://app.rastrata.com/mcp) |
Self-managed HTTPS | Included |
| Team & accountant seats and managed daily backups | Self-managed | Included (unlimited users) |
Your books stay portable in both directions. Export from Cloud to self-host, or move your local books to Cloud anytime.
Still stuck?
Contact support