Home
cd ../playbooks
Developer ToolsAdvanced

DevOps Server Manager

Manage servers, Docker containers, VMs, and network infrastructure through Claude Code via SSH. Keep your entire infrastructure documented in markdown files.

15 minutes
By communitySource
#devops#servers#docker#ssh#infrastructure#homelab#proxmox#networking

You have 25 servers, a Proxmox cluster, Docker everywhere, and your 'documentation' is a mix of bash history and mental notes. When something breaks at 3 AM, you're SSHing into boxes trying to remember which container runs where.

Who it's for: homelab enthusiasts managing multiple servers, sysadmins tired of undocumented infrastructure, DevOps engineers wanting conversational server management, small teams without dedicated ops staff, anyone running Docker/Proxmox/VM infrastructure

Example

"SSH into the media server and check why Plex isn't responding" → Claude connects via SSH, diagnoses the Docker container is OOM-killed, restarts it with higher memory limits, and updates your infrastructure markdown docs — all in one conversation

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

Or install from your terminal:
npx ccplaybooks add devops-server-manager
# Infrastructure Manager

## Goal
Manage and maintain server infrastructure via SSH. Document all configurations, changes, and procedures in markdown files.

## Server Inventory
Maintain a `servers/` directory with one markdown file per server:
- `servers/{hostname}.md` — OS, IP, services, access details, notes
- `servers/network-topology.md` — Network diagram and routing info
- `docker/` — Docker compose files and container documentation
- `templates/` — VM templates and provisioning scripts
- `runbooks/` — Step-by-step procedures for common operations

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

This playbook turns Claude Code into a DevOps assistant that can SSH into your servers, manage Docker containers, spin up VMs, debug network misconfigurations, and maintain your entire infrastructure as markdown documentation. Inspired by users managing 25+ servers entirely through Claude Code and .md files.

Prerequisites

  • Claude Code installed and configured
  • SSH key-based access to your servers (password auth works but keys are recommended)
  • A dedicated project folder with no source code or CLAUDE.md files (this helps avoid SSH refusal issues)

Step-by-Step Setup

Step 1: Create a dedicated infrastructure folder

mkdir ~/infrastructure
cd ~/infrastructure

Important: Keep this folder free of source code projects and existing CLAUDE.md files. A clean folder with only .md files helps Claude Code work with SSH without refusal issues.

Step 2: Create the folder structure

mkdir -p servers docker templates runbooks

Step 3: Document your first server

Create servers/my-server.md with your server's details:

# my-server

- **OS**: Ubuntu 24.04
- **IP**: 192.168.1.100
- **Role**: Docker host
- **Services**: Docker, Traefik, Portainer
- **Access**: ssh admin@192.168.1.100

Step 4: Save the CLAUDE.md template

Copy the template above into CLAUDE.md in the infrastructure folder.

Step 5: Launch Claude Code

cd ~/infrastructure
claude

Then try: "SSH into my-server and check what Docker containers are running"

Example Usage

Check all services across servers:

"Connect to each server in my inventory and report which services are running and their status"

Set up a new Docker service:

"Set up a Traefik reverse proxy on my-server using Docker Compose, then document the setup"

Spin up a VM on Proxmox:

"SSH into my Proxmox server and create a new Ubuntu VM from the base template, then document it in the servers folder"

Debug a networking issue:

"The web app on server-2 can't reach the database on server-1. SSH into both and help me figure out why"

Run a security audit:

"SSH into my-server and check for open ports, outdated packages, and any security concerns. Write findings to runbooks/security-audit.md"

Tips

  • Start with documentation: Before having Claude manage anything, document your existing infrastructure in .md files. Claude works much better with context.
  • Use Proxmox templates: If using Proxmox, maintain VM templates with QEMU guest agent or cloud-init pre-installed so Claude can access VMs after creation.
  • Dangerous mode: Some users report needing to enable dangerous mode in settings for SSH to work consistently. The setting just enables the option — you still have to explicitly enter the mode.
  • No MCP needed: Claude Code can SSH directly via bash — no MCP server required for basic server management.
  • Incremental trust: Start with read-only commands (status checks, log reading) before moving to write operations (service restarts, config changes).

Troubleshooting

Problem: Claude refuses to SSH, saying it's "unsafe" or "cannot assist"

Solution: Make sure your project folder contains only .md files — no source code, no existing CLAUDE.md with coding instructions. Start a fresh project dedicated to infrastructure management.

Problem: SSH connection times out

Solution: Verify you can SSH manually first. Ensure your SSH keys are in ~/.ssh/ and the server is reachable. Claude uses the same SSH config as your terminal.

Problem: Claude loses context about server configurations

Solution: Always point Claude to the relevant server .md file before giving commands. The documentation acts as persistent memory across sessions.

$Related Playbooks

Developer Tools

Embedding Strategies for RAG

Choose and optimize embedding models for semantic search and RAG — a model comparison table, the query/document prefixes that make-or-break BGE and E5, Matryoshka dimension reduction, four chunking strategies, and a retrieval-quality evaluation harness (precision@k, recall@k, MRR, nDCG@k) so you measure an embedding change instead of guessing at it.

10 minutes
Intermediate
Developer Tools

ETL Pipeline Builder

Design and automate Extract, Transform, Load data pipelines for data integration and analytics

10 minutes
Advanced
Developer Tools

Error Message Explainer — Decode Any Error in Plain English

Paste any error message and get a plain-English explanation, root cause diagnosis, and step-by-step fix. Works with Python, JavaScript, Docker, Git, and any CLI error.

5 minutes
Beginner
Developer Tools

Event Store Design

Design and implement an event store for an event-sourced system — the append-only, per-stream-ordered, globally-positioned model; a technology comparison (EventStoreDB, PostgreSQL, Kafka, DynamoDB, Marten); a complete PostgreSQL schema with the UNIQUE(stream_id, version) constraint that enforces optimistic concurrency; and the snapshot, subscription, and idempotency patterns that keep it correct.

15 minutes
Advanced
Developer Tools

Building Animations in Expo and React Native

A construction discipline for React Native motion: a frequency gate that produces zero lines of code when nothing should animate, a cheapest-tool-that-fits selection table, spring/easing values instead of guesses, and the JS-thread rules that separate 60fps from 20fps on a real device.

10 minutes
Advanced
Developer Tools

7-Phase Feature Development Workflow

Structured feature development that explores the codebase, asks every clarifying question up front, presents multiple architecture options with a recommendation, and runs a three-angle quality review before calling it done.

5 minutes
Intermediate
Developer Tools

Explanatory Coding Mode

Get educational insights about implementation choices and codebase patterns as Claude works — formatted, codebase-specific commentary woven into the session, not a generic tutorial.

2 minutes
Beginner
Developer Tools

Firecrawl Developer Research: Code, Issues & PRs

Investigate library and API bugs, behavior, and version discrepancies using public repository code, issues, and pull requests when the docs aren't enough

10 minutes
Intermediate
Developer Tools

Firecrawl Docs Reader: Answers From Official Documentation

Answer library, SDK, and API questions from current official docs, with version-matched code and citations instead of remembered guesses

10 minutes
Beginner
Developer Tools

Frontend UX Pattern Library

Concrete, research-backed patterns for SaaS dashboards, landing pages, and forms — plus accessibility requirements, Tailwind implementation gotchas, and a pre-delivery checklist that treats accessibility as a launch blocker, not a nice-to-have.

5 minutes
Intermediate
Developer Tools

AI Crawler Access Audit: Who Can Actually Read Your Site

Maps 14 AI crawlers against your robots.txt, meta tags, and HTTP headers, then returns an access score and the exact rules to change

10 minutes
Intermediate
Developer Tools

Full-Output Enforcement: No Placeholders, No Stubs

A short rule set that bans TODO comments, skeleton code, and 'rest follows the same pattern' shortcuts so Claude always delivers complete, runnable output

2 minutes
Beginner

Browse all Developer Tools playbooks →