Home / Docs / Installation

Installation

Detailed installation guide for all platforms, with optional dependency setup and troubleshooting.

System requirements

DependencyRequiredNotes
Python 3.10+ Yes Check with python3 --version
SSH client Yes OpenSSH (pre-installed on Linux/macOS). Windows: Git for Windows or WSL
AWS CLI v2 No Required for EC2 auto-discovery and CloudTrail features
mcp No Required for the built-in MCP server
Provider SDKs (ovh, hcloud) No Install when you wire up OVH Cloud or Hetzner Cloud

Method 1: pipx (recommended)

pipx installs Servonaut into an isolated Python environment — no dependency conflicts, and upgrades are simple.

bash
# Install pipx if you don't have it $ pip install --user pipx $ pipx ensurepath # Install Servonaut $ pipx install servonaut # Optional: MCP server support and provider SDKs $ pipx inject servonaut mcp ovh hcloud
macOS

On macOS with Homebrew, you can also install pipx via brew install pipx.

Method 2: Linux / macOS auto-installer

A shell script that installs Python (via pyenv if needed), creates a virtual environment, and installs Servonaut. Suitable for fresh servers and CI environments.

bash
$ curl -sSL https://raw.githubusercontent.com/zb-ss/servonaut/master/install.sh | bash

The script will:

  1. Detect your OS and package manager (apt, brew, yum, pacman).
  2. Install Python 3.10+ if not already available.
  3. Install pipx and Servonaut.
  4. Add servonaut to your PATH.
Security note

Always review install scripts before running them. Read the install.sh source before executing.

Method 3: Windows (PowerShell)

PowerShell (run as Administrator)
PS> irm https://raw.githubusercontent.com/zb-ss/servonaut/master/install.ps1 | iex
Windows SSH

Windows 10/11 includes OpenSSH by default. If it is missing, enable it via Settings → Optional Features → OpenSSH Client. Using Servonaut under WSL 2 also gives a native Linux experience.

Verifying the installation

bash
$ servonaut --version servonaut 2.x.x $ servonaut --help

Optional dependencies

Servonaut's core TUI works without extra packages. Install these to unlock additional features:

bash
# Built-in MCP server (for Claude Code and other AI agents) $ pipx inject servonaut mcp # OVH Cloud SDK $ pipx inject servonaut ovh # Hetzner Cloud SDK $ pipx inject servonaut hcloud # Install everything at once $ pipx inject servonaut mcp ovh hcloud

Upgrading

bash
$ pipx upgrade servonaut

Uninstalling

To remove Servonaut, uninstall the pipx package. You can also delete the config directory at ~/.servonaut/ if you no longer need your configuration.

bash
$ pipx uninstall servonaut

Troubleshooting

servonaut: command not found

Your PATH doesn't include the pipx bin directory. Run:

bash
$ pipx ensurepath # Restart your shell or reload your profile $ source ~/.bashrc

Python version too old

Check your Python version with python3 --version. If it is below 3.10, upgrade:

bash
# Ubuntu / Debian $ sudo apt install python3.12 python3.12-venv # macOS (Homebrew) $ brew install [email protected] # Windows PS> winget install Python.Python.3.12

AWS instances not showing up

Servonaut uses your default AWS CLI credentials. Ensure the AWS CLI is configured and your IAM role has ec2:DescribeInstances permission. Verify with aws ec2 describe-instances.

SSH key permission denied

SSH private keys must have permissions 600. Fix with chmod 600 ~/.ssh/your_key.

Documentation