The ops layer for the databases AI apps run on

Your AI app runs on SQLite.
Who's watching it?

Agents, RAG pipelines, and edge services all ship on SQLite — then drift, bloat, and corrupt in the dark. Litescope is the operations layer: see your schema, catch faults, and fix them — from one local file to a fleet of thousands.

litescope fleet health
$ litescope fleet health Fleet: production · 312 database(s) · 1 critical · 1 warning tenant-0203 CORRUPT — integrity_check failed (page 142) tenant-0148 WAL 2.1GB — checkpoint starved, reads degraded tenant-0001 18.4MB · wal 1.2MB · wal tenant-0002 17.9MB · wal 0.9MB · wal 312 databases · 310 healthy · 1 warning · 1 critical
The problem

AI shipped on SQLite.
Nobody's watching it.

Every agent, RAG store, and AI app reaches for SQLite — it's the zero-config default. Then the schema drifts, the WAL bloats, a file corrupts, and the backup nobody tested can't be restored.

Postgres has a decade of tooling for this. SQLite — now running real production behind AI apps, Turso, and D1 — has almost none. Litescope is that tooling.

AI apps & agents  LangChain, RAG stores, local-first AI, MCP servers
Turso & Cloudflare D1  libSQL edge replicas, per-tenant databases at scale
Local & embedded  app databases, CI fixtures, backups
The toolchain

Every operation, one binary

A pure-Go CLI with zero dependencies. Works on local files and remote databases through the same commands.

🔍
diff free

See what changed

Human-readable schema and data diff between any two databases. JSON, Markdown, and HTML output for CI and PR comments.

🗂️
explorer free

Browse your data

Visual table explorer with row-level queries. Get oriented fast without writing SQL.

🩺
health free

Spot faults early

One command flags corruption, WAL bloat from a starved checkpoint, and fragmentation — the faults that silently break production SQLite.

📈
advise free

Fix slow queries

Catch the performance bugs AI-generated schemas ship: foreign keys with no index, redundant indexes, and full table scans. Get runnable CREATE INDEX fixes.

🛡️
check pro

Trust your backups

PRAGMA integrity check plus schema and row-count comparison against a reference. Catch a bad backup before you need it.

migrate pro

See the blast radius first

Versioned migrations (new / status / up) on a tracking table, or ad-hoc diffs. Every migration is classified Safe / Risky / Destructive with an estimated write-lock time, then applied with auto-backup, single transaction, FK verification, and rollback.

📡
monitor pro

Catch drift continuously

Baseline a known-good schema, then watch for unplanned changes with webhook alerts to Slack and Discord.

🌐
fleet pro

Operate hundreds at once

The full lifecycle across a Turso org or D1 account, in parallel: fingerprint schemas, health-check for faults, converge drift to canonical, and recover corrupt databases from backup.

🤖
mcp free

Let your AI drive it

An MCP server so Claude or any agent can call Litescope as read-only tools — and inspect the database it just built. Diagnose freely; a human commits the fix.

How it works

Three steps to production safety

1

Baseline

Snapshot your known-good schema. Takes one command and outputs a versioned JSON file you commit to your repo.

2

Watch

Run drift detection on a schedule or continuously. Get instant alerts when something changes unexpectedly.

3

Operate

Validate backups, generate safe migrations, and roll them out across your entire fleet with one command.

Fleet lifecycle

Diagnose, then treat —
schema and faults.

Per-tenant SQLite is exploding, and they don't drift into one shape — they fracture into many. Litescope runs the fleet the way an SRE runs a service.

  • 🔬
    fingerprint Cluster every database by schema. You think you run one — see how many you actually run, and exactly how each drifted.
  • 🩺
    health Parallel fault triage: corruption, WAL bloat from a starved checkpoint, fragmentation, unreachable. Sorted worst-first.
  • 🔧
    converge Auto-generate and stage the migration that brings every drifted database back to canonical — canary, halt-on-failure, rollback.
  • ♻️
    recover Restore corrupt databases from verified backups; quarantine the unrecoverable so they're excluded from future ops.
litescope fleet fingerprint
$ litescope fleet fingerprint Fleet: production · 312 database(s) · 3 distinct schemas ██████████████████ 264 schema 645e9e58 (canonical) ███░░░░░░░░░░░░░░░░ 45 schema 530de62d - missing table audit_logs █░░░░░░░░░░░░░░░░░░ 3 schema 4aa5e064 + users.temp_col extra column → litescope fleet converge to bring all 312 onto canonical
AI-native

Your AI can drive it too.

Litescope ships an MCP server, so Claude, Cursor, or any agent can call it as a tool — and inspect the database it just built.

  • 🤖
    One command litescope mcp — point Claude Desktop at it and the tools appear.
  • 🔒
    Diagnose freely, treat with a human The agent gets read-only tools — health, diff, fingerprint, and migration plans with blast-radius. It can recommend a fix; a person commits it.
claude_desktop_config.json
{ "mcpServers": { "litescope": { "command": "litescope", "args": ["mcp"] } } } "use litescope to health-check ./app.db" Claude calls litescope_health → reads the report
Pricing

Free to explore.
Pro to operate.

Browse and diff for free. Everything that touches production requires Pro.

Free
$0
Get familiar with your SQLite databases. No credit card.
  • Explorer — browse tables & query rows
  • diff — schema comparison
  • health — single-DB fault check
  • advise — index & query recommendations
  • mcp — AI agent integration
  • 1 named connection (GUI)
Install free
Feature Free Pro — $89/yr
Explore
Explorer — browse tables & query rows
diff — schema & data comparison
health — single-DB fault check
Operate
migrate — blast-radius analysis & safe apply
check — backup integrity & schema verify
Monitor
monitor watch — continuous drift detection
Webhook alerts (Slack, Discord)
Drift history & audit trail
Fleet — Turso & Cloudflare D1
fleet check — parallel drift across all DBs
fleet fingerprint — schema clustering
fleet health — parallel fault triage
fleet converge — auto-fix drift to canonical
fleet recover — restore & quarantine
fleet migrate — staged canary rollouts
GUI
Named connections1Unlimited
All Pro panels (Migrate, Check, Monitor, Fleet)
Install

Up and running in seconds

One pure-Go binary. No runtime, no dependencies.

$brew install croc100/tap/litescope