Keychron Launcher Offline

A desktop app for the Keychron Launcher that also works without an internet connection. It wraps the official web app in Electron, keeps a local copy of everything it needs, and talks to your keyboard or mouse directly over WebHID, the same way the website does in Chrome.

Mouse advanced settings

DPI settings Launcher settings
DPI settings Settings panel

Features

  • Works offline. App code, images, translations and device data are served from a local cache.
  • Learns while online. Everything the launcher loads while you are online is saved automatically. A device that was connected online once keeps working offline afterwards.
  • Always up to date when online. Device data, translations and the start page are fetched from Keychron first and only fall back to the cache when there is no connection.
  • Native device access. WebHID, WebUSB and Web Serial work without a browser. If several devices match, a picker dialog asks which one to use.
  • Custom title bar with the native window buttons, a reload button and a ⚙ settings panel:
    • Offline only: never touch the network
    • Start page: "Mouse · Advanced" or the launcher home page
    • Cache statistics, open the cache folder, clear learned data
    • Reload (F5) and DevTools (F12)
  • The title bar follows the launcher's light or dark theme.
  • No tracking. Google Analytics and Keychron's event tracker are blocked.

Download

Every push to main builds two Windows files (see the latest build run under Actions), and every v* tag attaches them to a Release:

File Use
Keychron-Launcher-Offline-Setup-<version>.exe Installer with Start menu and desktop shortcuts
Keychron-Launcher-Offline-Portable-<version>.exe Single exe, no installation

Firewall: if your Windows Firewall blocks programs until they are allowed, add an outbound allow rule for the app. Otherwise it just runs offline from the bundled cache.

How it works

┌──────────────── Electron window (frameless) ────────────────┐
│ shell page  https://launcher.keychron.com/__shell/           │  title bar + ⚙ settings
│ ┌──────────────────────── iframe ──────────────────────────┐ │
│ │ https://launcher.keychron.com/#/mouse/advance            │ │  the original web app
│ └──────────────────────────────────────────────────────────┘ │
└──────────────────────────────────────────────────────────────┘
        every https request ─► protocol.handle('https')
                                 ├─ launcher.keychron.com ─► cache (seed/ + learned) ⇄ network
                                 ├─ analytics / trackers  ─► blocked
                                 └─ anything else          ─► network

The launcher runs under its real origin, so its host-based configuration, localStorage and API URLs stay unchanged. main.js intercepts all requests to that origin:

  • Hashed bundles and assets/ never change, so they are served cache-first.
  • index.html, /vapi/… and /static/… are fetched from the network first (4 s timeout), stored, and served from the cache when offline.
  • Data comes from two places: seed/, which ships inside the app, and %APPDATA%\keychron-launcher-offline\launcher-cache\, where everything learned at runtime is stored.

Development

npm install
npm run prefetch     # download the launcher into seed/ (required once)
npm start            # run the app
npm run offline      # run with "offline only" forced on
npm run dist         # build installer + portable exe into dist/
Script Purpose
scripts/prefetch.js Downloads index.html, all JS chunks, referenced assets, every translation and the entries from scripts/seed-extra.txt into seed/
scripts/seed-extra.txt Extra files and devices to bundle. device <id> adds product info, firmware list and device JSON (id = VID << 16 | PID in decimal)
scripts/screenshots.js Recreates docs/*.png from the real window. Needs a connected Keychron mouse
scripts/make-icon.js Renders build/icon.svg to build/icon.png

Adding a device to the bundled data

  1. Connect the device and use it once in the app while online.
  2. Find the vendor_product_id under launcher-cache/launcher.keychron.com/vapi/v2/product/.
  3. Add device <id> to scripts/seed-extra.txt and run npm run prefetch.

Limitations

  • Firmware updates, the AI assistant and feedback still need the internet.
  • A device that was never connected online has no product data offline. Add it to seed-extra.txt or connect it online once.
  • When Keychron ships a new launcher version, the cached index.html points to new bundles on the next online start, and they get cached automatically. Rebuilding refreshes the bundled seed.

This is an unofficial personal tool and is not affiliated with Keychron. The Keychron Launcher, its code and its assets belong to Keychron. They are not part of this repository; the build downloads them from launcher.keychron.com.

S
Description
Keychron Launcher as an offline-capable Electron desktop app (WebHID, local cache, custom title bar)
Readme
485 KiB
v1.1.1
Latest
2026-10-25 11:50:31 +00:00
Languages
JavaScript 76.5%
CSS 14.2%
HTML 9.3%