Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Litestream

$ litestream Community Med Risk
Fly.io (OSS) · Database & Data · Apache-2.0 · macos / linux

litestream continuously streams SQLite write-ahead log (WAL) pages to object storage (replicate) and restores point-in-time snapshots (restore -o). It ships as a single static Go binary with -json inspection on litestream databases and safe overwrite protection on restore.

FCRS-1.0 Score
85 /100
Good
Medium Confidence
Zero-Friction Install
brew install litestream
CLI vs MCP Decision CLI Only

litestream streams local SQLite WAL files and restores database binaries directly on disk; this is pure systems/CLI tooling with no MCP equivalent.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Single-purpose subcommands (databases -json, restore, status, replicate) run headlessly with -config - stdin support, though replicate is a foreground daemon.

  • Supports databases -json and -config - stdin YAML config
Trust & Safety 21 / 25

litestream restore refuses to overwrite an existing database file by default and supports -timestamp PITR and -o alternate output paths.

  • Refuses to overwrite existing DB files on restore unless targeted safely via -o
Setup & Portability 14 / 15

Single static Go binary available via Homebrew and official GitHub releases for macOS and Linux.

  • Static Go binary distributed via Homebrew and GitHub releases
Utility & Efficiency 13 / 15

Turns local SQLite into disaster-recoverable cloud-backed storage with minimal ops footprint.

  • Zero-dependency continuous SQLite WAL replication and PITR restore
Maintenance & Lineage 8 / 10

Created by Ben Johnson and maintained under Fly.io (benbjohnson/litestream) with Apache-2.0 license.

  • Apache-2.0 repository backed by Fly.io
Docs & Verifiability 8 / 10

Clear command and YAML reference at litestream.io/reference/.

  • Official docs at litestream.io

Security, Auth & Guardrails

Auth Modes
Config File Env API Key Service Account
Credential Storage

Reads /etc/litestream.yml (or -config <path> / -config -) and cloud credentials via LITESTREAM_ACCESS_KEY_ID, LITESTREAM_SECRET_ACCESS_KEY, or standard AWS/GCP/Azure env vars.

Side Effects
Read-Only Local Write Remote Write Billing Impact
Cost & Quotas

Apache-2.0 open-source CLI; remote S3/GCS/Azure bucket storage and requests incur cloud charges.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Litestream Agent Rules
- Always pass `-o <new-path>` on `litestream restore` so restored snapshots never overwrite live DBs.
- Remember `litestream replicate` is a long-running daemon; invoke it only when running a supervised service.
- Use `litestream databases -json` to verify replica paths before restoring.

Agent-Ready Command Recipes

Safe Read-Only Queries

List configured databases as JSON
litestream databases -config litestream.yml -json

Emits JSON metadata for all SQLite databases and replica targets defined in the config.

Controlled Writes & Previews

Restore a SQLite replica to a staging path
litestream restore -config litestream.yml -o /tmp/restored.sqlite /var/lib/app/app.sqlite

Restores the latest snapshot and WAL frames into /tmp/restored.sqlite without touching the live file.

Strengths for Agents

  • + litestream restore protects existing databases by failing if the destination exists; -o writes safely to a new file.
  • + litestream databases -json and -config - make config verification scriptable.

Caveats & Pitfalls

  • ! litestream replicate runs continuously in the foreground and is not a one-shot command.
  • ! No official native Windows binary; primarily targets Linux and macOS.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI