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.
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.
simtel20•1h ago
In a lot of cases ansible is a very slow ssh cannon. Having a tool write adhoc commands and have a way to evaluate the results seems like a reasonable step to experiment to improve on ansible and other second generation configuration management systems.
ninth_ant•40m ago
These aren’t mutually exclusive.
Once you’ve got ansible (or similar) setup you just tell your agent too ssh to a host and perform tasks and it will. It will be able to use what it already knows about your systems from ansible, so it’s completely painless.
There is little value in this tool unless you plan to only do bespoke maintenance on individual hosts occasionally. Just invest a bit of time and do it right, it pays off very quickly.
rovr138•1h ago
And to keep track of what's the actual setup. For example, in case one needs to rebuild or anything else.
6bR35•1h ago
Fair, and for a known, repeatable job you're right. That's what Ansible is for.
Where opsh is aimed is the step before that. Tou don't know yet what's broken or which hosts are affected. Why did this service die, what changed since last week. Writing a playbook up front assumes you already know the desired state and the steps, and a lot of ops work is finding that out.
qeternity•16m ago
Why does this comment reek of AI?
The "You" -> "Tou" typo seems almost too obvious, and the sort of thing that every autocorrect would catch.
altern8•1h ago
Am I the only one with AI fatigue..?
zackify•1h ago
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•2h ago
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
halsafar•1h ago
simtel20•1h ago
ninth_ant•40m ago
Once you’ve got ansible (or similar) setup you just tell your agent too ssh to a host and perform tasks and it will. It will be able to use what it already knows about your systems from ansible, so it’s completely painless.
There is little value in this tool unless you plan to only do bespoke maintenance on individual hosts occasionally. Just invest a bit of time and do it right, it pays off very quickly.
rovr138•1h ago
6bR35•1h ago
qeternity•16m ago
The "You" -> "Tou" typo seems almost too obvious, and the sort of thing that every autocorrect would catch.