# Claude Code on a Raspberry Pi

> Whether Claude Code runs on a Raspberry Pi, and how to set it up there: install, sign in without a browser, keep it running. Or skip the hardware with an always-on EnvHaven workspace.

_Updated November 23, 2026 · Checked against Claude Code 2.1.308 in EnvHaven v1.9.0_

Claude Code runs on a Raspberry Pi with a 64-bit operating system: its requirements include ARM64, and releases ship a linux-arm64 build. ([source](https://code.claude.com/docs/en/setup)) What a Pi gives it is a small machine that never sleeps; the work is the same as on any remote server: signing in without a browser, keeping the session alive, and reaching it from elsewhere.

## The always-on machine without the hardware

An EnvHaven workspace is the machine a Pi stands in for, without the hardware: no SD card to wear out, no power cut to recover from, and no port to open on your home connection.

1. Open your workspace in any browser. It is a Linux server of its own, always on.
2. Tap **Launch**, choose Claude Code and tap **Sign in**: it opens claude.ai so you can approve the workspace, then takes the short code the page shows, so a Claude plan works with no API key. For an API key, choose **Set key** instead and paste `ANTHROPIC_API_KEY` or `CLAUDE_CODE_OAUTH_TOKEN`; the workspace keeps it write-only.
3. Start it with one tap: signed in, Claude Code gets a green dot in the Launch menu and an icon in the workspace's top bar. Support is built in (2.1.308), so there is nothing to install or update.
4. Give it a task. The image writes `defaultMode: "bypassPermissions"` into the workspace user's own settings, so `claude` starts without prompts, as an unprivileged user.
5. Close the tab. The session keeps running, and you reach it from any device without opening a port at home.

## On a Raspberry Pi

**Prepare the Pi.** A Pi 4 or 5 with a 64-bit Raspberry Pi OS (Lite is enough), SSH turned on, and a regular user to run the agent.

**Install Claude Code.**

```bash
curl -fsSL https://claude.ai/install.sh | bash
```

**Sign in without a browser on the Pi.**

- Run `claude` and sign in in the browser (or later with `/login`); on a remote machine, press `c` to copy the URL and paste back the code it shows.
- Or set `ANTHROPIC_API_KEY` for a Console API key, or `CLAUDE_CODE_OAUTH_TOKEN` with a one-year token from `claude setup-token` for CI and headless machines.

**Keep it running after you disconnect.**

```bash
tmux new -s claude-code
claude --dangerously-skip-permissions
# detach: Ctrl+B, then D. Come back with: tmux attach -t claude-code
```

**Reach it from elsewhere.** SSH works on your home network; from outside it you need a VPN such as WireGuard or [Tailscale](https://envhaven.com/guides/claude-code-over-tailscale), or a port opened on your router.

## Keep reading

- [Claude Code](https://envhaven.com/agents/claude-code)
- [Claude Code in the browser](https://envhaven.com/agents/claude-code/browser)
- [Claude Code on iPhone](https://envhaven.com/agents/claude-code/iphone)
- [Claude Code on iPad](https://envhaven.com/agents/claude-code/ipad)
- [Claude Code on Android](https://envhaven.com/agents/claude-code/android)
- [Claude Code on a Chromebook](https://envhaven.com/agents/claude-code/chromebook)
- [Coding agents on a Raspberry Pi](https://envhaven.com/agents/raspberry-pi)

Source: https://envhaven.com/agents/claude-code/raspberry-pi
