Raspberry Pi · Loft
Run a Loft on a Raspberry Pi
Run a Loft. Planned: your network fees covered (not started for Loft keepers yet).
Once your Loft is certified (linked for 7 days, then 72 online hours in 30 days), the CarrierMSG Treasury will cover all your network fees on the test network, not only private payments. This is planned and hasn’t started for Loft keepers yet. Only online hours count. It isn’t income, and it’s for personal use only.
A Raspberry Pi is a small, quiet computer about the size of a deck of cards. Set it up once, plug it in, and it helps carry CarrierMSG’s sealed messages day and night, using about as much power as a phone charger.
Six steps, about 20 minutes
What you need
A Raspberry Pi 5, 4, 400, 3 or Zero 2 W, a microSD card of 16 GB or more, and the official Raspberry Pi power supply. For one step you also need a computer with a card reader. See what to buy below.
Get a setup code in the app
In CarrierMSG, open Lofts › Run a Loft on a Raspberry Pi › Get a setup code. Get one code for each Pi. A code works once and lasts 7 days.
Write the card with Raspberry Pi Imager
Install Raspberry Pi Imager (free, from raspberrypi.com) and download the image below. In Imager, choose your Raspberry Pi model, then Choose OS › Use custom and pick the .img.xz file you downloaded. Choose your microSD card and click Write. If Imager offers OS customisation, choose No. Or click the button below: it opens Imager with CarrierMSG Loft already in the list.
Put the card in and power on
Put the card in the Pi and plug in the power. No keyboard or screen needed.
Connect it from your phone
Within about 3 minutes your phone sees an open Wi‑Fi network called “CarrierMSG-Setup-XXXX”. Join it and the setup page opens by itself. Pick your Wi‑Fi, type its password, paste your setup code, and tap Save and connect. Using an Ethernet cable instead? Plug it in before you power on, then within 2 hours open http://carriermsg-loft.local on a phone or computer on the same network and paste the code.
See it online
Within about 5 minutes your Loft appears in the app under Lofts as Online, with its Loft name. Its status page is http://<loftname>.local (shown in the app, for example mapleperch-tnj3.local).
No setup file, or the Wi‑Fi won’t connect?
Your Pi opens its own open Wi‑Fi hotspot (no password) called “CarrierMSG-Setup-XXXX”, ending in 4 characters: after about 2 minutes with no network, or about 6 minutes if the Wi‑Fi details you gave don’t connect. Join it with your phone and a setup page appears. The hotspot closes after 15 minutes.
Check it
On your home network, open carriermsg-loft.local in a browser to see your Loft’s status page (view only). While the Pi isn’t linked yet, for the first 2 hours after you switch it on, that page also lets you type your setup code or shows a QR code to scan in the app. Every Pi also has its own address, named after its Loft and shown on its status page (like mapleperch-tnj3.local). The Pi’s pages and carriermsg-loft.txt come in English, Spanish, French and Portuguese, following your browser’s language.
See it from anywhere
In the app, open Lofts › See your Lofts on the website for a private link to your Lofts’ live status.
Download the image
Raspberry Pi image 2026.10.20.2 · released Oct 20, 2026
Size: 708.7 MB · Works on: Raspberry Pi 5, Raspberry Pi 4, Raspberry Pi 400, Raspberry Pi 3B+, Raspberry Pi Zero 2 W
Download the image 708.7 MBf13e9a53d6d2683adc0797018ed25d88343b2de4f8de30a907c05f927218a708How to verify your download
Make sure the file arrived complete and unchanged. Open a terminal in the folder with the file, run the command for your computer, and compare the result with the fingerprint above. They must match exactly.
- Windows (Command Prompt)
certutil -hashfile carriermsg-loft-pi-2026.10.20.2.img.xz SHA256- macOS (Terminal)
shasum -a 256 carriermsg-loft-pi-2026.10.20.2.img.xz- Linux (Terminal)
sha256sum carriermsg-loft-pi-2026.10.20.2.img.xz
Optional: Raspberry Pi Imager can list our image and check the fingerprint for you. In Imager’s options, choose a custom content repository and enter: https://relay.carriermsg.com/download/pi/imager.json
Fees covered for Loft keepers: Not started: the CarrierMSG Treasury isn't set up on Midnight's test network yet.
What to buy
Already have a Pi? It probably works. If you’re buying, here’s what to get.
| Part | What to get | Good to know |
|---|---|---|
| Raspberry Pi | Raspberry Pi 5 (4 GB) or Raspberry Pi 4 (2–4 GB or more) | Recommended. A Raspberry Pi 400 works too. |
| Smaller Pi | Raspberry Pi 3B+ (1 GB) or Zero 2 W (512 MB) | The minimum. Runs in light mode, carrying less traffic. |
| Power supply | The official Raspberry Pi USB‑C power supply | Pi 5: 27 W. Pi 4: 15 W. Phone chargers often can’t keep up. (Pi 3B+ and Zero 2 W use the official micro‑USB supply.) |
| microSD card | 32 GB or more, rated A1 or A2, from a known brand such as SanDisk or Samsung | Cheap no-name cards wear out sooner. |
| Case | A case with a fan or heatsink | Optional. Keeps the Pi cool. |
| Network | An Ethernet cable to your router | Recommended: steadier than Wi‑Fi. Wi‑Fi works too. |
What it costs to run
A Raspberry Pi 4 or 5 running a Loft idles at about 3–5 watts, less than an LED bulb.
- 3 W × 24 hours × 365 days ≈ 26 kWh a year
- 5 W × 24 hours × 365 days ≈ 44 kWh a year
- 26–44 kWh × $0.15 per kWh ≈ $4–$7 a year
Your cost depends on your electricity price: multiply 26–44 by what you pay per kWh.
Troubleshooting
It isn’t showing online after 10 minutes
Look at the green light on the Pi. Solid on: it’s starting up or installing an update, so wait 2 minutes. A double blink, like a heartbeat: it’s running and online, all good. A slow blink, about once a second: it’s running but not linked yet, so add your setup code. A fast blink: no internet. Check your Wi‑Fi name and password (capitals matter), remember that older Pis only see 2.4 GHz Wi‑Fi, not 5 GHz, or use an Ethernet cable. Only the normal flicker of the SD card: the light is turned off in carriermsg-loft.txt, or the helper isn’t running, so unplug the power and plug it back in.
It shows an under-voltage warning
The Pi isn’t getting enough power, which causes random restarts. Use the official power supply (27 W for a Pi 5, 15 W for a Pi 4), not a phone charger or a computer’s USB port.
My setup code expired
A code works once and lasts 7 days. Get a new one in the app (Lofts › Run a Loft on a Raspberry Pi). Then put it in carriermsg-loft.txt on the card and start the Pi again, or type it on carriermsg-loft.local within 2 hours of switching the Pi on.
I re-flashed the card. Is it the same Loft?
No. Re-flashing makes a brand-new Loft with a new code. You can remove the old one in the app, under Lofts.
Do I need to update it?
No. Updates signed by CarrierMSG install automatically at a quiet moment, and roll back by themselves if something goes wrong.
How do I factory reset it?
Flash the image onto the card again and add a new setup code. Everything on the card is wiped and it starts fresh, as a new Loft.
I’d rather edit the setup file on the card
Imager ejects the card when it finishes, so first unplug the card and plug it back in: a drive called “bootfs” appears. Open carriermsg-loft.txt on it (Windows may show it as just “carriermsg-loft”), fill in setup_code and your Wi‑Fi, save, and eject the card. The Pi reads that file every time it starts.
Privacy
- No account names on the networkOther Lofts and this website only ever see a pseudonym: never your username, phone number or account ID.
- Tied to a private owner keyYour Pi is linked to a key that only your app holds. Your Pi and your app both sign the link, so nobody else can claim your Loft.
- Status is just online or offlinePlus the version and whether it’s relaying. Never IP addresses, who you talk to, or what passes through.
Prefer a computer you already have? Run a Loft on Windows, Mac or Linux.