devops

Remote server management via SSH

Go DevOps GitHub

Manage remote applications via SSH. Single codebase, two binaries. Persistent SSH connections, SQLite metadata, command audit logging. Deploy, restart, check health, tail logs.

Features

  • Single codebase -> local MCP tool + remote agent (build tags)
  • Persistent SSH connections
  • SQLite metadata and command audit logging
  • Deploy, restart, stop, health check, log tailing
  • Content filtering for log output

Install

go install github.com/hegner123/devops@latest

The Problem: Managing remote servers from an AI agent

# AI agents need to deploy code, check health, tail logs.
# Raw SSH commands are error-prone and stateless.
# No audit trail. No persistent connections.
# Every command re-authenticates.

Solution

$ devops status --server production

Output

{"server":"production","host":"10.0.1.5","apps":[{"name":"api","status":"running","pid":12345,"uptime":"3d 14h","port":8080,"health":"ok"},{"name":"worker","status":"running","pid":12346,"uptime":"3d 14h","health":"ok"}]}

Comparison

MetricValue
ArchitectureSingle codebase, two binaries
ConnectionPersistent SSH (no re-auth per command)
AuditFull command logging in SQLite