EveryDev.ai
Subscribe
Home
Tools

4,047+ AI tools

  • New
  • Trending
  • Featured
  • Compare
  • Arena
Categories
  • Agents2782
  • Coding1973
  • Infrastructure825
  • Projects603
  • Marketing598
  • Research520
  • Analytics468
  • Design462
  • MCP419
  • Testing346
  • Security323
  • Data305
  • Integration224
  • Prompts220
  • Communication210
  • Extensions196
  • Learning179
  • Voice175
  • Commerce160
  • DevOps135
  • Web95
  • Finance31
AI Tools by Topic
  • AI Coding Assistants
  • Agent Frameworks
  • MCP Servers
  • AI Prompt Tools
  • Vibe Coding Tools
  • AI Design Tools
  • AI Database Tools
  • AI Website Builders
  • AI Testing Tools
  • LLM Evaluations
Follow Us
  • X / Twitter
  • LinkedIn
  • Reddit
  • Discord
  • Threads
  • Bluesky
  • Mastodon
  • YouTube
  • GitHub
  • Instagram
Get Started
  • About
  • Editorial Standards
  • Corrections & Disclosures
  • Community Guidelines
  • Advertise
  • Contact Us
  • Newsletter
  • Submit a Tool
  • Start a Discussion
  • Write A Blog
  • Share A Build
  • Terms of Service
  • Privacy Policy
Explore with AI
  • ChatGPT
  • Gemini
  • Claude
  • Grok
  • Perplexity
Agent Experience
  • llms.txt
Theme
With AI, Everyone is a Dev. EveryDev.ai © 2026
    1. Home
    2. Tools
    3. clsh
    clsh icon

    clsh

    Terminal & Session Management
    Featured

    clsh gives you real terminal access to your Mac from your phone via a single command, streaming a real PTY session over a secure tunnel to any browser or PWA.

    Visit Website

    At a Glance

    Pricing
    Open Source

    Fully free and open source under the MIT License. Run via npx, self-hosted on your own machine.

    Engagement

    Available On

    macOS
    Linux
    Android
    iOS
    Web

    Resources

    WebsiteDocsGitHubllms.txt

    Topics

    Terminal & Session ManagementCommand Line AssistantsAI Coding Assistants

    Alternatives

    SaggarSessionCastVVTerm
    Developer
    my-claude-utilsEst. 2026

    Listed Sep 2026

    About clsh

    clsh is an open-source tool that turns your Mac into a pocket-sized terminal server. Run npx clsh-dev, scan the QR code on your phone, and you have a real PTY session — not SSH emulation, not a simulation — streamed securely to your mobile browser or installed PWA. The project is MIT-licensed and hosted on GitHub under the my-claude-utils organization.

    What It Is

    clsh is a phone-first remote terminal client for macOS (and Linux). It spawns real shell sessions using node-pty on your local machine, wraps them optionally in tmux for persistence, and exposes them over HTTPS via a 3-tier tunnel system (ngrok → localhost.run SSH → local Wi-Fi). A custom React + xterm.js frontend renders the terminal with full color, vim support, and a purpose-built mobile keyboard. The project is particularly aimed at developers who want to run AI coding agents like Claude Code from their phone and watch them work in real time.

    How the Tunnel Architecture Works

    clsh uses a layered fallback approach so it works in almost any network environment:

    • ngrok (static domain) — recommended for PWA home screen use; same URL survives restarts
    • localhost.run SSH tunnel — zero signup, works anywhere, auto-fallback
    • Local Wi-Fi — zero dependencies, LAN-only

    The tunnel can be forced via environment variables (TUNNEL=ssh, TUNNEL=local). A one-time bootstrap token with a 5-minute TTL and QR code delivery authenticates the phone on first connect; subsequent connections use JWT.

    Security Model

    Because clsh grants remote shell access to your machine, the project treats security as a first-class concern. Key protections include:

    • One-time bootstrap tokens (single-use, 5-min TTL) passed in the URL hash fragment (never sent to servers)
    • scrypt password hashing (N=16384, 64-byte key, random salt) with constant-time comparison
    • WebAuthn / Face ID biometric auth for PWA lock screen
    • HTTPS enforced via tunnel, CORS restricted to known origins, security headers (CSP, X-Frame-Options, X-Content-Type-Options)
    • Auth endpoint rate limiting (5–10 requests per 15 minutes)
    • WebSocket origin validation, 64KB max payload, resize dimension bounds checking
    • Responsible disclosure policy at security@clsh.dev with a stated 48-hour response time

    Mobile-First Terminal Experience

    The frontend is built specifically for phone use, not adapted from a desktop UI:

    • Custom keyboard with two layouts: iOS Terminal (6-row, large keys) and MacBook (5-row, compact)
    • Sticky modifiers — tap Shift/Ctrl/Opt/Cmd once, it latches for the next key
    • Key repeat — hold any key for auto-repeat (400ms delay, 60ms interval)
    • Context strip — quick-access row for Esc, F1–F5, commit, diff, plan, Ctrl+C
    • 6 keyboard skins — iOS Terminal, MacBook Silver, Gamer RGB, Custom Painted, Amber Retro, Ice White
    • PWA install — fullscreen standalone mode, iOS keyboard suppressed, safe-area insets for Dynamic Island and notch devices
    • Session grid — up to 8 concurrent PTY sessions with live 2-column card previews

    Tech Stack

    The project is a TypeScript monorepo managed with Turborepo and npm workspaces:

    LayerTechnology
    FrontendReact 18, TypeScript, Vite 6, Tailwind CSS v4, xterm.js (WebGL)
    BackendNode.js 20+, Express, ws, node-pty, tmux (control mode), better-sqlite3
    Tunnel@ngrok/ngrok SDK, localhost.run SSH fallback
    Authjose (JWT), scrypt, WebAuthn (Face ID/Touch ID), one-time bootstrap tokens

    Update: v0.1.9 — Native Keyboard Support

    The latest release is v0.1.9, published in March 2026 and titled "Native Keyboard Support." The repository was last updated in September 2026 and has accumulated 526 stars and 54 forks since its creation in March 2026. The roadmap lists upcoming features including remote cloud containers, team session sharing with presence, native iOS/Android apps, and Claude Code tool extensions.

    clsh - 1

    Community Discussions

    Be the first to start a conversation about clsh

    Share your experience with clsh, ask questions, or help others learn from your insights.

    Pricing

    OPEN SOURCE

    Open Source

    Fully free and open source under the MIT License. Run via npx, self-hosted on your own machine.

    • Real PTY terminal sessions
    • Up to 8 concurrent sessions
    • 3-tier tunnel (ngrok, SSH, Wi-Fi)
    • Custom mobile keyboard with 6 skins
    • PWA install support

    Capabilities

    Key Features

    • Real PTY terminal sessions via node-pty
    • Phone-first mobile UI with custom keyboard
    • 3-tier tunnel: ngrok → SSH → Wi-Fi
    • Up to 8 concurrent terminal sessions
    • Session persistence via tmux control mode
    • QR code + JWT authentication
    • WebAuthn / Face ID biometric lock screen
    • One-time bootstrap tokens (5-min TTL)
    • 6 keyboard skins with Skin Studio
    • PWA install with fullscreen standalone mode
    • Session grid with live terminal previews
    • Sticky modifier keys and key repeat
    • Claude Code streaming support
    • Demo mode for showcasing without backend
    • Lid-close mode for persistent connectivity

    Integrations

    ngrok
    localhost.run
    tmux
    Claude Code
    xterm.js
    WebAuthn / Face ID
    Node.js
    Turborepo
    API Available
    View Docs

    Ratings & Reviews

    No ratings yet

    Be the first to rate clsh and help others make informed decisions.

    Developer

    my-claude-utils

    my-claude-utils builds open-source developer tools centered on Claude Code and AI-assisted workflows. The team created clsh to give developers real terminal access from any device, with a focus on mobile-first UX and security. The project is MIT-licensed and actively maintained on GitHub.

    Founded 2026
    Read more about my-claude-utils
    WebsiteGitHubX / Twitter
    1 tool in directory

    Similar Tools

    Saggar icon

    Saggar

    A native macOS terminal manager that keeps projects, sessions, and coding agents organized by tracking which terminal needs your attention.

    SessionCast icon

    SessionCast

    Monitor and control your AI CLI terminal sessions from your mobile device with real-time streaming and bidirectional input.

    VVTerm icon

    VVTerm

    A native SSH client for iPhone, iPad, and Mac with iCloud sync, SFTP file browsing, and support for SSH, Mosh, Tailscale SSH, and Cloudflare Tunnel SSH.

    Browse all tools

    Related Topics

    Terminal & Session Management

    Terminal emulators, multiplexers, and session managers that help developers run parallel AI coding agents, manage multiple workspaces, and maintain persistent terminal sessions.

    49 tools

    Command Line Assistants

    AI-powered command-line assistants that help developers navigate, search, and execute terminal commands with intelligent suggestions and context awareness.

    250 tools

    AI Coding Assistants

    AI tools that help write, edit, and understand code with intelligent suggestions.

    885 tools
    Browse all topics
    Back to all toolsSuggest an edit
    ratings
    discussions