r/coolgithubprojects • • 16m ago

Opsh – A terminal AI assistant for Linux servers over SSH

Post image

Hi all.

opsh (Operator Shell) is a terminal UI for managing Linux servers over SSH with an LLM in the loop and strict safety guardrails.

We built it at work because we were doing repetitive tasks across our Proxmox VMs and containers. At the beginning we were pretty skeptical about letting an LLM anywhere near SSH, so we initially tested it strictly on non-critical hosts as a "read-only" inspection tool. It worked well enough without getting in our way that I spent the last three weeks polishing the codebase, writing docs, and releasing it as open source under the MIT license.

To keep control over what the model is allowed to do, opsh works in two modes:

  • Plan mode (read-only): Lets the LLM inspect hosts, check logs, and put together a plan while blocking all modifying or destructive commands completely.
  • Build mode (interactive): Allows the model to make changes and interact with servers if you want it to, with human approval gates in front of every modifying or destructive command.

Main features:

  • Host scoping: You explicitly select the target hosts or groups for each session.
  • Risk classification and approval: Commands are classified before execution. Read-only commands auto-run only when opsh can prove they are read-only. In Build mode, modifying or destructive commands require explicit approval, while Plan mode blocks them entirely.
  • Repeatable runbooks: Save reviewed multi-host procedures as runbooks with variables and per-step host subsets, all passing through the same safety checks.
  • Multi-provider and local model support: Works with Anthropic, OpenAI, Gemini, and OpenAI-compatible endpoints (including local models).
  • Single-binary or npm install: Installs as a standalone binary, or via npm.

Feedback and bug reports are welcome.

1 Upvotes

0 comments sorted by