v0.8.0 — Zero dependency AI terminal

Your terminal,
supercharged with AI

OpsTerm is a local AI terminal assistant that works anywhere — any server, any AI provider, zero complex setup. SSH, chat, automate — all from a single 50KB file.

~/opsterm — zsh
# Ask AI for any command
$ opsterm how to find large log files
$ find /var/log -type f -size +100M -exec ls -lh {} \;

# SSH by name — no IPs to remember
$ opsterm ssh vps-utama
🔑 Connecting to vps-utama (198.51.100.5)
ubuntu@vps-utama:~$


# Pipe output for AI analysis
$ docker ps | opsterm "any errors?"
✓ All 3 containers healthy. No errors detected.

# AI REPL during SSH connection
$ opsterm connect vps-utama
🔮 Connected to vps-utama (root@192.0.2.10)
opsterm❯ ada berapa container?
🔍 Running `docker ps -a`...
✅ Found 5 containers: 3 redis, 2 nginx
opsterm❯ !systemctl status nginx
🔌 Executing on server...
● nginx.service — A high performance web server
Active: active (running)
opsterm❯ exit
👋 Disconnected.
Features

Everything a sysadmin needs

From quick AI queries to complex multi-hop SSH workflows — all from your terminal, with any AI provider you choose.

AI Chat

Ask anything — commands, explanations, scripts. Works with any OpenAI-compatible provider including DeepSeek, Ollama, and OpenRouter.

Smart SSH

SSH by server name, not IP. Fuzzy matching, multi-hop via --via, YAML config. Import from ~/.ssh/config automatically.

SSH Connect

AI REPL during active SSH. Ask questions, run !commands on server. No install needed — opsterm connect or Ctrl+B escape.

Workflows

Multi-step YAML automation: SSH to SCP to local commands. Deploy apps, run diagnostics with one command.

Pipe Mode

cmd | opsterm "analyze" — pipe command output for AI analysis. Detect errors, get insights, explain complex output.

SCP Transfer

Upload/download files by server name: opsterm scp file.txt server:/path. No more scp syntax headaches.

RTK AI

Auto-compress command output 60-95% before AI processing. Save tokens, get faster responses. Zero config if installed.

Tab Completion

Bash + Zsh auto-complete for servers, workflows, and subcommands. Type less, do more.

Secure by Default

AES-128 + PBKDF2 encrypted credential store. Your API keys never leave your machine.

History

SQLite-backed history with search. Revisit, explain, or re-run past commands.

Provider Freedom

Choose any AI provider — OpenAI, DeepSeek, Ollama, OpenRouter, or custom.

Multi-hop SSH

Jump through bastion hosts: opsterm ssh internal --via bastion. ProxyJump built-in.

Get Started

Install in 10 seconds

A single curl command. No pip, no npm, no package managers. Just one 50KB file that runs anywhere Python 3 does.

One-line install — works on Linux & macOS

# Download latest release — zero deps, ~50KB
$ curl -L https://raw.githubusercontent.com/edsuwarna/opsterm/main/LATEST -o /tmp/opsterm_latest
$ export OPSTERM_VER=$(cat /tmp/opsterm_latest)
$ curl -L "https://raw.githubusercontent.com/edsuwarna/opsterm/${OPSTERM_VER}/bin/opsterm" -o ~/.local/bin/opsterm
$ chmod +x ~/.local/bin/opsterm
$ opsterm provider add default --api-key 'sk-...'
No sudo required. Make sure ~/.local/bin is in your PATH.
Under the Hood

Built for the real world

OpsTerm is designed for DevOps engineers who need a tool that just works — anywhere, with anything.

Single Python file — zero dependencies
Config at ~/.opsterm/
Any OpenAI-compatible provider
Multi-hop SSH via ProxyJump
Shell operators in local commands
RTK AI — 60-95% token compression
AES-128 + PBKDF2 encrypted storage
Self-update: opsterm update
Config validate: opsterm config validate
Resources

Documentation

Everything you need to master OpsTerm — from quick start to advanced configuration.

Ready to supercharge your terminal?

One command, zero dependencies, any AI provider. Start using OpsTerm in 10 seconds.