This repo turns a small Ubuntu PC with a software-defined radio into a complete private 5G/4G network and remote-production Obcell, and keeps it reproducible: wipe the box, or buy a new one, run one command, and you get the same Obcell back.
What a finished Obcell gives you:
| You get | What it is |
|---|---|
| A private 4G/5G cell | Open5GS core and an OCUDU gNB driving the SDR (band n40 on the reference Obcell) |
| Remote production | Open Live Studio (vision mixer, guests over WHIP), Open Intercom, and radio-into-intercom |
| Crew onboarding | One form starts a production from a roster. Guests, camera operators (SRT, phone or OBS/Larix) and staff each get a personal page with their feed, talkback and location setup |
| Crew from any network | Optional Cloudflare Tunnel: personal pages, guest joins, encoders and talkback work without Tailscale and with no open ports |
| Control by AI agents | A built-in MCP server: Claude Code or any MCP client can check health, read logs and metrics, run productions and crew, and restart services. It can't put the cell on air |
| A portal | Homepage (production, then radio and cell, then monitoring) with status tiles and on-air buttons, all behind one login (Caddy + Authelia) |
| Monitoring | Grafana dashboards, Prometheus alerts, ntopng traffic, an OpenWebRX spectrum view |
| Crew locations | OwnTracks: phones report where they are, from anywhere; set up with one QR scan, live map behind the login |
| A runbook | the obcell command on the box (obcell status, obcell backup, obcell onair, …) |
Everything is built with ordinary open-source tools: Ansible, Docker Compose, systemd, apt
and git. Running it again only fixes whatever drifted, and --check --diff shows the drift
without changing anything.
Radio safety. The reference Obcell transmits in licensed spectrum (n40, 2300–2400 MHz). The playbook never starts the gNB and never enables it at boot; going on air is always a manual step (
obcell onairor the Homepage button). Make sure you are allowed to transmit where you are.
- A PC with 4+ CPU threads (the gNB gets half of them), 8 GB+ RAM, an SSD, and Ubuntu Server LTS. The reference Obcell is an Intel NUC with an i5-6260U and 15 GB of RAM; the dev box is an HP ProDesk 405 G8 (Ryzen 3 5300GE, 14 GB) on 26.04.
- An SDR supported by an entry in
group_vars/all/sdr.yml: LimeSDR Mini or USB, a USRP B2xx or X3xx, orzmq, which is no hardware at all and is used for tests. - Optional: an RTL-SDR dongle for the spectrum view, a Tailscale account for remote access, and a Cloudflare account if crew outside your network should reach the Obcell through a named tunnel.
| Release | Status |
|---|---|
| 22.04 LTS (jammy) | Tested. The reference Obcell runs it; a full fresh install passes in a test container |
| 24.04 LTS (noble) | Tested in containers. Fresh install, re-run, health check, virtual cell and phone all pass (details) |
| 26.04 LTS (resolute) | Tested on hardware. The dev box (HP ProDesk 405 G8, LimeSDR Mini) runs the full Obcell on it; containers pass as on 24.04. Needs the linux-oem-26.04b kernel (7.3) for MongoDB 8.0 (details) |
"In containers" means with the virtual ZeroMQ radio: no real Obcell runs 24.04 yet, so its SDR
drivers haven't been tried with hardware. On 26.04 the stock kernels (7.0.x) fall in a range MongoDB
8.0 refuses to start on; install linux-oem-26.04b first (task 016).
On the new box, with Ubuntu Server installed, log in as the user who will run it and paste:
curl -fsSL https://raw.githubusercontent.com/widrone/obcell/main/install.sh | bashIt installs git, clones this repo to ~/obcell-src, sets up Ansible, writes a starter config
for the box (the radio is detected from USB) and asks before it starts the build (~1 hour).
Running it again updates the repo and keeps your settings. It never puts the cell on air.
Read install.sh first if you like; it is short.
Clone this repo to ~/obcell-src (~/obcell is where
the playbook puts the obcell command and runbook):
git clone https://github.com/widrone/obcell ~/obcell-src && cd ~/obcell-src
./bootstrap.sh && . ./activate # Ansible in a venv (~2 minutes)
mkdir -p inventory/host_vars/<newbox> && cp inventory/host_vars/example/main.yml inventory/host_vars/<newbox>/
$EDITOR inventory/hosts.yml inventory/host_vars/<newbox>/main.yml # describe the box
ansible-playbook site.yml --limit <newbox> --check --diff # preview
ansible-playbook site.yml --limit <newbox> -e obcell_confirm_host=<newbox> # build (~1 h the first time)
ansible-playbook verify.yml --limit <newbox> # health checkhost_vars/<newbox>/main.ymlholds everything that differs between boxes: user, LAN interface, SDR type and serial, cell settings, tailnet name, and optional parts. docs/configuration.md explains every setting.obcell_confirm_hostis only needed while the box's hostname isn't the Obcell name yet. The playbook refuses to change a machine that isn't the Obcell it was asked to build.- sudo: the playbook uses sudo for system changes. If your user needs a password for
sudo (the Ubuntu default), add
-Kto thesite.ymlandverify.ymlcommands and type it once per run. - Over SSH: you can also run Ansible from a laptop over SSH instead of on the box itself
(
ansible_hostandansible_userininventory/hosts.yml).
On the Obcell box, obcell help lists everything; ~/obcell/README.md on the box is the full
runbook (addresses, ports, where files live, what to do when something breaks).
obcell status # cell, core, containers, alerts, Tailscale, host — one screen
obcell onair # start the cell (asks first) obcell offair # stop it
obcell backup # subscribers, productions, configs and the CA -> ~/obcell-backups
obcell slides # re-render the Homepage slides from ~/presentation
obcell mcp # how to connect an AI agent (MCP server, over HTTPS or SSH)Open Crew on Homepage (https://<obcell>/crew/), open Quick production, give it a name and
Intercom lines, and type the people, one per line:
Kari Nordmann, guest
Ola, camera
Per, camera phone
Eva, encoder
Anne Berg, Director
camera sends SRT from a camera or encoder, camera phone sends WHIP from the phone's browser,
encoder sends WHIP from OBS 30+ or Larix, and any other word makes a staff member with that
position. Then press Create production. That creates the Open Live and Intercom productions, the guest
invites and one personal page per person, and goes live. Send each person their link (or QR code). End
takes it all down again. The Studio panels still work for everything the form doesn't do.
With tunnel_enabled: true the Obcell makes an outbound connection to Cloudflare, and the
personal links work from anywhere, without Tailscale. Only token-gated paths are public (personal
pages, guest joins, OwnTracks reporting); the dashboard, Studio and everything else stay on the
LAN/tailnet. tunnel_mode: quick needs no account but gets a new name on every restart;
named uses your own domain. Talkback from outside goes through the talk bridge, and SRT cameras
can't use a tunnel (use the encoder role). Setup and limits:
docs/configuration.md.
The Obcell has a built-in MCP server. Run obcell mcp on the box to get the
connection details, then for example:
claude mcp add --transport http obcell https://<obcell>/mcp --header "Authorization: Bearer <token>"
claude mcp add obcell -- ssh <user>@<obcell> obcell mcp serve # or over SSH, no tokenThe agent can then answer "is everything healthy?", read logs and metrics, start a production from a list of names and hand out the links, add or remove people, restart a service or take a backup. It can take the cell off air but never put it on air. Tools, limits and the read-only switch: docs/configuration.md.
-
Secrets (passwords, API keys, SIM keys) live in
secrets/<host>/on the machine that runs Ansible. That folder is never committed (it's git-ignored). A new box gets fresh secrets on its first run. -
To move an Obcell to new hardware with the same passwords, copy its secrets folder across yourself (for example with
scp -r), never through GitHub. Then restore the data:ansible-playbook restore.yml --limit <host> -e backup=~/obcell-backups/obcell-config-YYYYMMDD-HHMM.tar.gz
This brings back the SIM subscribers, the Open Live productions and the Caddy root CA, so phones and laptops keep trusting the Obcell.
Obcells built on 22.04 before 2026-11 run MongoDB 6.0 and Node.js 20, both past end of life.
site.yml moves Node.js by itself, but MongoDB holds the SIM subscribers, so a separate
playbook moves it (6.0 → 7.0 → 8.0, with a backup first, cell off air):
ansible-playbook upgrade.yml --limit <host> --check # the plan
ansible-playbook upgrade.yml --limit <host> # then site.yml and verify.ymlDetails and rollback: docs/upgrades.md.
reset.yml undoes everything the build did: it stops the cell, takes an obcell backup, then
removes the containers with their data and images, Open5GS, MongoDB, Node.js, Docker, the SDR
drivers, the gNB and srsUE sources, the apt repositories and keys, the services, users and
config files, and the logs.
ansible-playbook reset.yml --limit <host> --check # preview: lists what would go
ansible-playbook reset.yml --limit <host> -e obcell_reset_confirm=<host> # do it, then: sudo reboot- It asks for proof. Without
-e obcell_reset_confirm=<host>it stops before changing anything. All SIM subscribers, productions and dashboards on the box are deleted. - Kept: the backup in
~/obcell-backups(rebuild withsite.yml, thenrestore.yml), the base tools (git, curl, build-essential, avahi, iptables-persistent), the hostname, Tailscale (so a remote box stays reachable), this repo, its venv andsecrets/<host>/. - Options (
-e name=value, all inroles/reset/defaults/main.yml):reset_remove_tailscale=true(leaves the tailnet: only when you are at the box),reset_keep_backups=false,reset_remove_docker=false,reset_clear_journal=false(by default the whole systemd journal is emptied),reset_forget_host=true(also deletessecrets/<host>/and the inventory files). - Afterwards, to remove the repo too:
rm -rf ~/obcell-src ~/.local/share/obcell-ansible.
Changes are developed on the dev box (obcell) and tested there in throw-away LXD containers,
never on the reference Obcell. One command installs the whole Obcell on each Ubuntu release, checks it twice, and
brings up a virtual cell with a virtual phone:
tests/lxd/setup-host.sh # once, on the dev box (or any machine with LXD)
tests/matrix.sh # 22.04, 24.04 and 26.04; results in tests/.work/results/latest/summary.mdThe quick checks (lint, syntax, unit tests, shellcheck) also run on GitHub for every push. See docs/testing.md.
CLAUDE.md holds the rules an agent must follow in this repo: radio safety, secrets, which
machines it may change. Open work is written up as task files in
docs/tasks/, so a person or an agent can pick one up, do it, and record
what they found.
site.yml builds an Obcell (all roles, in order)
reset.yml takes an Obcell back to a clean Ubuntu (asks for proof first)
verify.yml read-only health check
restore.yml puts data back from an `obcell backup` archive
upgrade.yml moves an older Obcell's MongoDB up, one major at a time (docs/upgrades.md)
inventory/ your Obcells (git-ignored, written by install.sh) + host_vars/example
group_vars/all/ defaults for every Obcell: main.yml, SDR profiles, web names, secrets
roles/ one role per part: base, docker, tailscale, open5gs, sdr, ocudu, srsue,
obcell_cli, openlive, intercom, crew, tunnel, mcp, owntracks, monitoring,
cell_control (+ common helpers)
filter_plugins/ small Jinja helpers (CPU lists, URLs)
tests/ test matrix, LXD harness, unit tests (filters, crew service, MCP server)
docs/ configuration, testing, upgrades, Ubuntu releases, tasks
MIT. The upstream projects the playbook installs (Open5GS, OCUDU, srsRAN, Open Live,
Open Intercom and the rest) keep their own licences; the patches in roles/*/files/ apply to
them under those licences. IBM Plex Mono is under the SIL Open Font License (included).