Skip to content

Wonkru MDM

An open-source Mobile Device Management (MDM) system for Android. The server and admin panel are written in Dart, and the device agent uses Flutter and Kotlin. Wonkru MDM manages devices enrolled with Android Enterprise Device Owner through a Flutter web panel and a Serverpod server.

Wonkru MDM is built for teams that need to enroll, configure, monitor, and remotely manage fleets of Android devices without depending on a closed SaaS service. It runs on a single server, whether rented or owned.

  • Device enrollment: QR-code provisioning enrolls a factory-reset device as a Device Owner.
  • Policies: versioned packages of settings, restrictions, launcher configuration, apps, files, and certificates. The agent keeps using the latest policy offline and syncs when it reconnects.
  • Remote commands: lock, reboot, clear app data, launch apps, send notifications, collect installed apps, location, and logs. Commands are stored in device_commands and sent over a persistent Serverpod stream when the device connects.
  • Telemetry: full device sync (hardware, battery, network, security, installed apps, storage), heartbeat, event reports, and log collection.
  • Admin panel: dashboard, device management, policy editor, application and certificate management, file storage, provisioning profiles, users, 2FA (TOTP + recovery codes), audit log, and TR/EN localization.
  • Alerts: the panel shows offline devices, pending policy updates, and security alerts. You can also route alerts to email.
  • File delivery: APKs are stored on the public disk. Private files and certificates use HMAC-signed links that expire.

Run the Linux commands in a terminal on your Ubuntu or Debian server. The installer sets up Docker from its official APT repository if Docker is missing. If you already have Docker, use Compose 2.24.4 or later. For a small Linux installation, start with 1 vCPU, 2 GB of RAM, and a 20 GB SSD. For a local installation on a Mac, start Docker Desktop. System requirements

Run Wonkru MDM on one server with the published Docker image. The installer starts the admin panel, API, PostgreSQL, and Caddy.

Use this option when the panel and Android devices will connect over the internet. Replace the example domains with two names that point to your server. Leave port 80 reachable so Caddy can obtain certificates. During setup, allow HTTPS on port 443 for your own IP or trusted network. For a private CA on a local network, see Custom TLS certificate.

Terminal window
curl -fsSL https://wonkrumdm.com/install.sh | sudo bash -s -- \
--api-host api.example.com \
--panel-host app.example.com \

Open https://app.example.com with your actual panel domain. The installer prints that address at the end. The app uses port 443 for both domains.

Ubuntu or Debian with an IP address and HTTP

Section titled “Ubuntu or Debian with an IP address and HTTP”

Use HTTP on a trusted local network. When the installer asks how to connect, press Enter to choose HTTP. It shows the detected IPv4 address and suggests port 8080 for the API and 8082 for the panel.

Terminal window
curl -fsSL https://wonkrumdm.com/install.sh | sudo bash

If the detected address is out of reach for your devices or the default ports are in use, set them in the first install command. Replace the example IP with your server’s reachable address.

Terminal window
curl -fsSL https://wonkrumdm.com/install.sh | sudo bash -s -- \
--host 192.168.1.20 --api-port 9080 --panel-port 9082

With these values, open http://192.168.1.20:9082 for the panel. The devices connect to http://192.168.1.20:9080.

Start Docker Desktop and run the command in Terminal as your normal user.

Terminal window
curl -fsSL https://wonkrumdm.com/install.sh | bash -s -- \
--dir "$HOME/wonkru-mdm"

Choose HTTP and accept the default values for a local installation. Open http://localhost:8082. The API is at http://localhost:8080. With the default settings, both addresses are available only on the Mac.

Open the panel address, create your admin account, and enable two-factor authentication. You can then widen access to the people and devices that need it. Set the panel time zone under Settings.

The installer generates a unique password for the Starter policy’s on-device IT page. Read STARTER_ADMIN_PASSWORD from the installation .env.

Terminal window
sudo grep '^STARTER_ADMIN_PASSWORD=' /opt/wonkru-mdm/.env

On macOS, run grep in the directory you chose. To change the password later, edit Policies → Starter → General → Admin Password in the panel. The value written at install time stays in .env. See Find the Starter device admin password.

The first installation includes the Starter policy, the signed Wonkru MDM app, and a Wonkru MDM provisioning profile. From the dashboard, select Download MDM APK and enter the API address plus the enrollment key from Settings in the agent’s setup screen, or scan the setup QR code. For Device Owner provisioning, open Provisioning Profiles → Wonkru MDM, save a Wi-Fi network the device can use to reach the panel and API, then scan that profile’s QR code on a new or factory-reset device.

Wi-Fi, permissions, and a custom APK are covered in Enroll an Android device. Installer options, port changes, updates, and backups are on the installation guide. Settings and alternative setups are in the detailed deployment guide.

The documentation is available in English (default) and Turkish; use the language selector in the header to switch.

Please do not open public issues for vulnerabilities. See Security policy. Keep config/passwords.yaml, deploy/vps/.env, and release keystores out of Git.

Contributions are welcome. See Contributing.

Licensed under the Apache License 2.0.

The component diagram is on the Architecture page. To build and run the project from source, follow Development environment setup.