Guide · Members only Automation
Automating servers with AI without breaking production: our method
Set up an AI agent to manage your servers over SSH: what to delegate, Claude Code permissions, a hook that blocks destructive commands, and rollback.
Tested on October 16, 2026 in Claude Code 2.1.283 · Windows Server 2022 + production Linux servers (daily use). We tested the hook with 27 sample commands, feeding it the input by hand with Node. Claude Code's sandbox doesn't exist on native Windows, so we haven't used it. How we test
You can let an AI agent manage production servers, and we do it every day, but only under one non-negotiable rule: looking is free, changing needs a sign-off. The agent connects over SSH with an alias and its own key, checks whatever it wants, and any change goes through human approval, a backup, and a verification step with a way back. Anything destructive gets stopped by a hook before it reaches the server.
Here's which tasks we delegate and which we don't, the step-by-step setup with Claude Code (SSH alias, permissions, a working hook, skills with backup and rollback), how we protect ourselves from instructions hidden in logs and web pages, two real mistakes, and a checklist to review your own setup.
What the full version includes
- The four levels of what we delegate to AI on our servers and what we do not, with real examples
- The flow of a production change: approval, backup, check and rollback
- The step-by-step setup: SSH aliases, Claude Code permissions and a tested hook that blocks destructive commands
- Skills with backup and rollback, and how to protect yourself from instructions hidden in logs and web pages
- Two real mistakes and a checklist to review your setup
The full version is for members
Articles with our own method, the real configuration and the full code are for readers who support the blog with a membership: €4.99 every 3 months. Everything else stays open to everyone, and so does the AI news board.
You are signed in, but your account has no active membership.
Already a member? Sign in