Who it is forA maker with a Raspberry Pi 5 who wants a self-contained offline chat device and can build pinned firmware once.
The problemA Pi normally runs a full Linux system for a local model, and the setup is heavy for a single-purpose device.
The outcomeA microSD card that boots the Pi 5 into a NightRun chat prompt with the chosen model in RAM.
What you need first
- A Linux machine with Rust stable and nightly installed
- About 6 GB of free disk for a model plus the image
- A USB stick (x86_64 target) or microSD card (Raspberry Pi 5 target), or QEMU for testing without hardware
- For real hardware: a 64-bit UEFI x86_64 PC with Secure Boot off, or a Raspberry Pi 5
Steps
- Run
git clone https://github.com/hardrave/NIGHTRUN.gitand thencd NIGHTRUN. - Run
scripts/build-rpi5-firmware.shonce to build the UEFI firmware from pinned source, following docs/rpi5-uefi.md. - Run
cargo xtask pi-image --model models/model.nrmto build nightrun-pi5.img. - Run
sudo dd if=nightrun-pi5.img of=/dev/REPLACE_WITH_SD_DEVICE bs=4M status=progress conv=fsync, replacing the placeholder with the whole microSD device after checking it withlsblk -d -o NAME,SIZE,MODEL,TRAN. (inferred, check the README) - Insert the microSD card into the Pi 5 and power it on.
Prompt for your agent
Use the repo hardrave/NIGHTRUN to build a Raspberry Pi 5 image at models/model.nrm for the target <target> (a whole-disk microSD device). Expected output: nightrun-pi5.img built with cargo xtask pi-image and written to the card. Verify that the device name matches <target> before any write step runs.
Caveat. The README says the Pi 5 build was validated on a real D0-stepping 8 GB board, and the Llama 3.2 1B and Granite models need at least 4 GB and 6 GB of RAM respectively.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for hardrave/NIGHTRUN and "Boot a local LLM on a Raspberry Pi 5 from SD"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer