Repository navigation
Open Web Controller 2.0.0
Every phone is a controller. Scan the QR code on your TV and up to four phones become Xbox-style gamepads for your PC. There's no app to install and no certificates to set up.
Get it
- Windows: download
OpenWebController.exebelow and double-click it. Install the ViGEmBus driver once so games can see the controller. The exe isn't signed, so SmartScreen may warn you: choose More info → Run anyway. - Linux or Windows from source: clone the repo and run
scripts/start.shorscripts\start-windows.bat. - pipx:
pipx install git+https://github.com/ToTt0G/open-web-controller, then runowc.
The modernization release. Open Web Controller grows from a Windows-only D-pad and one stick into a full Xbox-style gamepad that installs like an app with no certificate setup, runs on Linux too, and starts with one double-click.
Added
- Zero-certificate HTTPS. Phones open a trusted
https://<ip-with-dashes>.local-ip.shaddress backed by the public local-ip.sh wildcard certificate. No browser warning and no certificate to install, so home-screen install, wake lock and gyro work straight from the QR code. The certificate is cached for offline starts. - Automatic HTTP fallback. If the trusted name does not resolve on the network (DNS rebinding protection, no internet), the server switches to plain HTTP by itself. In trusted mode a plain-HTTP copy of the app also runs on the next port, shown in the lobby as a "Not loading?" link with its own QR code.
- Linux support through a new
uinputbackend (python-evdev). It creates an Xbox 360-style gamepad that SDL and Steam recognise. - Demo backend that needs no driver, for trying the UI on any system, for CI and for development. With
--verboseit logs button changes. - Full controller layout: right analog stick, LB/RB bumpers, analog LT/RT triggers, and L3/R3 stick clicks, in addition to the left stick, D-pad, A/B/X/Y, Start, Back and Guide.
- Rumble. Force feedback from the game is forwarded to the phones on that player slot (Windows backend, phones that support vibration).
- Gyro aim. Tilt the phone to move the right stick.
- Latency badge on the controller, measured with a
pinground trip to the server. - Command-line options:
--host,--port,--backend auto|vigem|uinput|demo,--tls auto|trusted|http|selfsigned|custom,--cert,--key,--no-https,--open/--no-open,--no-qr,--verboseand--version, plus the environment variablesOWC_BACKEND,OWC_PORT,OWC_HOST,OWC_TLS,OWC_CERTandOWC_KEY. - Effortless start: the server opens the lobby in the browser, prints a scannable QR code in the terminal, picks the next free port when 5000 is busy, and prints the Windows Firewall command on first start.
- One-click launchers
scripts/start-windows.batandscripts/start.shthat create a virtual environment, install dependencies and start the server. owccommand. The project is now an installable Python package:pipx install git+https://github.com/ToTt0G/open-web-controlleroruvx --from git+https://github.com/ToTt0G/open-web-controller owc. On Linux, add thelinuxextra for real gamepads:pipx install "open-web-controller[linux] @ git+https://github.com/ToTt0G/open-web-controller".- Windows
.exebuilt by a release workflow and attached to GitHub Releases. - Tests and CI: a pytest suite for the protocol, input validation and TLS planning, linting with ruff, and a GitHub Actions matrix on Windows and Linux.
- Docs: rewritten README, protocol reference (
docs/protocol.md), brand guide (docs/brand.md), CONTRIBUTING, SECURITY, Code of Conduct, issue and pull request templates, and aLICENSEfile (MIT). - Promo video rendered from code in
promo/with Remotion. - Protocol: batched input (
{type: "batch", inputs: [...]}, one gamepad update per message) and optional connect auth{device, slot}so a phone that reconnects gets its slot back. Seedocs/protocol.md. server_infoSocket.IO event with the server version, backend and player limit./statusnow also reports version, backend, per-slot players and the connection mode.
Changed
- New look. The controller, lobby, setup and offline pages are redesigned around the new brand: a graphite gamepad lit in your player colour, with one colour per player slot. Fonts and Socket.IO are bundled, so the pages no longer load anything from the internet.
- The default connection is trusted HTTPS instead of a self-signed certificate. Self-signed and mkcert certificates are still available with
--tls selfsigned, and your own with--tls custom. - The app always starts. If ViGEmBus (Windows) or
/dev/uinputaccess (Linux) is missing, it falls back to demo mode and prints the exact steps to fix it instead of exiting with an error. - The server code moved from a single
app.pyinto theowc/package.python app.pystill works. - Several phones on one player slot are now merged cleanly: a button stays held while any phone holds it, and a phone that disconnects releases only its own inputs, so buttons no longer get stuck.
- New players get the emptiest slot instead of always falling back to slot 1 when all four are taken.
- Self-signed certificates are regenerated automatically when the PC's IP address changes or the certificate is about to expire, and mkcert is used automatically when it is installed.
- The server uses the threading mode of Flask-SocketIO with
simple-websocket. Theeventletdependency is gone. vgamepadis only installed on Windows.evdev(Linux) is an optional extra,open-web-controller[linux], because it has to be compiled. Without it Linux starts in demo mode and says how to add it.- Minimum Python version is 3.9.
Fixed
- Malformed or malicious input messages can no longer crash the server. Every payload is validated, numbers are clamped, and unknown keys are ignored.
/statusno longer fails with an error (it referenced a variable that did not exist).- Certificate generation no longer fails when the server is imported instead of run directly.
- The lobby and QR codes show the port the server is really using instead of a hard-coded 5000.
- Console output no longer crashes on Windows terminals that are not UTF-8.
Security
POST /shutdownis still only accepted from the PC itself.- See SECURITY.md for what Open Web Controller does and does not protect against.
Before 2.0.0
Development from December 2025 to April 2026 was not versioned. In short:
- Virtual Xbox 360 controller for Windows through ViGEmBus and vgamepad.
- Phone controller with D-pad or floating left thumbstick, A/B/X/Y, Start, Back and Guide.
- Lobby dashboard with QR codes, up to four controllers with automatic slot assignment.
- HTTPS with an auto-generated self-signed certificate, optional mkcert setup page.
- Installable PWA with offline page, wake lock and haptic feedback.
Full changelog: 4bb5ba3...v2.0.0 · PR #1
