English | 简体中文
An independent, open-source Linux cross-device interconnect client compatible with Xiaomi HyperConnect / Lyra protocols. Built with a Rust backend daemon and protocol stack, a Tauri 2 + React 19 + TypeScript + Tailwind CSS v4 desktop client, FFmpeg VA-API hardware-accelerated decoding, and a WebGL2 NV12/YUV420P shader renderer.
Note
HyperClix is an independent open-source implementation with no official affiliation with Xiaomi Inc. and is under active development. Currently tested on China ROM / CN Xiaomi accounts — Global & EEA ROM testers and feedback are very welcome!
Screen mirroring and a resizable standalone phone app window running natively on Linux
| Module | Description |
|---|---|
| LAN Discovery & Auth | mdns-sd discovery, same-account QR sign-in with multi-profile certificate auth (PC / OTHER_PC), and encrypted KCP transport |
| Pairing-Free BLE & BLE → LAN | Unprivileged Linux AF_BLUETOOTH L2CAP ATT direct connection (no OS pairing prompt), with direct link upgrade from BLE to LAN or Wi-Fi Direct |
| Concurrent Wi-Fi Direct | Creates dedicated virtual interfaces hcp2p0..7 via hyperclix-p2pd in GC mode without interrupting host Wi-Fi or internet connectivity, with automatic fallback to LAN |
| MiShare File Transfer | Bidirectional file transfer (MiExpress TCP + AES-128-GCM) over both LAN and Wi-Fi Direct |
| Screen Mirror & Standalone App Windows | H.264/HEVC VA-API hardware decoding (one-click switch to software decode in Settings) + zero-copy WebGL2 YUV rendering, keyboard/mouse & CJK IME input, file drag-and-drop, independent local viewer volume (muted by default), and resizable standalone app windows that preserve phone-native DPI |
| Cross-Device Clipboard | Background bidirectional sync (text, HTML, images, files) inside hyperclixd, automatically supporting Wayland (ext-data-control-v1 / zwlr-data-control-v1) and X11 / Ubuntu GNOME XWayland (XFixes) |
| App Relay | Tracks the phone's active relay state for one-click handoff to standalone app windows, browser URLs, and documents |
| Phone Camera & Virtual Webcam | Wireless preview of front/rear phone cameras with optional output to a v4l2loopback virtual webcam device |
| Background Daemon & System Tray | hyperclixd (Session D-Bus + OwnedFd raw stream handoff + StatusNotifierItem tray) + hyperclix-p2pd (non-root capability sandbox + Polkit + rtnetlink + dhcproto); closing the main UI frees WebKit/GPU memory while keeping background connectivity alive |
| Modern Desktop Client | Thin Tauri 2 + React 19 + Tailwind v4 UI with first-run setup wizard, community-extensible i18n (ui/src/locales/*.json), light/dark themes, expandable per-app window size editor, unified real-time daemon + ui Logs viewer with live capture-level switching, version mismatch & update checks, and standalone WebGL2 viewer windows |
MiShare File Transfer |
Cross-Device Clipboard |
Phone Camera Preview |
Native Interconnectivity Recognition (phone sees Linux as a native PC) |
Native Clipboard Handoff (pasting directly from Linux on phone) |
HyperClix uses a layered Rust workspace with strict privilege separation so all primary application logic runs as a regular unprivileged user:
crates/hyperclix-proto: Wire-level.proto(prost) schemas and low-level framing (Lyra / Auth / Mirror / Camera / Clipboard / MiShare) with zero networking or media dependencies.crates/hyperclix-media: WFD RTSP/RTP bridge and optionallibav(VA-API hardware decode first, zero-sws_scaleNV12/YUV420P planar output) / ALSA / V4L2 playback pipeline (decodefeature).crates/hyperclix-ipc:xyz.zeroform.HyperClixD-Bus contract, DTOs, and lightweightDaemonClient.crates/hyperclix-core: Multi-account identity & certificates, transports (LAN KCP / pairing-free BLE L2CAP ATT / Wi-Fi Direct), session state machine, and all interconnect features (no FFmpeg or ALSA dependency).crates/hyperclixd(systemd --userdaemon):- Owns Session D-Bus name
xyz.zeroform.HyperClix.Daemon(/xyz/zeroform/HyperClix/Daemon), managing accounts, sessions, Wayland/X11 clipboard bridge, system tray (ksniStatusNotifierItem), MiShare, relay, unified log streaming, and media sessions (no FFmpeg / ALSA / GTK / WebKit dependencies). - Streams raw compressed MPEG-TS / H.264 / HEVC over Unix
socketpair+ D-Bus SCM_RIGHTSOwnedFdto the frontend, automatically reclaiming streams if a viewer window closes or crashes; stays running in the background after the main window is closed.
- Owns Session D-Bus name
crates/hyperclix-p2pd(System D-Bus non-root capability sandbox, on-demand activation, auto-exit when idle, zerocore/ OpenSSL / FFmpeg dependencies):- Runs as dedicated unprivileged system user
hyperclix-p2pwith onlyCAP_NET_ADMIN+CAP_NET_RAW, hardened viaProtectSystem=strict,ProtectHome=yes, andNoNewPrivileges=yes. - Uses
rtnetlink,dhcproto+etherparse, and a privatewpa_supplicantinstance strictly scoped tohcp2p0..7, gated by Polkit (xyz.zeroform.hyperclix.p2p.join), and monitorsNameOwnerChangedfor automatic cleanup without touching the host's primary Wi-Fi interface, default route, or DNS. - Includes a
--stdiofallback mode: when running from source without system services installed, automatically falls back topkexec hyperclix-p2pd --stdio.
- Runs as dedicated unprivileged system user
crates/hyperclix-ui+ui/: Thin Tauri 2 + React 19 + TypeScript + Tailwind CSS v4 desktop client (Application ID:xyz.zeroform.HyperClix) with an authenticated127.0.0.1binary WebSocket frame pump and WebGL2 NV12/YUV420P renderer.packaging/: systemd, D-Bus, Polkit, and NetworkManager unmanaged-device configs plus install/uninstall scripts.
Supports Wayland and X11 Linux desktops (KDE Plasma, GNOME / Ubuntu, Sway, Hyprland, XFCE, etc.). Clipboard sync prefers Wayland ext-data-control-v1 / zwlr-data-control-v1 and automatically falls back to X11/XWayland XFixes on X11 and Ubuntu GNOME Wayland. File pickers use xdg-desktop-portal.
- Rust:
1.100+(see rust-toolchain.toml) - Node.js & pnpm: Node
24+,pnpm(for buildingui/) - Toolchain: C compiler,
pkg-config,libclang,protoc(Protobuf compiler) - System Development Libraries:
- OpenSSL (
libssl/libcrypto) - FFmpeg 9 dev libraries (
libavcodec,libavformat,libavutil,libswscale,libswresample,libavdevice) - ALSA dev library (
libasound) - Tauri 2 Linux libraries:
webkit2gtk-4.1,gtk3,librsvg
- OpenSSL (
- Bluetooth discovery: BlueZ (
bluetoothd) - Concurrent Wi-Fi Direct:
iw,wpa_supplicant,wpa_cli(pkexecneeded when running uninstalled from source) - Hardware video decoding (recommended): VA-API driver (AMD/Intel iGPU or Mesa VA-API; falls back to CPU decode automatically)
- Virtual webcam (optional):
v4l2loopbackkernel module
pnpm --dir ui install
pnpm --dir ui build
cargo build --workspace --releaseAvoids repeated elevation prompts for Wi-Fi Direct:
sudo ./packaging/install.sh
systemctl --user daemon-reload
systemctl --user enable --now hyperclixd.serviceUninstall:
sudo ./packaging/uninstall.sh./run.shOptional: create a virtual webcam node (e.g. /dev/video10) for phone camera output:
sudo modprobe v4l2loopback video_nr=10 card_label="HyperClix Camera" exclusive_caps=1Follows the XDG Base Directory specification (resolved via directories):
| Purpose | Default Path | Env Override |
|---|---|---|
| App config (theme, device name, automation, saved app window sizes) | ~/.config/hyperclix/config.json |
$XDG_CONFIG_HOME/hyperclix/config.json |
| Multi-account credentials & device certificates | ~/.local/share/hyperclix/accounts/ |
$XDG_DATA_HOME/hyperclix/accounts/ |
| Received files | ~/.local/share/hyperclix/received/ |
$XDG_DATA_HOME/hyperclix/received/ |
| Clipboard cache | ~/.cache/hyperclix/clipboard/ |
$XDG_CACHE_HOME/hyperclix/ |
Unified structured logs (app-*.log, ui-*.log) |
~/.local/state/hyperclix/logs/ |
$XDG_STATE_HOME/hyperclix/logs/ |
Log verbosity can be changed live in the Logs tab (ERROR / WARN / INFO / DEBUG / TRACE), or set at startup via environment variable:
HYPERCLIX_LOG=debug ./run.shImportant
Before using HyperClix, the client requires you to read and accept the End-User License Agreement (EULA). Building, distributing, or using this project's source code or binaries indicates that you understand and agree to the following terms.
-
Non-Affiliation & Trademarks
- HyperClix is a completely independent, third-party open-source project and is not affiliated with, partnered with, authorized by, sponsored by, or endorsed by Xiaomi Inc. or any of its affiliates.
- Product names and trademarks mentioned in this repository—such as "Xiaomi", "HyperOS", "MIUI", "MiShare", and "Lyra"—are the property of their respective owners and are referenced solely to describe interoperability.
- This repository contains no vendor proprietary binaries, closed-source libraries, official application assets, private keys, or copyrighted upstream code; all code is an independent original open-source implementation for cross-platform interoperability.
-
Lawful & Personal Interoperability Use
- This project is intended for cross-device interoperability between Linux and mobile devices that you legally own or are explicitly authorized to use.
- You must not use this project for unauthorized access to other people's devices, bypassing security controls, impersonating official clients commercially, automated abuse, or any activity that violates applicable laws or device vendor terms of service.
-
Account & Privacy Notice
- HyperClix runs no third-party cloud relay servers. QR sign-in is initiated by the user directly with the upstream authentication endpoints, and resulting credentials/certificates are stored locally with restricted permissions. LAN, Bluetooth, and Wi-Fi Direct transfers occur directly between local devices.
- Signing in with a third-party client may trigger upstream risk controls or conflict with certain terms of service. You are solely responsible for evaluating and assuming any resulting account or compatibility risks.
-
No Warranty / Limitation of Liability
- This software is provided "AS-IS" without warranty of any kind, express or implied, including but not limited to merchantability, fitness for a particular purpose, continued availability, or non-infringement. Upstream OS updates or protocol changes may break some or all features at any time.
- To the maximum extent permitted by applicable law, the authors and contributors shall not be liable for any direct, indirect, incidental, special, or consequential damages (including data loss, system issues, network disruption, or account restrictions) arising from the use or inability to use this software.
-
Takedown / Rights-Holder Contact
- If any trademark, copyright, or rights holder believes content in this repository infringes their rights, please contact us via GitHub Issues or the maintainer's public contact details and we will review and address it promptly.
Licensed under the MIT License.




