Claude Code Instructions & Infrastructure Management
Claude Code Instructions & Infrastructure Management
Section titled “Claude Code Instructions & Infrastructure Management”⚠️ IMPORTANT: This document contains SSH access info and server management commands for Claude Code assistance.
🔑 Server Access
Section titled “🔑 Server Access”Proxmox Server (neve)
Section titled “Proxmox Server (neve)”# SSH Accessssh root@54.39.102.214
# Add SSH key to agent (if needed)ssh-add ~/.ssh/id_ed25519# Passphrase: [Stored as GitHub secret SSH_KEY_PASSPHRASE]
# Test connectivity./scripts/test-proxmox-ssh.sh
Web Interfaces
Section titled “Web Interfaces”- Proxmox Console: https://54.39.102.214:8006
- Zitadel Auth: https://auth.wenzelarifiandi.com/ui/console
🛠️ Common Management Tasks
Section titled “🛠️ Common Management Tasks”Server Health Checks
Section titled “Server Health Checks”# System overviewssh root@54.39.102.214 "hostname && uptime && free -h"
# Proxmox statusssh root@54.39.102.214 "pvesh get /nodes && systemctl status pve-cluster"
# Storage statusssh root@54.39.102.214 "df -h && zpool list"
VM/Container Management
Section titled “VM/Container Management”# List VMs and containersssh root@54.39.102.214 "pvesh get /nodes/neve/qemu && pvesh get /nodes/neve/lxc"
# Storage poolsssh root@54.39.102.214 "pvesh get /storage"
Network & Connectivity
Section titled “Network & Connectivity”# Network interfacesssh root@54.39.102.214 "ip addr show && ip route"
# Test external connectivityssh root@54.39.102.214 "ping -c 2 google.com"
📋 Claude Code Workflows
Section titled “📋 Claude Code Workflows”When I Ask About Infrastructure
Section titled “When I Ask About Infrastructure”- Check server status - Always verify the server is responsive
- Review current setup - Use health check commands above
- Document changes - Update this file and ops/ docs as needed
When I Want to Deploy Something
Section titled “When I Want to Deploy Something”- SSH into server - Use the access commands above
- Check resources - Verify CPU/RAM/disk availability
- Plan deployment - Consider VM vs container vs bare metal
- Document setup - Add new services to infrastructure docs
When There Are Issues
Section titled “When There Are Issues”- Gather logs - System logs, Proxmox logs, service-specific logs
- Check resources - CPU, memory, disk, network
- Test connectivity - Internal and external network
- Review recent changes - Git history, system changes
🔧 Infrastructure Scripts
Section titled “🔧 Infrastructure Scripts”Available Scripts
Section titled “Available Scripts”./scripts/test-proxmox-ssh.sh
- Test SSH connectivity to Proxmox./scripts/zitadel-remote-session.sh
- Zitadel management (existing)./scripts/prepare-ssh-key.sh
- SSH key preparation (existing)
Script Patterns for Claude
Section titled “Script Patterns for Claude”# Always use error handlingset -euo pipefail
# Always show what you're doingecho "🔍 Checking server status..."
# Always verify before actingif ! ssh root@54.39.102.214 "test -f /etc/proxmox-ve/config"; then echo "❌ Not a Proxmox server!" exit 1fi
🏗️ Infrastructure Architecture
Section titled “🏗️ Infrastructure Architecture”Current Setup
Section titled “Current Setup”- Host OS: Proxmox VE 9.0.10 (Debian 13 base)
- Hardware: Bare metal OVH server
- Storage: ZFS on RAID1 NVMe drives
- Network: Public IPv4 + IPv6 with bridge for VMs
Planned Deployments
Section titled “Planned Deployments”- Zitadel instance (containerized)
- Development environment VMs
- CI/CD runners
- Monitoring stack
Resource Allocation
Section titled “Resource Allocation”- Available: 8 cores, 60GB RAM, 384GB storage
- Reserved: System overhead (~2-4GB RAM)
- VM Planning: Consider 1-2 GB RAM overhead per VM
📝 Notes for Claude
Section titled “📝 Notes for Claude”Server Characteristics
Section titled “Server Characteristics”- Performance: High-end Xeon, very fast NVMe storage
- Reliability: Enterprise hardware, RAID1 redundancy
- Network: Excellent connectivity (1.1ms to Google)
- Uptime: Fresh install, expect high availability
Best Practices
Section titled “Best Practices”- Always backup before major changes
- Use Proxmox built-in backup features
- Monitor resource usage before deployments
- Keep ZFS pool under 80% capacity
- Document all VM/container configurations
SSH Behavior
Section titled “SSH Behavior”- Uses passphrase-protected key
- Key must be added to ssh-agent
- Connection is stable and fast
- Server responds immediately
Last updated: September 19, 2025 Server: neve (54.39.102.214) Proxmox VE: 9.0.10