About
Self-hosted MDM for Macs, iPhones, iPads and Windows PCs
Other ProjectsWhat you can do
- Enroll Macs, iPhones and iPads with a link (no Apple Business account needed) and Windows 10/11 PCs with a one-time code
- Device list with online / asleep / offline state, labels, compliance, public IP and approximate location
- Detailed inventory: OS version (flags missing updates - Apple's feed for Macs/iPhones, Microsoft's release health for Windows), storage, FileVault / BitLocker, firewall, Defender, TPM, network adapters, installed apps …
- Actions: lock, restart, shut down, erase, refresh inventory, unenroll – one device or many at once
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalOMDM – Open Mobile Device Management
Self-hosted device management for Macs, iPhones, iPads and Windows PCs. Free and open source (MIT) – for companies, schools, families and anyone who wants their own MDM instead of a cloud subscription.
OMDM runs on one Linux server with Docker. Devices enroll over the internet; the admin interface stays on your own network.
Features
Devices
- Enroll Macs, iPhones and iPads with a link (no Apple Business account needed) and Windows 10/11 PCs with a one-time code
- Device list with online / asleep / offline state, labels, compliance, public IP and approximate location
- Detailed inventory: OS version (flags missing updates - Apple's feed for Macs/iPhones, Microsoft's release health for Windows), storage, FileVault / BitLocker, firewall, Defender, TPM, network adapters, installed apps …
- Actions: lock, restart, shut down, erase, refresh inventory, unenroll – one device or many at once
- Windows: lock by blocking sign-in, restart, wipe, cancel queued commands
- iPhone data roaming and Personal Hotspot on/off, Bluetooth on/off for Macs
- Supervised iPhones/iPads: Lost Mode with lock-screen message, sound and location on a map; App Store apps with managed app settings (also per device)
- Custom MDM commands: send any command as a property list (admins, with 2FA)
Configuration
- Profile library with templates: passcode, all of Apple's restrictions, Wi-Fi (incl. WPA2/3 Enterprise), certificates, VPN (IKEv2, WireGuard), mail, Exchange, notifications, web clips, firewall, screen lock, automatic updates, custom
.mobileconfig - Windows policies: the complete Policy CSP list (3600+ settings incl. Group Policy) with search and Microsoft's descriptions
- Deploy to selected devices, see per device what is installed, remove again
- Optional auto-deploy to newly approved devices (off by default)
- Mac software: upload signed
.pkginstallers and deploy them
Overview & control
- Dashboard with charts, compliance rules, app inventory across all devices, CSV export
- Audit log with filters, health page, REST API with read-only or read + actions tokens
omdmcommand-line tool- Admin roles (viewer / helpdesk / admin), passkeys, TOTP
How it fits together
Internet ── Caddy or nginx (TLS) ──┬─ /mdm, /scep, /enroll ──► Apple devices (NanoMDM + SCEP + app)
├─ enterpriseenrollment.<domain> ──► Windows PCs (app)
└─ /admin (only from your LAN) ──► web interface (app)
| Part | What it does |
|---|---|
app/ |
Web interface, enrollment, Windows MDM, inventory, profiles, API (Python / FastAPI) |
| NanoMDM | Apple MDM protocol (Docker image) |
| micromdm/scep | Device certificates for Apple devices (scep/) |
deploy/compose.yml |
Docker-only setup: prebuilt images from ghcr.io + Caddy for HTTPS |
install.sh |
Alternative setup behind your own nginx: .env, containers, certbot, nginx site, first admin |
Quick start (Docker, about 5 minutes)
You need a Linux server with Docker, a domain name pointing to it and ports 80 + 443 free and reachable. Nothing else – HTTPS certificates, secrets and the device CA are created automatically.
mkdir omdm && cd omdm
curl -fsSLO https://raw.githubusercontent.com/Benicio-vonFelten/omdm/main/deploy/compose.yml
echo "MDM_HOST=mdm.example.org" > .env
docker compose up -d
docker compose logs app | grep "setup code"
Then, from your LAN, open https://mdm.example.org/setup, enter the setup code and create the first admin.
Upload your Apple push certificate under Admins (free, see INSTALL.md) –
Windows PCs don't need one.
Upgrading
docker compose pull && docker compose up -d
That's all: your data lives in Docker volumes and database changes are applied on start. OMDM shows
"Update available" at the bottom of the page when a new release is out. compose.yml follows the current major
version (1), so an update never brings breaking changes; to stay on an exact version put OMDM_VERSION=1.1.0
into .env. Back up first (see INSTALL.md) – it's one command.
Without Docker's HTTPS (own nginx)
Already running nginx on 443? MDM_HOST=mdm.example.org ./install.sh sets OMDM up behind your nginx with certbot
instead – see INSTALL.md.
Full guide (push certificate, DNS, Windows, backups): INSTALL.md
Command-line tool for scripts and power users: cli/README.md
Limits – honestly
- Without Apple Business Manager, Apple devices are not supervised: some features (forced OS updates on Macs, restarting iPhones, Lost Mode and device location, switching Bluetooth on iPhones) need supervision. The device page shows them only for supervised devices (and marks them "supervised only" while a device hasn't reported it yet).
- App Store apps: only on supervised iPhones/iPads - Apple refuses App Store installs on unsupervised ones ("NotSupported"). Paid apps and Mac App Store apps need Apple Business (Apps and Books), which OMDM doesn't connect to.
- Windows needs Pro, Enterprise or Education (Home can't be managed by any MDM). Windows has no native remote lock yet; OMDM blocks sign-in and restarts instead.
- Windows PCs check in on a schedule (default every 5 minutes) instead of push.
Contributing & security
Issues and pull requests are welcome. Run the tests with pip install -r app/requirements.txt -r requirements-dev.txt && pytest tests/test_mdm.py.
Found a vulnerability? Please report it privately – see SECURITY.md.
License
MIT © Benicio von Felten – see LICENSE. Third-party parts and data: NOTICE.md.
Explore related projects
Loading…