Metadata-Version: 2.5
Name: servonaut
Version: 2.36.1
Summary: Manage AWS, Hetzner, OVH, and custom servers from one TUI — with a built-in AI assistant and MCP server
Project-URL: Homepage, https://github.com/zb-ss/servonaut
Project-URL: Repository, https://github.com/zb-ss/servonaut
Project-URL: Issues, https://github.com/zb-ss/servonaut/issues
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: System :: Systems Administration
Requires-Python: >=3.10
Requires-Dist: bcrypt>=3.2
Requires-Dist: boto3
Requires-Dist: cryptography>=42.0
Requires-Dist: httpx-sse>=0.4
Requires-Dist: httpx>=0.25.0
Requires-Dist: keyring>=24
Requires-Dist: mcp<2,>=1.30.0
Requires-Dist: pynacl>=1.5
Requires-Dist: regex>=2025.9.18
Requires-Dist: tabulate
Requires-Dist: textual>=8.0.0
Requires-Dist: tomli>=2; python_version < '3.11'
Provides-Extra: ai
Provides-Extra: all
Requires-Dist: faster-whisper>=1.0; (python_version < '3.15') and extra == 'all'
Requires-Dist: hcloud>=2.0; extra == 'all'
Requires-Dist: keyring>=24; extra == 'all'
Requires-Dist: mcp<2,>=1.30.0; extra == 'all'
Requires-Dist: numpy>=1.24; extra == 'all'
Requires-Dist: ovh; extra == 'all'
Requires-Dist: sherpa-onnx>=1.13.3; extra == 'all'
Requires-Dist: sounddevice>=0.4; extra == 'all'
Provides-Extra: desktop-test
Requires-Dist: aiohttp==3.14.3; extra == 'desktop-test'
Requires-Dist: textual-serve==1.1.3; extra == 'desktop-test'
Provides-Extra: e2e
Requires-Dist: aiohttp==3.14.3; extra == 'e2e'
Requires-Dist: asyncssh==2.24.0; extra == 'e2e'
Requires-Dist: build<2,>=1.2; extra == 'e2e'
Requires-Dist: flask-cors<7,>=6; extra == 'e2e'
Requires-Dist: flask<4,>=3.1; extra == 'e2e'
Requires-Dist: hatchling<2,>=1.26; extra == 'e2e'
Requires-Dist: mcp<2,>=1.30.0; extra == 'e2e'
Requires-Dist: moto[ec2,iam,logs,s3,sts,wafv2]<6,>=5.2.3; extra == 'e2e'
Requires-Dist: pipx<2,>=1.17; extra == 'e2e'
Requires-Dist: playwright==1.62.0; extra == 'e2e'
Requires-Dist: pytest-xdist<4,>=3.8; extra == 'e2e'
Requires-Dist: textual-serve==1.1.3; extra == 'e2e'
Provides-Extra: hetzner
Requires-Dist: hcloud>=2.0; extra == 'hetzner'
Provides-Extra: keyring
Provides-Extra: mcp
Requires-Dist: mcp<2,>=1.30.0; extra == 'mcp'
Provides-Extra: ovh
Requires-Dist: ovh; extra == 'ovh'
Provides-Extra: sync
Provides-Extra: test
Requires-Dist: pytest-asyncio>=0.21; extra == 'test'
Requires-Dist: pytest-cov>=4.0; extra == 'test'
Requires-Dist: pytest-timeout>=2.3; extra == 'test'
Requires-Dist: pytest-xdist<4,>=3.8; extra == 'test'
Requires-Dist: pytest>=7.0; extra == 'test'
Requires-Dist: time-machine<4,>=2.16; extra == 'test'
Provides-Extra: voice
Requires-Dist: faster-whisper>=1.0; extra == 'voice'
Requires-Dist: numpy>=1.24; extra == 'voice'
Requires-Dist: sounddevice>=0.4; extra == 'voice'
Provides-Extra: voice-output
Requires-Dist: numpy>=1.24; extra == 'voice-output'
Requires-Dist: sherpa-onnx>=1.13.3; extra == 'voice-output'
Requires-Dist: sounddevice>=0.4; extra == 'voice-output'
Provides-Extra: voice-streaming
Requires-Dist: numpy>=1.24; extra == 'voice-streaming'
Requires-Dist: sherpa-onnx>=1.13.3; extra == 'voice-streaming'
Requires-Dist: sounddevice>=0.4; extra == 'voice-streaming'
Description-Content-Type: text/markdown

# Servonaut

<!-- mcp-name: dev.servonaut/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](https://github.com/zb-ss/servonaut/raw/master/docs/screenshots/demo.gif)

## Install

**Linux / macOS:**

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

**Windows (PowerShell):**

```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](https://github.com/zb-ss/servonaut/releases) carries them with `install-scripts_SHA256SUMS`, so you can check a downloaded copy before you run it.

Or install it yourself:

```bash
pipx install servonaut
```

To run from a clone, see [CONTRIBUTING.md](https://github.com/zb-ss/servonaut/blob/master/CONTRIBUTING.md#development-setup).

### Desktop app (preview)

| Platform | Download | Notes |
|----------|----------|-------|
| Linux | `.deb` from [servonaut.dev/download](https://servonaut.dev/download) | [Linux desktop preview](https://github.com/zb-ss/servonaut/blob/master/docs/release-candidates.md#linux-desktop-preview) |
| macOS 13 or later | Signed disk image for Apple silicon and for Intel, on the [releases page](https://github.com/zb-ss/servonaut/releases) | [macOS desktop preview](https://github.com/zb-ss/servonaut/blob/master/docs/release-candidates.md#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:

```bash
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](https://github.com/zb-ss/servonaut/blob/master/docs/release-candidates.md).

### 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](https://github.com/zb-ss/servonaut/blob/master/docs/voice.md) |
| `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](https://github.com/zb-ss/servonaut/blob/master/docs/configuration.md#aws-permissions).

## Quick start

```bash
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](https://github.com/zb-ss/servonaut/blob/master/docs/cli-reference.md).

### 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.

<details>
<summary><b>Copy-paste setup prompt</b></summary>

```
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.
```

</details>

## 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](https://github.com/zb-ss/servonaut/blob/master/docs/multiple-accounts.md)
- **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](https://github.com/zb-ss/servonaut/blob/master/docs/configuration.md#ssh-host-key-verification)
- **Files.** Two panes, this computer and the server. Mark entries and copy or move them either way 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.
- **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](https://github.com/zb-ss/servonaut/blob/master/docs/hetzner.md)
- **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](https://github.com/zb-ss/servonaut/blob/master/docs/proactive-monitoring.md)
- **Server memory.** A per-server cache of OS, runtime, service, web, log, database and container facts, with optional background scans. [Docs](https://github.com/zb-ss/servonaut/blob/master/docs/memory.md)
- **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](https://github.com/zb-ss/servonaut/blob/master/docs/team-vault-binding.md)
- **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](https://github.com/zb-ss/servonaut/blob/master/docs/bitwarden-ssh.md)
- **Secrets** *(Solo+)*: a local or Bitwarden Secrets Manager store behind SSH key lookup. [Secrets](https://github.com/zb-ss/servonaut/blob/master/docs/secrets.md)
- **Database credential vault** *(Solo+)*: store the database passwords your apps already use under a per-site label, so agents never see them. [Docs](https://github.com/zb-ss/servonaut/blob/master/docs/db-credential-vault.md)

### 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](https://github.com/zb-ss/servonaut/blob/master/docs/voice.md)
- **Team agent rules** *(Teams)*: owners and admins set what members' agents may do on shared servers; also `servonaut team rules`. [Docs](https://github.com/zb-ss/servonaut/blob/master/docs/team-agent-rules.md)

### Everyday

- **Demo mode.** `--demo` (or `Ctrl+Shift+D`) redacts hostnames, IPs and labels across the interface. [Docs](https://github.com/zb-ss/servonaut/blob/master/docs/demo-mode.md)
- **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](https://github.com/zb-ss/servonaut/blob/master/docs/themes.md)
- **Updates.** The sidebar shows "Update to vX" when a release is newer. pipx installs can update in the background. [Docs](https://github.com/zb-ss/servonaut/blob/master/docs/updates.md)
- **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:

```bash
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](https://github.com/zb-ss/servonaut/blob/master/docs/mcp-tools.md). 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](https://github.com/zb-ss/servonaut/blob/master/docs/cloud-account.md).

## Documentation

- [Configuration](https://github.com/zb-ss/servonaut/blob/master/docs/configuration.md): `~/.servonaut/config.json`, AWS permissions and the files Servonaut writes
- [CLI reference](https://github.com/zb-ss/servonaut/blob/master/docs/cli-reference.md)
- [MCP tools](https://github.com/zb-ss/servonaut/blob/master/docs/mcp-tools.md) and [MCP registry](https://github.com/zb-ss/servonaut/blob/master/docs/mcp-registry.md)
- [Cloud account](https://github.com/zb-ss/servonaut/blob/master/docs/cloud-account.md), [Secrets](https://github.com/zb-ss/servonaut/blob/master/docs/secrets.md), [Database credential vault](https://github.com/zb-ss/servonaut/blob/master/docs/db-credential-vault.md) and [Bitwarden SSH keys](https://github.com/zb-ss/servonaut/blob/master/docs/bitwarden-ssh.md)
- [Server memory](https://github.com/zb-ss/servonaut/blob/master/docs/memory.md) and [Proactive monitoring](https://github.com/zb-ss/servonaut/blob/master/docs/proactive-monitoring.md)
- [Team agent rules](https://github.com/zb-ss/servonaut/blob/master/docs/team-agent-rules.md) and [Team vault keys](https://github.com/zb-ss/servonaut/blob/master/docs/team-vault-binding.md)
- [Multiple accounts](https://github.com/zb-ss/servonaut/blob/master/docs/multiple-accounts.md) and [Hetzner](https://github.com/zb-ss/servonaut/blob/master/docs/hetzner.md)
- [Voice](https://github.com/zb-ss/servonaut/blob/master/docs/voice.md), [Themes](https://github.com/zb-ss/servonaut/blob/master/docs/themes.md) and [Demo mode](https://github.com/zb-ss/servonaut/blob/master/docs/demo-mode.md)
- [Updates](https://github.com/zb-ss/servonaut/blob/master/docs/updates.md), [Release candidates](https://github.com/zb-ss/servonaut/blob/master/docs/release-candidates.md) and [Standalone CLI](https://github.com/zb-ss/servonaut/blob/master/docs/standalone-cli.md)
- [Architecture](https://github.com/zb-ss/servonaut/blob/master/docs/architecture.md)

## Troubleshooting

See the [Troubleshooting guide](https://github.com/zb-ss/servonaut/blob/master/docs/troubleshooting.md) 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](https://github.com/zb-ss/servonaut/blob/master/CONTRIBUTING.md).

## Listed on

[![servonaut MCP server](https://glama.ai/mcp/servers/zb-ss/servonaut/badges/card.svg)](https://glama.ai/mcp/servers/zb-ss/servonaut)

Also published to the official [MCP Registry](https://registry.modelcontextprotocol.io) as `dev.servonaut/servonaut`.

## License

MIT. See [LICENSE](https://github.com/zb-ss/servonaut/blob/master/LICENSE).
