Self-Hosted AI Agent
A small black Lenovo ThinkCentre Tiny standing next to a coffee mug

Can Claude Code run on a Raspberry Pi 5?

Yes, on a 4 GB or larger Pi 5. Claude Code supports ARM64 processors and Debian 10+, and needs 4 GB of memory.

What Claude Code needs

From Claude Code’s own documentation, checked 28 October 2026.

Operating systemmacOS 13.0+, Windows 10 1809+ or Windows Server 2019+, Ubuntu 20.04+, Debian 10+ or Alpine Linux 3.19+
Hardware4 GB+ RAM and an x64 or ARM64 processor
AccountA Pro, Max, Team, Enterprise or Console account; the free Claude plan does not include Claude Code
NetworkAn internet connection; the model runs in Anthropic’s cloud

What a Raspberry Pi 5 brings

Power and running costAbout 2.7 W at idle, so roughly $0.36 a month left on all day at the US average electricity price
Good to knowOpenClaw's docs rate a 4 or 8 GB Pi 5 as the best Pi for its gateway, recommend a USB SSD over an SD card, and advise against running local models on a Pi.
Left on all dayThe lowest power draw here, but it is ARM-based, so some optional tools may lack builds, and it is too slow for local models.

Local models on a Raspberry Pi 5

OpenClaw’s Raspberry Pi guide says not to run local models on a Pi: “even small models are too slow to be useful.” Use a cloud model. The memory table shows what each model size needs.

Questions

Is a Raspberry Pi 5 enough for Claude Code?

Yes, on a 4 GB or larger Pi 5. Claude Code supports ARM64 processors and Debian 10+, and needs 4 GB of memory.

What does it cost to keep a Raspberry Pi 5 running for Claude Code?

About 2.7 W at idle, so roughly $0.36 a month left on all day at the US average electricity price. The AI model is usually the bigger monthly cost.

Can Claude Code use a local model on a Raspberry Pi 5?

OpenClaw’s Raspberry Pi guide says not to run local models on a Pi: “even small models are too slow to be useful.” Use a cloud model.

Other combinations

Claude Code on An old laptop · An old office PC · An N100 mini PC · A Mac mini · A VPS.

On a Raspberry Pi 5: OpenClaw · Hermes Agent · Codex. See every agent and computer.

Sources