Free · Open source · MIT

Your Android phone, one line away.

Plug the phone in once. Then drive it from your terminal, scripts or AI agents — over Wi-Fi or mobile data, end-to-end encrypted.

Install on your Mac
$ curl -fsSL https://ferhatozcelik.github.io/pairspan/install.sh | sh
How it works

Three steps. Then forget the cable.

01

Install Pairspan

Paste the command above in Terminal. The Mac app lives in the menu bar and brings the pairspan command with it.

02

Plug the phone in once

Connect it over USB. Pairspan installs the Android app, pairs both sides and turns on wireless ADB — no codes to scan.

03

Use it from anywhere

Unplug. adb, Android Studio, scripts and AI agents reach the phone directly and encrypted — same Wi-Fi or not.

CLI & MCP

Made for scripts and AI agents.

CLI

pairspan CLI

Tap, type, swipe, read the screen, install apps — or pass anything straight to adb.

MCP

MCP for Claude, Cursor and VS Code

Agents see the UI as a list of elements and act on it, or only look with read-only mode.

adb

Plain adb still works

Every paired phone shows up as an adb device, so Android Studio and your tools just see it.

Security

Nobody in between can read it.

Direct and end-to-end encrypted

Phone and Mac talk peer to peer. P-256 key agreement and AES-256-GCM on top, so only the two devices hold the keys.

Keys stay on your devices

Pairing happens over the USB cable. Nothing to scan, nothing to type, no account.

One switch

Turn Pairspan off on either side and the link is down until you turn it back on.

Questions

Do I need the phone and computer on the same Wi-Fi?

No. The devices find each other through a lightweight signalling service and then connect directly, across networks and over mobile data. A few very strict networks block direct connections.

Why connect USB once?

Android only lets apps reach adb after it has been enabled from a computer, and the cable is also how the two devices pair safely. After a phone reboot, plug in again.

Does it cost anything?

No. Pairspan is MIT-licensed and free. Everything — code, docs and releases — is on GitHub.

Which platforms?

macOS on the computer, Android 8 or later on the phone.