Table of Contents
Raspberry Pi TetherBox
Build a compact TetherBox with Raspberry Pi 5. You assemble the hardware and connect it to the internet; TetherX installs the software remotely.
1. Get the Parts
- Raspberry Pi 5 with at least 4 GB RAM.
- microSD card: 64 GB minimum, ideally 128 GB. Choose a genuine, reputable-brand microSDXC card rated A2.
- Active Cooler (opens in a new tab) and a ventilated case with enough room for the AI HAT above it.
- Official 27 W USB-C power supply (opens in a new tab). Use the correct mains plug for your country.
- One AI HAT from the table in 2. Choose the AI HAT.
- USB 3 SSD for recordings, sized for how much footage you need to keep. Check Storage Hardware Recommendations for suitable drives and powered enclosures.
- Ethernet cable, microSD card reader and a small Phillips screwdriver.
Warning: Use the microSD card for the system, not continuous video recording. Footage needs a separate recording drive; USB memory sticks are not suitable either.
Use USB recording storage with these AI HATs. The HAT uses the Pi's PCIe connection, so you cannot simply add a second M.2 storage HAT.
2. Choose the AI HAT
The HAT is an add-on board that gives your Pi AI detection. Choose it by how many cameras need AI:
| Official board | Hailo chip | Approximate AI capacity |
|---|---|---|
| AI HAT+ 13 TOPS (opens in a new tab) | Hailo-8L | Up to 4 cameras |
| AI HAT+ 26 TOPS (opens in a new tab) | Hailo-8 | Up to 8 cameras |
| AI HAT+ 2 (opens in a new tab) | Hailo-10H | Up to 8 cameras |
These are our planning figures for AI using a roughly 1-megapixel stream, such as a 720p sub-stream. Capacity depends on the AI model and settings; see Hailo AI Accelerators.
The Pi 5 can record up to 10 cameras, depending on the workload. Only the cameras receiving AI analysis count towards the AI limits above. See CPU Recommendations for recording capacity.
- AI HAT+ on a Pi 5. The photo shows the 26 TOPS model and its connecting ribbon.
- AI HAT+ 2 on a Pi 5. Its heatsink is not shown here; fit the supplied heatsink when building your unit.
Photos: Raspberry Pi Ltd, AI HAT documentation (opens in a new tab), CC BY-SA 4.0 (opens in a new tab). Reproduced unchanged.
3. Put It Together
Keep the power disconnected while assembling. Use the official illustrated instructions (opens in a new tab) alongside these steps:
- Fit the Active Cooler and connect its fan to the Pi.
- For AI HAT+ 2, fit the supplied HAT heatsink too.
- Fit the HAT using its spacers, stacking header and PCIe ribbon. Secure both ends of the ribbon.
- Fit the case, leaving the fan and air vents clear.
- Connect Ethernet and the recording drive. Prepare the microSD card before switching on.
Warning: Good cooling and power are essential. Overheating can slow recording and AI; an unsuitable supply can cause restarts or drive disconnections. Use active cooling, a ventilated case and the official power supply.
4. Prepare the Card and Start the Pi
Use Raspberry Pi Imager (opens in a new tab) on your computer:
- Select Raspberry Pi 5 and Raspberry Pi OS Lite (64-bit), Debian 13 Trixie.
- Select your microSD card. Writing the image erases it, so check you have picked the correct card.
- In the customisation settings, create a temporary user called
tetherxwith a strong password, and enable SSH (remote command-line access). - Write and verify the card, insert it into the Pi, then connect power.
- Find the Pi's IP address in your router's device list. Test SSH from a computer on the same network, replacing
PI_LAN_IPbelow with that address:
ssh tetherx@PI_LAN_IP
sudo -v
The second command checks that the account has administrator access, which TetherX needs for installation.
5. Let TetherX Connect
We need temporary SSH access to finish the installation. Choose one route:
Cloudflare Tunnel
This works without opening a router port. You need a Cloudflare account and a domain managed through Cloudflare.
- Go to Networking → Tunnels in Cloudflare. Create a tunnel and follow its Linux ARM64 instructions to install
cloudflaredon the Pi as a service. - Add a hostname, such as
pi-setup.example.com, with service type SSH and address localhost:22. - Protect it with a self-hosted Cloudflare Access application, allowing only the support identities agreed with TetherX.
Use Cloudflare's setup guide (opens in a new tab) for the full steps. TetherX's connecting computer also needs client-side cloudflared (opens in a new tab); Cloudflare login and the Pi's SSH login are both required.
Port Forwarding
Ask your network administrator to reserve the Pi's local IP address and forward an external TCP port to port 22 on the Pi. Restrict access to the source IP addresses agreed with TetherX, then test from outside the site.
This needs a reachable public IP address. If your provider uses carrier-grade NAT, common on mobile connections, use Cloudflare Tunnel instead.
Ready for Installation
Contact TetherX with your chosen HAT, camera count, recording-drive size and connection details. Share the hostname or public IP, SSH port and temporary account details through the agreed support channel.
Keep the Pi powered on and connected. TetherX installs the software and removes the temporary account. Confirm recording playback and AI detection work, then remove the temporary tunnel or port forwarding when we confirm it is no longer needed.
Tip: Building several units? A Deployment TetherBox can set them up over your local network. See TetherBox Deployment Guide.
Already have a Pi 4? It remains compatible for up to 4 recording cameras, but these AI HATs require Pi 5.
Related Articles
- Hardware Specifications - size your system.
- Storage Hardware Recommendations - choose a recording drive.
- Build a TetherBox on Your Own Hardware - further installation guidance.
Referenced in:

