edgepad

Turn an Android phone into a trackpad, remote and control deck for a Windows, Ma

This is a fork of akshit-bansal11/edgepad, kept for reference and contributions. It is not an original project.

Edgepad

Turn an Android phone into a trackpad, a media remote and a control panel for a Windows, Mac or Linux laptop, over a direct Bluetooth link with nothing in between.

CI Latest release Total downloads Stars License Last commit Platforms: Android, Windows, macOS, Linux Documentation

The Edgepad demo: a phone as a trackpad, dials and controls for a laptop. Watch it on the website.

Contents

Why Edgepad

It is for the times the laptop is across the room rather than under your hands: plugged into a television, docked on a desk you are not sitting at, parked somewhere a mouse dongle will not reach. The alternatives are a remote app that only sends media keys, or a remote-desktop app that streams the whole screen and wants an account and a network round trip to change the volume. Edgepad is neither. The phone and the laptop pair once, the way a headset does, and after that they talk directly: no account, no service in between, and over Bluetooth no Wi-Fi at all. The cost is Bluetooth's own: both ends need it, and it does not reach another room or the internet. Wi-Fi and USB connections are optional, off until you turn them on, and use a one-time code.

Warning

Mac and Linux are still in testing. Please use them at your own risk. The Windows app is the one that has been run on a real laptop; the Mac app has been compiled and unit-tested in CI, and the Linux app has not been seen working on a Linux laptop yet. Expect rough edges, and report what you find.

Features

The control surface

Controls

Sharing

Presenting and moving

On the phone

For developers (optional, off until connected)

And

Details of each are in the user guide.

What people say

For years I looked for a way to sync the clipboard between my phone and my laptop over Bluetooth, and never found one I was happy with — until Edgepad. It treats the Bluetooth link as a first-class part of the product, and the features built on top of it are inventive, genuinely useful, and put together in a way that feels coherent and looks good. It went far beyond what I expected.

★★★★★ 5/5 — @HaujetZhao, a daily user (source)

Install

Get both apps from the latest release, under Assets. Each file is named for its release. Install the phone and the laptop app from the same release: the two refuse each other at the handshake when their protocol versions differ, and say so.

Where Needs Download Note
Phone Android 12 or later Edgepad-<version>.apk Allow installing from this source. Later releases install over it, and the app can fetch them itself.
Windows laptop Windows 10 version 2004 or later, 64-bit Edgepad-<version>.exe One self-contained file. Not code-signed, so SmartScreen asks: More info, then Run anyway.
Mac laptop macOS 13 or later Edgepad-<version>-mac.zip Apple Silicon and Intel. Ad hoc signed, not notarised: Open Anyway in System Settings. In testing.
Linux laptop 64-bit, BlueZ, systemd-logind Edgepad-<version>-linux-x64.tar.gz, or -linux-arm64.tar.gz on an ARM laptop Run install.sh as root, then log out and back in once. In testing; the arm64 build has not been run on a device.

Releases also carry SHA256SUMS.txt, and gh attestation verify <file> --repo akshit-bansal11/edgepad checks that a file was built by this repository's release workflow. Full steps for every platform, the optional ViGEmBus gamepad driver and the Linux requirements are in the user guide.

Quick start

  1. Install the phone app and one laptop app from the same release (above) and start the laptop app. It lives in the system tray, or on a Mac in the menu bar.
  2. Pair the phone with the laptop once in the laptop's Bluetooth settings, and confirm the code on both sides.
  3. Open Edgepad on the phone and tap the laptop.
  4. The first time, the laptop asks Trust this phone?. Choose Trust there.
  5. Use the corners and the trackpad. The phone remembers the laptop and reconnects when the app opens.

More on connecting, Wi-Fi and USB, and what to do when the laptop ignores the phone is in the user guide.

How it works

The phone recognises gestures and sends small semantic frames (move the pointer, press a button, run action 3, set control 0 to 55). The laptop owns the table of what each action does and carries it out with the platform's own APIs, then reports its state back so the dials show real values. The default link is Bluetooth Classic RFCOMM between two already-paired devices; the optional Wi-Fi or USB link is encrypted and starts with a one-time pairing code.

flowchart LR
  subgraph Phone["Android phone app"]
    Surface["Control surface: gestures, dials, keyboard, gamepad"]
    Link["LaptopLink: reader and writer threads"]
    Surface --> Link
  end

  Link <-->|"Bluetooth RFCOMM, default"| Server
  Link <-.->|"Wi-Fi or USB, encrypted, after a one-time pairing code"| Server

  subgraph Laptop["Laptop app"]
    Server["Session: frame codec and dispatcher"]
    Server --> Parts["Input injection, media, volume and brightness, clipboard, macros, capture"]
    Core["Shared core, C#: protocol, handshake, trust and PIN, dispatcher, macros, strokes"]
  end

  Win["Windows app: WinForms tray, SendInput, Core Audio, ViGEmBus"] --> Core
  Lin["Linux app: Avalonia tray, BlueZ, uinput"] --> Core
  Mac["Mac app in Swift: AppKit menu bar, IOBluetooth, CGEvent, its own copy of the core"]
  Server -.- Win
  Server -.- Lin
  Server -.- Mac

A first pairing and connection over Bluetooth. Trust comes before the PIN, and the PIN gate runs only when the laptop's security level asks for it.

sequenceDiagram
  actor Owner
  participant Phone as Phone app
  participant Laptop as Laptop app

  Owner->>Phone: Pair once in the laptop's Bluetooth settings
  Phone->>Laptop: Connect over RFCOMM, paired devices only
  Phone->>Laptop: HELLO with magic EDGP and protocol version
  Laptop->>Laptop: Version check and lock-out check
  alt version differs
    Laptop-->>Phone: HELLO_ACK with the laptop's version, then close
  else same version
    Laptop->>Owner: Trust this phone?
    Owner->>Laptop: Trust
    opt security level 2 first time, or level 3 every connection
      Laptop->>Phone: PIN_REQUEST with attempts left
      Phone->>Laptop: PIN_ANSWER with six digits
    end
    Laptop-->>Phone: HELLO_ACK
    Laptop-->>Phone: STATE snapshot: volume, microphone, brightness, media
  end
  Phone->>Laptop: MOVE, SCROLL, ACTION, KEY and other frames
  Laptop-->>Phone: STATE changes as they happen

Read more: docs/ARCHITECTURE.md for the apps, their threads and the trust model, docs/PROTOCOL.md for the wire format, and the online documentation.

Optional extras

Edgepad does everything above without these. They are here if you want them, and each one is off until you turn it on. In the laptop app, open the menu and choose Integrations…. Nothing is assumed to be installed.

For developers, there are also an AI screen and a Git screen. They never appear in the phone's Controls until you connect them on the laptop, and you can hide any Controls tile with Edit.

What leaves the laptop:

What the laptop reads locally:

Dollar amounts are estimates at API list prices, and the screens say so. A model with no published price shows "at least".

Codex must trust the Edgepad plugin before its approvals work. This is a step inside Codex, not in Edgepad. In the Codex CLI, type /hooks and trust Edgepad. In the Codex desktop app, go to Settings > Hooks > Review hooks. The Integrations window waits until the first event arrives.

Open the Integrations window from the tray icon > Integrations… on Windows and Linux, or the menu-bar icon > Integrations… on macOS. The AI and Git tiles appear in the phone's Controls only after you connect something here.

Connect Claude Code:

  1. Install Claude Code on this computer if you have not: https://claude.com/claude-code
  2. Click Connect. Edgepad adds its plugin to Claude Code.
  3. Restart open Claude Code sessions, or type /reload-plugins in them.
  4. On your phone, turn on Settings › Developer › Developer mode, then open Controls › Developer › AI.

Connect Codex:

  1. Install Codex on this computer if you have not: https://developers.openai.com/codex
  2. Click Connect. Edgepad adds its plugin to Codex.
  3. In Codex, type /hooks and trust Edgepad. In the Codex app: Settings > Hooks > Review hooks.
  4. On your phone, turn on Settings › Developer › Developer mode, then open Controls › Developer › AI. It appears once Codex sends its first event.

After an Edgepad update that changes the plugin's hooks, Codex skips them until you trust them again. Edgepad shows a notification when that happens: type /hooks in Codex and trust Edgepad again.

Connect Gemini CLI:

  1. Install Gemini CLI on this computer if you have not.
  2. Click Connect. Edgepad adds its hooks to your Gemini CLI settings.
  3. Restart open Gemini CLI sessions.

Connect OpenCode:

  1. Install OpenCode on this computer if you have not.
  2. Click Connect. Edgepad adds its plugin to the OpenCode plugins folder.
  3. Restart open OpenCode sessions.

Connect GitHub:

  1. Click Sign in with GitHub. A github.com page opens.
  2. Enter the code shown in the Integrations window and click Authorize.
  3. On your phone, turn on Settings › Developer › Developer mode, then open Controls › Developer › Git.

Connect GitLab: click Sign in and enter the code on the page that opens. For a self-hosted server, click Add a self-hosted server…, and paste a personal access token with only the read_api scope. On gitlab.com, Use a token instead takes the same kind of token, and unlike the sign-in it does not run out after 2 hours.

Connect Gitea, Forgejo or Codeberg: on your server, open Settings > Applications and create an access token with read access. Click Add, check the server address (Codeberg is the default) and paste the token.

Connect Bitbucket: in your Atlassian account, create an API token with read access to Bitbucket. Click Add, enter your Bitbucket email and paste the token.

Connect Gitee: on gitee.com, open Settings > Personal access tokens and create a token with read access. Click Add and paste the token.

Before you uninstall Edgepad, press Disconnect for each AI tool in the Integrations window. Otherwise a leftover entry stays in each tool. To revoke GitHub access, open https://github.com/settings/apps/authorizations, find Edgepad Dashboard, and choose Revoke.

Languages

Edgepad speaks English plus Simplified Chinese, Spanish, Hindi, German, French, Portuguese (Brazil), Japanese, Arabic, Russian, Korean, Italian, Dutch, Turkish and Polish: 15 in all, on the phone app and the Windows app. The Mac and Linux apps follow the system language in 14 languages. The phone follows the system language, and on Android 13 and later Edgepad can have its own language in Android's per-app language settings. Windows follows its display language. Translators: see docs/i18n/README.md.

Security

Only a phone that is paired with the laptop can connect, and only a phone you answer Trust for is admitted. Every trusted phone has full keyboard-level control of the laptop, so trust only your own. An optional PIN, set on the laptop only, adds a lock-out against guessing. There is no server, no account and no telemetry. Every permission, data flow and internet host is listed in docs/DATA-AND-PERMISSIONS.md. The boundaries and the known limits are in SECURITY.md (report a hole privately, as it describes); the levels and the PIN are explained in the user guide.

Develop

You need JDK 17 and the Android SDK for the phone, the .NET SDK pinned in global.json for Windows and Linux, a Mac with Xcode for the Mac app, Node 24 or later for the site, and PowerShell 7 for the gate. Install only what the part you are changing needs. One command checks everything it can run:

pwsh scripts/check.ps1                  # formats in place, then checks everything
pwsh scripts/check.ps1 -Ci              # what CI runs: fails on unformatted code instead of fixing it

The repository layout, per-app gates, how to run it locally and what the tests cover are in docs/DEVELOPING.md; how to send a change back is in CONTRIBUTING.md.

Contributing

Releases are built and published by the maintainer; CHANGELOG.md lists what each one changed.

Support

Edgepad is free and stays free. If it is useful to you and you would like to say so with money, there are three ways:

A star, a bug report or telling someone about it helps as much.

Featured on

Aura++ · ScrollLaunch

License

MIT.

Credits

Star history

Star History Chart