airhand README

The project's README from github.com/sqlpxc/airhand. As one markdown file: README.md.

Airhand

Airhand

High-performance, low-latency remote desktop
QUIC transport · hardware encoding and decoding · up to 120 fps
Windows · macOS · Linux · Android · iOS · browser

English · 简体中文


Airhand is a high-performance, low-latency remote desktop: the screen is encoded on the GPU (AV1 / HEVC / H.264) at up to 120 fps and sent over QUIC; when the network slows down it skips to the latest frame instead of letting lag pile up; and the mouse pointer is drawn locally, so it moves without delay.

The same program is both the host (the device being controlled) and the controller (the device you control it from). The two sides meet through a relay server that you deploy yourself. It's small, and Docker Compose deploys it with one command. Enter the other side's 6-digit control code to connect.

[!NOTE] Work in progress (0.4.1). Build the relay, clients and web service from the same v10 revision; earlier builds cannot be mixed. Video uses one QUIC stream per frame. Protocol versions

Performance

Every stage from capture to display is built for low latency:

See How it works → Video for details.

Features

Platforms

Platform Host Controller Notes
Windows 10 / 11 ✅ ✅ Installed; for all users the host runs as a system service
macOS 13+ ✅ ✅ The host needs the Screen & System Audio Recording and Accessibility permissions
Linux ✅ ✅ The host supports X11 desktops only, with software encoding for now
Android 7+ phones / tablets ✅ ✅ Can only be watched until the accessibility service is turned on; the controller connects to one device at a time
Android TV / Google TV — View only Operated entirely with the remote
iOS / iPadOS 17+ View only ✅ Sharing uses the system screen broadcast; iOS doesn't allow controlling the device
Browser (web console) — ✅ Chrome / Edge, Safari 16.4+, Firefox 130+

See Known limitations for platform-specific caveats.

How it works

flowchart LR
    host["Host<br>Windows / macOS / Linux / Android / iOS"]
    relay["Relay server<br>airhand-server (Docker)"]
    ctrl["Controller<br>desktop console / web console / Android / iOS"]
    host <-->|"QUIC · UDP 4433"| relay
    relay <-->|"QUIC · UDP 4433"| ctrl
    host -. "direct (when possible)" .- ctrl

The host connects to the relay server and gets a 6-digit control code; the controller uses that code to find it. The server only registers codes, pairs sessions and forwards bytes; sessions are end-to-end encrypted, so it can't see their content. Both the host and the controller connect out to the server, so neither needs an open port or a public IP. Once a session starts, the two ends also try to punch a direct path; when that works, the video no longer goes through the server (otherwise it stays on the relay). See How it works for details.

Quick start

You need:

1. Deploy the relay server

git clone https://github.com/sqlpxc/airhand.git
cd airhand
docker compose up -d
docker compose logs airhand | grep fingerprint   # note the certificate's SHA-256 fingerprint

The certificate and the control-code database live in data/. Keep that directory: with a new certificate, clients you've already built can no longer connect. Server settings are in Deployment.

2. Build the client

Compile in the server address and the fingerprint from step 1.

Windows (PowerShell):

cd client
npm install
$env:AIRHAND_SERVER    = "relay.example.com:4433"
$env:AIRHAND_SERVER_FP = "<fingerprint from step 1>"
npm run tauri build

macOS / Linux:

cd client
npm install
export AIRHAND_SERVER=relay.example.com:4433
export AIRHAND_SERVER_FP=<fingerprint from step 1>
npm run tauri build

The packages are under client/src-tauri/target/release/bundle/:

System Package
Windows nsis/Airhand_<version>_x64-setup.exe
macOS macos/Airhand.app, dmg/Airhand_<version>_<arch>.dmg
Linux deb/Airhand_<version>_amd64.deb

The server address and fingerprint can also be changed later in the console (click the server status on the right of the tab bar; it takes effect right away) or in config.toml. For the Android APK, see Building → Android.

3. Connect

  1. Install Airhand on both computers (on Windows run the installer: installing for all users needs administrator rights, installing just for yourself doesn't but can't control the lock screen and UAC prompts; on macOS grant the permissions it asks for the first time)
  2. On the computer to be controlled, right-click the tray icon (on macOS, click the menu bar icon) to see its 6-digit control code
  3. On your computer, choose Open console from the tray menu and enter the code (this computer can still be controlled while the console is open). The first time you connect to that computer, also enter the 6-digit pairing code from its tray menu; after that it isn't needed

The full guide is in Usage.

Without installing a client: the web console

Start the web console on any machine with Docker and use it from a browser:

cd web
AIRHAND_SERVER=relay.example.com:4433 AIRHAND_SERVER_FP=<fingerprint> docker compose up -d

Open http://localhost:8080 on that machine, or https://<its address>:8080 from other computers. For the access password, the HTTPS certificate and reverse proxies, see Deployment → Web console.

Documentation

Document Contents
Usage Host, Windows installation, configuration file, uninstalling, console, quality, language
Deployment Relay server settings, web console, reverse proxies
Android Controlling from a phone, sharing the phone, gestures, TVs
iOS iPhone / iPad: controlling, sharing the screen, building the IPA
Building Per-platform requirements and packages, signing, APK
How it works Architecture, source layout, Windows service, video and audio pipelines, A/V sync, files on disk
Security Encryption and pinning, brute-force protection, control codes and resume tokens
Known limitations Known issues by platform
Development Tests, debugging tools, project conventions

Security notes

See Security for details.

Contributing

Directory Contents
crates/ The protocol (airhand-proto), the client-to-relay link (airhand-link) and the phone core shared by Android and iOS (airhand-mobile)
server/ Relay server
web/ Web console service
client/ Desktop client: Tauri (Rust) + React UI, which the web console uses too
android/ Android app (Kotlin + Jetpack Compose) and its JNI wrapper of the phone core
ios/ iOS / iPadOS app (SwiftUI + UIKit), screen broadcast extension and the C ABI wrapper of the phone core

How to run the tests, the debugging tools and the project conventions (PR titles, protocol versions, UI strings…) are in Development.

License

MIT

airhand (sqlpxc/airhand)

video
Searching Database…

What is this?Remote desktop software. One program acts as both the host (the computer being controlled) and the controller (the computer you control it from), and the two connect through a small relay server over QUIC.
Is it a single app or a server?Both. You run the desktop client on each computer, and you deploy a relay server with Docker Compose that handles signaling and forwards traffic between them.
How do I get it running?Deploy the relay server with Docker Compose on a machine both computers can reach. Then build the client with the server address and certificate fingerprint compiled in, run it on both computers, and enter the 6-digit control code shown on the remote one.
What do I need to build the client?Rust (stable), Node.js 20+ and CMake. On Windows you need Windows 10/11, on macOS 13+ with the Xcode Command Line Tools, and on Linux the Tauri dependencies, PulseAudio development files and GStreamer plugins.
What are the catches?The project is under active development and the protocol changes between versions, so the server and every client must be built from the same version. On stock GNOME the Linux tray icon needs the AppIndicator extension, and macOS needs Screen Recording and Accessibility permissions.
Which operating systems are supported?Windows, macOS 13 or later, and Linux with X11 desktops. Wayland isn't mentioned.
Can I run the relay on a VPS?Yes. The relay is a Docker Compose deployment on any machine both computers can reach, and only inbound UDP 4433 needs to be open.
Is the connection encrypted and protected?Yes. Traffic uses TLS 1.3 with certificate pinning, and control codes have brute-force protection.
Can I control a computer from a browser without installing anything?Yes. The controller can run as a web console in Docker Compose, and you open one port in a browser. Nothing needs to be installed on the computer you control from, though the computers being controlled still run the Airhand client.
What happens on the computer being controlled?After launch it shows only a tray icon, with no window and no WebView. After a network drop it reconnects automatically and keeps its old control code, even after a server restart.
What can I do once connected?You can control several computers at once, use a multi-screen overview, sync the clipboard both ways or type it as keystrokes, stream the host's system sound with optional A/V sync, and use adaptive bitrate for low latency.
What are similar projects?rustdesk-server, xpra, Cap, nyaterm, numa, omnyssh, buzz, Piik
Creator
sqlpxc
Size
3.7 MB
Stars
1.4K
Age
1mo
Commits · 90 Days