windows-apple-remote
Package: windows-apple-remote · Source:
github.com/aryakvn/windows-apple-remote
Control your Windows PC's media and mouse with the Apple TV Remote on your iPhone or iPad (Control Center → Apple TV Remote). The PC advertises itself as an Apple TV over the Companion protocol using pyatv, and turns remote gestures into media keys. Press the TV button to switch the touch area into a trackpad.
| Remote (touch area) | PC |
|---|---|
| Tap | Play/Pause |
| Swipe right / left | Next / Previous track |
| Swipe up / down (longer = more) | Volume Up / Down |
| iPhone volume buttons | Volume Up / Down |
| Back (Menu) | Escape |
| TV button | Switch between remote and mouse mode |
| Drag (mouse mode) | Move the cursor |
| Tap (mouse mode) | Left click |
Install & run
Install from PyPI and start it:
pip install windows-apple-remote
atv-remote
Other ways to install:
pipx install windows-apple-remote # isolated install, atv-remote on your PATH
py -m pip install windows-apple-remote # if pip isn't on your PATH
pip install git+https://github.com/aryakvn/windows-apple-remote.git # latest code from GitHub
If atv-remote isn't recognized (pip's Scripts folder isn't on your PATH), run it
through Python instead. It takes the same options:
python -m atv_remote
Then on the iPhone (same Wi-Fi network): Control Center → Apple TV Remote → pick your PC's name. The first time, a 4-digit PIN is printed in the terminal; type it on the phone. The phone is remembered afterwards.
Options:
atv-remote --name "Living Room PC" # name shown on the phone (default: hostname)
atv-remote --address 192.168.1.20 # IP to advertise if auto-detect picks the wrong adapter
atv-remote --port 49200 # fixed TCP port (useful for firewall rules)
atv-remote -v # debug logging
Mouse mode
Press the TV button (bottom right of the remote) to switch to mouse mode; the terminal
prints Mouse mode on. Drag on the touch area to move the cursor and tap to left-click.
Press the TV button again to go back to media controls.
If the PC doesn't show up on the iPhone
Your PC probably has more than one network adapter (VPN, Hyper-V, WSL, VirtualBox) and
atv-remote advertised the wrong one. Check the address in the is live on line. If it
isn't your Wi-Fi/Ethernet IP, find the right one with ipconfig (the adapter on the same
network as the phone) and pass it:
atv-remote --address 192.168.0.98
python -m atv_remote --address 192.168.0.98 # same, if atv-remote isn't recognized
Also check that the phone is on the same network and that the firewall allows Python (see Notes).
Notes
- Windows Firewall: allow Python on private networks when prompted, or the phone can't connect. mDNS (UDP 5353) must be allowed too.
- Forget all paired devices: delete
%APPDATA%\atv-remote\state.json. It also holds this PC's private identity key, so keep it private. - Media and volume keys are global; Back (Escape) and mouse clicks go to the window under the cursor or in focus.
- Mouse mode moves the cursor exactly as far as you drag (no Windows pointer
acceleration). To change the speed, edit
MOUSE_SPEEDinserver.py. -vprints every touch event and can make the cursor lag; leave it off for normal use.- Windows has a single Play/Pause key, so the remote's separate Play and Pause both toggle.
- Now-playing info and the volume slider are not supported (they need AirPlay/MRP).
- macOS support is planned. HomeKit is not supported.
Development
git clone https://github.com/aryakvn/windows-apple-remote.git
cd windows-apple-remote
python -m venv .venv
.venv\Scripts\activate
pip install -e ".[test]"
pytest
Use pip install -e (editable). A plain pip install . copies the code into the venv
and later edits stop taking effect. Stop a running atv-remote before reinstalling;
Windows locks its executable.
The tests use pyatv's own client to pair with the server and press buttons end to end. Bugs and ideas: issues.
Releasing to PyPI
Publishing uses trusted publishing, so no API token is stored in GitHub. One-time setup:
- On pypi.org add a pending publisher:
project
windows-apple-remote, owneraryakvn, repositorywindows-apple-remote, workflowpublish.yml, environmentpypi. - Optional dry run: do the same on test.pypi.org
with environment
testpypi.
Each release:
- Bump
__version__insrc/atv_remote/__init__.pyand move theUnreleasedentries inCHANGELOG.mdunder the new version. - Optional: run the Publish workflow by hand (Actions tab) to upload to TestPyPI.
- Publish a GitHub release tagged
vX.Y.Z(matching__version__). The workflow runs the tests, checks the tag against the version, builds, and uploads to PyPI.
Release files for windows-apple-remote 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| windows_apple_remote-0.2.0.tar.gz | 21.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| windows_apple_remote-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.2 kB
Release files / windows_apple_remote-0.2.0.tar.gz
| Download URL | windows_apple_remote-0.2.0.tar.gz |
|---|---|
| Size | 21.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9bcb7f86de1d4ab36754241eb049f80afcc7f2f57c288f16f6f04ffb4ddb9ce9
|
|
BLAKE2b-256 checksum How to use checksums |
17071fe8d526514508273b687180f9c2f00dd74c192ee3908d3031f25adc539d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / windows_apple_remote-0.2.0-py3-none-any.whl
| Download URL | windows_apple_remote-0.2.0-py3-none-any.whl |
|---|---|
| Size | 13.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a971fb03bd00d499f6426f5a57fe0a7a79d1c33364f2e573eb4bcf14cf088719
|
|
BLAKE2b-256 checksum How to use checksums |
07509eb484aa40b07f3ef318863eb45b4b5953bb20be50449ff1f421a9b44edc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency log