Raspberry Pi
Raspberry Pi is AI Butler’s favorite deployment target. A Pi 4 (4GB) handles a dozen messaging channels, smart home control, memory search, and the web chat simultaneously — all running offline if you pair it with Ollama on a beefier machine.
What You’ll Need
Section titled “What You’ll Need”- Raspberry Pi 4 (4GB or 8GB) or Pi 5
- 32GB+ microSD card (or better, an SSD via USB 3)
- 64-bit Raspberry Pi OS (Bookworm or newer)
- Optional: a separate machine for Ollama if you want fully-local AI
1. Flash the OS
Section titled “1. Flash the OS”Use Raspberry Pi Imager and pick Raspberry Pi OS (64-bit). In the advanced options, set a hostname, enable SSH, and configure WiFi.
2. Install AI Butler
Section titled “2. Install AI Butler”SSH into the Pi and download the ARM64 release:
cd /tmpcurl -sSL https://github.com/LumabyteCo/aibutler/releases/latest/download/aibutler_Linux_arm64.tar.gz | tar xzsudo mv aibutler /usr/local/bin/Verify:
aibutler version3. Set Up a systemd Service
Section titled “3. Set Up a systemd Service”sudo useradd --system --home /var/lib/aibutler --create-home aibutlersudo mkdir -p /etc/aibutlersudo chown aibutler:aibutler /var/lib/aibutler /etc/aibutlerCreate /etc/systemd/system/aibutler.service:
[Unit]Description=AI ButlerAfter=network-online.targetWants=network-online.target
[Service]Type=simpleUser=aibutlerGroup=aibutlerWorkingDirectory=/var/lib/aibutlerExecStart=/usr/local/bin/aibutler run --config /etc/aibutler/config.yamlRestart=on-failureRestartSec=5s
# HardeningNoNewPrivileges=trueProtectSystem=strictProtectHome=truePrivateTmp=trueReadWritePaths=/var/lib/aibutlerCapabilityBoundingSet=
[Install]WantedBy=multi-user.targetEnable and start:
sudo systemctl daemon-reloadsudo systemctl enable --now aibutlersudo systemctl status aibutler4. Configure
Section titled “4. Configure”sudo -u aibutler aibutler vault set anthropic_api_key sk-ant-...Or use a fully-local setup pointing at Ollama on a separate machine:
settings: model_provider: ollama
configurations: model: ollama: base_url: http://ollama-server.local:11434 model: llama3.35. Access
Section titled “5. Access”The web chat is at http://aibutler.local:3377 (mDNS) or the Pi’s IP. Connect messaging channels via the guides in Channels.
Performance Tips
Section titled “Performance Tips”Use an SSD
Section titled “Use an SSD”MicroSD cards are the #1 bottleneck. A cheap USB 3 SSD enclosure with a 250GB SATA SSD transforms a Pi 4 — boot times, database writes, and backup performance all improve dramatically.
Tune SQLite
Section titled “Tune SQLite”AI Butler already sets WAL mode, but on a Pi you can push it further:
configurations: database: cache_size_mb: 64 # default 32 mmap_size_mb: 256 # default 64 wal_autocheckpoint: 1000Offload Ollama
Section titled “Offload Ollama”Running an LLM on the Pi itself is slow. Instead, run Ollama on a more powerful machine (NAS, old desktop, Mac mini) and point AI Butler at it over your LAN. The Pi handles channels, memory, and tools; the other machine handles inference.
Schedule heavy tasks
Section titled “Schedule heavy tasks”If you run batch jobs (summaries, backups), schedule them overnight:
aibutler schedule create --name nightly-digest --cron "0 3 * * *" --prompt "..."Power & Cooling
Section titled “Power & Cooling”- Use the official Pi 4 USB-C power supply (3A) — undervoltage causes silent corruption
- Pi 5 needs the official 5A supply
- A passive heatsink is enough for messaging-only workloads; add a fan if you push the CPU with Ollama or media processing
Backup
Section titled “Backup”Back up /var/lib/aibutler/aibutler.db nightly to another machine:
# On the Pi, via rsync over SSHrsync -av /var/lib/aibutler/aibutler.db backup-host:/srv/backups/pi-aibutler/Or use the built-in remote backup target pointed at a MinIO instance on your NAS.