Servers are back.
And not a moment too soon. Claude Code as server admin flips the script on PaaS fatigue—those Heroku bills creeping up like kudzu on a forgotten fence. You describe tweaks in English; it SSHes in, executes. Boom: operational dread vanishes, costs plummet. I dug into this one’s migration story, and damn, it’s a blueprint for anyone tired of vendor lock-in.
Picture this: Node.js apps, APIs, Telegram bots humming on TypeScript. Heroku dynos, Postgres add-ons, workers—hundreds yearly for what? A single beefy box could handle it. Enter Hetzner AX41-NVMe (Ryzen 5, dual 512GB NVMe, 64GB RAM) plus Dokku. Total monthly? Under $50. That’s $1,463 saved, per the original tale.
But why now? AI coding tools like Claude Code don’t just write code—they admin servers. Plain English prompts trigger SSH sessions, command runs. No Ansible nightmares, no iptables roulette. The architecture shift? PaaS abstracted ops for a premium; AI collapses that premium to zero.
Why Ditch Heroku for Dokku in 2024?
Heroku peaked when servers meant pain. Push code, get URL—bliss. But scale hits: dynos stack, add-ons balloon. Dokku? Open-source PaaS on your iron. Docker under hood, Heroku buildpacks intact. Procfile, package.json? Unchanged. Migrate from Render, Railway, Netlify, Vercel too—anything Dockerfile or Procfile-friendly.
Coolify, CapRover tempted. But Dokku’s CLI purity won—no web UI bloat, tiny attack surface. (Coolify’s panel? Lock it down or regret.) Unix way: one tool, perfectly.
Here’s the confession that hooked me:
Every command you see in this article, every dokku call, every gh api invocation, every ssh session, I did not type any of them. Not most of them. None of them. The entire migration was done through Claude Code running in my terminal.
Claude Code as server admin—game over for typing drudgery.
How Does Claude Code Actually SSH and Deploy?
Workflow’s elegant, almost sneaky. Private GitHub repo: “hetzner-server”. Claude reads README as “infrastructure as docs”—apps, domains, env vars, webhooks all there. New app? “Deploy this repo.” It SSHes, dokku app:create, gh for webhook/deploy key, Let’s Encrypt, docs update. One chat.
Hetzner order. Rescue mode SSH. Install Ubuntu 24.04 via installimage, RAID 1. Dokku bootstrap:
wget -NP . https://dokku.com/bootstrap.sh sudo bash bootstrap.sh
SSH key add. Twenty minutes, start to Dokku-ready. Subdomains via sslip.io for tests (95.217.148.47.sslip.io resolves to IP). Production? Cloudflare domain—API tokens, but SSH suffices.
No server-side API needed. Dokku + gh CLI = command-line heaven. Claude glues it.
And here’s my unique angle: this echoes Linux’s 90s rise. Back then, free Unix clones killed proprietary Unix workstations—cost crash via open source. Now, AI agents like Claude kill PaaS premiums. Prediction? By 2026, 40% of indie devs self-host via AI admins. Corporate PR spins “cloud-native forever”; reality? Hardware’s cheap, AI’s the ops whisperer.
Skeptical? Fair. SSH automation risks: bad prompt, wiped server. But repo-as-docs adds guardrails—context persists. Hetzner’s rescue mode? Lifeline. I’ve tested similar; Claude’s reliable on rote ops, shines on configs.
Migration blueprint, step-by-step (Claude’d, naturally):
- Order Hetzner, SSH rescue, install Ubuntu/RAID.
- Bootstrap Dokku, add SSH key.
- Git push deploys—webhook auto.
- Domains via Cloudflare, Let’s Encrypt.
Scale? AX41 eats multiple apps. Postgres? Dokku plugin. Workers? Procfile.
Costs: Hetzner ~$45/mo. Heroku? $1,500+ for equivalent. Math doesn’t lie.
But wait—PaaS perks? Global scale, SLAs. Trade-off: for indie/side projects, nah. Your Telegram bot needs 99.9%? Hetzner + UPS + Claude monitoring does it cheaper.
Can AI Server Admins Scale to Enterprise?
Short answer: not yet. Indies win big; corps crave audits, compliance. Still, architectural hint: SSH + AI = composable ops. No vendor middleman.
Coolify fans, rejoice—web UI if CLI scares. But Dokku’s leaner.
Open Source Beat verdict: bullish blueprint. PaaS era wanes; AI-selfhost rises. Try it—$50/mo freedom awaits.
🧬 Related Insights
- Read more: Inside Agentic AI: How Systems Think, Plan, and Execute Beyond Simple Q&A
- Read more: GitLab Slashes AI Code Review Costs to $0.25—Engineers’ Queues Beware
Frequently Asked Questions
How much can I save migrating from Heroku to Dokku with Claude Code?
Up to $1,463 monthly, swapping multi-dyno setups for one Hetzner box. Exact savings vary by scale.
What is Dokku and does it work with my Heroku apps?
Dokku’s open-source Heroku clone on your server—Docker + buildpacks. Procfile/package.json lift-and-shift ready.
Is Claude Code safe for SSH server management?
Safe for documented workflows via repo context. Test small; Hetzner rescue saves mishaps.