Run Kaeso on a Raspberry Pi
Run Kaeso 0.7.0 on a 64-bit Raspberry Pi 5 or 4 at home. Hardware and NVMe storage, Raspberry Pi OS (64-bit), Docker, reaching home behind DS-Lite or CGNAT, backups and updates.
- Published
- Reading time
- 7 min
- Author
- Kaeso Team

Kaeso's 0.7.0 container images ship for both linux/amd64 and linux/arm64 (there are no 32-bit ARM images), so the full Docker Compose stack runs on a 64-bit Raspberry Pi 5 (4 GB, 8 GB or 16 GB) or Raspberry Pi 4 (4 GB or 8 GB). A Pi 5 with an NVMe drive is a quiet home gateway for personal coding tools and small teams.
Three details make a Pi different from a cloud server: you must run a 64-bit OS, databases wear out microSD cards faster than an NVMe SSD, and many home internet connections sit behind DS-Lite or CGNAT with no public IPv4 address. This guide covers all three for Kaeso 0.7.0; for shared Docker, backup and troubleshooting details, see the Linux server guide.
What you need01
| Board | Raspberry Pi 5 (4 GB, 8 GB or 16 GB) or Raspberry Pi 4 (4 GB or 8 GB); 1 GB and 2 GB boards are below Kaeso's 4 GB minimum |
| Power | 5V 5A (27W) USB-C power supply as recommended by Raspberry Pi for Raspberry Pi 5 (Raspberry Pi 5 specs (opens in a new tab)) |
| Storage | Recommended: a Raspberry Pi M.2 HAT+ (opens in a new tab) and an NVMe SSD on Pi 5, or a USB SSD on Pi 4. MicroSD works for trying Kaeso out, but wears faster under database writes |
| Operating system | Raspberry Pi OS Lite (64-bit) based on Debian 13 (Trixie), written with Raspberry Pi Imager 2.x |
| Network | Ethernet recommended; either a public IP with port forwarding, or Cloudflare Tunnel / Tailscale Funnel if your ISP uses DS-Lite or CGNAT |
| An SMTP server on port 587 with STARTTLS (optional at first start) |
Note: Proxmox VE's arm64 release requires UEFI and ACPI and does not support device-tree-only single-board computers such as the Raspberry Pi (Proxmox roadmap (opens in a new tab)); run Raspberry Pi OS (64-bit) directly.
What it costs02
Kaeso itself is open source under the MIT licence. Memory prices drove several Raspberry Pi price increases during 2026 (April (opens in a new tab), October (opens in a new tab) and November 2026 (opens in a new tab)). As of November 2026, US list prices published by Raspberry Pi (excluding tax) on raspberrypi.com/products/raspberry-pi-5 (opens in a new tab) and the Pi 5 product brief are:
- Raspberry Pi 5 (4 GB)
- List price (USD, excl. tax)
- $110
- Notes
- Meets Kaeso's minimum; turn request logs off if memory gets tight
- Raspberry Pi 5 (8 GB)
- List price (USD, excl. tax)
- $175
- Notes
- Comfortable headroom for PostgreSQL, ClickHouse and Valkey together
- Raspberry Pi 5 (16 GB)
- List price (USD, excl. tax)
- $385
- Notes
- Raised from $305 in November 2026
- M.2 HAT+
- List price (USD, excl. tax)
- From $12
- Notes
- Plus an M.2 2230/2242 NVMe SSD, power supply and case/cooler
| Hardware | List price (USD, excl. tax) | Notes |
|---|---|---|
| Raspberry Pi 5 (4 GB) | $110 | Meets Kaeso's minimum; turn request logs off if memory gets tight |
| Raspberry Pi 5 (8 GB) | $175 | Comfortable headroom for PostgreSQL, ClickHouse and Valkey together |
| Raspberry Pi 5 (16 GB) | $385 | Raised from $305 in November 2026 |
| M.2 HAT+ | From $12 | Plus an M.2 2230/2242 NVMe SSD, power supply and case/cooler |
Independent measurements put a headless Raspberry Pi 5 at roughly 2.5 to 3.5 W at idle without an NVMe drive (Jeff Geerling (opens in a new tab)); an NVMe SSD adds to that. Hardware prices change frequently; check Raspberry Pi's product page and an approved reseller before buying.
1. Flash Raspberry Pi OS (64-bit)03
Download Raspberry Pi Imager 2.x and choose Raspberry Pi OS Lite (64-bit) (Debian Trixie, 64-bit — operating systems (opens in a new tab)). Use Imager 2.x, not 1.x: Trixie images use a newer cloud-init customisation format that Imager 1.x does not apply.
In Imager's OS customisation (opens in a new tab):
- 01Set a hostname (for example
kaeso, reachable on your LAN askaeso.local). - 02Create a user and paste your SSH public key under Enable SSH › Use public key authentication.
- 03Set your time zone.
If you are using an M.2 HAT+ and NVMe SSD on a Pi 5, flash the image directly to the NVMe drive. With no microSD card inserted, the Pi 5 boots from NVMe automatically; if an SD card stays inserted, switch the boot order in sudo raspi-config › Advanced Options › Boot Order › NVMe/USB boot (NVMe boot docs (opens in a new tab)).
Raspberry Pi's white paper on resilient file systems (opens in a new tab) notes that SD card flash has a limited write lifetime and lists database updates among the writes that wear it down. For ongoing use with PostgreSQL and ClickHouse, an SSD is strongly preferable to an SD card; if you do run from a card, use a high-endurance card and consider turning ClickHouse request logs off.
2. Check architecture and install Docker04
Boot the Pi, sign in over SSH, and confirm the OS is 64-bit (arm64):
ssh pi@kaeso.localdpkg --print-architectureIt must print arm64. If it prints armhf, re-flash with the 64-bit image — Kaeso has no 32-bit images, and Docker Engine stopped shipping 32-bit Raspberry Pi OS packages after v28 (Docker on Raspberry Pi OS (opens in a new tab)).
On 64-bit Raspberry Pi OS, Docker's docs instruct you to follow the Debian arm64 installation (opens in a new tab). Kaeso's installer (--install-docker) runs Docker's convenience script, which detects Debian Trixie arm64 and installs the Debian packages.
3. Decide how apps will reach the Pi05
- Local network only: install with
--domain :80 --public-url http://kaeso.local(or behind a LAN reverse proxy with your own certificate) if only devices at home need Kaeso. - Public IPv4 + port forwarding: create an A record (and dynamic DNS if your IP changes), forward TCP 80, TCP 443 and UDP 443 on your router to the Pi's LAN IP, and let Caddy issue a Let's Encrypt certificate directly.
- Behind DS-Lite or CGNAT (no public IPv4): many European cable and fiber lines use DS-Lite (RFC 6333) or CGNAT (RFC 6598), where routers cannot accept inbound IPv4 connections (FRITZ!Box DS-Lite note (opens in a new tab)). Two outbound-tunnel options work without inbound ports:
- Cloudflare Tunnel (opens in a new tab): run
cloudflaredon the Pi pointing athttp://localhost:80, and install Kaeso with--domain :80 --public-url https://kaeso.example.comso Cloudflare handles TLS (getting started (opens in a new tab)). Requires a Cloudflare account and a domain on Cloudflare (no paid Cloudflare Access plan is required). - Tailscale Funnel (opens in a new tab): currently in beta and available on all Tailscale plans; forwards HTTPS on port 443 to your local Kaeso service without opening router ports, subject to Tailscale's bandwidth limits.
4. Install Kaeso06
Download and read the installer, then run it with sudo.
With a public IP and port forwarding:
curl -fsSL https://kaeso.app/install.sh -o install.shless install.shsudo sh install.sh --domain kaeso.example.com --dir /opt/kaeso --install-dockerBehind Cloudflare Tunnel, Tailscale Funnel or a LAN reverse proxy:
sudo sh install.sh --domain :80 --public-url https://kaeso.example.com --dir /opt/kaeso --install-dockerAdd --version 0.7.0 to pin this release. On a 4 GB board, if ClickHouse memory use is tight, turn request logs off (opens in a new tab) — usage, budgets and rate limits keep working through PostgreSQL and Valkey.
5. Create the first user, save the master key and add SMTP07
Open the setup link the installer prints within 24 hours to create the first instance admin. To print a new link while no user exists:
cd /opt/kaesosudo docker compose exec gateway kaeso setup-linkCopy /opt/kaeso/master-keys into a password manager, off the Pi:
sudo cat /opt/kaeso/master-keysTo send sign-in links and alerts, configure an external SMTP server on port 587 in /opt/kaeso/.env as shown in the Linux server guide, apply with sudo docker compose up -d --wait, and test:
cd /opt/kaesosudo docker compose exec gateway kaeso mail test owner@example.comBack up08
A home server needs off-device backups: a failed SD card, SSD or power cut can wipe local volumes at once. Schedule daily pg_dump backups and copy them to another machine, NAS or cloud bucket as shown in the Linux server guide, and keep /opt/kaeso/master-keys in a separate password manager. A disk image of the SD card or SSD is not a replacement for pg_dump.
Update to the next release09
Instance admins can update from Instance › Updates in the console, turn on automatic updates in a maintenance window, or run sudo sh install.sh --update in /opt/kaeso. See Update to the next release.
Before updating from 0.6 to 0.7, check .env and compose.override.yaml for the three settings 0.7.0 now refuses (KAESO_KPMR_INTERVAL below 5m, KAESO_MCP_SERVERS_SYNC_INTERVAL below 1m, and KAESO_SMTP_USER without KAESO_SMTP_PASSWORD); see the Kaeso 0.7 article.
Troubleshooting10
| What you see | What to do |
|---|---|
no matching manifest for linux/arm/v7 | The Pi is running 32-bit Raspberry Pi OS (armhf); re-flash with Raspberry Pi OS (64-bit) so dpkg --print-architecture prints arm64 |
| SSH key or hostname from Imager did not apply | Trixie images require Raspberry Pi Imager 2.x; Imager 1.x does not apply the newer customisation format |
| Let's Encrypt fails from home | Check whether your ISP uses DS-Lite or CGNAT (no public IPv4); switch to Cloudflare Tunnel or Tailscale Funnel with --domain :80 --public-url https://… |
| ClickHouse is killed for memory on a 4 GB Pi | Turn request logs off (opens in a new tab) or move to an 8 GB board |
| Random restarts or filesystem corruption | Check that you are using a 5V 5A PSU on Pi 5 and consider moving from microSD to an NVMe or USB SSD |
See Troubleshooting in the Linux server guide for shared Docker and gateway issues.
What was tested11
The Raspberry Pi steps were checked against Raspberry Pi's documentation, Docker's Debian arm64 docs and Cloudflare/Tailscale docs on 22 November 2026; Kaeso hasn't been installed on Raspberry Pi hardware for this guide. For the shared Compose package, the 0.7.0 compose.yaml, .env, kaeso config check and first start against PostgreSQL, ClickHouse and Valkey were tested locally, and the 0.6-to-0.7 update path was tested on a Debian server during the 0.7.0 release. If you deploy it there, tell us how it went.
Next steps12
- Deploy Kaeso on a Linux server: backups,
config check, scaling and troubleshooting for Docker Compose installs. - Where to run Kaeso: compare home hardware, cloud servers, managed platforms and Kubernetes.
- Domains and TLS (opens in a new tab): running behind Cloudflare Tunnel or another reverse proxy.
Product names in this guide belong to their owners and are used only to name the software and services involved. Kaeso is not affiliated with or endorsed by them.
By Kaeso Team


