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

Installation

# Install Python 3.12+ (if not already available)
sudo apt update
sudo apt install python3.12 python3.12-pip nodejs npm

# Install Mycelos
pip install mycelos

# Initialize
export MYCELOS_MASTER_KEY=$(openssl rand -hex 32)
mycelos init

Network Access

By default, Mycelos only listens on localhost. To access it from other devices:

# Listen on all interfaces (accessible from your home network)
mycelos serve --host 0.0.0.0 --port 9100 --password your-secret-password

Then open from any device on your network:

http://raspberrypi.local:9100

Or use the IP address directly:

http://192.168.1.42:9100

Security Notes

Autostart on Boot

Create a systemd service so Mycelos starts automatically:

sudo nano /etc/systemd/system/mycelos.service
[Unit]
Description=Mycelos AI Assistant
After=network.target

[Service]
Type=simple
User=pi
Environment=MYCELOS_MASTER_KEY=your-master-key-here
ExecStart=/usr/local/bin/mycelos serve --host 0.0.0.0 --port 9100 --password your-password
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target
sudo systemctl enable mycelos
sudo systemctl start mycelos

Using with Ollama (Local LLM)

Note: Running LLMs directly on a Raspberry Pi is possible but very slow. For a better local LLM experience, run Ollama on a Mac Mini (Apple Silicon) or another machine on your network, and point Mycelos to it: mycelos model add ollama --api-base http://mac-mini.local:11434

For a basic offline setup on the Pi:

  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 Ollama (see 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. Best of both worlds.

Troubleshooting

If something isn’t working, use the built-in diagnostic tool:

mycelos doctor              # Quick health check
mycelos doctor --why        # LLM-powered diagnosis (interactive)

The doctor analyzes your system state, audit logs, and configuration to find root causes.

Tips