Install
Mentat installs on one Linux host from a single self-contained bundle: the control plane, the agent, the Hull container runtime, Firecracker, the microVM kernel and the Condor HTTPS proxy. Nothing is compiled or downloaded on the host besides a few base packages from apt.
Early access: single-node installs on x86_64. Multi-node clusters and arm64 bundles come next.
Requirements
- Ubuntu 22.04 or 24.04, x86_64, systemd, cgroups v2.
- 2 vCPU, 4 GB RAM, 10 GB free for
/datadrive. - Ports 80 and 443 free, and a DNS name pointing at the host for HTTPS.
/dev/kvmfor Firecracker microVMs. On AWS use m8i, c8i or r8i launched with--cpu-options NestedVirtualization=enabled(it can only be set at launch), or any*.metal. On GCP use an Intel series (n2, c3) with--enable-nested-virtualization. Without KVM Mentat still installs and runs Hull containers.
One command
curl -fsSL https://www.getmentat.run/install.sh | sudo bash -s -- \
--acme-email ops@example.com \
--api-host mentat.example.comThe script downloads the latest bundle, checks its SHA-256 and its minisign signature against the public key pinned in the script, and runs the bundle installer with your flags. Pin a version with MENTAT_VERSION=0.9.0.
--api-hostpublishes the Mentat API over HTTPS on that name. Without it the API stays on127.0.0.1:4646.--no-ingressskips Condor (no public HTTP) and the ACME email.--no-kvminstalls without Firecracker even if KVM is present.
Manual install
If you prefer to inspect the bundle before running anything:
V=$(curl -fsSL https://www.getmentat.run/releases/latest)
curl -fsSLO https://www.getmentat.run/releases/$V/mentat-$V-x86_64.tar.gz
curl -fsSLO https://www.getmentat.run/releases/$V/mentat-$V-x86_64.tar.gz.minisig
minisign -Vm mentat-$V-x86_64.tar.gz \
-P RWSOfqN3LDz1riQIz0q9v5oBxit8bSqLOSSpd/CX28zfwyG0J/rnIAKA
tar -xzf mentat-$V-x86_64.tar.gz
sudo mentat-$V-x86_64/install.sh --acme-email ops@example.com --api-host mentat.example.comWhat gets installed
| mentat-server | control plane, API, Raft | 127.0.0.1:4646, user mentat |
| mentat-agent | runs the workloads | 127.0.0.1:4647, root |
| mt | CLI | /usr/local/bin/mt |
| hull | containers | invoked by the agent |
| firecracker | microVMs (kernel + base rootfs included) | invoked by the agent |
| condor | HTTPS reverse proxy, Let's Encrypt | :80 and :443, user condor |
- API token: generated per host in
/etc/mentat/api-token(0600) and copied to~/.config/mentat/tokenof the user who ran sudo. There are no default credentials. - Config:
/etc/mentat/mentat.env, written by the installer. - Data:
/var/lib/mentat(Raft state and logs),/var/lib/hulland/datadrive(image registry and service volumes). Mount a data disk on/datadrivebefore installing to keep it off the system disk. - Logs:
/var/lib/mentat/logs, rotated hourly; journald capped at 500 MB.
First service
name: hello
domain: hello.example.com
replicas: 1
build:
cwd: ./
cmd: "true"
output: public
runtime:
serve: static
port: 3007
memory: 64M
health: /export MENTAT_TOKEN=$(ssh you@host 'cat ~/.config/mentat/token')
mt --server https://mentat.example.com up up.yaml
mt --server https://mentat.example.com psUpgrade
Run the same one-liner without flags: the installer reuses the options from the previous install and restarts only what changed. Workloads survive the agent restart; microVMs and containers keep running and the agent re-adopts them when it comes back.
Uninstall
sudo /opt/mentat/releases/mentat-<version>-x86_64/install.sh --uninstall # keep data
sudo /opt/mentat/releases/mentat-<version>-x86_64/install.sh --uninstall --purge # remove everything