# ttyd を Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper, scoop, winget でインストール

ttyd のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install ttyd
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ttyd
```

  証拠: 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
```

  証拠: 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
```

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

- Nix (92%):

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

  証拠: 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
```

  証拠: 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
```

  証拠: 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
```

  証拠: openSUSE Tumbleweed package metadata: ttyd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

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

  証拠: 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
```

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

## パッケージ情報

- **パッケージキー:** brew:ttyd
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/ttyd>
- **バージョン:** 1.7.7
- **ソース概要:** Command-line tool for sharing terminal over the web
- **ホームページ:** <https://tsl0922.github.io/ttyd/>
- **リポジトリ:** <https://github.com/tsl0922/ttyd>
- **上流ドキュメント:** <https://tsl0922.github.io/ttyd/>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/tsl0922/ttyd/archive/refs/tags/1.7.7.tar.gz>
- **最終更新:** 2026-07-27T08:04:08Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- ttyd (cli)
- ttyd (エイリアス)

## 依存関係

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

## ビルド依存関係

- cmake

## macOS 提供ライブラリ

- vim

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 1.7.7
- マネージャ更新日: 2026-07-27
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/tsl0922/ttyd
- 検出された最新: 1.7.7 (最新)
## プロジェクトの歴史と使われ方

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.

### プロジェクトの歴史

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.

### 採用の歴史

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.

### 使われ方

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.

### パッケージ好きにとっての重要性

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.

### タイムライン

- 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.

### ソース

- <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


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

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

## 他のパッケージマネージャ記録

- 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-11.fc45: normalized package name match | Fedora Rawhide package metadata: ttyd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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.6: normalized package name match | openSUSE Tumbleweed package metadata: ttyd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Web development packages](https://pkg.so/ja/web-dev-tools/) - Matched web development metadata.
- [openssl@3](https://pkg.so/ja/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [libevent](https://pkg.so/ja/brew/libevent/) - Runtime dependency declared by Homebrew.
- [cmake](https://pkg.so/ja/brew/cmake/) - Build dependency declared by Homebrew.
- [vhs](https://pkg.so/ja/brew/vhs/) - Popular package that depends on this formula.
- [clive](https://pkg.so/ja/brew/clive/) - Popular package that depends on this formula.
- [websocketd](https://pkg.so/ja/brew/websocketd/) - Shares pkgdb curated category or tags: cli, networking, server, websocket.
- [shellinabox](https://pkg.so/ja/brew/shellinabox/) - Shares pkgdb curated category or tags: cli, networking, server, web-terminal.
- [tty-share](https://pkg.so/ja/brew/tty-share/) - Shares pkgdb curated category or tags: cli, networking, terminal-sharing, web-terminal.
- [openldap](https://pkg.so/ja/brew/openldap/) - Shares pkgdb curated category or tags: cli, networking, server.
- [httpd](https://pkg.so/ja/brew/httpd/) - Shares pkgdb curated category or tags: cli, networking, server.
- [rabbitmq](https://pkg.so/ja/brew/rabbitmq/) - Shares pkgdb curated category or tags: cli, networking, server.
- [bind](https://pkg.so/ja/brew/bind/) - Shares pkgdb curated category or tags: cli, networking, server.
- [websocat](https://pkg.so/ja/brew/websocat/) - Shares pkgdb curated category or tags: cli, networking, websocket.
- [freeradius-server](https://pkg.so/ja/brew/freeradius-server/) - Both packages work with overlapping file formats or content types. Shared terms: cli, json, json-c, networking, openssl.

## Combined YAML source

View the package source record on GitHub. [combined/ttyd.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ttyd.yml)


## ソース

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