Skip to content
Projects

About

All-in-one browser-based remote desktop & cloud gaming/phone hub for human and AI agents. Supports Android, Redroid, Sunshine, Linux & RK3588.

Productivity & Automation

How these counts are measured

What you can do

  • Android (scrcpy) - Low-latency H.264 / H.265 + Audio - Multi-touch (pressure), UHID Mouse / Keyboard / Gamepad - Bidirectional File Transfer, Clipboard Sync
  • GameStream (Sunshine / Wolf) - Low-latency H.264 / H.265 + Audio - Mouse, Keyboard, Touch, Gamepad - AV1 requires host and browser support
  • Linux (Xvfb / Xorg / Sway) - H.264 / H.265 (GPU accelerated on Xorg/Sway) - Mouse, Keyboard, Touch (uinput / seatd) - -
  • RK3588 (rk3588-hdmirx) - HDMI-in via RKMPP hardware encoding - View-only - Tested on OrangePi 5 Plus Armbian vendor kernel

Measured star growth

in 24h
+1
in 7 days
+6
in 15 days
+8
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

scrmux logo
Scrmux

Code Style GitHub Release GitHub Stars Docker Pulls Last Commit License: AGPL v3 Single Binary Architectures Platforms MCP Ready AI Enhanced

The unified, zero-client WebRTC/WebSocket streaming hub for all your screens.

Scrmux brings your physical Android devices, Redroid cloud phones, Sunshine/Wolf gaming rigs, headless Linux desktops, and RK3588 HDMI capture feeds together into a single, modern web dashboard. Built for low latency and high-efficiency workflows, it delivers native-like control right in your browser—complete with client-side AI super resolution, LLM translation, and passkey security.

[!NOTE] Project Renamed: Webscreen is now Scrmux (Screen Multiplexer). If you use docker, remember to update the config!

[!NOTE] For the best performance and compatibility, Chrome or Chromium-based browser is highly recommended.

简体中文 • 日本語


https://github.com/user-attachments/assets/45ff577d-5c82-494b-8246-3e0fb76da47c

showcase

⚡ Why scrmux?

Scrmux unifies everything into one lightweight web interface:

  • 🤖 MCP Ready: Ready for the agentic era — turn every connected phone or desktop into a real-time playground for LLMs with native vision capture and sub-10ms input control, shipped inside a single Go binary.
  • 🏹 Share Screen with Limited Permissions: Share your screen with friends in a single click. Customize control permissions and set time-limited access—once your streaming session ends, the share link automatically expires.
  • 🔍 Client-Side WebSR Super Resolution: Upscale bad streams directly in your browser using WebGPU/WebGL shaders — get crisp text and sharp game graphics over bandwidth-limited networks or old games without extra server GPU load.
  • 🌐 Instant LLM OCR Translation: Playing untranslated games or watching foreign streams? Select any region on screen to extract and translate text on the fly via your preferred LLM endpoint.
  • 📁 Android Bidirectional File Transfer: Drag and drop files directly onto the remote screen to save them to /sdcard/Download (.apk files will install automatically). You can also use the sidebar File Explorer to browse and download files from your Android device.
  • 🧩 All-in-One Streaming Hub: Manage physical Android phones, Redroid cloud phones, Sunshine/Wolf gaming rigs, headless Linux desktops, and RK3588 HDMI-in capture feeds from one unified dashboard.
  • 🚀 Zero Client Setup: Runs natively on Linux, Windows, macOS, Docker, and Android Termux (amd64 & arm64). Access everything via WebRTC or WebSocket from any modern browser — no client app required.
  • 🔒 Passkey Sign in: Protect your data and devices with the most advanced security. Say goodbye to the hassle of entering passwords.
  • ⭐ More Than Streaming: Even more advanced features are on the way!

✨ Supported Backends & Capabilities

Backend Video & Audio Input & Control Extras
Android (scrcpy) Low-latency H.264 / H.265 + Audio Multi-touch (pressure), UHID Mouse / Keyboard / Gamepad Bidirectional File Transfer, Clipboard Sync
GameStream (Sunshine / Wolf) Low-latency H.264 / H.265 + Audio Mouse, Keyboard, Touch, Gamepad AV1 requires host and browser support
Linux (Xvfb / Xorg / Sway) H.264 / H.265 (GPU accelerated on Xorg/Sway) Mouse, Keyboard, Touch (uinput / seatd) -
RK3588 (rk3588-hdmirx) HDMI-in via RKMPP hardware encoding View-only Tested on OrangePi 5 Plus Armbian vendor kernel

In the stream view, the statistics button toggles an overlay updated approximately once per second. It shows source resolution and, when active, the super-resolution output canvas size and completed render FPS, as well as video payload bitrate and decoded FPS (neither FPS is display FPS). WebRTC also shows RTT, RTP loss and jitter when the browser provides them; WebSocket shows its decoder queue, client-side skips since the overlay was enabled, and application-level RTT over the browser-to-scrmux control connection (not to the remote device). Unavailable values appear as —.

To use AV1 with GameStream, select it in the device-specific video codec settings. The host must advertise AV1 Main 8-bit support, and the browser must support AV1 for the chosen WebRTC or WebSocket transport.

🛠️ Prerequisites

scrmux follows a three-tier architecture: Browser (Viewer) ↔ scrmux Server (Relay/Host) ↔ Target Devices (Remote).

1. Browser Side (Client)

  • Modern Web Browser: Chrome, Edge, Safari, or Firefox with WebCodecs hardware decoding support.
  • HTTPS Context (Recommended): Required if you want to use WebSR Super Resolution, Clipboard Sync, or WebSocket streaming mode.

2. Server Side (Where scrmux Runs)

Depending on which backends you plan to host, prepare the corresponding environment on your server (Linux, Windows, macOS, Docker, or Termux):

Target Backend Server Requirements
GameStream (Sunshine / Wolf) Zero extra dependencies — works out of the box with the single scrmux binary.
Android (scrcpy) adb (android-tools) in your PATH. (If missing, scrmux will attempt to download it automatically.) Devices without an Opus encoder also need ffmpeg with AAC decoding and libopus encoding in PATH; otherwise audio is disabled. The AAC fallback supports 48 kHz stereo AAC-LC.
Linux Virtual Desktop xvfb, ffmpeg, xfce4, sway, wf-recorder, and seatd (plus uinput permissions for mouse/keyboard injection).
RK3588 HDMI-in Armbian/vendor kernel with rk3588-hdmirx enabled, FFmpeg with RKMPP support (e.g., /usr/lib/jellyfin-ffmpeg/ffmpeg), v4l-utils, and sudo chmod 666 /dev/mpp_service.
📦 Quick Install & Run on Linux Servers (Debian / Ubuntu)
# 1. Install minimal dependency for Android streaming:
sudo apt update && sudo apt install -y adb ffmpeg

# Optional: Install dependencies for Linux headless virtual desktop (Xorg / Sway):
# sudo apt install -y xvfb ffmpeg xfce4 sway wf-recorder seatd

# 2. Download the latest scrmux binary (amd64) and default config:
mkdir -p scrmux/data && cd scrmux
curl -fL https://github.com/huonwe/scrmux/releases/rolling/download/scrmux-linux-amd64 -o scrmux
curl -fsSL https://raw.githubusercontent.com/huonwe/scrmux/main/config.yml -o ./data/config.yml
chmod +x scrmux

# 3. Start scrmux and enable tls (visit https://<your-ip>:8081):
./scrmux --tls

Notes for Linux Desktop Backend:

  • Xorg mode may require running scrmux as root.
  • Sway mode relies on wf-recorder for screen capture.
  • Input passthrough (keyboard/mouse) requires uinput kernel module and proper seatd permissions.

3. Target Device Side (Controlled Devices)

Android Devices: No app installation required on the phone. Simply enable Developer Options → USB Debugging or Wireless Debugging (supports pairing code).

The console reads Android devices directly from ADB without distinguishing transports. Previously saved devices remain listed as offline until removed; a device still reported by ADB reappears after refresh.

Device identities, display names and connection addresses are stored in SQLite; existing UUIDs are preserved when upgrading. Availability and ADB state are checked at device-list refresh, not stored. Saved GameStream hosts (including manually paired hosts) are checked via HTTP /serverinfo; probe failures that do not establish offline status are shown as unknown. Local pairing credentials do not guarantee that the host still accepts them.

Devices can store IPv4 and IPv6 addresses. GameStream associates a pair only when advertised by the same mDNS service; existing separate records and UUIDs are not merged. Streaming prefers the original paired address, with credentials stored per address; availability checks both addresses. Android devices remain identified by ADB serial, not by name.

PC / Cloud Gaming Host: Must have Sunshine or Wolf installed and running.

To pair a GameStream host, select GameStream Pair in the console and click the discovered host, or expand the manual entry section and enter its address and port (default 47989). Enter the displayed four-digit PIN on the host while the console waits for pairing to complete.

HDMI Source (for RK3588): Any standard HDMI output device (PC, console, camera, etc.) connected to the board's HDMI-in port.

Account and passkeys

Use the account icon in the console to add or delete passkeys, change the password, and enable or disable password login. Passkeys require a browser-trusted HTTPS domain and a WebAuthn-compatible browser, and are bound to the domain where they were created. Enter the administrator username before selecting passkey login.

Register a passkey for the current domain before disabling password login. The last passkey cannot be deleted while password login is disabled. Changing or disabling the password does not revoke existing sessions or disable trusted-IP PIN login. Preserve the SQLite database and your usable passkeys; before changing domains, enable password login so you can sign in and add a passkey on the new domain.

If you forget the password, run ./scrmux -D ./data --reset-password <username>. This resets the specified user's password, enables password login, revokes their existing account tokens, prints a random password once, and exits without starting the service. Protect the terminal output. PIN tokens are not associated with individual users and are not revoked; existing streaming connections are not immediately disconnected.

🚀 Usage

Option 1: Use Pre-built Binary

Download the latest binary from the Releases page.

Then,

mkdir ./data
curl -fsSL https://raw.githubusercontent.com/huonwe/scrmux/main/config.yml -o ./data/config.yml
# You might need to change some settings here.
# Pair and connect Android devices
adb pair <your Android device IP>
adb connect <your Android device IP>

./scrmux --tls

Then open your browser and visit: https://<ip_listen>:<port_listen>

Option 2: Build from Source

Normally, you can build simply by running make.

Termux Note: If building natively on Termux, you must run go build -ldflags "-checklinkname=0".

git clone https://github.com/huonwe/scrmux.git
cd scrmux
make

Option 3: Docker

services:
  scrmux:
    image: dukihiroi/scrmux:latest
    container_name: scrmux
    network_mode: host
    restart: unless-stopped
    volumes:
      - /dev/bus/usb:/dev/bus/usb
      - ./data:/scrmux/data
    privileged: true
    environment:
      - TLS=true
      - LISTEN="0.0.0.0:8081"

You might also change/add these options in data/config.yml:

  • listen: A string value. The server will listen on this IP address. Default to 127.0.0.1:8081.
  • tls: A boolean value. Whether to enable embedded TLS.
  • domain: A string value. To be included in the TLS cert.
  • jwt_secret: A string value.
  • trusted_ips: A list of strings. Access from these IPs can have PIN unlock.
  • pin: A string value. Must be 6 digits.
  • mtu: A int value.
  • udp_range_start: A int value.
  • udp_range_end: A int value.
  • ice_servers: A list of strings.

Arg value and enviroment value will override the config.yml values.

Android Pairing

In the Android group, choose Pair and keep the phone's Pair device with pairing code screen open. Select the discovered pairing service and enter its six-digit code, or expand the manual entry section. After pairing, close the dialog and choose Connect paired device to select a discovered connection service or enter its address manually. Discovery of a connection service does not confirm pairing. The connection port may differ from the pairing port.

Connection services matching online adb devices entries are marked Connected and listed last. Refresh the list to update their status.

If no pairing service is found, scan the displayed QR code using Wireless debugging → Pair device with QR code on the phone. The server discovers the phone and pairs automatically; refresh if the QR code expires after two minutes. QR pairing requires mDNS discovery to work on the network.

Android and GameStream discovery query multicast-capable network interfaces over IPv4 and IPv6. Link-local IPv6 addresses include an interface zone.

Addresses advertised by the same Android mDNS service are shown together. Pairing and connection try IPv4 first, then IPv6; pairing falls back only on transport errors, not errors such as an incorrect code. Manual entry uses only the supplied address. The main device list still identifies devices by ADB serial and does not merge existing records.


🤝 Acknowledgements

This project builds upon and integrates several open-source projects, models, and runtimes:

  • scrcpy — Pre-built scrcpy-server binary used for Android screen capture and device control.
  • Pion WebRTC — Pure Go implementation of the WebRTC API powering real-time media and data transport.
  • WebSR — Super-resolution shader/inference implementation and pre-trained model weights.
  • Anime4K - Super resolution pre-trained model weights.
  • PaddleOCR (PP-OCR) — Pre-trained text detection and recognition models (fetched dynamically by the client from Hugging Face at runtime).

📄 License

This project is licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later) — see the LICENSE file for details.

Explore related projects

Loading…