Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add benbjohnson/litestream-skills --skill litestreamgit clone --depth 1 https://github.com/benbjohnson/litestream-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/benbjohnson/litestream-skills/litestream)<a href="https://agentmods.dev/skills/benbjohnson/litestream-skills/litestream"><img src="https://agentmods.dev/badge/skills/benbjohnson/litestream-skills/litestream/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/benbjohnson/litestream-skills/litestream"><img src="https://agentmods.dev/badge/skills/benbjohnson/litestream-skills/litestream.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00059 | $0.01393 |
| Opus 5 | $0.00030 | $0.00696 |
| Sonnet 5 | $0.00012 | $0.00279 |
| Haiku 4.5 | $0.00006 | $0.00139 |
Grade B, and why
litestream scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
sudo dpkg -i litestream-v0.5.5-linux-amd64.deb Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
wget https://github.com/benbjohnson/litestream/releases/download/v0.5.5/litestream-v0.5.5-linux-amd64.deb How it starts
The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Litestream
Litestream is a disaster recovery tool for SQLite that runs as a background process, continuously replicating database changes to cloud storage. It monitors the SQLite Write-Ahead Log (WAL), converts changes to immutable LTX files, and uploads them to your chosen storage backend.
Key Concepts
- WAL Monitoring: Watches SQLite Write-Ahead Log for changes at configurable intervals (default 1s)
- LTX Files: Immutable files containing database page changes, never modified after creation
- Level-Based Compaction: Multi-level system (L0-L9) that merges LTX files to reduce storage overhead
- Point-in-Time Recovery: Restore to any transaction using TXID or timestamp
- VFS Support: Read replicas directly from cloud storage without local database copy
- MCP Server: AI tool integration for automated database management
Quick Start
Installation
# macOS
brew install litestream
# Linux (Debian/Ubuntu)
wget https://github.com/benbjohnson/litestream/releases/download/v0.5.5/litestream-v0.5.5-linux-amd64.deb
sudo dpkg -i litestream-v0.5.5-linux-amd64.deb
# Docker
docker pull litestream/litestream:0.5
Basic Replication
# Command line (single database)
litestream replicate /path/to/db.sqlite s3://bucket/db
# With config file
litestream replicate -config /etc/litestream.yml
Restore Database
# Restore latest backup
litestream restore -o /path/to/restored.db s3://bucket/db
# Point-in-time recovery
litestream restore -timestamp 2024-01-15T10:30:00Z -o /tmp/db s3://bucket/db
# Restore to specific transaction
litestream restore -txid 1000 -o /tmp/db s3://bucket/db
Check Status
# View all databases and their replication status
litestream status
# List available LTX files
litestream ltx /path/to/db.sqlite
Critical Rules
These rules are essential for correct Litestream operation:
- Lock Page at 1GB: SQLite reserves the page at offset 0x40000000 (1GB). This page must always be skipped during replication and compaction. The page number varies by page size:
- 4KB pages: page 262145
- 8KB pages: page 131073
- 16KB pages: page 65537
What ships with it
33 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- commands/databases.md 2.5 KB
- commands/ltx.md 3.6 KB
- commands/replicate.md 3.9 KB
- commands/restore.md 4.2 KB
- commands/status.md 3.3 KB
- concepts/architecture.md 4.8 KB
- concepts/compaction.md 4.8 KB
- concepts/ltx-format.md 4.8 KB
- concepts/replication.md 4.4 KB
- concepts/sqlite-wal.md 4.6 KB
- concepts/vfs.md 5.4 KB
- configuration/abs.md 3.7 KB
- configuration/example-litestream.yml 7.0 KB
- configuration/file.md 3.6 KB
- configuration/gcs.md 3.1 KB
- configuration/nats.md 4.8 KB
- configuration/oss.md 3.1 KB
- configuration/overview.md 5.7 KB
- configuration/s3.md 6.0 KB
- configuration/sftp.md 4.3 KB
- configuration/webdav.md 3.6 KB
- deployment/docker.md 4.9 KB
- deployment/fly-io.md 5.3 KB
- deployment/kubernetes.md 7.8 KB
- deployment/systemd.md 5.8 KB
- integrations/mcp-server.md 5.0 KB
- operations/heartbeat.md 5.0 KB
- operations/monitoring.md 5.6 KB
- operations/recovery.md 5.9 KB
- operations/troubleshooting.md 5.9 KB
- scripts/check-replication.sh 3.9 KB runs code
- scripts/diagnose-issues.sh 6.7 KB runs code
- scripts/validate-config.sh 5.1 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 155 lines · 59 tokens per session scan B 4d67db56147b
litestream is a skill published in the GitHub repository benbjohnson/litestream-skills (5 stars, last pushed 8mo ago), licensed Apache-2.0. It adds 59 tokens to every session and 1,393 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
google-cloud-storage-fuse
Mounts Cloud Storage buckets as a POSIX file system with Cloud Storage FUSE (gcsfuse). Use when interacting with gcsfuse: decide whether FUSE, native gs:// reads, or Filestore/Managed Lustre fits a workload, deploy tuned mounts on GKE, Compute Engine, or Cloud Run, enable and size file, stat, and list caches, tune…
cloud-databases-onboarding
Guides users through discovering their database requirements, recommends a Google Cloud database based on a recommendation matrix, and assists in database creation. Use when a user asks 'What database service should I use?', 'Help me pick a database', or when a user wants to create a new database on Google Cloud.…
cloud-sql-basics
This file generates or explains Cloud SQL resources. Use this file when the user asks to create a Cloud SQL instance or database for MySQL, PostgreSQL, or SQL Server. Cloud SQL manages third-party MySQL, PostgreSQL, and SQL Server instances as resources in Cloud SQL. For example, when Cloud SQL creates an open-source…
azure-resource-manager-mysql-dotnet
Azure MySQL Flexible Server SDK for .NET. Database management for MySQL Flexible Server deployments. Use for creating servers, databases, firewall rules, configurations, backups, and high availability. Triggers: "MySQL", "MySqlFlexibleServer", "MySQL Flexible Server", "Azure Database for MySQL", "MySQL database…
azure-mgmt-mongodbatlas-dotnet
Manage MongoDB Atlas Organizations as Azure ARM resources using Azure.ResourceManager.MongoDBAtlas SDK. Use when creating, updating, listing, or deleting MongoDB Atlas organizations through Azure Marketplace integration. This SDK manages the Azure-side organization resource, not Atlas clusters/databases directly.
azure-resource-manager-redis-dotnet
Azure Resource Manager SDK for Redis in .NET. Use for MANAGEMENT PLANE operations: creating/managing Azure Cache for Redis instances, firewall rules, access keys, patch schedules, linked servers (geo-replication), and private endpoints via Azure Resource Manager. NOT for data plane operations (get/set keys, pub/sub) …