
I Built a Self-Healing Production Server Using Claude Code — No API Key, No Extra Cost
How a restaurant operator in México built an autonomous AI agent that reads logs, fixes bugs, restarts services, and reports back — all from a Telegram message, using a $100/month plan. The Problem I run six production services on a Windows Server 2022 VM in GCP. A WhatsApp bot, a REST API, a CFO fiscal agent, a Telegram dispatcher, a portfolio site, and a monitor. When something breaks at 2 AM, I either wake up to fix it or it stays broken until morning. I wanted autonomous self-correction. Every solution I found required either: An expensive enterprise platform (Salesforce Agentforce, PagerDuty + AI add-ons) A complex LangChain/CrewAI setup with its own API key billing Or it was a demo that didn't survive contact with production I already had Claude Code on the Max plan ($100/month). I was using it as my daily coding copilot. Then I realized: claude -p runs Claude non-interactively. It accepts a system prompt. It connects to MCP servers. And it uses my existing session — no API key,
Continue reading on Dev.to DevOps
Opens in a new tab




