Explore Omarchy’s Hyprland desktop on Raspberry Pi 5, then try an AI-assisted coding workflow with opencode and Claude Code.

For this project, the author built a Raspberry Pi 5 system image from community Omarchy adaptation source, then verified desktop boot and AI agent usage. The resulting 16 GiB image is archived for readers to download, verify, and flash to try the Omarchy/Hyprland desktop. Alternatively, follow the appendix to build an image from source.
The image includes Omarchy and mise. Install the agent CLIs after boot; for a desktop-only experience, complete Steps 1–4 first.
Step 1: Prepare the hardware
| Item | Requirement |
|---|---|
| Board | Raspberry Pi 5 |
| Storage | 32 GB or larger microSD card |
| Card reader | USB card reader; USB 3.0 recommended |
| Peripherals | HDMI display and keyboard |
| Power | 5 V/5 A USB-C power supply |
| Computer and network | A computer to download and flash the image; network access for downloads and online agent requests |
This image is a community prototype. The root partition expands on first boot, so a 32 GB card is sufficient for this example.
Step 2: Download and verify the image
Open the project image download page and download omarchy-pi.img, the image built and archived by the author for this project. Its size is 17,179,869,184 bytes (16 GiB).
On Linux or WSL, run:
sha256sum omarchy-pi.img
# 479d29fded1d9879d3709f6abfb4dd535a35c96139217e780cac3deb0daab2d9Compare the complete SHA-256 with the archived value above before flashing. This checksum applies to the downloaded image; record a separate checksum for a new source build.
Step 3: Flash and complete first boot
- Open Raspberry Pi Imager.
- Choose Use custom image and open the downloaded
omarchy-pi.img. - Select the target microSD card, then complete writing and verification.
- Insert the card into Raspberry Pi 5, connect HDMI and a keyboard, and power on.
- Wait for root partition expansion and complete the Omarchy owner setup shown on
tty1.
The image has no default account, and root remains locked until setup completes. Write time depends on the card and reader; keep the card connected until verification finishes.
Step 4: Explore the Omarchy desktop
After owner setup, enter the Omarchy/Hyprland desktop. Check that the desktop displays, the keyboard accepts input, and a terminal opens.
Inspect the system information in the terminal:
cat /etc/os-release
uname -rThe recorded system uses Hyprland 0.57.1, linux-rpi 6.18.60-1, and a btrfs root filesystem. Image versions and partition details are collected in the appendix; you can try the desktop without building an image first.
Step 5: Try AI agents (optional)
5.1 Install the command-line tools
Run as the desktop user:
mise use -g node@latest
mise use -g opencode@latest
mise use -g claude@latestIf mise asks for permission to build @opencode/cli, accept it. The tools are exposed through ~/.local/share/mise/shims. Check the installation:
opencode --version
claude --versionThe recorded versions are opencode 2.2.6, Claude Code 2.1.321, and Node.js 26.13.0. The latest commands select current releases, so record your installed versions.
5.2 Use opencode free models
Check authentication and the currently available free models:
opencode --version
opencode auth list
opencode models | grep -- '-free'During the project test, authentication reported No authenticated integrations. Free models included opencode/deepseek-v4.1-flash-free and opencode/glm-5.3-flash-free. Start the interactive interface:
opencode
This path needs no browser login, API key, or provider configuration. opencode controls free-model availability and rate limits; use the current model list.
5.3 Configure Claude Code
Claude Code has its own authentication and does not share opencode's free-model pool. Choose one of the following methods.
Method A: Subscription login
claude auth loginFollow the authorization URL printed by the command. When using SSH, open it in a browser on your computer or phone, then paste the returned authorization code into the terminal.
For Anthropic Console API billing, run:
claude auth login --consoleMethod B: Anthropic-compatible API
Write the following configuration to ~/.claude/settings.json, replacing the gateway, API key, and model IDs:
{
"env": {
"ANTHROPIC_BASE_URL": "https://gateway.example.com",
"ANTHROPIC_API_KEY": "YOUR_API_KEY",
"ANTHROPIC_MODEL": "YOUR_MODEL_ID",
"ANTHROPIC_SMALL_FAST_MODEL": "YOUR_MODEL_ID",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "YOUR_MODEL_ID",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "YOUR_MODEL_ID",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "YOUR_MODEL_ID",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1"
}
}The gateway must expose the Anthropic Messages API (/v1/messages). An endpoint that only supports OpenAI /v1/chat/completions requires protocol translation first.
Restrict file permissions and verify:
chmod 600 ~/.claude/settings.json
claude auth status
claude -p "Reply with exactly: OK" < /dev/nullA working configuration reports loggedIn: true and returns OK. A custom model ID may trigger a warning that assumes a 200K context window. Keep API keys in the local configuration only.

Troubleshooting
Claude Code says Not logged in
claude auth statusauthMethod: none means there is no OAuth session or API key. Complete login, or check that ~/.claude/settings.json is valid JSON and readable by the user running claude.
The gateway returns model errors
Confirm support for the Anthropic request/response format at POST /v1/messages. Check that ANTHROPIC_MODEL, ANTHROPIC_SMALL_FAST_MODEL, and the Sonnet/Opus/Haiku defaults reference model IDs accepted by the gateway. A working model-list endpoint does not prove Messages API compatibility.
opencode free models are unavailable
Run opencode upgrade and inspect the current list with opencode models. Free models may be added, removed, or rate-limited; this does not change Claude Code authentication.
Writing the microSD card is slow
The project recorded about 18 MB/s with a USB 2.0 reader: roughly 16 minutes for the 16 GiB image, followed by verification. A USB 3.0 reader and UHS-I card can improve write speed.
Appendix: Image and build records
Archived image details
| Item | Record |
|---|---|
| Image | omarchy-pi.img, 16 GiB |
| System | Omarchy, Arch Linux ARM rpi-aarch64 rootfs |
| Partitions | MBR; 512 MiB FAT32 boot partition at 8 MiB, followed by btrfs root |
| Kernel | linux-rpi 6.18.60-1 |
| Desktop | Hyprland 0.57.1 |
| Omarchy packages | omarchy-dev / omarchy-settings-dev 4.0.0.r6740.ge5e835e-1 |
| Boot package | omarchy-rpi-boot 0.4.0-1 |
| Package count | 953 |
| Root subvolumes | @, @home, @log, @pkg, @factory, .snapshots |
The boot partition includes kernel8.img, initramfs-linux.img, config.txt, cmdline.txt, bcm2712-rpi-5-b.dtb, and 388 firmware overlays, including vc4-kms-v3d.dtbo. Firmware loads the kernel and initramfs using the boot configuration; the btrfs root is mounted by UUID from the @ subvolume. omarchy-rpi-grow-root.service handles first-boot expansion.
Optional: Build from source
Use an Arch Linux x86_64 host, native or WSL2, with about 30 GB free space and these tools:
qemu-user-staticandqemu-user-static-binfmt.systemd-nspawn,btrfs-progs,dosfstools,rsync,libarchive,base-devel,git, and ImageMagick.
The script relies on the host's pacman; it cannot be applied directly to a regular Ubuntu/Debian host. See the build environment guide for setup.
| Source repository | Branch | Pinned commit |
|---|---|---|
| linyiru/omarchy-pi | main | b19674e2ebc89b4a4bb6d1aac06c80a7979fd461 |
| linyiru/omarchy | raspberry-pi-platform | e5e835ee8b3098c0736d17a1b71d46608f3e23e9 |
| omacom/omarchy-pkgs | master | e1bbf8545182f2ac00cb1455427c6d9e0a41ec39 |
Run as a regular user with sudo available:
mkdir -p ~/omarchy-work
git clone --branch main https://github.com/linyiru/omarchy-pi.git ~/omarchy-work/omarchy-pi
git clone --branch raspberry-pi-platform https://github.com/linyiru/omarchy.git ~/omarchy-work/omarchy
git clone --branch master https://github.com/omacom/omarchy-pkgs.git ~/omarchy-work/omarchy-pkgs
git -C ~/omarchy-work/omarchy-pi checkout --detach b19674e2ebc89b4a4bb6d1aac06c80a7979fd461
git -C ~/omarchy-work/omarchy checkout --detach e5e835ee8b3098c0736d17a1b71d46608f3e23e9
git -C ~/omarchy-work/omarchy-pkgs checkout --detach e1bbf8545182f2ac00cb1455427c6d9e0a41ec39
cd ~/omarchy-work/omarchy-pi
bin/build-image \
~/omarchy-work/omarchy \
~/omarchy-work/omarchy-pkgs \
~/omarchy-pi.img \
16GThe first build downloads about 811 MB of rootfs and 2.5 GB of aarch64 packages into ~/.cache/omarchy-pi. The reference host took about 20 minutes to build after downloading.
Pinning source commits reproduces the build procedure, but the script still reads current rootfs and package repositories. Byte-identical rebuilding also requires archiving the rootfs, signature, and package cache.
Optional: Inspect the image in depth
On the Arch Linux build host, use the source checkout above:
file omarchy-pi.img
sfdisk -d omarchy-pi.img
sudo ~/omarchy-work/omarchy-pi/bin/disk mount omarchy-pi.img /mnt/omarchy
ls -lh /mnt/omarchy/boot/kernel8.img \
/mnt/omarchy/boot/initramfs-linux.img \
/mnt/omarchy/boot/config.txt \
/mnt/omarchy/boot/cmdline.txt \
/mnt/omarchy/boot/bcm2712-rpi-5-b.dtb
cat /mnt/omarchy/var/lib/omarchy/image/target
sudo ~/omarchy-work/omarchy-pi/bin/disk umount /mnt/omarchyExpected results include platform=raspberrypi, the Pi 5 device tree, kernel and initramfs, and a btrfs root mounted from @. See the image verification record for detailed output.
The project record confirms that the image boots on Raspberry Pi 5 and runs Omarchy/Hyprland. opencode and Claude Code were checked using their respective authentication methods. Verify accessory support, free-model availability, and third-party gateways for your own environment.