🧠 Running MESH-AI on a Raspberry Pi #27
Pinned
mr-tbot
announced in
Announcements
Replies: 2 comments
-
You can also now use docker to run this on RPI (and other ARM based platforms) - see the READ ME for more details! |
Beta Was this translation helpful? Give feedback.
0 replies
-
These instructions have been slightly updated based on personal experience. Hopefully this helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🧠 Running MESH-AI on a Raspberry Pi (Pi 4 or 5 Recommended)
📦 Step 1: Update Your System
sudo apt update && sudo apt upgrade -y
🧠 Step 2: Install Ollama and Download a Language Model
MESH-AI uses Ollama to run local LLMs.
Install Ollama:
sudo apt install curl -y curl -fsSL https://ollama.com/install.sh | sh
Verify the Installation:
Run the Model Once to Download & Initialize:
Once it loads successfully, press
Ctrl+C
to exit.🐍 Step 3: Install Python 3.13 from Source
The default Python (3.11) is outdated — install Python 3.13 for best compatibility.
Install Required Build Tools:
sudo apt update && sudo apt install -y \ build-essential libssl-dev zlib1g-dev libbz2-dev \ libreadline-dev libsqlite3-dev wget curl llvm \ libncursesw5-dev xz-utils tk-dev libxml2-dev \ libxmlsec1-dev libffi-dev liblzma-dev git
Download and Build Python 3.13.2:
🔄 Step 4: Set Python 3.13 as Default
📥 Step 5: Install pip for Python 3.13
curl -sS https://bootstrap.pypa.io/get-pip.py | python3
If that fails:
Optional: Fix Missing
pip
Command🧼 Optional: Remove Older Python Versions
Only if everything is working:
🚀 Step 6: Clone and Set Up MESH-AI
git clone https://github.com/mr-tbot/mesh-ai.git cd mesh-ai
Create and Activate Virtual Environment:
python3 -m venv mesh-ai source mesh-ai/bin/activate
Install Dependencies:
Configure Files:
Edit the following as needed:
config.json
commands_config.json
motd.json
If using USB / Serial - Add user to dialout group
Identify your connected device - typically /dev/ttyUSB0
Check Permissions
You'll see something like this:
Then simply run the following while running as your intended user. Not root:
Then open http://localhost:5000/dashboard in your browser.
🔁 Step 8: Auto-Start MESH-AI at Boot
Create Startup Script
Create a file named
start-mesh-ai.sh
in your project folder:Paste this in:
Make it executable:
Create systemd Service
Paste this:
Enable and Start the Service
sudo systemctl daemon-reexec sudo systemctl daemon-reload sudo systemctl enable mesh-ai.service sudo systemctl start mesh-ai.service
Check Service Status
To view live logs:
✅ Done!
MESH-AI is now running on your Raspberry Pi, auto-starts at boot, and is ready to respond to messages with the help of your local Ollama Server.
Beta Was this translation helpful? Give feedback.
All reactions