← All projects

monarch

android

Source code

Latest test build

Build 11 Dec 2026

Newest test build, not an official version.

Monarch for Android

Monitor and control your Monarch servers from your phone, in the same design as the Monarch panel. Native Kotlin and Jetpack Compose.

  • Overview: every node with CPU, memory and disk, VM counts, temperatures, ClyoCloud, and VMs nested under their host.
  • Node: live CPU and memory graphs (last 3 minutes), network, filesystems, failing cache SSD warnings, and VMs with start / shut down / reboot / force off (only for phones paired with control access, always confirmed).
  • Alerts: offline nodes, crashed VMs, failing cache SSDs and your panel notification rules, with Android notifications (checked about every 15 minutes, no Google push service).
  • Security:
    • Paired by QR code. The app pins the panel's own certificate (SHA-256 from the QR code), so it only ever talks to that panel.
    • It gets its own revocable device token, which only works for the phone API. It's stored encrypted with an Android Keystore key and excluded from backups.
    • Optional fingerprint or screen-lock unlock. Screenshots are blocked.

Pairing

  1. In the panel: Settings → Phone app, choose Monitor or Monitor + start/stop VMs, check the address the phone will use (your LAN address, or the Netmaker one to use it away from home), and create a pairing code.
  2. In the app: Scan QR code, compare the certificate fingerprint, tap Pair.

The code works once and expires after 10 minutes. Remove a phone in the same Settings tab; it loses access immediately.

Build

The OneDev build server builds a debug APK on every push (job Monarch Android CI, same setup as ClyoCloud Android: ./gradlew assembleDebug with the SDK in /opt/android-sdk) and publishes it as a build artifact.

Locally: JDK 17+ and the Android SDK (platform 35), then

export ANDROID_HOME=/opt/android-sdk
./gradlew assembleDebug        # app/build/outputs/apk/debug/app-debug.apk

Toolchain: Gradle 9.1, AGP 9 with built-in Kotlin, Compose. For a release APK, add a signing config to app/build.gradle.kts and run ./gradlew assembleRelease.

Requires Android 8.0 (API 26) or newer. Scanning the pairing code uses Google Play services' code scanner (no camera permission).