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/kvm for 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

shell
curl -fsSL https://www.getmentat.run/install.sh | sudo bash -s -- \
  --acme-email ops@example.com \
  --api-host mentat.example.com

The 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-host publishes the Mentat API over HTTPS on that name. Without it the API stays on 127.0.0.1:4646.
  • --no-ingress skips Condor (no public HTTP) and the ACME email.
  • --no-kvm installs without Firecracker even if KVM is present.

Manual install

If you prefer to inspect the bundle before running anything:

shell
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.com

What gets installed

mentat-servercontrol plane, API, Raft127.0.0.1:4646, user mentat
mentat-agentruns the workloads127.0.0.1:4647, root
mtCLI/usr/local/bin/mt
hullcontainersinvoked by the agent
firecrackermicroVMs (kernel + base rootfs included)invoked by the agent
condorHTTPS 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/token of 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/hull and /datadrive (image registry and service volumes). Mount a data disk on /datadrive before installing to keep it off the system disk.
  • Logs: /var/lib/mentat/logs, rotated hourly; journald capped at 500 MB.

First service

up.yaml
name: hello
domain: hello.example.com
replicas: 1
build:
  cwd: ./
  cmd: "true"
  output: public
runtime:
  serve: static
  port: 3007
  memory: 64M
health: /
shell
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 ps

Upgrade

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

shell
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