OmniscioGuidesClaude Code on a Raspberry Pi
Claude Code on a Raspberry Pi
A Pi is a plausible small always-on machine for Claude Code, and for most boards the question is simply memory. The Pi 4 is the exception: there the release you install matters as much as the board.
Last checked against Anthropic's documentation on November 25, 2026. By the Omniscio team. Updated .
Is a Raspberry Pi supported?
Anthropic's requirements name the hardware and the systems separately. The hardware is "4 GB+ RAM, x64 or ARM64 processor", and a Raspberry Pi 4 or 5 fits that description exactly: both are 64-bit Arm boards.
The system list is macOS, Windows, Ubuntu 20.04 or later, Debian 10 or later, and Alpine 3.19 or later. Raspberry Pi's own documentation says Raspberry Pi OS is based on Debian and follows a staggered version of the Debian release cycle, with the current release built on Debian Trixie — well past the Debian 10 floor.
What Anthropic does not do is name Raspberry Pi anywhere. There is no Pi-specific installer, no Pi section in its documentation, and nothing that promises a later release keeps working on the same silicon. You are inside every written requirement and outside anything Anthropic says it has tested, which is where the crash below comes from.
Which Pi models meet the requirement?
Memory is the deciding number, because 4 GB is the floor and a board's RAM is fixed. Raspberry Pi's model documentation gives the options per board:
| Board | RAM options | Against the 4 GB floor |
|---|---|---|
| Raspberry Pi 5 | 1, 2, 4, 8 or 16 GB | 4 GB and above are inside it |
| Raspberry Pi 4 Model B | 1, 2, 3, 4 or 8 GB | 4 GB and 8 GB are inside it |
| Raspberry Pi 3 Model B and 3B+ | 1 GB | Below the floor |
| Raspberry Pi 3A+ | 512 MB | Below the floor |
| Raspberry Pi Zero, Zero W and Zero 2 W | 512 MB | Below the floor |
The processor matters too, in a way the requirements do not spell out. Raspberry Pi documents the Pi 4's core as a Cortex-A72 at Armv8-A, and the Pi 5's as a Cortex-A76 at the same Armv8-A level. Those are different generations of core under one instruction-set name, which is exactly what the crash section turns on.
The 4 GB boards are the minimum, not a comfortable margin. A Pi already running a web server, a database or a desktop session is spending part of that 4 GB before Claude Code starts, so check with free -h before deciding the board is fine.
How do I install it?
Check the architecture before installing, not after. Anthropic's own guidance for a binary that will not run is uname -m, and on a Pi it decides everything:
uname -maarch64 means a 64-bit system, which is what Anthropic's ARM64 support assumes. armv7l means the installed OS is 32-bit, and no Claude Code build matches it — reinstall Raspberry Pi OS in its 64-bit form first.
There is nothing Pi-specific about the install itself. The board is a Linux machine, and the documented Linux install runs on it — over SSH on a headless board, or in a terminal on the desktop:
curl -fsSL https://claude.ai/install.sh | bashThe installer picks a binary for the processor, so on a Pi it downloads the ARM64 build. It shows no progress while it downloads, so leave the window open and wait.
Open a new terminal afterwards and run claude --version. A version number means it is installed; a command not found means the install directory is not on your PATH yet, which the Linux guide covers along with the rest of the setup.
What if it crashes with Illegal instruction?
Anthropic documents two causes for this message: the installer downloaded the wrong architecture, or the processor lacks AVX "or another instruction the binary requires". The Pi 4 is the second case. It is ARM64 with an ARM64 binary, so the architecture is right; what it lacks is a specific instruction.
One public report names that instruction. An auto-update from 2.1.318 to 2.1.322 left a Pi 4 crashing with Illegal instruction while 2.1.318 on the same machine still ran, and the reporter traced it to LSE atomics — an Armv8.1 feature the Pi 4's Armv8.0 cores do not implement. The issue's title says "since 2.1.318" while its body says 2.1.318 works, so treat 2.1.322 as the first known-bad release and read the thread before assuming anything about later ones.
The workaround: stay on the version that runs
The reporter's workaround is to stay on 2.1.318 with background updates off. Installing that version directly takes a version number on the installer:
curl -fsSL https://claude.ai/install.sh | bash -s 2.1.318
claude --versionAnthropic says the command prints the exact version you passed, so claude --version is the confirmation that the pin took. It also notes the installer script itself is always the latest release's, which is why the version has to be passed explicitly every time you reinstall.
Then stop background updates, or the next check replaces it. If you already have a ~/.claude/settings.json, add the env block to it rather than replacing the file; if you do not, create it with this content:
{
"env": {
"DISABLE_AUTOUPDATER": "1"
}
}DISABLE_AUTOUPDATER stops the background check only — claude update and claude install still work, which is what you want when a fixed release arrives. Anthropic documents DISABLE_UPDATES as the way to block every update path, including those two.
Confirm the setting took effect with claude doctor: its Auto-updates line should read disabled (set by env: DISABLE_AUTOUPDATER) rather than enabled.
The open issue is where a fix will appear. Nothing in the public record establishes whether a Pi 5 is affected: the report is filed against the Pi 4's Cortex-A72 and never mentions a Pi 5, so check your own board with the steps below rather than assume either way.
How do I confirm it works?
Anthropic's own checks first:
claude --version
claude doctorA version number means the binary runs on this board at all. claude doctor prints read-only installation and settings diagnostics without starting a session: install health, settings-file validation errors, and warnings with suggested fixes.
Then the checks that are specific to a small board:
free -hshows how much memory is actually free. Below about a gigabyte, a build or a test run will be slow whatever the requirements say.- Start a session and let it run a command. If it dies with
Illegal instructionanduname -malready saidaarch64, that is the release bug rather than a 32-bit install — check the version against the issue. - Run
claude doctorafter an update attempt, which is where a failed auto-update shows up.
Is a Pi fast enough to be pleasant?
Claude Code itself is light: it is a terminal program that talks to an API, and the model does the heavy thinking elsewhere. What is slow on a Pi is everything Claude runs for you — a build, a test suite, a repository-wide search.
So the honest split is: a 4 GB board is fine for reading, editing and committing on a small project, and painful for building one. If the work is a big build, the Pi is better used as the machine that holds the repository while the compiling happens elsewhere.
Where these answers come from
- Anthropic's advanced setup page, read November 25, 2026: the operating-system list, the 4 GB and ARM64 hardware requirement, the install line, installing a specific version, the update settings, and the
claude doctorcheck. - Anthropic's install troubleshooting, Illegal instruction, read November 25, 2026: the two documented causes, the
uname -mcheck, and the statement that alternative install methods download the same binary. - Anthropic's terminal guide, read November 25, 2026: the installer showing no progress while it downloads.
- Raspberry Pi's own operating-system introduction, read November 25, 2026: Raspberry Pi OS is based on Debian, the staggered release cycle, and the current Debian Trixie base.
- Raspberry Pi's model documentation, read November 25, 2026: the RAM options for the Pi 5, Pi 4 Model B, Pi 3A+ and Pi 3 Model B and 3B+.
- Raspberry Pi's Zero models page, read November 25, 2026: 512 MB on the Zero, Zero W and Zero 2 W.
- The BCM2711 processor page, read November 25, 2026: the Pi 4's quad-core Cortex-A72, Armv8-A, 64-bit.
- The BCM2712 processor page, read November 25, 2026: the Pi 5's quad-core Cortex-A76.
- Claude Code issue 109241, read November 25, 2026: the crash from 2.1.322, the missing LSE atomics, 2.1.318 still working, and the stay-on-2.1.318 workaround.
Common questions
Can you run Claude Code on a Raspberry Pi?
Yes on a board with 4 GB of RAM or more. Anthropic supports ARM64 processors, and Raspberry Pi OS is a Debian derivative while Debian 10 or later is on Anthropic's list. A Pi 5 with 4 GB or more, or a Pi 4 with 4 GB or 8 GB, is inside that. A 2 GB board or a Pi 3 is below the memory floor.
Why does Claude Code crash with Illegal instruction on a Pi 4?
One public report has version 2.1.322 dying with Illegal instruction on a Pi 4 after an auto-update from 2.1.318, which still runs. Anthropic's second documented cause for this message is a CPU that lacks AVX or another instruction the binary requires, and the report identifies the missing feature as LSE atomics, which the Pi 4's Armv8.0 cores do not implement.
Which version should I stay on with a Pi 4?
The reporter's workaround is to stay on 2.1.318 with background updates disabled, and to install that version directly with curl -fsSL https://claude.ai/install.sh | bash -s 2.1.318. Anthropic says the installer prints back the exact version you passed, so check it with claude --version, then watch the issue for a fix before moving to a newer release.
Does Claude Code need a desktop on the Pi?
No. Claude Code is a terminal program and runs over SSH on a headless board. What it does need is memory headroom for the machine's other work: a Pi already running a web server or a database has less of its 4 GB free.
Will a Pi 3 or a Pi Zero work?
Not within Anthropic's requirements. A Pi 3 Model B has 1 GB, a Pi 3A+ has 512 MB and a Pi Zero has 512 MB, against a documented floor of 4 GB. The install itself asks only for about 512 MB free, so it may well finish, but a session that builds or tests will be the first thing the out-of-memory killer takes.