Raspberry Pi Setup
Running Mycelos on a Raspberry Pi
Mycelos runs beautifully on a Raspberry Pi — your own private AI assistant on a $50 device. Access it from any device on your home network: phone, tablet, laptop.
Requirements
- Raspberry Pi 4 or 5 (4GB+ RAM recommended, 8GB on the Pi 5 if you run anything besides Mycelos)
- Raspberry Pi OS (64-bit)
- Docker + Compose v2 — see the official install guide
- Ollama on another machine (optional, for local LLM — see Ollama Guide)
Nothing else needs to be on the Pi. Python, Node, and every runtime dependency ship inside the container image.
Installation
curl -fsSL https://raw.githubusercontent.com/mycelos-ai/mycelos/main/scripts/install.sh | bash
That’s the whole install. It creates ./data/ and ./secrets/, generates the master key (in ./secrets/, back it up) + proxy token, pulls the Mycelos image, and brings up the gateway + proxy containers. Expect 1-2 minutes on a Pi 5 (image pull dominates).
Network access
By default the gateway binds to 127.0.0.1 inside the Pi, which means no other device on your network can reach it yet. To open it up to your home network:
cd ~/mycelos-new # wherever install.sh placed docker-compose.yml
nano .env
Add or uncomment these two lines:
MYCELOS_BIND=0.0.0.0
MYCELOS_PASSWORD=a-long-random-password-you-pick-now
Then apply:
mycelos restart
Open from any device on your network:
http://raspberrypi.local:9100
…or the IP directly: http://192.168.1.42:9100. Your browser will ask for a username (leave blank) and the password you set.
Security notes
MYCELOS_PASSWORDis the only authentication in v0.3. Make it long and random.- LAN-only is the safe scope. Your home router already blocks external access.
- Do not port-forward the gateway to the public internet in v0.3 — put it behind a TLS-terminating reverse proxy (Caddy, Tailscale serve, Cloudflare tunnel) if you need off-LAN access.
- Passkey-based web auth ships in Phase 2.
Autostart on boot
Docker handles this automatically. The docker-compose.yml sets restart: unless-stopped, so both containers come back on reboot. No systemd unit needed.
If Docker itself doesn’t start at boot:
sudo systemctl enable docker
Using with Ollama (local LLM)
Note: Running LLMs directly on a Raspberry Pi is possible but very slow. For a usable local LLM experience, run Ollama on a Mac Mini (Apple Silicon) or another GPU-capable machine on your network, and point Mycelos to it via the web UI’s provider setup.
For a basic offline setup on the Pi itself:
- Install Ollama:
curl -fsSL https://ollama.com/install.sh | sh - Pull a small model:
ollama pull gemma2:2b - Configure Mycelos to use it — see the Ollama Guide.
Recommended models
| Device | RAM | Model | Size | Speed |
|---|---|---|---|---|
| Raspberry Pi | 4GB | gemma2:2b | 1.6GB | Slow but works |
| Raspberry Pi | 8GB | phi3:mini | 2.3GB | Slow |
| Mac Mini M1+ | 8GB+ | gemma3:4b | 3.3GB | Fast |
| Mac Mini M1+ | 16GB+ | llama3:latest | 4.7GB | Fast |
Recommended setup: run Mycelos on the Raspberry Pi (low power, always on) and Ollama on a Mac Mini on the same network.
Troubleshooting
If something isn’t working, use the built-in diagnostic tool:
mycelos doctor # Quick health check
mycelos doctor --why # LLM-powered diagnosis (interactive)
mycelos logs -f # Follow gateway + proxy logs
The doctor analyzes your system state, audit logs, and configuration to find root causes.
Telegram sends messages but doesn’t receive them
If your daily briefing (or any outbound message) arrives, but the bot ignores messages you send it, the inbound polling thread never started. On a Pi the boot sequence (imports + model registry + MCP discovery) can take longer than the credential bootstrap window, so the Telegram token is never handed to the polling thread — while outbound sends keep working because they go through the proxy and don’t need it.
mycelos doctor --check telegram detects this directly. The fix:
# A fresh boot reopens the bootstrap window:
docker compose down && docker compose up -d
If it keeps happening on a slow Pi, widen the window in your .env:
MYCELOS_BOOTSTRAP_WINDOW=600 # seconds; default is 300
pi5.local pings but curl / the browser hangs from the Mac
Happens on macOS when ping pi5.local succeeds but curl http://pi5.local:9100 times out, while the IP works:
curl http://192.168.0.111:9100 # works
curl http://pi5.local:9100 # hangs
Usually the Mac’s mDNS responder is sitting on a stale record (often an IPv6 address that is no longer valid). Clear it:
# on the Mac
sudo killall -HUP mDNSResponder
sudo killall mDNSResponderHelper
curl http://pi5.local:9100
If that doesn’t help, force IPv4: curl -4 http://pi5.local:9100. For a permanent fix pin the hostname in /etc/hosts on the Mac:
sudo sh -c 'echo "192.168.0.111 pi5.local pi5" >> /etc/hosts'
pi5.local resolves to a Docker address
Avahi on the Pi announces .local on every interface by default — including Docker’s virtual vethX interfaces, which confuses clients on the LAN. Restrict Avahi to the real LAN interface:
sudo sed -i 's/^#allow-interfaces=.*/allow-interfaces=eth0/' /etc/avahi/avahi-daemon.conf
sudo systemctl restart avahi-daemon
(Change eth0 to wlan0 if the Pi is on Wi-Fi — ip -br link | grep UP shows which.)
Port 9100 open on the Pi but times out from the Mac
After toggling MYCELOS_BIND in .env, Docker compose needs to recreate the container, not just restart it — the ports: mapping is set at container creation time:
cd ~/mycelos-new
docker compose up -d --force-recreate
mycelos update also triggers a recreate via docker compose pull && up -d.
Tips
- Use Telegram to chat with Mycelos from your phone (no browser needed — see connectors).
- Register the Pi with Bonjour/mDNS so
raspberrypi.localresolves on iOS and macOS. - Put the data volume on a USB SSD instead of the SD card for better database performance: bind-mount your SSD path with
MYCELOS_DATA_DIR=/mnt/ssd/mycelosin.env. - The web UI works well on mobile browsers — Mycelos is PWA-friendly.