---
title: Run Kaeso on a Raspberry Pi
description: "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."
url: https://kaeso.app/articles/deploy-kaeso-on-a-raspberry-pi
markdown: https://kaeso.app/articles/deploy-kaeso-on-a-raspberry-pi.md
language: en
alternates:
  de: https://kaeso.app/de/articles/deploy-kaeso-on-a-raspberry-pi.md
  zh-CN: https://kaeso.app/zh-CN/articles/deploy-kaeso-on-a-raspberry-pi.md
published: 2026-11-22
authors:
  - Kaeso Team
tags:
  - self-hosting
  - raspberry-pi
  - deployment
  - guide
image: https://kaeso.app/articles/deploy-kaeso-on-a-raspberry-pi/cover.jpg
index: https://kaeso.app/llms.txt
---

# 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.

> Every page, article and docs page of Kaeso is listed in https://kaeso.app/llms.txt.

- Published: 22 November 2026
- 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](https://kaeso.app/articles/deploy-kaeso-on-a-linux-server).

## What you need

| | |
| --- | --- |
| 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](https://www.raspberrypi.com/products/raspberry-pi-5/)) |
| Storage | Recommended: a Raspberry Pi [M.2 HAT+](https://www.raspberrypi.com/products/m2-hat-plus/) 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 |
| Email | 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](https://pve.proxmox.com/wiki/Roadmap)); run Raspberry Pi OS (64-bit) directly.

## What it costs

Kaeso itself is open source under the MIT licence. Memory prices drove several Raspberry Pi price increases during 2026 ([April](https://www.raspberrypi.com/news/a-new-3gb-raspberry-pi-4-for-83-75-and-more-memory-driven-price-increases/), [October](https://www.raspberrypi.com/news/price-increases-for-2gb-raspberry-pi-4-and-raspberry-pi-5/) and [November 2026](https://www.raspberrypi.com/news/price-rises-for-some-16gb-raspberry-pi-products/)). As of November 2026, US list prices published by Raspberry Pi (excluding tax) on [raspberrypi.com/products/raspberry-pi-5](https://www.raspberrypi.com/products/raspberry-pi-5/) and the Pi 5 product brief are:

| 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](https://www.jeffgeerling.com/blog/2024/new-2gb-pi-5-has-33-smaller-die-30-idle-power-savings/)); 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)

Download **Raspberry Pi Imager 2.x** and choose **Raspberry Pi OS Lite (64-bit)** (Debian Trixie, 64-bit — [operating systems](https://www.raspberrypi.com/software/operating-systems/)). 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](https://www.raspberrypi.com/documentation/computers/getting-started.html#customisation):

1. Set a hostname (for example `kaeso`, reachable on your LAN as `kaeso.local`).
2. Create a user and paste your SSH public key under **Enable SSH** › **Use public key authentication**.
3. Set 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](https://www.raspberrypi.com/documentation/accessories/m2-hat-plus.html#boot-from-nvme)).

Raspberry Pi's white paper on [resilient file systems](https://pip-assets.raspberrypi.com/categories/685-app-notes-guides-whitepapers/documents/RP-003610-WP-3-Making%20a%20more%20resilient%20file%20system.pdf) 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 Docker

Boot the Pi, sign in over SSH, and confirm the OS is 64-bit (`arm64`):

```bash
ssh pi@kaeso.local
dpkg --print-architecture
```

It 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](https://docs.docker.com/engine/install/raspberry-pi-os/)).

On 64-bit Raspberry Pi OS, Docker's docs instruct you to follow the [Debian arm64 installation](https://docs.docker.com/engine/install/debian/). 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 Pi

- **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](https://uk.fritz.com/service/knowledge-base/dok/FRITZ-Box-7682/1611_What-is-DS-Lite-and-how-does-it-work/)). Two outbound-tunnel options work without inbound ports:
  - **[Cloudflare Tunnel](https://developers.cloudflare.com/tunnel/):** run `cloudflared` on the Pi pointing at `http://localhost:80`, and install Kaeso with `--domain :80 --public-url https://kaeso.example.com` so Cloudflare handles TLS ([getting started](https://developers.cloudflare.com/tunnel/get-started/)). Requires a Cloudflare account and a domain on Cloudflare (no paid Cloudflare Access plan is required).
  - **[Tailscale Funnel](https://tailscale.com/kb/1223/funnel):** 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 Kaeso

Download and read the installer, then run it with `sudo`.

With a public IP and port forwarding:

```bash
curl -fsSL https://kaeso.app/install.sh -o install.sh
less install.sh
sudo sh install.sh --domain kaeso.example.com --dir /opt/kaeso --install-docker
```

Behind Cloudflare Tunnel, Tailscale Funnel or a LAN reverse proxy:

```bash
sudo sh install.sh --domain :80 --public-url https://kaeso.example.com --dir /opt/kaeso --install-docker
```

Add `--version 0.7.0` to pin this release. On a 4 GB board, if ClickHouse memory use is tight, [turn request logs off](https://docs.kaeso.app/self-hosting/installation#turn-request-logs-off) — usage, budgets and rate limits keep working through PostgreSQL and Valkey.

## 5. Create the first user, save the master key and add SMTP

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:

```bash
cd /opt/kaeso
sudo docker compose exec gateway kaeso setup-link
```

Copy `/opt/kaeso/master-keys` into a password manager, off the Pi:

```bash
sudo cat /opt/kaeso/master-keys
```

To 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](https://kaeso.app/articles/deploy-kaeso-on-a-linux-server#5-add-your-smtp-server), apply with `sudo docker compose up -d --wait`, and test:

```bash
cd /opt/kaeso
sudo docker compose exec gateway kaeso mail test owner@example.com
```

## Back up

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](https://kaeso.app/articles/deploy-kaeso-on-a-linux-server#back-up-the-volumes), 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 release

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](https://kaeso.app/articles/deploy-kaeso-on-a-linux-server#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](https://kaeso.app/articles/kaeso-0-7).

## Troubleshooting

| 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](https://docs.kaeso.app/self-hosting/installation#turn-request-logs-off) 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](https://kaeso.app/articles/deploy-kaeso-on-a-linux-server#troubleshooting) in the Linux server guide for shared Docker and gateway issues.

## What was tested

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](https://kaeso.app/contact) how it went.

## Next steps

- [Deploy Kaeso on a Linux server](https://kaeso.app/articles/deploy-kaeso-on-a-linux-server): backups, `config check`, scaling and troubleshooting for Docker Compose installs.
- [Where to run Kaeso](https://kaeso.app/articles/where-to-run-kaeso): compare home hardware, cloud servers, managed platforms and Kubernetes.
- [Domains and TLS](https://docs.kaeso.app/self-hosting/domains-and-tls): 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

## More articles

- [Deploy Kaeso on Proxmox VE](https://kaeso.app/articles/deploy-kaeso-on-proxmox.md): Run Kaeso 0.7.0 on Proxmox VE 9.2 in a Debian or Ubuntu cloud-init VM. Why a VM fits Docker Compose better than an LXC container, guest agent, vzdump backups and updates.
- [Guardrails for model requests and replies](https://kaeso.app/articles/guardrails-in-kaeso.md): Check chat requests before they reach a provider, and replies before they reach your app. Built-in rules mask secrets and personal data into placeholders and restore them in the reply, and HTTP guardrails run checks of your own.

[See all articles](https://kaeso.app/articles.md)

## Own the gateway. Own the record

```bash
curl -fsSL https://kaeso.app/install.sh | sh
```

[Install Kaeso](https://docs.kaeso.app/self-hosting/installation) · [Open the live demo](https://demo.kaeso.app)
