# Install ttyd with Homebrew, apk, dnf, MacPorts, Nix, pacman, scoop, apt, winget, zypper

Command-line tool for sharing terminal over the web. Version 1.7.7 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:ttyd
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install ttyd
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ttyd
```

  Evidence: MacPorts ports tree: net/ttyd/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add ttyd
```

  Evidence: Alpine Linux edge package indexes: ttyd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install ttyd
```

  Evidence: Fedora Rawhide package metadata: ttyd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#ttyd
```

  Evidence: nixpkgs package indexes: pkgs/by-name/tt/ttyd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S ttyd
```

  Evidence: Arch Linux sync databases: ttyd from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Ubuntu apt (92%):

```sh
sudo apt install ttyd
```

  Evidence: Ubuntu 24.04 LTS package indexes: ttyd from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

- zypper (92%):

```sh
sudo zypper install ttyd
```

  Evidence: openSUSE Tumbleweed package metadata: ttyd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/ttyd
```

  Evidence: Scoop official bucket manifest trees: bucket/ttyd.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id tsl0922.ttyd -e
```

  Evidence: Windows Package Manager source index: tsl0922.ttyd from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:ttyd
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/ttyd>
- **Version:** 1.7.7
- **Source summary:** Command-line tool for sharing terminal over the web
- **Homepage:** <https://tsl0922.github.io/ttyd/>
- **Repository:** <https://github.com/tsl0922/ttyd>
- **Upstream docs:** <https://github.com/tsl0922/ttyd#readme>
- **License:** MIT
- **Source archive:** <https://github.com/tsl0922/ttyd/archive/refs/tags/1.7.7.tar.gz>
- **Last updated:** 2026-06-22T14:06:31-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- ttyd (cli)
- ttyd (alias)

## Dependencies

- json-c
- libevent
- libuv
- libwebsockets
- openssl@3

## Build dependencies

- cmake

## Uses from macOS

- vim

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.7.7
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/tsl0922/ttyd
- Upstream latest detected: 1.7.7 (current)
## Project history and usage

ttyd is a command-line web terminal server: it runs a command on a host and exposes the resulting terminal session through a browser. Its own documentation describes the tool as a simple way to share a terminal over the web, with authentication, SSL, WebSocket-oriented terminal features, file-transfer support, and cross-platform builds.

### Project history

The project reached its 1.0.0 tag in September 2016. Its manual page is dated September 2016 and identifies Shuanglei Tao as the author, pointing users to the GitHub project for bugs and further information.

ttyd belongs to the post-xterm.js generation of terminal-sharing tools: instead of replaying a recording, it runs an arbitrary command and places a browser terminal in front of it. The official README lists Wetty and GoTTY as alternatives, and the manual documents examples such as serving a login shell, opening Vim, or sharing a tmux session.

### Adoption history

The project grew into a broadly packaged utility. Its README documents installation through Homebrew, MacPorts, Debian/Ubuntu, snap, OpenWrt, Homebrew-on-Linux, WinGet, Scoop, prebuilt release binaries, and source builds for Windows; the supplied package facts also list apk, dnf, nix, pacman, zypper, and winget package names.

That packaging spread matters because ttyd is often used at the boundary between local Unix tooling and web access: it lets a maintainer expose a shell, a tmux session, a container, or a single TUI application without deploying a full remote desktop stack.

### How it is used

Typical usage is to run `ttyd <command>` and connect to the default web port, or to bind it behind a reverse proxy. The official manual includes examples for `ttyd login`, `ttyd vim`, `ttyd tmux new -A -s ttyd vim`, Docker-backed sessions, SSL setup, client options, and nginx proxying.

The README emphasizes terminal features that package users tend to care about when choosing a web terminal package: CJK and IME support, ZMODEM and trzsz transfers, Sixel output, SSL, basic authentication, custom commands, and builds for Unix-like systems, OpenWrt, and Windows.

### Why package nerds care

For package-manager users, ttyd is the small, scriptable web-terminal answer to a recurring problem: expose exactly one command or shell over HTTP without installing a heavier web IDE. Its package availability across desktop, server, router, and Windows package ecosystems makes it a common comparison point for terminal-sharing formulas.

It is also a useful packaging specimen because it sits at the intersection of C networking libraries, browser terminal front ends, TLS options, and static/prebuilt binary distribution.

### Timeline

- 2016: Manual page dated September 2016.
- 2016: 1.0.0 tag published.
- 2024: 1.7.7 tag published.
- 2026: README still documents Homebrew, MacPorts, Debian/Ubuntu, snap, OpenWrt, Windows package managers, and release binaries.

### Related projects

- The official README lists Wetty and GoTTY as alternatives.
- The official manual demonstrates tmux and Docker as common companions for shared sessions.

### Sources

- <https://github.com/tsl0922/ttyd#readme>
- <https://github.com/tsl0922/ttyd/blob/main/man/ttyd.man.md>
- official git tags from https://github.com/tsl0922/ttyd
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ttyd
- **Version Scheme:** 0
- **Revision:** 11
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - ttyd: normalized package name match | nixpkgs package indexes: pkgs/by-name/tt/ttyd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ttyd - 1.7.4-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: ttyd from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Share your terminal over the web | https://tsl0922.github.io/ttyd
- apk - ttyd - 1.7.7-r0: normalized package name match | Alpine Linux edge package indexes: ttyd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Share your terminal over the web | https://tsl0922.github.io/ttyd
- apk - ttyd-doc - 1.7.7-r0: normalized package name match | Alpine Linux edge package indexes: ttyd-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Share your terminal over the web (documentation) | https://tsl0922.github.io/ttyd
- dnf - ttyd - 1.7.7-9.fc44: normalized package name match | Fedora Rawhide package metadata: ttyd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Share your terminal over HTTP | https://github.com/tsl0922/ttyd
- pacman - ttyd - 1.7.7-3: normalized package name match | Arch Linux sync databases: ttyd from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Share your terminal over the web | https://tsl0922.github.io/ttyd/
- zypper - ttyd - 1.7.7-1.4: normalized package name match | openSUSE Tumbleweed package metadata: ttyd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Share your terminal over the web | https://tsl0922.github.io/ttyd/
- MacPorts - ttyd: normalized package name match | MacPorts ports tree: net/ttyd/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/ttyd: normalized package name match | Scoop official bucket manifest trees: bucket/ttyd.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - tsl0922.ttyd: normalized package name match | Windows Package Manager source index: tsl0922.ttyd from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Web development packages](https://www.automicvault.com/pkg/web-dev-tools/) - Matched web development metadata.
- [libevent](https://www.automicvault.com/pkg/brew/libevent/) - Runtime dependency declared by Homebrew.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [clive](https://www.automicvault.com/pkg/brew/clive/) - Popular package that depends on this formula.
- [vhs](https://www.automicvault.com/pkg/brew/vhs/) - Popular package that depends on this formula.
- [shellinabox](https://www.automicvault.com/pkg/brew/shellinabox/) - Shares av.db curated category or tags: cli, networking, server, terminal, web-terminal.
- [tty-share](https://www.automicvault.com/pkg/brew/tty-share/) - Shares av.db curated category or tags: cli, networking, terminal, terminal-sharing, web-terminal.
- [httpd](https://www.automicvault.com/pkg/brew/httpd/) - Shares av.db curated category or tags: cli, networking, server, web-server.
- [mongoose](https://www.automicvault.com/pkg/brew/mongoose/) - Shares av.db curated category or tags: cli, networking, web-server, websocket.
- [yaws](https://www.automicvault.com/pkg/brew/yaws/) - Shares av.db curated category or tags: cli, networking, server, web-server.
- [algernon](https://www.automicvault.com/pkg/brew/algernon/) - Shares av.db curated category or tags: cli, networking, web-server.
- [caddy](https://www.automicvault.com/pkg/brew/caddy/) - Shares av.db curated category or tags: cli, networking, web-server.
- [chawan](https://www.automicvault.com/pkg/brew/chawan/) - Shares av.db curated category or tags: cli, networking, terminal.
- [h2o](https://www.automicvault.com/pkg/brew/h2o/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, networking, openssl, openssl-3, server.

## Combined YAML source

View the package source record on GitHub. [combined/ttyd.yml](https://github.com/automic-vault/db/blob/main/combined/ttyd.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
