Skip to main content

AnywhereInput

Control your Windows, Linux, or macOS PC from any browser. No app install, no account, no cloud dependency.

Run a Python server on your PC and control it from any browser - mouse, keyboard, scrolling, real-time screen capture, with zero-config tunnel support.


⚡ Quick Install

pip install anywhereinput
anywhereinput --tunnel cloudflare   # or: tailscale, pinggy, zrok2, local

Ubuntu (recommended via pipx):

sudo apt install pipx && pipx ensurepath
pipx install anywhereinput
anywhereinput --tunnel cloudflare

🖥️ Desktop Admin App (Optional)

pip install anywhereinput[app]    # includes PyQt6
anywhereinput --app               # visual GUI - no terminal needed

The desktop app lets you start/stop the server, pick tunnel providers, manage access tokens with IP allowlists, and monitor connected clients - all from a visual window.


Why AnywhereInput?

Tool The Friction
TeamViewer / Chrome Remote Desktop Account creation, bloated client, corporate telemetry
VNC / RDP Port forwarding, firewall rules, VPN setup
AnywhereInput pip install → paste link → control your PC

✨ Features

  • Mouse - move, click (left/right/middle), double-click, scroll
  • Keyboard - key press, text typing, hotkey combos (Ctrl+C, Ctrl+Alt+Del, etc.)
  • Screen Capture - real-time JPEG stream to browser, up to 120 FPS
  • Touchpad Gestures - two-finger scroll, long-press right click, tap-to-click
  • Screen Overlay Click - tap anywhere on the live stream to move the cursor there
  • Multi-monitor - auto cursor tracking across all detected displays
  • Tunnels - Cloudflare (free, auto-download), Tailscale P2P, Pinggy.io SSH, Zrok2, or LAN-only
  • Security - per-token input permissions, IP allowlists (CIDR), auto-rotating tokens

🚀 Usage

Interactive Menu (Default)

anywhereinput
# Select tunnel provider from the menu

Direct Start with Tunnel

anywhereinput --tunnel cloudflare    # Fastest global access
anywhereinput --tunnel tailscale       # Peer-to-peer on your tailnet
anywhereinput --tunnel pinggy          # SSH tunnel, works behind firewalls
anywhereinput --tunnel zrok2           # Open source, zero-trust
anywhereinput --tunnel local           # Same WiFi/LAN only

Full Configuration

anywhereinput   --host 127.0.0.1   --port 8008   --fps 60   --quality 80   --scale 0.75   --monitor 1   --tunnel cloudflare
Flag Default Description
--host 127.0.0.1 Server bind address
--port 8008 HTTP/WebSocket port
--fps 120 Screen capture FPS (1–120)
--quality 85 JPEG quality (1–95)
--scale 1.0 Stream scale factor (0.1–1.0)
--no-capture off Disable screen capture entirely
--monitor 0 Monitor index (0=auto-track, 1+=fixed)
--tunnel interactive Provider or local
--help-tunnels - Show tunnel provider quick help
--version - Show installed version

🔒 Security

  • Auto-generated 32-character access token on every server start
  • Per-token permissions - grant/restrict move, click, scroll, keyboard, screen_toggle, ping
  • IP allowlists per token - CIDR ranges and single-host support
  • Token rotation - press n + Enter or Ctrl+N to invalidate all previous tokens
  • HTTPS/WSS encryption when using any tunnel provider
  • Zero data stored on external servers

⚠️ Designed for personal/trusted environments. For production exposure, add a reverse proxy (nginx/Traefik) with OAuth or mTLS.


📡 WebSocket API

Authenticate

{"type": "auth", "token": "***"}

Send Commands

{"type": "move", "mode": "relative", "dx": 10, "dy": 15}
{"type": "move", "mode": "absolute", "dx": 0.5, "dy": 0.5}
{"type": "click", "button": "left", "clicks": 1}
{"type": "scroll", "amount": 15}
{"type": "key", "key": "enter"}
{"type": "hotkey", "keys": ["ctrl", "c"]}
{"type": "screen_toggle", "enabled": true}
{"type": "ping"}

Receive Events

{"type": "screen", "data": "<base64-jpeg>"}
{"type": "screen_status", "status": "rebuilding", "message": "Reconnecting to display..."}
{"error": "capture_error", "message": "Input engine is recovering.", "recovering": true}

HTTP Endpoints

Endpoint Description
GET /api/screen Screen dimensions
GET /api/engine Input engine + screen engine health
GET /api/monitors All monitors + current selection
POST /api/monitor/{index} Switch capture monitor
GET /api/tokens List tokens (masked values)
POST /api/tokens Create token with custom permissions
PATCH /api/tokens/{token} Update token name/permissions
DELETE /api/tokens/{token} Revoke a token
GET /api/clients Connected WebSocket clients with IPs

🧰 Troubleshooting

Problem Fix
Tunnel URL not showing Check internet; verify provider status; try another provider
Can't connect from device Check firewall allows port 8008; test http://localhost:8008 on PC first
Connection timeout Verify both devices have internet; check tunnel provider status
Mouse lag Reduce drag distance; try local network; lower --fps
Black cursor on capture Install mss; on Linux ensure X11 display is accessible
Blank screen stream Check server logs; try --no-capture; ensure Pillow is installed
Keyboard double-typing 50ms debounce active; check mobile keyboard autocorrect
Zrok2 "not enabled" Run zrok2 enable <TOKEN> or use zrok2_repair.py
Cloudflared missing Auto-downloads on first run; or install manually via winget/brew
Python not found Install Python 3.9+ from python.org, ensure it's on PATH

📋 System Requirements

Component Minimum
Server OS Windows 10/11, Linux, macOS 12+
Python 3.9–3.12
Client Any modern browser with WebSocket + Pointer/Touch Events
Internet Required on both devices for remote tunnel access

📦 Dependencies

pyautogui==0.9.54
aiohttp==3.14.1
requests==2.34.2
qrcode[pil]==8.2
mss==10.2.0
Pillow==12.3.0
pyyaml==6.0.3
PyQt6==6.11.0

🔗 Links


Built with ❤️ for developers who value simplicity over complexity.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anywhereinput-1.2.7.tar.gz (517.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anywhereinput-1.2.7-py3-none-any.whl (512.5 kB view details)

Uploaded Python 3

File details

Details for the file anywhereinput-1.2.7.tar.gz.

File metadata

  • Download URL: anywhereinput-1.2.7.tar.gz
  • Upload date:
  • Size: 517.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for anywhereinput-1.2.7.tar.gz
Algorithm Hash digest
SHA256 bf61d1206056af7d29a362ddaab362c11be300fa84425025e525b0470c95d5fc
MD5 ebb0c716bdd1d1be7eed6de71da794a7
BLAKE2b-256 744632d73a16ab3dd2c623d03e8ad23c9f2dfac7301f696099fe2d046f5bba42

See more details on using hashes here.

File details

Details for the file anywhereinput-1.2.7-py3-none-any.whl.

File metadata

  • Download URL: anywhereinput-1.2.7-py3-none-any.whl
  • Upload date:
  • Size: 512.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for anywhereinput-1.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ca5a45378b2b63a3bf538e6aaa81d94d7d019c6f829aa9d53cde9af5611914a6
MD5 4f88d7fd1f2296aeb39063cbf83429ea
BLAKE2b-256 31f7fa9da2819f72da8ab59d7b5fb38449df10c7561c63ce39cac9a6d1c06580

See more details on using hashes here.

Release history Release notifications | RSS feed

1.3.1

2 files

1.3.0

2 files

This release

1.2.7 This release

2 files

1.2.6

2 files

1.2.5

2 files

1.2.4

2 files

1.2.3

2 files

1.2.2

2 files

1.2.1

2 files

1.2.0

2 files

1.1.6

2 files

1.1.5

2 files

1.1.4

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page