View and control terminals from your browser with end-to-end encryption
View and control terminals from your browser with end-to-end encryption
View and control remote terminals from your browser with end-to-end encryption
termpair share, send the link. Anyone with the link watches your terminal live in their browser.--read-only to keep them watching.--public) are listed on the landing page for anyone to discover and watch.curl -fsSL https://raw.githubusercontent.com/cs01/termpair/main/install.sh | shInstalls to ~/.local/bin. Customize with environment variables:
INSTALL_DIR=/usr/local/bin sh # custom install directory
VERSION=v1.2.0 sh # specific versionDownload a prebuilt binary from the releases page. Available for Linux (x86_64, aarch64), macOS (x86_64, Apple Silicon), and Windows (x86_64).
git clone https://github.com/cs01/termpair.git
cd termpair/termpair-rs
cargo build --release
cp target/release/termpair ~/.local/bin/Start the server:
termpair serveShare your terminal:
termpair shareThis prints a URL containing a unique terminal ID and encryption key. Share it with whoever you want to give access. Anyone with the link can access your terminal while the session is running.
By default, termpair share runs your $SHELL. The server multicasts terminal output to all connected browsers.
…The server is a blind relay -- it routes encrypted WebSocket messages without access to keys or plaintext. The terminal client forks a pty, encrypts all output with AES-128-GCM, and decrypts browser input. Browsers decrypt and render with xterm.js + Web Crypto API.
Three AES-128-GCM keys are created per session:
Keys are rotated after 2^20 messages. IVs are monotonic counters to prevent reuse.
The browser must be in a secure context (HTTPS or localhost).
upstream termpair_app {
server 127.0.0.1:8000;
}
server {
server_name myserver.com;
listen 443 ssl;
ssl_certificate fullchain.pem;
ssl_certificate_key privkey.pem;
location /termpair/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_pass http://termpair_app/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}# /etc/systemd/system/termpair.service
[Unit]
Description=TermPair terminal sharing server
After=network.target
[Service]
ExecStart=/usr/local/bin/termpair serve --port 8000
Restart=on-failure
RestartSec=1s
[Install]
WantedBy=multi-user.targetsudo systemctl daemon-reload
sudo systemctl enable termpair.service
sudo systemctl restart termpairGenerate a self-signed certificate:
openssl req -newkey rsa:2048 -nodes -keyout host.key -x509 -days 365 -out host.crt -batchThen pass it to the server:
termpair serve --certfile host.crt --keyfile host.key…sharemyclaude -- share your Claude Code session with a browser. Built on termpair, with a public relay server so you can share instantly without self-hosting.
No open issues yet, or sync has not completed.