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, arrow keys, 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
  • Watch Mode — fullscreen stream with fit/fill toggle (⛶ button), keyboard always visible
  • 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), rate limiting (10 auth/min/IP), 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
  • Rate limiting — 10 auth attempts/min per IP with automatic lockout
  • 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   # Optional, for --app GUI

🔗 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.5.tar.gz (512.0 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.5-py3-none-any.whl (510.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anywhereinput-1.2.5.tar.gz
  • Upload date:
  • Size: 512.0 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.5.tar.gz
Algorithm Hash digest
SHA256 38164add096e17165da1e80dcd63a62747e0c7d18dc7615171d223eafa0dbcff
MD5 d976997fd991f8c1df356152389c66e9
BLAKE2b-256 f90e3937e3121e532fc70bdf00bea447ed0edc8d2fb5f6b123d88d8865b0b2e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: anywhereinput-1.2.5-py3-none-any.whl
  • Upload date:
  • Size: 510.6 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f0f4e0baf7d55d999bd90f5407c7008abec0203ef202eb8c35b73f30d73209e0
MD5 f5aa0dc68a7612bb99e43dcf581957d6
BLAKE2b-256 0c41cf61c4b3398b077179659a345fc00814e91c24a1a7c35e3183a6d6d6ff44

See more details on using hashes here.

Release history Release notifications | RSS feed

1.3.1

2 files

1.3.0

2 files

1.2.7

2 files

1.2.6

2 files

This release

1.2.5 This release

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