Noureddine RAMDI / 9Remote: bridging mobile devices and AI coding agents with low-latency remote access

Created Mon, 06 Jul 2026 15:15:52 +0000 Modified Mon, 06 Jul 2026 15:16:10 +0000

decolua/9remote

9Remote stands out by combining WebRTC, Cloudflare tunnels, and a persistent PTY daemon to create a mobile-first remote access tool tailored for AI-assisted coding workflows. It turns your phone or browser into a full terminal, remote desktop, file explorer, and code editor for macOS, Linux, and Windows machines — all with latency under 50ms.

remote access tailored for mobile and AI coding

At its core, 9Remote is a remote access tool distributed via npm that integrates multiple protocols to provide a seamless developer experience from mobile devices. Unlike traditional remote desktop or SSH clients, 9Remote targets AI coding workflows by allowing direct control of AI CLI agents such as Claude Code, Codex CLI, and Gemini CLI from your smartphone.

The architecture combines three major components:

  • A persistent PTY daemon exposed over WebSocket that maintains terminal sessions even across reconnects, crucial for stable AI CLI interactions.
  • A WebRTC-based remote desktop streaming system using adaptive tile-diff rendering to optimize bandwidth and latency, delivering smooth desktop visuals.
  • Cloudflare tunnels for zero-configuration NAT traversal, eliminating the need for firewall or router adjustments and simplifying connection setup.

Authentication uses a QR-code pairing model where the terminal running on your machine generates a one-time 30-minute key embedded in a QR code. When scanned by the 9Remote mobile app or browser, it establishes a session without storing keys server-side, enhancing privacy and security.

Under the hood, the PTY daemon runs persistently on the host machine, exposing terminal interfaces over WebSocket. This design ensures that terminal sessions survive network interruptions or client disconnects, which is vital for maintaining stateful AI CLI conversations.

The remote desktop streaming leverages WebRTC’s DataChannel and media streams, employing tile-based diff rendering that only sends changed screen regions. This keeps latency low (60ms when active, 400ms when idle) and bandwidth efficient, which is especially important on mobile networks.

The Cloudflare tunnel integration handles NAT traversal and proxies traffic securely, removing the usual headache of configuring port forwarding or VPNs. This makes 9Remote largely zero-configuration from a user perspective.

what makes 9Remote’s technical approach stand out

The main differentiator is how 9Remote multiplexes multiple protocols into a unified session with minimal latency and high reliability:

  • Persistent PTY sessions over WebSocket: This allows terminal sessions to survive disconnects and reconnect instantly. The code for the PTY daemon reportedly manages multiple clients and session persistence, a feature missing in many SSH or terminal emulators.

  • WebRTC-based remote desktop with tile-diff rendering: Instead of streaming the entire screen continuously, 9Remote tracks screen changes in tiles and streams only those diffs. This reduces bandwidth and latency, making the remote desktop usable even on constrained networks.

  • Ephemeral QR-based session keys: The authentication model avoids persistent server-side keys, generating one-time 30-minute keys embedded in QR codes for pairing. This means no stored credentials on remote servers, improving security.

  • Zero-config Cloudflare tunnels: Integrating Cloudflare tunnels automates NAT traversal, which is often a barrier for remote access tools. This approach also avoids exposing the host directly to the internet.

  • Mobile-first UI and AI coding integration: The TUI interface supports toggling remote desktop, file browsing, and importantly, control over AI CLI sessions like Claude Code and Codex CLI. This positions 9Remote as a unique bridge for mobile developers working with AI agents.

The tradeoff is that the project is currently closed-source and gated behind a star count on GitHub, limiting immediate community audit and contribution. The use of multiple protocols also adds complexity that could introduce edge cases in connectivity or session management.

quick start with 9Remote

Install globally:

npm install -g 9remote
9remote

🎉 Scan the QR code on your phone → pair your device → you’re in.

That’s it! No config, no firewall rules, no signup.

Ready in 30 seconds. Works on macOS, Linux, and Windows.

setup guide highlights

  • The terminal app generates two keys: a permanent machine-tied key stored locally and a one-time 30-minute key shown as a QR code.
  • Scan the QR with the 9Remote app or browser to connect instantly.
  • Remote desktop on macOS requires enabling Screen Recording and Accessibility permissions.
  • The remote desktop uses adaptive framerate (60ms active, 400ms idle) and tile-diff rendering over WebRTC DataChannels.
  • Local development servers running on common ports are auto-detected and proxied to your phone.

This minimal setup flow emphasizes zero friction for developers, especially those on the go needing quick access to terminals and AI coding environments.

verdict: who should consider 9Remote

9Remote is worth exploring if you’re a developer needing real terminal and desktop access from mobile devices with minimal latency, especially if your workflow involves AI coding agents like Claude Code or Codex CLI. The multiplexed protocol approach and zero-config tunnels solve common pain points in remote access tools.

However, its closed-source status and gating mechanism mean you should weigh trust and transparency before adopting it in sensitive environments. Also, the complexity of combining WebSocket PTY, WebRTC streaming, and Cloudflare tunnels means occasional edge cases may arise.

For mobile developers or AI-focused devs looking to operate CLI-based AI models remotely with quick responsiveness, 9Remote offers a rare blend of capabilities. Its seamless pairing and ephemeral keys improve security and reduce setup time compared to traditional VPN or SSH solutions.

Overall, it’s a technically interesting project pushing the limits of remote access on mobile, worth keeping an eye on as it matures and hopefully opens its source code.


→ GitHub Repo: decolua/9remote ⭐ 215