logoalt Hacker News

6bR35 • today at 5:20 PM • 2 replies • view on HN

Author here.

opsh is a terminal UI for operating Linux servers over SSH, with an LLM in the loop. We built opsh at work to manage our Proxmox VMs and containers, and decided to open-source it (MIT). I spent the last three weeks cleaning it up and writing docs so it's actually usable outside our internal setup.

What it does:

- Runs commands on one host or many, with per-host output and timeouts.

- Two modes: Plan and Build.

- Create repeatable procedures as runbooks.

- It reads a command before running it. If it can't prove the command is safe, it asks first.

- Classifies every command before it runs. Read-only commands auto-run only when opsh can prove they're read-only; modifying and destructive ones ask, and plan mode blocks them entirely.

- Works with Anthropic, OpenAI, Gemini, and OpenAI-compatible or local endpoints.

You can find the source code here: https://github.com/opsh-dev/opsh


Replies

halsafar • today at 6:45 PM

Wouldn't it be cheaper to use AI to just build Ansible playbooks? Instead of burning tokens on every use burn them up front to make re-usable things that don't need AI in the loop.

➕ show 4 replies
bitweisor • today at 7:30 PM

[dead]