Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper, scoop, winget 安装 ttyd

查看 ttyd 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ttyd

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install ttyd

MacPorts ports tree · net/ttyd/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add ttyd

Alpine Linux edge package indexes · ttyd · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install ttyd

Fedora Rawhide package metadata · ttyd · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#ttyd

nixpkgs package indexes · pkgs/by-name/tt/ttyd/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S ttyd

Arch Linux sync databases · ttyd · 来源: geo.mirror.pkgbuild.com

Ubuntu apt已验证 · 92%
sudo apt install ttyd

Ubuntu 24.04 LTS package indexes · ttyd · 来源: archive.ubuntu.com

openSUSE zypper已验证 · 92%
sudo zypper install ttyd

openSUSE Tumbleweed package metadata · ttyd · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install main/ttyd

Scoop official bucket manifest trees · bucket/ttyd.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id tsl0922.ttyd -e

Windows Package Manager source index · tsl0922.ttyd · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Command-line tool for sharing terminal over the web

历史

项目历史与用法

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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 5 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
ttydcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-26
管理器版本1.7.7
管理器更新时间2026-06-22
本地数据OK
上游当前
检测到的最新版本1.7.7

https://github.com/tsl0922/ttyd

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:ttyd
版本1.7.7
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/ttyd
主页https://tsl0922.github.io/ttyd/
仓库https://github.com/tsl0922/ttyd
上游文档https://github.com/tsl0922/ttyd#readme
许可证MIT
源码归档https://github.com/tsl0922/ttyd/archive/refs/tags/1.7.7.tar.gz
最后更新2026-06-22T14:06:31-07:00
Pulseupdated
依赖json-c, libevent, libuv, libwebsockets, openssl@3
构建依赖cmake
macOS 提供的库vim
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namettyd
Version Scheme0
Revision11
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

ttyd

nix profile install nixpkgs#ttyd
  • normalized package name match
  • 匹配方式:Ttyd
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/tt/ttyd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

ttyd 1.7.4-1build2

Share your terminal over the web

https://tsl0922.github.io/ttyd

sudo apt install ttyd
  • Section: universe/web
  • Architecture: amd64
  • 7 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Ttyd
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ttyd from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

ttyd 1.7.7-r0

Share your terminal over the web

https://tsl0922.github.io/ttyd

sudo apk add ttyd
  • License: MIT
  • Architecture: x86_64
  • Source Package: ttyd
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ttyd
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ttyd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

ttyd-doc 1.7.7-r0

Share your terminal over the web (documentation)

https://tsl0922.github.io/ttyd

sudo apk add ttyd-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: ttyd
  • normalized package name match
  • 匹配方式:Ttyd
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ttyd-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

ttyd 1.7.7-9.fc44

Share your terminal over HTTP

https://github.com/tsl0922/ttyd

sudo dnf install ttyd
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ttyd
  • 8 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ttyd
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ttyd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

ttyd 1.7.7-3

Share your terminal over the web

https://tsl0922.github.io/ttyd/

sudo pacman -S ttyd
  • License: MIT
  • Architecture: x86_64
  • 5 依赖
  • normalized package name match
  • 匹配方式:Ttyd
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: ttyd from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

ttyd 1.7.7-1.4

Share your terminal over the web

https://tsl0922.github.io/ttyd/

sudo zypper install ttyd
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ttyd
  • 7 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ttyd
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: ttyd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

ttyd

sudo port install ttyd
  • normalized package name match
  • 匹配方式:Ttyd
MacPorts ports tree · api.github.com · MacPorts ports tree: net/ttyd/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/ttyd

scoop install main/ttyd
  • normalized package name match
  • 匹配方式:Ttyd
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/ttyd.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

tsl0922.ttyd

winget install --id tsl0922.ttyd -e
  • normalized package name match
  • 匹配方式:Ttyd
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: tsl0922.ttyd from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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