logoalt Hacker News

Show HN: Opsh – A terminal AI assistant for Linux servers over SSH

17 points • by 6bR35 • today at 5:20 PM • 10 comments • view on HN

Comments

iilok • today at 8:04 PM

Interesting! I looked for a way to solve a similar issue: having runbooks written and executed with the assistance of an LLM, for tasks where I don't want to give the LLM the capability to do it autonomously (like SSH access to a server). I remember Atuin tried to solve that with Atuin desktop (https://atuin.sh/#desktop-section), but I think they archived the repository; not sure why. I wanted a TUI approach and I found upmd (https://github.com/rezigned/upmd), which was pretty good for that. I ended up rewriting my version purely to get exactly what I wanted (mostly bash-only commands and blocks that refresh without having to leave the runbook). I have to check how your solution compares to those. Thanks for sharing!

zackify • today at 6:46 PM

Not sure what this gives over claude, codex, pi, agy, with one small agents.md mentioning "when i say do something on X, use ssh test@machine and do it there" combined with herdr, paseo, t3, etc.

6bR35 • today at 5:20 PM

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

➕ show 2 replies
altern8 • today at 6:21 PM

Am I the only one with AI fatigue..?