Windows

Share your terminal over the web

ttyterminalxtermterminal-emulatorswebsocketopenwrtttydsslwebsockets
스타 성장
스타
12.3k
포크
1.2k
주간 성장
+33
이슈
72
5k10k
2016년 9월2020년 1월2023년 5월2026년 9월
README

backend frontend GitHub Releases Docker Pulls Packaging status GitHub

ttyd - Share your terminal over the web

ttyd is a simple command-line tool for sharing terminal over the web.

screenshot

Features

  • Built on top of libuv and WebGL2 for speed
  • Fully-featured terminal with CJK and IME support
  • ZMODEM (lrzsz) / trzsz file transfer support
  • Sixel image output support (img2sixel / lsix)
  • SSL support based on OpenSSL / Mbed TLS
  • Run any custom command with options
  • Basic authentication support and many other custom options
  • Cross platform: macOS, Linux, FreeBSD/OpenBSD, OpenWrt, Windows

Installation

Install on macOS

  • Install with Homebrew: brew install ttyd
  • Install with MacPorts: sudo port install ttyd

Install on Linux

  • Install on Debian/Ubuntu: sudo apt install ttyd
  • Install the snap: sudo snap install ttyd --classic
  • Install on OpenWrt: opkg install ttyd
  • Install on Gentoo: clone the repo and follow the directions here.
  • Install with Homebrew : brew install ttyd
  • Precompiled static binaries: download from the releases page

Install on Windows

Usage

Command-line Options

USAGE:
    ttyd [options] <command> [<arguments...>]

OPTIONS:
    -p, --port              Port to listen (default: 7681, use `0` for random port)
    -i, --interface         Network interface to bind (eg: eth0), or UNIX domain socket path (eg: /var/run/ttyd.sock)
    -U, --socket-owner      User owner of the UNIX domain socket file, when enabled (eg: user:group)
    -c, --credential        Credential for basic authentication (format: username:password)
    -H, --auth-header       HTTP Header name for auth proxy, this will configure ttyd to let a HTTP reverse proxy handle authentication
    -u, --uid               User id to run with
    -g, --gid               Group id to run with
    -s, --signal            Signal to send to the command when exit it (default: 1, SIGHUP)
    -w, --cwd               Working directory to be set for the child program
    -a, --url-arg           Allow client to send command line arguments in URL (eg: http://localhost:7681?arg=foo&arg=bar)
    -W, --writable          Allow clients to write to the TTY (readonly by default)
    -t, --client-option     Send option to client (format: key=value), repeat to add more options
    -T, --terminal-type     Terminal type to report, default: xterm-256color
    -O, --check-origin      Do not allow websocket connection from different origin
    -m, --max-clients       Maximum clients to support (default: 0, no limit)
    -o, --once              Accept only one client and exit on disconnection
    -q, --exit-no-conn      Exit on all clients disconnection
    -B, --browser           Open terminal with the default system browser
    -I, --index             Custom index.html path
    -b, --base-path         Expected base path for requests coming from a reverse proxy (eg: /mounted/here, max length: 128)
    -P, --ping-interval     Websocket ping interval(sec) (default: 5)
    -6, --ipv6              Enable IPv6 support
    -S, --ssl               Enable SSL
    -C, --ssl-cert          SSL certificate file path
    -K, --ssl-key           SSL key file path
    -A, --ssl-ca            SSL CA file path for client certificate verification
    -d, --debug             Set log level (default: 7)
    -v, --version           Print the version and exit
    -h, --help              Print this text and exit

Read the example usage on the wiki.

Browser Support

Modern browsers, See Browser Support.

Alternatives

관련 저장소
gpakosz/.tmux

Oh my tmux! My self-contained, pretty & versatile tmux configuration made with 💛🩷💙🖤❤️🤍

ShellcliMIT Licensetmuxtmux-conf
25.4k3.6k
xtermjs/xterm.js

A terminal for the web

TypeScriptnpmcliMIT Licensextermterminal
xtermjs.org
21.2k2k
yudai/gotty

Share your terminal as a web application

GoGo ModulescliMIT Licensettyterminal
19.6k1.4k
railsware/upterm

A terminal emulator for the 21st century.

TypeScriptnpmcliMIT Licensettyterminal
19.1k608
browsh-org/browsh

A fully-modern text-based browser, rendering to TTY and browsers

JavaScriptnpmappGNU Lesser General Public License v2.1ttyssh
brow.sh
19k482
faressoft/terminalizer

🦄 Record your terminal and generate animated gif images or share a web player

JavaScriptnpmcliMIT Licenseterminalrecord
terminalizer.com
16.2k521
cyrus-and/gdb-dashboard

Modular visual interface for GDB in Python

PythonPyPIcliMIT Licensesubcommandsgdb-command
12.2k818
enquirer/enquirer

Stylish, intuitive and user-friendly prompts. Used by eslint, webpack, yarn, pm2, pnpm, RedwoodJS, FactorJS, salesforce, Cypress, Google Lighthouse, Generate, tencent cloudbase, lint-staged, gluegun, hygen, hardhat, AWS Amplify, GitHub Actions Toolkit, @airbnb/nimbus, and more! Please follow Enquirer's author: https://github.com/jonschlinkert

JavaScriptnpmcliMIT Licensepromptinquirer
github.com/jonschlinkert
8k295
ekzhang/sshx

Fast, collaborative live terminal sharing over the web

Rustcrates.iocliMIT Licenseterminalcollaborative
sshx.io
7.7k300
zhaojh329/rtty

🐛 Access your device from anywhere via the web.

CMIT Licensewebshellwebssh
zhaojh329.github.io/rtty/
4k549
tio/tio

A serial device I/O tool

CcliOtherttyterminal
tio.github.io
3.2k212
cdleon/awesome-terminals

Terminal Emulators

awesometerminal-emulatorsterminal
3k166