Skip to content

Installation

Prerequisites

RequirementNotes
Node.js 20+Fleet requires Node 20 or later
Docker + Docker Compose v2docker compose (not docker-compose)
systemdRequired for service management
nginxRequired for fleet nginx commands
ageRequired for secrets (apt install age)
ghRequired for Git/GitHub commands

Install from npm

Terminal window
npm install -g @matthesketh/fleet

Verify the installation:

Terminal window
fleet --version

Install from source

Terminal window
git clone https://github.com/wrxck/fleet.git
cd fleet
npm install
npm run build
sudo npm link

Privilege requirements

Fleet requires root for all commands that interact with systemd, nginx, or the secrets vault. The exceptions are fleet mcp and fleet install-mcp, which can run as any user.

Run fleet commands with sudo or as root:

Terminal window
sudo fleet status
sudo fleet deploy /srv/myapp

MCP server setup

To install fleet as a Claude Code MCP server, run:

Terminal window
sudo fleet install-mcp

This writes the MCP server config to ~/.claude.json so all Claude Code sessions can use fleet tools. Alternatively, add it manually:

{
"mcpServers": {
"fleet": {
"command": "fleet",
"args": ["mcp"]
}
}
}

You can also start the MCP server directly for testing:

Terminal window
fleet mcp

The server communicates over stdio using the Model Context Protocol.