Manage interactive terminal sessions (SSH, REPLs, databases, TUI apps) via a simple CLI. Designed for AI agents that need PTY support.
Published as an npm package. The matching prebuilt native binary (via @lydell/node-pty) is selected automatically per platform — no compile step, no manual platform handling.
Run it directly with no install:
npx -y pty-bridge statusOr install globally so the bare pty-bridge command is on PATH:
npm i -g pty-bridgeRequirements: Node.js 18+. Linux or macOS (Windows users: run inside WSL).
The skill/SKILL.md file is a thin agent skill that documents the CLI for Claude Code, Kiro CLI, and other compatible agents. It rides on the published npm package (it invokes npx -y pty-bridge / the global binary) rather than vendoring any runtime.
npx skills add briqt/pty-bridge -g# Start an SSH session
pty-bridge start ssh user@host --keepalive 30
# Run a command and get output
pty-bridge exec <id> "ls -la"
# Start a Python REPL
pty-bridge start python3
pty-bridge exec <id> "print('hello')"
# Kill session when done
pty-bridge kill <id>See skill/SKILL.md for the full command reference.
- Daemon: Auto-spawns on first
start, manages PTY sessions via Unix socket - Client: Thin CLI that sends commands to the daemon
- Sessions: Each session runs in its own PTY with xterm.js headless terminal for clean output
The daemon auto-exits after 5 minutes with no active sessions.
git clone https://github.com/briqt/pty-bridge.git
cd pty-bridge
npm install # installs deps + dev deps
npm run build # tsc → dist/Edit src/*.ts, run npm run build, and test locally (e.g. node dist/cli.js status).
npm publish # prepublishOnly runs the build; files: ["dist"] ships only compiled JSThe native binaries are not vendored — npm resolves the correct @lydell/node-pty-<platform> package at install time via optional dependencies.
MIT