Haven
Haven
Free, open-source remote access & mobile workspace for Android —
SSH · Mosh · VNC · RDP · SPICE · GLKVM · SFTP · SMB · email · cloud storage, a local Linux shell and a full Linux kernel (UML), mesh networking, and a consent-gated AI-agent endpoint
"Haven is an interesting vibe coding experiment. Let's see what comes out of it." — DBP
GitHub Releases • F-Droid • Mutiny Desktop Companion
What Haven 6.0.0 adds:
- Two-limb phone + desktop workspace with Mutiny 1.0.0: pair Haven with Mutiny on your Linux desktop over any Haven userspace tunnel (WireGuard, Tailscale, NetBird, Yggdrasil, OpenVPN, or AnyConnect, with no Android
VpnServicerequired) or SSH forward. Tap to pair in either direction, browse and hand off livetmux/zellijsessions, inspect and drive remote Mutiny panes from your phone, co-sign desktop consent prompts with HMAC-SHA256, mirror focus-aware notifications, and throw images, URLs, or clipboard text across devices.- Hardened inbound MCP over any userspace tunnel: serve Haven's MCP endpoint over any of the six inbound userspace tunnels (off by default on fresh installs), protected by a source IP/CIDR allowlist checked before TLS or HTTP headers, a live
Allow new MCP pairingslock with single-slot pairing, a 64-connection ceiling,Mcp-Session-Idorigin/credential binding, and automatic HTTPS (Tunnel TLS:AutoorAlways HTTPS).- SSH RSA-2048 migration & post-quantum readiness: flag exact RSA bit lengths and weak/RSA-2048 keys in
Keysandknown_hosts, rotate saved connections and identities non-destructively with guidedRotate to Ed25519…, inspect live negotiated crypto (including PQ-hybrid KEX and strict KEX) and run read-onlyCheck server cryptoaudits from TerminalSession security…oraudit_ssh_crypto, and opt into global or per-profileRefuse RSA algorithmsandRequire post-quantum KEXpolicies across JSch and sshlib.
▶ Watch: the terminal — and every Haven screen — made translucent over the device wallpaper (new in 5.60.4). Live wallpaper: MagicFluids.
- Desktop companion (Mutiny) — bidirectional pairing between Haven 6.0.0 and Mutiny 1.0.0 (pure Rust + GTK4 Linux desktop terminal) over userspace tunnels or SSH forwards: tap-to-pair, live
tmux/zellijsession tree and handoff, remote pane inspection and input, HMAC-signed cross-limb consent, focus-aware notification mirroring, and media/web/clipboard throw. - Terminal — Mosh / Eternal Terminal / SSH, USB / Bluetooth / BLE serial consoles with a serial↔TCP bridge, tmux-aware session restore, configurable keyboard toolbar, OSC 7/8/9/52/133/777 integration.
- Desktops — VNC (RFB 3.8 / VeNCrypt), RDP (IronRDP + EGFX), SPICE (QEMU/KVM, GLZ/QUIC), GLKVM / PiKVM out-of-band HDMI+HID, a GPU-accelerated native Wayland compositor, and a multi-distro local-desktop manager.
- Files & cloud — unified browser for SFTP/SCP, SMB, and 60+ cloud providers; cross-filesystem copy/move, editor and image tools; plus on-device FFmpeg transcode, HLS streaming, and DLNA.
- Connections — port forwarding (-L/-R/-D/-J), SOCKS/HTTP/Tor proxies, per-app WireGuard, Tailscale, NetBird, Yggdrasil, OpenVPN & Cisco AnyConnect userspace tunnels (outbound and inbound), port knocking and fwknop SPA, and SSH keys (FIDO2/SK, RSA-2048 audit, guided Ed25519 rotation, and opt-in refuse-RSA / require-PQ-KEX policies).
- Email — ProtonMail (bridge protocol) and any IMAP/SMTP mailbox; compose / reply / forward, multi-account, attachments; plus Mail Rules inbound automation.
- AI chat — chat with self-hosted or API models (OpenAI-compatible, Ollama, Anthropic, Gemini) over per-profile tunnel routing; image attach for vision models, clipboard copy/paste both ways, opt-in encrypted saved transcripts.
- Local Linux — a Linux userland via PRoot (no root, any Android 8+ device): Alpine, Debian, Ubuntu, Arch, or Void, side-by-side.
- Linux Guest (UML) — a whole Linux kernel (user-mode Linux) booted as an app process on any arm64 device, no root: Alpine with
apk, its own ext4 disk and network stack, for when PRoot's syscall emulation isn't enough. - USB card rescue console — plug in a failing SD card and the raw device reaches a Linux guest in seconds, ready for
ddrescue; the rescued image lands in app storage. - USB forwarding — broker an attached USB device through Android and re-expose it to the agent, into the Linux guest, or over USB/IP to a remote host (e.g. a phone-hosted YubiKey, touch on the phone).
- Reticulum — rnsh shell, file transfer, and
-L/-Dport forwarding over Reticulum mesh, pure Kotlin. The one transport that keeps working with no internet at all. - Agent transport (MCP) — an optional MCP server exposing 257 consent-gated, audited tools over loopback, SSH forwards, or any of the six inbound userspace tunnels (with source IP/CIDR allowlist, live pairing lock, and
Tunnel TLS), including on-device RapidOCR + 2D k-d tree spatial indexing for driving remote desktops (VNC, RDP, SPICE, GLKVM) and tools to see and operate Haven itself for a self-hosting build → install → verify loop. - Security — biometric lock, no telemetry, encrypted backup/restore (AES-256-GCM), live SSH crypto and server
sshdaudits, guided Ed25519 key rotation, and opt-in strict SSH crypto policies.
See docs/FEATURES.md for the full feature index.
Why one app
The list above is the parts; the point is how they compose. Each of these is one
flow inside Haven — no second app, no curl | ssh incantation:
- Walk away from your Linux workstation running Mutiny, open Haven on your phone over WireGuard or Yggdrasil, pick up the exact
tmuxsession in a native SSH tab or inspect the live pane directly, and approve desktop agent actions from your pocket. - Tap a 4K MKV in Google Drive → FFmpeg transcodes it over HTTP and the result lands back in the same Drive folder, never touching local disk.
- SSH to a box, forward its port, tap the VNC profile that targets
localhost— the desktop opens in the same app, keyboard and clipboard shared. - Cut a log directory from an S3 bucket, switch tabs, paste it onto an SFTP server — rclone does the server-side copy when it can, otherwise Haven streams it through.
- Run your agent CLI in the on-device Linux shell; it pushes over the SSH agent you forwarded from your laptop while you watch on the same screen.
- Hit something PRoot can't do — a tracer, a mount, a script you don't trust — and boot the UML guest instead: a real kernel as an app process, which an agent can drive over the same MCP tools.
- Cast a cloud video to the TV across the room over HLS, copy the LAN URL from the snackbar, send it to a friend so they can watch too.
The phone is the thin client, Haven is the thin-client OS, and the cloud, your servers, and your agents are the computer. Width is sufficient; composition is the point. (Vision.)
Languages
Available in 12 languages: English, Chinese (simplified), Spanish, Hindi, Arabic (with RTL support), Portuguese, Bengali, Russian, Japanese, Korean, French, and German. The UI follows the device language.
Want to help translate? Improve a translation or add a new language straight from the web translation page — no cloning or setup; your changes become a GitHub pull request. See Languages & translation for details.
Install
| Channel | |
|---|---|
| GitHub Releases | Signed APK, all features |
| F-Droid | Built from source, all features |
Both builds have the same features — SSH, Mosh, Eternal Terminal, VNC, RDP, SFTP, SMB, email, and cloud storage. IronRDP (Rust) is built from source via cargo-ndk. rclone (Go) is built from source via gomobile.
Pick one channel and stay on it. The two channels are signed with different keys — GitHub Releases use Haven's own release key; F-Droid builds from source and signs with F-Droid's per-app key. Android treats different signing keys as different apps, so you can't update in place from one channel to the other — switching means uninstall + reinstall, which clears app data (back up first via Settings → Backup). Direct sideloads and Obtainium track the GitHub Releases key.
Signing certificate SHA-256 (to verify a sideloaded APK with
apksigner verify --print-certs):
- GitHub Releases:
ea03a3a70e1c11d0a78932f959b21f20d8735d9cd750997657cb7f7d7c2b90b3- F-Droid:
ea05a89431961b8ac53c36725452673c2be1c2d7b6e48771617b974e6092b332
Haven uses a rolling release cadence: new builds are cut directly as fixes and features pass CI rather than waiting for quarterly milestones. Check the release notes in Settings → About or on GitHub Releases before updating devices you rely on in production.
Build from source
Requires Rust with Android targets, cargo-ndk, Go 1.26+, and gomobile:
# Rust (for RDP)
rustup target add aarch64-linux-android x86_64-linux-android
cargo install cargo-ndk
# Go (for rclone cloud storage)
go install golang.org/x/mobile/cmd/gomobile@latest
go install golang.org/x/mobile/cmd/gobind@latest
git clone --recurse-submodules https://github.com/GlassHaven/Haven.git
cd Haven
./gradlew assembleDebug
Output: app/build/outputs/apk/debug/haven-*-debug.apk
Documentation
- Features — detailed feature descriptions.
- Backup file format — wire format, the PBKDF2/AES-GCM envelope, and a Python recipe for manual decryption if the in-app importer fails.
- Maintainer Protocol — the
/maintainskill driving Haven's maintenance loop (CI triage, release readiness, issue response, and dependency tracking) run by Qwen3.8-Flash running locally via llama-claude, with daily security audit passes performed by GLM5.3-flash. - Release process — versioning, tagging, and F-Droid steps.
- Privacy policy.
- Vision.
Third-party libraries
| Library | Purpose | License |
|---|---|---|
| rclone | Cloud storage engine (60+ providers) | MIT |
| IronRDP | RDP protocol (Rust/UniFFI) | MIT / Apache-2.0 |
| JSch | SSH/SFTP protocol | BSD |
| smbj | SMB/CIFS protocol | Apache-2.0 |
| ConnectBot termlib | Terminal emulator | Apache-2.0 |
| reticulum-kt | Reticulum mesh network transport (Kotlin) | MPL-2.0 |
| rnsh-kt | Reticulum remote shell client (Kotlin) | AGPL-3.0 |
| FFmpeg | Media conversion and streaming | LGPL-2.1 / GPL-2.0 |
| PRoot | Local Linux shell (userspace chroot) | GPL-2.0 |
| Linux UML | Linux Guest kernel (real kernel as an app process) | GPL-2.0 |
| passt | Guest networking (userspace TCP/IP for the UML guest) | GPL-2.0 |
| labwc | Wayland compositor (native desktop) | GPL-2.0 |
| wlroots | Wayland compositor library | MIT |
| virglrenderer | GPU virtualization (OpenGL passthrough to PRoot apps) | MIT |
| RapidOCR / ONNX Runtime | On-device OCR for desktop & document tools (PP-OCRv5 mobile) | Apache-2.0 / MIT |
| Jetpack Compose | UI toolkit | Apache-2.0 |
Backing
Haven sits on top of the projects listed in the table above — the heavy lifting was done long before this repo existed.
Most of the direction Haven has taken has come from the user base, not from a roadmap: bug reports, screenshots of edge cases, "have you tried…” comments on long issue threads. Qwen3.8-Flash running locally writes most of the actual code; the maintainer's role is closer to that of a messenger between the user group and the model: listening, setting the agenda, and quality-checking.
A small recurring amount comes in via Ko-fi and Liberapay. It helps offset the electricity costs of running the work above, and it's a clear signal that the work is useful to people. The project continues regardless of donations.
