Mycelos logo mycelos

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

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

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:

  1. Install Ollama: curl -fsSL https://ollama.com/install.sh | sh
  2. Pull a small model: ollama pull gemma2:2b
  3. Configure Mycelos to use it — see the Ollama Guide.
DeviceRAMModelSizeSpeed
Raspberry Pi4GBgemma2:2b1.6GBSlow but works
Raspberry Pi8GBphi3:mini2.3GBSlow
Mac Mini M1+8GB+gemma3:4b3.3GBFast
Mac Mini M1+16GB+llama3:latest4.7GBFast

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