Termly CLI wraps local PTY sessions for tools such as Claude Code, Gemini CLI, and Copilot, streaming encrypted terminal I/O to a phone over WebSockets with session resume support.
Overview
Termly CLI is a command-line client that exposes terminal-based AI coding assistants to a mobile companion over an encrypted WebSocket channel. It spawns the chosen assistant inside a pseudo-terminal on your computer and mirrors input and output after end-to-end encryption with fingerprint verification.
The tool auto-detects many installed assistants, supports multiple simultaneous sessions, and reconnects with buffered catch-up when the link drops. Prebuilt binaries target macOS, Linux, and Windows on common CPU architectures, installing quickly through npm global packages without compiling native modules locally.
Production, development, and local environment flavors use fixed server endpoints paired with separate package commands. Supported assistants span vendor CLIs, open-source terminal agents, and local model runners that behave like interactive TTY programs.
Security documentation emphasizes AES-256-GCM payloads, Diffie-Hellman key exchange, zero-knowledge relay behavior, and one mobile device per session. Node.js 18 or newer is the only runtime prerequisite besides having at least one supported assistant installed.
Key features
- PTY wrapping for AI CLIs
- AES-256-GCM end-to-end encryption
- Multi-session management
- Auto-detection of AI tools
- Session resume with buffering
- Prebuilt cross-platform binaries
- Production and dev environments
Use cases
- Phone control of desktop AI CLIs
- Remote coding assistant access
- Encrypted terminal relay
- Multiple parallel AI sessions