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
ERWIN AI v0.1ON-CALL SRE & DATABASE SAFETY NET
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 mcpInstalls the CLI and registers erwin mcp with Claude Code
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
pg_dump -Fc encrypted client-side with age public keys, straight to your own S3 bucket (Hetzner, Backblaze, R2) — plus an n8n workflow export.
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.
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.
Erwinbot
Telegram · Night Shift
Backup restorable ✓
prod-1 · shop_prod · restored in 38s · 42/42 tables verified
s3://acme-backups · age-encrypted · n8n: 37 workflows
inspect.state · inspect.diff
The lightweight erwind daemon snapshots each server every 5 minutes and on every Docker event.
Image digests, compose hashes, env var names with HMAC-SHA256 fingerprints (never raw values), open ports, SSL expiry and disk trends.
Run /whatchanged 24h in Telegram, the CLI or Claude Code and instantly see what changed before an incident started.
$ erwin whatchanged prod-1 24h
~imagen8nio/n8n
sha256:9f2c…e1 → sha256:41ab…7d
~composedocker-compose.yml
hash 7e1d4a → c09a2f
+envN8N_RUNNERS_ENABLED
hmac-sha256:5b3e…a9 · raw value never stored
+port5678/tcp on 0.0.0.0
n8n editor exposed without auth
~disk/var/lib/docker
71% → 94% · forecast full in ~9h
✓sslapp.acme.io
certificate expires in 61 days
health.check → service.restart · disk.cleanup · db.apply_migration
Monitors are plain code, not prompts — a healthy fleet burns zero LLM tokens. When something breaks, the tier decides what Erwin may do about it.
Restart crash-looping containers (rate-limited to 2/hr), prune dangling Docker cache on full disks, run restore tests.
Migrations, network hardening (net.harden) and config changes pause at an HMAC-signed [Approve] / [Reject] card in Telegram or the web console.
shell.exec, DROP DATABASE, deleting volumes or disabling firewalls — blocked at the protocol level.
health.checkalert
n8n restart loop · 4× in 10 min
service.restartTier 0 · auto
n8n healthy in 14s · 1/2 restarts this hour
disk.cleanupTier 0 · auto
/var/lib/docker 94% → 58%
db.apply_migrationTier 1 · paused
0042_orders_index.sql
Erwinbot
Telegram · Night Shift
Approval needed · Tier 1
db.apply_migration on prod-1 / shop_prod
Try it — this card is a demo. Agents can't press these buttons; only people can.
Manage your servers straight from the IDE — without ever giving the LLM access to bash.
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.
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.
Tier 0 runs, Tier 1 waits for a person to approve, and Tier 2 can't be expressed at all.
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.
> prod-1 has been flaky since last night's deploy. Find out why and fix it.
erwin_health("prod-1")read
degraded · n8n restarted 4× in 10 min · disk 94% full
erwin_whatchanged("24h")read
03:12 n8nio/n8n digest changed · compose hash changed · /var/lib/docker +23%
erwin_restart("n8n")Tier 0
crash loop cleared · healthy in 14s · 1 of 2 hourly restarts used
erwin_disk_cleanup()Tier 0
pruned dangling images + build cache · disk 94% → 58%
erwin_backup_test()Restorable ✓
restored in a network-disabled DockerSandbox · 42/42 tables · checksums match
erwin_migrate_rehearse()MEDIUM
CREATE INDEX on orders without CONCURRENTLY → Rewrite with CONCURRENTLY
erwin_migrate_rehearse()LOW
rewritten with CONCURRENTLY · lock_timeout=5s held · no destructive DDL
erwin_migrate_apply()Tier 1
kernel paused the job → awaiting_human · approval card sent to Telegram
Approved via TelegramApproved
a human tapped Approve · migration applied in 2.4s · audit #4182
8 tool calls1 human approval0 shell commands
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.
inspect.stateRead-onlySnapshot containers, image digests, open ports, SSL expiry and disk.
inspect.diffRead-onlyDiff any two snapshots — the engine behind /whatchanged.
logs.tailRead-onlyTail container logs, scrubbed of secrets on the server.
health.checkRead-onlyProbe health URLs, restart loops and Postgres connections.
db.snapshotTier 0 · Autopg_dump -Fc, age-encrypted client-side, shipped to your S3.
db.restore_testTier 0 · AutoRestore into a network-disabled sandbox; verify rows and checksums.
db.rehearse_migrationTier 0 · AutoRun a migration on a disposable clone; flag destructive DDL.
db.apply_migrationTier 1 · ApprovalApply to production — only with a verified snapshot under 1h old.
service.restartTier 0 · AutoRestart a crash-looping container. Rate-limited to 2 per hour.
deploy.rollbackTier 1 · ApprovalRoll a service back to its last known-good image digest.
disk.cleanupTier 0 · AutoPrune dangling images and build cache when a disk fills up.
net.hardenTier 1 · ApprovalClose unauthenticated ports and tighten firewall rules.
Tier 2 · Never allowed
shell.execDROP DATABASEdocker volume rmufw disableBlocked at the protocol level — there is no verb for them.
Erwin assumes prompts get injected and models make mistakes. These guarantees hold anyway.
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
Strictly subprocess.run([...]) against an allowlist — shell=True does not exist in the codebase.
subprocess.run(["docker", "restart", "n8n"]) # allowlisted argv
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›
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
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.
$0/ mo
1 server
Ideal for Claude Code & Cursor users.
audit, whatchanged, logs, backup testerwin mcp$9/ server / mo
per connected server
The full Night Shift on every server you connect.
$99/ mo
includes 15 servers, then $6 / server
Resell managed maintenance at $50–$100 per client.
erwin audit$49/ mo
up to 10 servers for 6 months
Full Agency features, with our engineers onboarding your fleet.
policy.yaml setup for your existing Coolify, Dokploy or Docker Compose fleetv0.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.
Early access to Erwin v0.1 as new server slots open.
erwin mcpFull Agency features on up to 10 servers for 6 months.
policy.yaml for your Coolify, Dokploy or Docker Compose setup