AI Agent Hardware

Build a Self-Hosted AI Agent Server
with Raspberry Pi 5

Everything you need to run n8n, webhooks, publishing queues, and automation pipelines 24/7. One-time hardware cost. No monthly subscription. Every part available on Amazon.

Updated March 2026. Pi 5 price increased Feb 2026 due to AI memory shortage.
~$230 One-time build
vs
$360 Zapier / yr
Pays for itself in under 8 months. After that it runs free forever. The Pi 5 draws about 5W under light load: roughly $0.50/month in electricity.
n8n - automation orchestration hub
Webhooks - receives signals from any tool
Publishing queue - 14-day content buffer
RSS triggers - fires on new approved scripts
File sync - watches folders for new content
YouTube / social posting - scheduled publish
Tailscale VPN - secure remote access
Monitoring dashboard - pipeline health alerts
2
Power Supply - Same for both paths
27W USB-C PD 5.1V / 5A output Official Raspberry Pi

Do not cheap out here. The Pi 5 needs 5A to power USB peripherals reliably. Third-party supplies cause random crashes and throttling. The official supply is built for 24/7 operation.

~$12
Amazon
Buy Now
Step 3 & 4 - Choose One Path

The case, NVMe HAT, and SSD are tightly coupled. Pick one complete path and buy everything in it. Do not mix parts between paths.

These parts are NOT interchangeable. Path A uses a 2280 SSD (80mm). Path B uses a 2242 SSD (42mm). Buy the wrong SSD and it physically will not fit.
Path A Clean Build - Recommended ~$80
Case + NVMe Slot + Fan (all-in-one)
M.2 2280 slot built-in Active fan + aluminum heatsink GPIO passthrough

Replaces the HAT, the case, and the cooling in one clean aluminum enclosure. M.2 slot is in the base. Fan speed is programmable. No external HAT board sticking up, no separate cooler to mount.

~$45
Amazon
Buy Now
NVMe SSD - must be M.2 2280
WD Green SN350 250GB NVMe SSD 2280 only - fits Argon ONE
M.2 2280 (80mm) 250GB NVMe PCIe Gen3 2,400 MB/s read

Your OS, Docker volumes, and n8n database on one fast drive. NVMe is 40-100x faster than SD for the random read/write an automation server does constantly. Standard 2280 length fits the Argon ONE M.2 slot perfectly.

~$35
Amazon
Buy Now
Path B Budget Build - More parts, lower cost ~$52
Official Pi 5 Case + Fan
Official Pi 5 case PWM temp-controlled fan ABS/PC enclosure

The official case is clean and cheap. Note: the lid won't close over the M.2 HAT+. Run it open or remove the lid for the HAT to sit on top.

~$10
Amazon
Buy Now
Official M.2 HAT+ (NVMe adapter)
PCIe FPC connector 2230 & 2242 form factors only Official Raspberry Pi

Connects to the Pi 5's PCIe FPC ribbon connector. Sits on top as a hat. Only accepts 2230 (30mm) and 2242 (42mm) length SSDs. A standard 2280 will not seat properly.

~$12
Amazon
Buy Now
NVMe SSD - must be M.2 2242
M.2 2242 NVMe SSD 256GB 2242 only - fits HAT+
M.2 2242 (42mm shorter drive) 256GB+ NVMe

Less common than 2280 but multiple brands make them: Kingston NV2 2242, Sabrent Rocket 2242, WD SN530 2242. Filter the search link for 2242 size. Do not accidentally order a 2280 - it will not seat in the official HAT+.

~$30
approx
Browse
5
Boot / Setup Card (temporary) - Same for both paths
32GB High-endurance NAND Class 10 / U1

Used only to flash Raspberry Pi OS and set up NVMe boot. Once the OS is transferred to the NVMe SSD (about 20 minutes), this card lives in a drawer as a recovery backup.

~$11
Amazon
Buy Now
6
Network Connection - Same for both paths
Cat6 Gigabit Fluke tested 6ft

Hardwire it. A server on WiFi is a server that drops at 2am during a pipeline run. Ethernet gives you stable latency, full gigabit speed, and one less failure point.

~$5
Amazon
Buy Now
Path A - Clean Build (Argon ONE) ~$241
Path B - Budget Build (Official HAT+) ~$213
Raspberry Pi 5 (8GB) - both paths ~$133
Official 27W Power Supply - both paths ~$12
Samsung 32GB microSD - both paths ~$11
StarTech Cat6 Cable - both paths ~$5
Path A: Argon ONE + WD Green 2280 SSD ~$80
Path B: Official Case + M.2 HAT+ + 2242 SSD ~$52
Zapier Starter is $29.99/month: $360/year. Even Path A pays for itself in under 9 months, then runs free. The Pi 5 draws 5-8W under load: roughly $0.50-1.00/month in electricity. Five-year TCO vs. Zapier: ~$250 vs. $1,800.
01Flash Raspberry Pi OS to microSD card using Raspberry Pi Imager
02Boot, connect via SSH, transfer OS to NVMe SSD, set NVMe as primary boot
03Install Docker - makes every service below a single command to deploy and update
04Deploy n8n via Docker container - your automation orchestration hub
05Install Tailscale for secure remote access without exposing ports to the internet
06Configure UFW firewall + Fail2ban + key-based SSH only (no password auth)
07Build n8n workflows: RSS triggers, file watchers, publishing queue, webhook endpoints
08Enable unattended security updates, test pipeline end-to-end, run headless