Skip to content
项目

关于

Manage AWS, Hetzner, OVH, and custom servers from one TUI — with a built-in AI assistant and MCP server

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
+1

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Servonaut

Your servers. Your terminal. Your AI agent. One TUI.

A terminal UI and CLI for AWS, Hetzner, OVHcloud and any SSH host. List every server in one place; connect, move files, run commands and follow logs; give AI agents the same tools through a built-in assistant and an MCP server, with guard levels and an audit log.

Open source (MIT). Works without an account; an optional Servonaut Cloud account adds sync, hosted AI and monitoring.

Servonaut demo: one list for AWS, OVH, Hetzner and custom servers, web-1's files beside this computer's, a command in its Console, the AI assistant answering from Servonaut's tools, and the Agent activity log

Install

Linux / macOS:

curl -fsSL https://github.com/zb-ss/servonaut/releases/latest/download/install.sh | bash

Windows (PowerShell):

irm https://github.com/zb-ss/servonaut/releases/latest/download/install.ps1 | iex

The scripts come from the latest stable release and install Servonaut from PyPI with pipx. Every release carries them with install-scripts_SHA256SUMS, so you can check a downloaded copy before you run it.

Or install it yourself:

pipx install servonaut

To run from a clone, see CONTRIBUTING.md.

Desktop app (preview)

Platform Download Notes
Linux .deb from servonaut.dev/download Linux desktop preview
macOS 13 or later Signed disk image for Apple silicon and for Intel, on the releases page macOS desktop preview

The desktop app tells you when a newer version is out. It never installs one by itself.

Release candidates

Each release is published as a candidate a few days before the stable release. pip and pipx install one only when you ask. The newest candidate, with the install script:

curl -fsSL https://github.com/zb-ss/servonaut/releases/latest/download/install.sh | bash -s -- --pre

With pipx, name a version, for example pipx install --force 'servonaut==X.Y.ZrcN'. Details, and how to go back to stable: Release candidates.

Standalone build

A standalone console-only build is not published or downloadable yet. Use pipx or pip.

Optional extras

Extra Adds
servonaut[hetzner], servonaut[ovh] The Hetzner Cloud and OVHcloud SDKs
servonaut[voice], servonaut[voice-streaming], servonaut[voice-output] Voice input (batch or live) and spoken replies, all processed on your machine. See Voice
servonaut[all] Everything above

AI log analysis needs no extra: httpx is a base dependency. Neither does the MCP server for AI agents: its SDK is a base dependency too, and servonaut[mcp] still installs as before.

Requirements

  • Python 3.10 or later.
  • An OpenSSH client (standard on Linux and macOS).
  • AWS credentials, only for EC2. The permissions each feature needs are in Configuration.

Quick start

servonaut                  # open the TUI
servonaut --version        # print the version
servonaut --config FILE    # use another config file
servonaut --demo           # redact names, IPs and labels, for screen sharing
servonaut --debug          # verbose logging to stderr

The TUI is the main interface. Every feature is reachable from the sidebar, with mouse or keyboard.

Where Key Action
Anywhere ? Help with every key for the current screen
Anywhere Ctrl+P Command palette
Anywhere F2 (or Ctrl+G) Show or hide the AI chat panel
Anywhere Esc Back
Anywhere q Quit
Fleet list / Search servers by name, IP or keyword
Fleet list r Refresh from every provider
Fleet list Enter Open the server page
Fleet list s SSH to the selected server
Fleet list b / c Files / Console for the selected server
Server page 1-8 Numbered actions (1 Files, 2 Console, 3 SSH, 6 follow a log)
Server page w Live resource monitor
Files Tab, Space, F5 / F6 Switch pane, mark, copy / move to the other pane
Files s / S Sort (name, size, modified) / reverse the order
Console Enter, Ctrl+T, Ctrl+C Run, run in a new tab, stop

Press ? on any screen for its full, current key list. Ctrl+P opens the command palette, where "Go to ..." jumps to any sidebar section.

Every major feature also has a scriptable CLI (servonaut connect, servonaut memory, servonaut ai, servonaut hetzner, servonaut secrets and more) for CI runners, cron jobs and machines without a terminal session. See the CLI reference.

Set up with an AI agent

Paste this prompt into Claude Code, Cursor or any coding assistant. It installs Servonaut, generates the config and walks you through providers, SSH, AI and the MCP server.

Copy-paste setup prompt
Install and configure Servonaut, a TUI for managing servers (AWS EC2, OVHcloud, Hetzner Cloud, and custom SSH servers).

1. Install with all optional features: `pipx install 'servonaut[all]'`
   (bundles the MCP server and the OVH and Hetzner SDKs; AI log analysis needs no extra. Use plain `pipx install servonaut` for a minimal install.)
2. Run `servonaut` once to generate ~/.servonaut/config.json
3. (Optional) If I have a Servonaut account, run `servonaut login` to unlock the hosted features: Servonaut AI, config sync, Memory Sync and proactive monitoring. Servonaut works fully without it.
4. Read ~/.servonaut/config.json and help me configure:
   - AWS regions to scan (default scans all, set `regions` to limit)
   - Default SSH username (`default_username`)
   - Cache TTL (`cache_ttl_seconds`)
   - Terminal emulator if not auto-detected (`terminal_emulator`)
5. If I use bastion or jump hosts, help me set up `connection_profiles` and `connection_rules`
6. If I have non-AWS servers, help me add them to `custom_servers`
7. If I use OVHcloud or Hetzner Cloud, help me add the API credentials (Settings, under each provider)
8. For AI log analysis or chat with my own model, help me configure `ai_provider` (openai/anthropic/gemini/ollama)
   - Each provider has its own key field; local Ollama needs none
   - Key fields support `$ENV_VAR` and `file:~/.secrets/key` syntax so secrets stay out of the config file
9. Install the MCP server into my coding agent: `servonaut --mcp-install claude` (or `cursor`, `windsurf`, `opencode`, `vscode`, `codex`, `agy`, `gemini`, `all`)
10. (Optional) To let AI agents and teammates reach this machine over the relay, and to run proactive Findings scans, start it with `servonaut connect`

Then launch `servonaut` and walk me through the key features.

Features

Fleet

  • One list for every provider. AWS EC2, OVHcloud (dedicated, VPS, Public Cloud), Hetzner Cloud and custom servers from any provider, searchable across regions. Quick state and provider filters, a summary line, and a server inspector that copies any value with one key. The sidebar collapses on narrow terminals. The list loads from a cache and refreshes in the background.
  • Several accounts per provider. AWS profiles, Hetzner projects and OVH accounts side by side; every action runs in the server's own account. Docs
  • Server page. A memory snapshot (OS, disks, web stack, databases, runtimes, containers) and an opt-in live resource monitor.
  • SSH. One key opens a session in a new terminal window. Bastion and jump hosts (ProxyJump or ProxyCommand), keepalives, per-host SSH options, key discovery, and trust-on-first-use host key checking. Docs
  • Files. Two panes; each shows this computer or any server. Mark entries and copy or move them in any direction, including from one server to another, through a background transfer queue. Sort by name, size or modified; the order is remembered. Overwrites and deletes always ask first.
  • Console. A Run tab with history and saved favourites, plus one tab per followed log with filter, pause, copy and Send to AI. Output keeps the colours a server sends.
  • Cloud providers. OVH → Manage and Hetzner → Manage cover the server lifecycle, SSH keys, DNS, IPs, snapshots and billing; Hetzner also has servonaut hetzner. Hetzner docs
  • Keyword scan. Search file contents across servers.

Monitor and respond

  • Findings (Solo+): detectors in the cloud service surface disk, service, database, TLS and update problems as triageable cards, with gated one-click fixes. Proactive monitoring
  • Server memory. A per-server cache of OS, runtime, service, web, log, database and container facts, with optional background scans. Docs
  • Team memory (Teams): share a server's memory, notes and agent findings with the team, readable in the app, the CLI, chat and MCP. Changed member keys must be confirmed before sharing. A team server matched only by private address or local name is marked "same server?" so you can confirm it.
  • CloudWatch, CloudTrail and IP bans. Browse log groups with Top IPs, geolocation and abuse lookups; filter CloudTrail events; ban IPs through AWS WAF, security groups or network ACLs, with an audit trail.
  • Agent activity log. A read-only view of every MCP, chat, relay and proactive-agent call, in Monitor → Agent activity and with servonaut mcp audit --since 24h.

Keys and secrets

  • SSH-key vault (Solo+; team vaults Teams): import, search and de-duplicate keys; bulk delete with usage checks; use vault keys on servers (u) and auto-bind them. Host keys are pinned on the first verified session. Team vault keys
  • SSH certificates (Teams): short-lived certificates with a break-glass key (Access → SSH certificates).
  • Bitwarden SSH keys. Pick a key from your Bitwarden vault instead of keeping it on disk. Docs
  • Secrets (Solo+): a local or Bitwarden Secrets Manager store behind SSH key lookup. Secrets
  • Database credential vault (Solo+): store the database passwords your apps already use under a per-site label, so agents never see them. Docs

AI

  • Servonaut AI (Solo+): a hosted assistant for your fleet with no local API key. Commands need your confirmation, and credentials and SSH keys never leave your machine.
  • Your own model. OpenAI, Anthropic, Gemini or Ollama, set in Settings → AI provider; local Ollama needs no key. Used for chat and log analysis.
  • Voice. Dictate to the chat, hear replies, or run a hands-free conversation. Speech runs on your machine, and nothing downloads until you enable it. Docs
  • Team agent rules (Teams): owners and admins set what members' agents may do on shared servers; also servonaut team rules. Docs

Everyday

  • Demo mode. --demo (or Ctrl+Shift+D) redacts hostnames, IPs and labels across the interface. Docs
  • Report a bug. Shows exactly what will be sent before anything leaves your machine.
  • Themes. Your own colour themes from a small TOML file. Docs
  • Updates. The sidebar shows "Update to vX" when a release is newer. pipx installs can update in the background. Docs
  • Terminal shortcut. servonaut --install-desktop adds a launcher that opens the TUI.

Where things live

The sidebar groups screens by purpose, with Settings docked at the bottom. Provider groups appear when the provider is configured.

Group Contents
Fleet Instances, Custom servers
Vault & sync Vault, Memory Sync, Config sync
Access Local SSH keys, SSH certificates, Secrets
Monitor Findings, Fleet memory, Agent activity
AWS Manage, Object storage, CloudWatch, IP ban manager, CloudTrail
OVH Manage, DNS zones, IP management, Block storage, Billing, SSH keys, Object storage
Hetzner Manage, SSH keys, Object storage
Team Teams
Account Account / login, Report a bug

AI agents (MCP)

Servonaut includes an MCP server with 97 tools. Some appear only when the matching provider is configured. Install it into a coding agent once:

servonaut --mcp-install claude     # or: cursor, windsurf, opencode, vscode, codex, agy, gemini, all
servonaut --mcp                    # run the server by hand (stdio)

The server runs without the TUI, so it also works on a server or CI machine. Guard levels set what an agent may do:

  • standard is the default: read tools plus an allowlist of safe commands.
  • readonly allows inventory and diagnostics. Command execution is refused.
  • dangerous allows everything else. A configurable blocklist (rm -rf, shutdown and similar) applies at every level.

Every call is written to ~/.servonaut/mcp_audit.jsonl. Browse it in Monitor → Agent activity or with servonaut mcp audit. The full tool list, guard rules, team rules, headless install and Bitwarden key setup are in MCP tools. Hosted MCP tools use Streamable HTTP and fall back to SSE.

Servonaut Cloud account

A Servonaut Cloud account is optional. Without one, everything above works against your own credentials. Signing in (Account → Account / login, or servonaut login) adds the MCP relay (servonaut connect), so agents and teammates can reach this machine, plus features that depend on your plan:

  • Solo and Teams (Solo+): config sync, Memory Sync, Servonaut AI, Findings, the personal vault and secrets.
  • Teams (Teams): team vaults and SSH certificates, shared memory, agent rules and team secrets.

(Solo+) means Solo or Teams; (Teams) means Teams only. The service decides plans, and a team plan covers its members. Details: Cloud account.

Documentation

Troubleshooting

See the Troubleshooting guide for SSH connections, changed host keys, bastion hosts, keys, AWS credentials and going back from a release candidate.

Logs are written to ~/.servonaut/logs/servonaut.log; add --debug for verbose output on stderr. When an SSH session fails, its terminal window stays open and shows the error and exit code.

Contributing

See CONTRIBUTING.md.

Listed on

servonaut MCP server

Also published to the official MCP Registry as dev.servonaut/servonaut.

License

MIT. See LICENSE.

探索相关项目

加载中…