HELM turns an Android phone or tablet into a side display for your Linux workstation, showing live system stats, git status, your editor workspace, media and Claude Code activity.
When you are deep in work, checking CPU load, the current branch or what your coding agent is doing means switching windows. HELM moves that information to a dedicated screen beside your monitor. You mount an Android device next to your desk, and it shows a dashboard that updates in real time.
HELM has two parts. A small desktop agent, written in Rust, runs on your Linux machine and collects data. An Android app, written in Kotlin with Jetpack Compose, connects to the agent and displays it. They talk over a WebSocket, either through a USB cable (via ADB) or over your local Wi-Fi network with TLS encryption.
HELM is local-first. There are no HELM accounts, no HELM cloud service and no telemetry. The agent and the app talk directly to each other on your machine or your LAN.
- System monitoring: CPU usage and frequency, RAM and swap, temperature, network up and down speed, disk read and write speed, battery and uptime.
- Top processes: The ten busiest processes by CPU.
- Git insights: Current branch, commits ahead and behind, staged, modified, untracked and deleted files, and the last 10 commits.
- Active workspace: Detects your current VS Code, VSCodium or Code OSS workspace and the active window title (X11).
- Now playing: Shows the current track, artist and playback state from any MPRIS2 player such as Spotify, MPV, VLC or Firefox.
- Claude Code panel: Shows whether a Claude Code session is active or idle, the current task, the file being edited, session length and context window usage.
- Account usage: Shows your Claude plan and session (5 hour) and weekly (7 day) usage limits, plus local activity stats.
- Remote commands: The app can ask the agent to run git pull or push, lock the screen, open a terminal or project, restart a dev server, or suspend, reboot or shut down. Every command must be on an allowlist you control.
- USB mode: Zero-configuration connection through an ADB reverse tunnel. No Wi-Fi needed.
- Wi-Fi mode: Wireless connection with QR code pairing, TLS encryption, certificate pinning and a pre-shared token.
- LAN discovery: The app can find agents on your network through mDNS.
- System tray: A tray icon on the desktop shows connection status and offers Stop and Restart.
- Kiosk mode: The app runs fullscreen, in landscape, keeps the screen on and can start on boot.
You install two things: the desktop agent on your Linux machine and the app on your Android device.
curl -fsSL https://raw.githubusercontent.com/n1th1n-19/HELM/main/install.sh | bash
The script:
- Detects your architecture (
x86_64 or aarch64) and downloads the matching helm binary from the latest release to ~/.local/bin/helm.
- On
x86_64, installs xdotool (and the tray indicator library where available) with your package manager (pacman, apt-get, dnf, zypper or apk).
- Stops any running HELM agent and removes older binaries and service units.
- Writes a default config to
~/.config/helm/agent.toml if none exists. The installer's default config sets bind_host = "0.0.0.0" and port = 9090, which enables Wi-Fi mode.
- Adds
~/.local/bin to your PATH for bash, zsh, .profile and fish if needed.
- Installs and starts a systemd user service named
helm.
- Installs a udev rule (
/etc/udev/rules.d/99-helm-adb.rules) that runs adb reverse tcp:9090 tcp:9090 when a USB device is plugged in.
- Opens port 9090 in UFW or firewalld if either is active.
Some steps use sudo, so you may be asked for your password.
You need Rust 1.75 or later.
git clone https://github.com/n1th1n-19/HELM.git
cd HELM/agent
cargo build --release
./target/release/helm run
The binary is written to agent/target/release/helm. To start it automatically, create a systemd user service:
mkdir -p ~/.config/systemd/user
cat > ~/.config/systemd/user/helm.service <<EOF
[Unit]
Description=HELM Desktop Agent
After=graphical-session.target
[Service]
Type=simple
ExecStart=$HOME/.local/bin/helm
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=default.target
EOF
systemctl --user daemon-reload
systemctl --user enable --now helm
Adjust ExecStart if your binary lives somewhere else.
Download the APK from the latest release and install it with ADB:
adb install helm-<version>.apk
To build it yourself you need JDK 17 and Android SDK platform 35:
cd android
./gradlew assembleDebug
adb install app/build/outputs/apk/debug/app-debug.apk
You can also run ./gradlew installDebug to build and install in one step.
curl -fsSL https://raw.githubusercontent.com/n1th1n-19/HELM/main/uninstall.sh | bash
From a cloned repo, run bash uninstall.sh. This stops the service and removes the binary, the config folder ~/.config/helm/ (including certificates, token and agent.toml), the systemd unit, the udev rule, the firewall rule and the PATH lines it added to your shell configs.
USB mode needs no network setup.
- On your Android device, enable USB debugging (Settings, Developer options, USB debugging).
- Make sure the agent is running (
helm status).
- Plug in the device. Check that ADB sees it with
adb devices.
- Open HELM. In the Settings tab, choose USB under CONNECTION MODE.
The app connects to ws://localhost:9090/helm on the phone. ADB tunnels that to the agent on your computer. The agent re-runs adb reverse tcp:9090 tcp:9090 every 3 seconds, so unplugging and replugging recovers on its own. If needed, set it up by hand:
adb reverse tcp:9090 tcp:9090
Use adb reverse, not adb forward. Reverse tunnels from the device to the host.
- Set
bind_host = "0.0.0.0" in ~/.config/helm/agent.toml (the install script already does this).
- Restart the agent with
helm restart. On first start in Wi-Fi mode it creates a self-signed certificate and a pairing token, then prints a QR code and a helms:// URL in the terminal, for example helms://192.168.1.9:9090?token=...&cert=....
- You can print the QR code again at any time with
helm qr.
- In the app, open the Settings tab, choose WiFi and tap Scan QR. The app asks for camera access.
- After scanning, the connection uses TLS with the agent's certificate pinned, and the Settings card shows a Secured badge.
Both devices must be on the same network.
- Discover: In Settings, tap Discover. Agents advertising
_helm._tcp on your LAN appear under DISCOVERED AGENTS. Tap Use next to one.
- Manual entry: Under AGENT ADDRESS, type the Host and Port and tap Save.
These two methods connect without the token and certificate from the QR code. For a secured connection, pair with Scan QR.
The Settings tab also shows the Target URL the app is using and the last connection error.
The app has a navigation rail with seven tabs.
| Tab |
What it shows |
| Overview |
A summary dashboard: connection status, system stats, git branch and recent commits, project, media, terminal (last command run), Claude session and usage |
| Dev |
ACTIVE PROJECT and VS CODE WORKSPACE: branch, path and the active file |
| Git |
Ahead and behind counts, WORKING TREE (staged, modified, untracked, deleted) and COMMITS |
| Claude |
STATUS, CURRENT TASK, SESSION DETAILS, CONTEXT USAGE (with a warning when the context window is nearly full) and ACCOUNT USAGE |
| Account |
ACCOUNT, USAGE LIMITS (Session (5hr) and Weekly (7 day)) and LOCAL ACTIVITY |
| System |
CPU (usage and frequency), MEMORY (RAM and swap), temperature, NETWORK, DISK (read and write), PROCESSES and uptime |
| Settings |
Connection mode, agent address, QR pairing and LAN discovery |
The Overview has a reconnect button next to the connection status.
The git panels follow the folder of your active VS Code workspace. If no workspace is detected, the agent uses the folder it was started from.
The app can send commands to the agent. The agent runs a command only if its name is in allowed_commands.
| Command |
What the agent runs |
Notes |
git_pull |
git pull in the current repo |
Allowed by default |
git_push |
git push in the current repo |
Allowed by default |
lock |
loginctl lock-session |
Allowed by default |
open_terminal |
The first terminal found: kitty, alacritty, wezterm, foot, xterm, gnome-terminal, konsole, xfce4-terminal |
|
open_project |
code or codium on the workspace folder |
Folder must be inside one of your git_watch_paths |
restart_dev_server |
fuser -k <port>/tcp |
Needs a port, and fuser installed |
suspend |
systemctl suspend |
Needs explicit confirmation |
reboot |
systemctl reboot |
Needs explicit confirmation |
shutdown |
systemctl poweroff |
Needs explicit confirmation |
Each command returns a success or error message to the app. A blocked command returns "command '<name>' is not in allowed_commands".
Running helm with no subcommand is the same as helm run.
| Command |
What it does |
helm run |
Start the agent in the foreground. Stops any instance already running first |
helm status |
Print running pid=... addr=host:port or stopped |
helm stop |
Stop the agent (SIGTERM, then SIGKILL after 5 seconds). Also stops anything still holding the port |
helm restart |
Stop, then start again. Use this after editing the config |
helm qr |
Print the Wi-Fi pairing QR code without starting the agent |
helm config |
Print the effective configuration, including certificate and token paths in Wi-Fi mode |
helm --help, helm --version |
Help and version |
When a desktop session is available, the agent shows a tray icon. Its menu lists the agent version, the connection status (Connected with a client count, or Disconnected), and Stop and Restart items. On a headless machine the tray is skipped and the agent keeps running.
The Claude panel reads session state written by a Claude Code hook. To install the hook, clone the repo and run:
bash hooks/install-hooks.sh
This adds the hooks/helm-claude-hook script to ~/.claude/settings.json for the UserPromptSubmit, PreToolUse, PostToolUse, Stop and SubagentStop events. It is safe to run more than once, and it needs python3.
The hook writes ~/.local/share/helm/claude_state.json (or under $XDG_DATA_HOME if set):
- On a prompt, it marks the session active and records the task (the first 200 characters of your latest prompt).
- On tool use, it records the file being read or edited.
- On stop, it marks the session idle and records token usage from the transcript to compute context usage.
The agent watches this file and pushes changes to the app right away. Set HELM_CLAUDE_MAX_TOKENS (default 200000) in the environment Claude Code runs in to change the context window size used for the percentage.
A plugin system (for tools such as Docker, Kubernetes, GitHub, GitLab, Ollama and Claude Code) is on the roadmap but not implemented yet. The plugins folder in the repo is a placeholder.
The agent reads ~/.config/helm/agent.toml. If the file is missing, built-in defaults are used. Restart the agent after editing it.
| Key |
Default |
Description |
bind_host |
"127.0.0.1" |
127.0.0.1 accepts USB (ADB) connections only. 0.0.0.0 accepts USB and Wi-Fi, and turns on TLS and token auth for network clients |
port |
9090 |
WebSocket port |
mdns_enabled |
true |
Advertise the agent on the LAN when not bound to loopback |
allowed_commands |
["git_pull", "git_push", "lock"] |
Commands the app may run |
git_watch_paths |
[] |
Project roots. open_project only opens folders inside these |
poll_intervals.cpu_ms |
1000 |
CPU sampling interval |
poll_intervals.memory_ms |
2000 |
RAM and swap |
poll_intervals.network_ms |
1000 |
Network speed |
poll_intervals.disk_ms |
2000 |
Disk speed |
poll_intervals.temperature_ms |
2000 |
Temperature sensors |
poll_intervals.battery_ms |
30000 |
Battery |
poll_intervals.process_ms |
3000 |
Top processes |
poll_intervals.window_ms |
500 |
Active window |
Example:
bind_host = "0.0.0.0"
port = 9090
mdns_enabled = true
allowed_commands = ["git_pull", "git_push", "lock", "open_project"]
git_watch_paths = ["/home/you/projects/myapp"]
[poll_intervals]
cpu_ms = 1000
memory_ms = 2000
If you change the port, update it in the app's Settings tab or re-scan the QR code. In USB mode the agent maintains the ADB tunnel for whichever port you set.
| Path |
Purpose |
~/.config/helm/cert.pem |
Self-signed TLS certificate (Wi-Fi mode, 10-year validity) |
~/.config/helm/key.pem |
Private key, readable only by you |
~/.config/helm/token |
64-character hex pairing token, readable only by you |
~/.local/share/helm/helm.pid |
PID file used by status, stop and restart |
To re-pair (for example with a new device), delete the token and restart. The certificate stays the same unless you delete it too.
rm ~/.config/helm/token && helm restart
Agent. The agent is a single Rust binary built on Tokio. At startup it binds the WebSocket server first, then launches one collector task per data source: CPU, memory, temperature, network, disk, battery, processes, VS Code workspace, git, active window, music, Claude session and Claude account. Each collector updates a shared state object and signals changes.
Data sources.
- System stats come from the
sysinfo crate and hardware sensors.
- Git state comes from
git2. The agent watches the repo's .git folder for instant updates and also polls every 5 seconds.
- The workspace comes from VS Code's own storage file (VS Code, VSCodium or Code OSS).
- The active window comes from
xdotool on X11.
- Music comes from MPRIS2 over D-Bus.
- The Claude session comes from the hook's state file, watched for changes with a 5-second fallback poll.
- Account usage reads
~/.claude/.credentials.json and ~/.claude/stats-cache.json, and every 5 minutes makes a small request to the Anthropic API with your existing Claude Code token to read rate-limit headers. This is the only outbound internet request the agent makes.
Protocol. Every message is JSON with a type, a millisecond timestamp ts and a payload. When a client connects, the agent sends a system_info message and full snapshots of all state. After that it sends only changed fields, and the app merges them into what it already has. Message types include system_update, git_update, music_update, window_update, vscode_update, process_update, command, command_ack, and ping and pong for keepalive. Several clients can connect at once.
Security. In USB mode the agent listens on loopback with plain WebSocket, which only processes on your machine (and ADB) can reach. When bound to a network address, network clients must complete a TLS handshake and then send the pairing token in an X-Helm-Token header. The token is compared in constant time. An IP address with 5 failed attempts within 60 seconds is blocked temporarily. The QR code carries the certificate fingerprint, so the app pins that exact certificate and needs no certificate authority.
App. The Android app uses Jetpack Compose with Material 3, Ktor for the WebSocket, Hilt for dependency injection and DataStore to remember the connection mode, host and port. A foreground service keeps the connection alive. A boot receiver starts that service when the device boots. Kiosk mode hides the system bars (swipe to show them briefly), keeps the screen on and locks the app to landscape. ZXing handles QR scanning and Android's network service discovery handles mDNS.
Workstation
- Linux on
x86_64 or aarch64. Arch, Ubuntu, Fedora and openSUSE are tested.
- KDE on X11 is recommended for the full feature set. On Wayland, active window detection is not available, and the rest keeps working.
- ADB (
android-tools on Arch, adb on Debian and Ubuntu).
- systemd for the user service (optional; you can run
helm by hand).
- Optional:
xdotool for window detection and the tray (installed by the script on x86_64), an MPRIS2-compatible player (and playerctl to test it), fuser for restart_dev_server, VS Code or VSCodium, python3 for the Claude Code hook.
- Building from source: Rust 1.75 or later.
Android device
- Android 10 (API 29) or later. Phones, tablets and foldables work.
- USB debugging enabled for USB mode.
- Camera permission for QR pairing.
- Building from source: JDK 17 and Android SDK platform 35.
Problem: The agent won't start, or the port is in use. Run helm status, then helm stop, then helm run. helm stop also kills whatever process is holding the port.
Problem: The app shows Disconnected over USB. Check that USB debugging is on and that adb devices lists the device. Check the tunnel with adb reverse --list. Unplug and replug; the agent restores the tunnel within about 3 seconds.
Problem: The app can't connect over Wi-Fi. Make sure both devices are on the same LAN. Run helm qr and confirm the IP matches your computer's LAN address. Make sure port 9090 is open (sudo ufw status). The Settings tab shows the target URL and the last error.
Problem: The firewall blocks Wi-Fi connections. Open the port manually:
# UFW
sudo ufw allow 9090/tcp && sudo ufw reload
# firewalld
sudo firewall-cmd --permanent --add-port=9090/tcp && sudo firewall-cmd --reload
Problem: helm qr says Wi-Fi is not enabled. Your bind_host is 127.0.0.1. Set it to 0.0.0.0 and run helm restart.
Problem: A new device can't pair. Delete ~/.config/helm/token and restart the agent to generate a new token, then scan the new QR code.
Problem: A command fails with "not in allowed_commands". Add the command name to allowed_commands in agent.toml and restart the agent.
Problem: open_project fails. The folder must be inside a path listed in git_watch_paths, and code or codium must be on your PATH.
Problem: No music data. Check that your player supports MPRIS2 with playerctl status, and that a D-Bus session exists (echo $DBUS_SESSION_BUS_ADDRESS).
Problem: No window or workspace data. Install xdotool (sudo pacman -S xdotool or sudo apt install xdotool). Window detection does not work on Wayland.
Problem: No temperature data. Not all hardware exposes sensors. Check with cat /sys/class/thermal/thermal_zone*/temp.
Problem: No tray icon. The tray needs a graphical session. In a headless session the agent logs a warning and runs without it.
Problem: The Claude panel stays empty. Run bash hooks/install-hooks.sh from the repo and start a new Claude Code session.
Problem: You need more detail. Run with verbose logs, or follow the service log:
RUST_LOG=debug helm run
journalctl --user -u helm -f
HELM is released under the MIT License. The agent builds on Tokio, tokio-tungstenite, sysinfo, git2, zbus, notify, mdns-sd, qr2term, clap, rustls and tray-icon. The Android app uses Jetpack Compose with Material 3, Ktor, Hilt, DataStore, Kotlinx Serialization, Coil and ZXing Android Embedded.