ERWIN AI v0.1ON-CALL SRE & DATABASE SAFETY NET

The on-call engineer for servers that don't have an SRE.

Erwin keeps your client web apps, self-hosted n8n, and PostgreSQL alive on any $5 VPS. It proves every backup actually restores, fixes crash loops and full disks automatically, and asks you in Telegram for the rest — or runs straight from Claude Code & Cursor via MCP.

pipx install erwin-cli && claude mcp add erwin -- erwin mcp

Installs the CLI and registers erwin mcp with Claude Code

What ships in v0.1.1-night-shift

Three systems that keep production boring.

Restore-tested backups, a ledger of every change, and an autopilot for the 3 a.m. routine — on every server you connect.

db.snapshot · db.restore_test · db.rehearse_migration

Backups you have actually restored — every single night.

  • Nightly encrypted dumps

    pg_dump -Fc encrypted client-side with age public keys, straight to your own S3 bucket (Hetzner, Backblaze, R2) — plus an n8n workflow export.

  • Restore-tested daily

    Every night Erwin restores your dump inside an isolated, network-disabled DockerSandbox, verifies row counts and table checksums, and sends a “Backup restorable ✓” badge to Telegram.

  • Shadow migration rehearsal

    Prisma, Alembic and SQL migrations run on a disposable clone first, with lock_timeout=5s. Destructive DDL (DROP COLUMN, missing CONCURRENTLY) gets flagged, and a verified snapshot <1h old is required before anything is applied.

erwin · db-guardian · nightly 03:00 UTCexit 0
[dump]pg_dump -Fc shop_prod → 412 MB
[encrypt]age -r age1qy…8x4m # public key only
[upload]s3://acme-backups/prod-1/shop_prod.dump.age
[n8n]n8n export:workflow --all → 37 workflows
[sandbox]pg_restore → DockerSandbox (network: none)
[verify]42/42 tables · row counts + checksums matchRestorable ✓

Erwinbot

Telegram · Night Shift

03:07

Backup restorable ✓

prod-1 · shop_prod · restored in 38s · 42/42 tables verified

s3://acme-backups · age-encrypted · n8n: 37 workflows

erwin mcp + CLI

Built for Claude Code & Cursor.

Manage your servers straight from the IDE — without ever giving the LLM access to bash.

  • 15 MCP Tools Exposed
  • Zero Raw Shell
  • Agents Can Never Self-Approve

Even if an agent calls erwin_migrate_apply, the kernel parks the job as awaiting_human and waits for a person to tap the button in Telegram.

  • Typed tools, not bash

    None of the 15 tools accepts a raw command. Every action lands on the server as one of the 12 typed erwind verbs, with validated arguments.

  • Same tiers for agents and humans

    Tier 0 runs, Tier 1 waits for a person to approve, and Tier 2 can't be expressed at all.

  • Every call on the record

    Each tool call is written to the append-only audit log with the API key ID that made it — and the human who approved it.

claude · ~/acme-fleet

> prod-1 has been flaky since last night's deploy. Find out why and fix it.

  1. 01

    erwin_health("prod-1")read

    degraded · n8n restarted 4× in 10 min · disk 94% full

  2. 02

    erwin_whatchanged("24h")read

    03:12 n8nio/n8n digest changed · compose hash changed · /var/lib/docker +23%

  3. 03

    erwin_restart("n8n")Tier 0

    crash loop cleared · healthy in 14s · 1 of 2 hourly restarts used

  4. 04

    erwin_disk_cleanup()Tier 0

    pruned dangling images + build cache · disk 94% → 58%

  5. 05

    erwin_backup_test()Restorable ✓

    restored in a network-disabled DockerSandbox · 42/42 tables · checksums match

  6. 06

    erwin_migrate_rehearse()MEDIUM

    CREATE INDEX on orders without CONCURRENTLY → Rewrite with CONCURRENTLY

  7. 07

    erwin_migrate_rehearse()LOW

    rewritten with CONCURRENTLY · lock_timeout=5s held · no destructive DDL

  8. 08

    erwin_migrate_apply()Tier 1

    kernel paused the job → awaiting_human · approval card sent to Telegram

  9. 09

    Approved via TelegramApproved

    a human tapped Approve · migration applied in 2.4s · audit #4182

8 tool calls1 human approval0 shell commands

Security & governed execution

12 typed verbs. Nothing else runs.

erwind doesn't take commands — it takes verbs. Each one is strictly typed, argument-checked and pinned to an autonomy tier. If it isn't on this list, Erwin can't do it, no matter who or what is asking.

  • Read-onlyNo side effects.
  • Tier 0 · AutoRuns on its own.
  • Tier 1 · ApprovalWaits for a signed human approval.

Observe

4 verbs
  • inspect.stateRead-only

    Snapshot containers, image digests, open ports, SSL expiry and disk.

  • inspect.diffRead-only

    Diff any two snapshots — the engine behind /whatchanged.

  • logs.tailRead-only

    Tail container logs, scrubbed of secrets on the server.

  • health.checkRead-only

    Probe health URLs, restart loops and Postgres connections.

Database

4 verbs
  • db.snapshotTier 0 · Auto

    pg_dump -Fc, age-encrypted client-side, shipped to your S3.

  • db.restore_testTier 0 · Auto

    Restore into a network-disabled sandbox; verify rows and checksums.

  • db.rehearse_migrationTier 0 · Auto

    Run a migration on a disposable clone; flag destructive DDL.

  • db.apply_migrationTier 1 · Approval

    Apply to production — only with a verified snapshot under 1h old.

Operate

4 verbs
  • service.restartTier 0 · Auto

    Restart a crash-looping container. Rate-limited to 2 per hour.

  • deploy.rollbackTier 1 · Approval

    Roll a service back to its last known-good image digest.

  • disk.cleanupTier 0 · Auto

    Prune dangling images and build cache when a disk fills up.

  • net.hardenTier 1 · Approval

    Close unauthenticated ports and tighten firewall rules.

Tier 2 · Never allowed

  • shell.exec
  • DROP DATABASE
  • docker volume rm
  • ufw disable

Blocked at the protocol level — there is no verb for them.

Security architecture

Four guarantees, enforced in code.

Erwin assumes prompts get injected and models make mistakes. These guarantees hold anyway.

01

Outbound WebSocket only

erwind dials out from the VPS — no inbound port, and no root SSH keys stored in the cloud.

inbound ports: 0 · ssh keys in cloud: 0 · link: outbound wss

02

Argv-only subprocesses

Strictly subprocess.run([...]) against an allowlist — shell=True does not exist in the codebase.

subprocess.run(["docker", "restart", "n8n"]) # allowlisted argv

03

Output scrubber

API keys (sk-*, ghp_*, AKIA*), JWTs, postgres:// URLs and .env files are scrubbed on the server before they reach the kernel or the LLM.

DATABASE_URL=postgres://‹scrubbed› · GITHUB_TOKEN=ghp_‹scrubbed›

04

Append-only SQLite audit

Every read, action, API key ID and human approver is permanently recorded — DB-level triggers block UPDATE and DELETE.

UPDATE audit_log … → ABORT: audit log is append-only

Pricing

Transparent per-server pricing.

For devs, web studios and n8n agencies. Start free in your IDE, and turn on the Night Shift when you'd rather sleep. Your servers, your S3 bucket, your keys.

Free

$0/ mo

1 server

Ideal for Claude Code & Cursor users.

  • 1 server
  • Read-only verbs: audit, whatchanged, logs, backup test
  • Via the CLI and erwin mcp
Join Beta Waitlist

Pro

$9/ server / mo

per connected server

The full Night Shift on every server you connect.

  • All 12 typed verbs
  • Telegram Night Shift autopilot
  • Nightly encrypted S3 backups with sandbox restore tests
  • 30-day audit retention
Join Beta Waitlist
Built for agencies

Agency

$99/ mo

includes 15 servers, then $6 / server

Resell managed maintenance at $50–⁠$100 per client.

  • Everything in Pro
  • Multi-client fleet view
  • Posture scoring with erwin audit
  • CSV / JSON audit export
Join Beta Waitlist
Limited

Founding Pilot

$49/ mo

up to 10 servers for 6 months

Full Agency features, with our engineers onboarding your fleet.

  • Full Agency features
  • Direct engineering onboarding
  • Custom policy.yaml setup for your existing Coolify, Dokploy or Docker Compose fleet
Apply for Founding Pilot
Early access

Get Erwin on your servers first.

v0.1 onboards a few fleets at a time. Tell us what you run, and we'll reach out when there's a slot for your servers.

  • Beta waitlist

    Free & Pro

    Early access to Erwin v0.1 as new server slots open.

    • Read-only verbs in Claude Code & Cursor via erwin mcp
    • The Telegram Night Shift when your slot opens
  • Founding Pilot

    Limited$49 / mo

    Full Agency features on up to 10 servers for 6 months.

    • Our engineers onboard your fleet directly
    • Custom policy.yaml for your Coolify, Dokploy or Docker Compose setup
Applying for
How many servers do you manage?
What do you pay today for hosting & ops?
Primary stack (optional, pick any)