# fx on a Raspberry Pi

> Whether fx 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 fx 0.0.11 in EnvHaven v1.9.0_

fx runs on a Raspberry Pi with a 64-bit operating system: releases include a Linux aarch64 build. ([source](https://github.com/vercel-labs/fx/releases/latest)) 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 fx and tap **Sign in**: it starts fx, which asks you to sign in the first time. For an API key, choose **Set key** instead and paste `AI_GATEWAY_API_KEY`; the workspace keeps it write-only.
3. Start it with one tap: signed in, fx gets a green dot in the Launch menu and an icon in the workspace's top bar. Support is built in (0.0.11), so there is nothing to install or update.
4. Give it a task. The image sets `FX_PERMISSION_MODE=yolo`, which fx 0.0.11 reports as "mode=full access".
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 fx.**

```bash
curl -fsSL https://fx.sh/setup.sh | bash
```

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

- Run `fx login` for a Vercel account (AI Gateway, the default provider), `fx login codex` for a ChatGPT plan or `fx login grok` for SuperGrok.
- For scripts and CI, set `AI_GATEWAY_API_KEY`.

**Keep it running after you disconnect.**

```bash
tmux new -s fx
export FX_PERMISSION_MODE=yolo
fx
# detach: Ctrl+B, then D. Come back with: tmux attach -t fx
```

**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

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

Source: https://envhaven.com/agents/fx/raspberry-pi
