Skip to main content

windows-apple-remote

CI PyPI

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_SPEED in server.py.
  • -v prints 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:

  1. On pypi.org add a pending publisher: project windows-apple-remote, owner aryakvn, repository windows-apple-remote, workflow publish.yml, environment pypi.
  2. Optional dry run: do the same on test.pypi.org with environment testpypi.

Each release:

  1. Bump __version__ in src/atv_remote/__init__.py and move the Unreleased entries in CHANGELOG.md under the new version.
  2. Optional: run the Publish workflow by hand (Actions tab) to upload to TestPyPI.
  3. 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)

Source distribution for windows-apple-remote 0.2.0
File Size Uploaded
windows_apple_remote-0.2.0.tar.gz 21.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for windows-apple-remote 0.2.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page