P4N4 — Portable Agentic Nodes Architecture
From sensor data to answers, on your own hardware.
A CLI that sets up a self-hosted IoT and AI stack with Docker Compose, from a Raspberry Pi to a GPU server.
IoT, AI, extras and a control plane on one Docker network. The IoT layer is the MING stack, covered below. The AI layer runs local LLMs and edge models beside it.
--layer. Only those start.Four common open source services. p4n4 sets them up and connects them for you.
Six example projects in p4n4-templates, each built around a real use case.
Work in progress. Each template's README explains how to run it.
Browse templatesMilliseconds to flag, seconds to explain. The edge model checks every reading. System 1 and the LLM only run when one looks wrong.
Any 64-bit Linux machine with Docker. Tested on a Raspberry Pi 5, a Jetson Orin Nano and an embedded Linux computer; the other boards are untested. Models use the CPU unless you add the NVIDIA GPU override.
Your workstation, capped to a real board's CPU, memory and disk.
Install p4n4-emu, then run p4n4 up --emu rpi5.
RPi.GPIO, so Pi code runs off the Pi.Needs Docker 24+ with Compose v2, Python 3.11+ and Git.
v0.4 is for development and trusted networks. Don't expose its ports to the internet.