Skip to content
项目

关于

Self-hosted PWA to control Claude Code, Codex, GitHub Copilot or any terminal from your phone or desktop. Single Go binary streaming tmux/psmux/Herdr sessions to xterm.js, native or in a container.

开发工具

这些数字如何统计

77 星标15 复刻 +1 24小时

可以做什么

  • Session switching: Multiple tmux sessions with create/edit/delete
  • Session tabs: Horizontal tab bar for quick window switching
  • Chat view: read and answer a pane running Claude Code, Codex (started with --no-daemon) or OpenCode 2 as a chat, with slash command suggestions, dialog answers, text quoted from the chat into the reply and running subagents, each subagent's own conversation one tap away — see Agent Chat
  • Session history: list the Claude Code, Codex and OpenCode sessions that ran in a pane's folder, read one, resume it in a new tab or fork a running one — see Resuming an Old Session

实测星标增长

24小时
+1
7天
+2
15天
+3
1个月
+9

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.zh-CN.md

原文

Termote

Release CI License GitHub stars GHCR Docker Pulls

Go React TypeScript PWA

Termote - Launched on J2TEAM Launch   Termote trên Unikorn.vn

通过 PWA 从移动端/桌面端远程控制 CLI 工具(Claude Code、Codex、OpenCode 及任何终端)。

[!NOTE] Termote 1.0 不会升级 0.x 的安装。请按照归档的 0.x 文档卸载 0.x,然后使用快速开始中的命令安装 1.0。

Termote = Terminal + Remote

🇬🇧 English | 🇻🇳 Tiếng Việt | 🇯🇵 日本語 | 🇰🇷 한국어 | 🇪🇸 Español | 🇧🇷 Português (BR) | 🇫🇷 Français | 🇩🇪 Deutsch | 🇷🇺 Русский | 🇮🇩 Bahasa Indonesia

观看一分钟了解 Termote(视频)

功能特性

  • 会话切换:多个 tmux 会话,支持创建/编辑/删除
  • 会话标签:水平标签栏,快速切换窗口
  • Herdr 后端(原生或容器内):用 Herdr 工作区代替 tmux,每个窗格都显示编码代理的状态徽标——参见原生安装
  • Chat 视图:以对话形式阅读并回复运行 Claude Code、Codex(以 --no-daemon 启动)或 OpenCode 2 的窗格,支持斜杠命令提示、对话框应答、把聊天中选中的文字引用到回复里,并显示运行中的子代理,点一下即可阅读某个子代理自己的对话——参见Agent Chat
  • 会话历史:列出在窗格所在文件夹中运行过的 Claude Code、Codex 和 OpenCode 会话,可以阅读某个会话、在新标签页中恢复它,或分叉一个正在运行的会话——参见Resuming an Old Session
  • Token 与费用:每个代理会话的 token 用量和估算费用,以及每日合计——参见Tokens and cost
  • 会话改动的文件:在 Changes 和会话历史中列出代理会话编辑过的文件,每个文件都可打开其 diff——参见Changes
  • Files 和 Changes 视图:浏览窗格所在目录及其 git 变更,支持 Markdown 预览,适用于所有后端,包括 Windows 上的 psmux——参见Files and Changes
  • Chat 消息队列和文件链接:代理工作时可把消息排入队列;点击代理写出的文件路径,即可在 Files 中打开该文件并定位到对应行
  • 评审与暂存:在 Changes 和 Files 中对代码行添加评论,并把评审发送给代理;按文件或按 hunk 暂存、取消暂存或丢弃变更
  • Files 中的预览与编辑:只读预览 PDF、.xlsx 和 .docx;打开并保存 Shift-JIS、EUC-JP 和 UTF-16 文件;在实时预览旁编辑 Markdown
  • 在 Windows 中打开(WSL):服务器在 WSL 下运行时,可以复制文件的 Windows 路径,或用对应的 Windows 程序打开文件或文件夹
  • Places:通过 termote start --allow-path <dir> 在 Files 中提供窗格之外的文件夹——参见Places
  • Tasks:运行窗格的 package.json 脚本和 Makefile 目标,并把失败的运行发送给代理——参见Tasks
  • Worktrees:从新分支或已有分支把 git worktree 作为独立的分组打开(Herdr、tmux、Zellij、herdr-core、psmux)——参见Worktrees
  • 独立窗口(桌面端):在独立窗口中打开文件、diff、标签页、窗格或概览
  • 图片附件:从手机向终端或 Chat 视图消息发送图片,代理可通过路径读取;粘贴到 Claude Code、Codex 或 OpenCode 中的图片可以从 Chat 视图再次打开
  • Zellij 后端(Linux、macOS 或容器内):用 Zellij 会话、标签页和窗格代替 tmux(Zellij 0.45.0 或更高版本),通过 --mux zellij 选择——参见原生安装
  • herdr-core 后端(原生,所有操作系统):作为 herdr-core 的又一个客户端,显示 herdr 应用所显示的空间、标签页和窗格(hc 0.1.16 或更高版本),通过 --mux hc 选择——参见herdr-core 后端
  • Machines:在一个 Termote 中通过 SSH 查看并操控其他电脑上的代理,所用密钥在那台电脑上只能访问 Termote(termote machine add <alias>)——参见Machines
  • 编排器(Orchestrator):由一个 Claude Code 或 Codex 会话协调其他窗格中的代理:查看状态、给某个代理派任务、读取回答、处理对话框,并在独立 worktree 中启动新代理(termote agents)——参见Orchestrator。其技能随 Termote 提供(termote skills install),也可作为插件从 termote-plugins 安装(Claude Code 中运行 /plugin marketplace add lamngockhuong/termote-plugins,Codex 中运行 codex plugin marketplace add lamngockhuong/termote-plugins);两种方式只选其一
  • Plan 与任务:编排器分派的工作以任务形式呈现,带优先级、所依赖的任务和工作区,以及它们的拉取请求和 CI 检查(失败项可发回给代理),并在你同意后关闭标签页、删除 worktree 来结束任务(termote agents job ...)——参见Orchestrator
  • 给你的问题:编排器会记录它向你提出的问题(termote agents ask add);在 Plan 标签页或提问的编排器聊天中逐一回答或忽略,本机的 Termote 和 Machines 中的都可以;代理停在对话框上的任务显示在 Waiting for you 中——参见Orchestrator
  • Herdr 插件:无需离开 Herdr,即可在 Termote 中打开当前聚焦的 Herdr 窗格、将其链接显示为二维码供手机扫描、启动或停止服务器——参见Herdr Plugin
  • 移动端友好:虚拟键盘工具栏(Tab/Ctrl/Shift/方向键,可展开)
  • 手势支持:滑动执行 Ctrl+C、Tab、滚动
  • 命令历史:搜索并调用之前发送的命令
  • 快捷操作:固定在移动端工具栏末端的 ⋯ 键展开常用操作的 Actions 行(clear、cancel、exit)
  • 界面风格:Neutral、Terminal 或 Native,在设置中选择,与浅色/深色主题无关,强调色在所有风格间共用
  • 界面语言:英语或越南语,在设置中选择;Auto 跟随浏览器语言
  • 设置导出与导入:将此浏览器的设置导出为文件并在另一个浏览器中导入,或审阅编码代理通过 termote settings propose 提出的设置——参见Settings
  • GPU 终端:设备有 GPU 时用 WebGL2 绘制终端,大量输出也能保持流畅
  • 连接指示器:实时服务器状态,自动检测断开连接
  • 更新检查:自动从 GitHub releases 通知新版本
  • PWA:可安装到主屏幕,支持离线使用
  • 持久会话:tmux 保持会话存活
  • 可折叠侧边栏:桌面端 UI 带可切换的会话侧边栏
  • 桌面应用(Windows、macOS、Linux;尚未代码签名):在独立窗口中打开 Termote,无需 Web 端口(termote start --web=false),支持系统原生通知,在 Windows 上还能连接 WSL 中的 Termote——参见桌面应用
  • 全屏模式:沉浸式终端体验
  • 作为服务运行:termote start 会注册一个在登录时启动的用户服务(systemd、launchd、计划任务)
  • 配置持久化:termote start 会保存其选项,密码加密存储

截图

试用演示:无需安装,在手机或桌面浏览器中用虚构数据体验真实的应用。

手机上的终端、Chat 和 Changes

手机上的会话历史、OpenCode 和 Machines

Desktop: Chat and Changes on Herdr

Neutral、Terminal 和 Native 三种界面风格(浅色与深色)

架构

flowchart TB
    subgraph Client["客户端(移动端/桌面端)"]
        PWA["PWA - React + xterm.js"]
        Gestures["手势控制"]
        Keyboard["虚拟键盘"]
    end

    subgraph Server["Termote Server :7680"]
        Static["静态文件"]
        Stream["终端 WebSocket /api/mux/stream"]
        API["REST API /api/mux/*"]
        Guard["Host 白名单 + Origin/CSRF 防护"]
        Auth["Basic Auth"]
    end

    subgraph Backend["Mux 后端(tmux/psmux、Herdr、Zellij 或 herdr-core)"]
        Mux["Mux 接口"]
        tmux["tmux/psmux (PTY)"]
        herdr["Herdr"]
        zellij["Zellij"]
        hc["herdr-core (hc)"]
        Shell["Shell"]
        Tools["CLI 工具"]
    end

    Gestures --> PWA
    Keyboard --> PWA
    PWA --> Static
    PWA <--> Stream
    PWA --> API
    Guard -.-> Static & Stream & API
    Auth -.-> Static & Stream & API
    Stream --> Mux
    API --> Mux
    Mux --> tmux & herdr & zellij & hc
    tmux --> Shell --> Tools

Termote 自己负责终端流(Unix 上用 PTY,Windows 上用 ConPTY),直接传给 PWA 中的 xterm.js,不再有需要代理的独立终端进程。完整的请求防护模型见 docs/system-architecture.md。

快速开始

📖 初次使用 Termote? 请查看入门指南获取完整的操作步骤和示例。

Linux / macOS:

curl -fsSL https://termote.ohnice.app/install.sh | sh
termote start

Homebrew (macOS, Linux):

brew install lamngockhuong/tap/termote
termote start

通过 Homebrew 安装的版本用 brew 更新,而不是 termote update:brew upgrade termote && termote restart。卸载用 termote uninstall && brew uninstall termote。

Windows(PowerShell):

irm https://termote.ohnice.app/install.ps1 | iex
termote start

使用编码智能体: 把 Install with an agent 中的提示词粘贴到 Claude Code、Codex 或其他智能体。它会按照 agents.md 操作,确认服务器有响应,并让你自己查看密码。

安装程序只需要 curl、tar 和 sha256sum/shasum(Windows 上为 PowerShell),不需要 sudo 或管理员权限。它会校验压缩包的校验和,安装 termote 命令,但不会启动任何东西。termote start 会保存选项,首次运行时创建密码(仅在终端中运行时显示一次,之后可用 termote show-password 再次查看),然后注册服务并启动。打开 http://127.0.0.1:7680(Windows:http://127.0.0.1:7690)。

需要先安装终端后端:tmux(sudo apt install tmux、brew install tmux),Windows 上为 psmux(winget install psmux),或者 Herdr。首次 start 会检测使用哪一个。Zellij 0.45.0 或更高版本(Linux、macOS)不会被自动检测,请用 --mux zellij 选择。herdr-core(hc 0.1.16 或更高版本,所有操作系统,仅原生模式)同样不会被检测,请用 --mux hc 选择。

常用选项

termote start --lan                  # Listen on the LAN, not only this machine
termote start --tailscale myhost.ts.net  # Publish over Tailscale HTTPS
termote start --mux herdr            # Drive Herdr workspaces instead of tmux
termote start --mux zellij           # Drive Zellij sessions instead of tmux (Linux, macOS)
termote start --mux hc               # Show the herdr app's terminals through herdr-core
termote start --no-auth              # Disable basic auth (local use only)

选项会被保存:未指定的参数保留已保存的值,布尔选项用 =false 关闭(termote start --lan=false)。所有操作系统(包括 PowerShell)上的参数都相同。

日常命令

termote status                       # What the running server reports
termote stop                         # Stop (it starts again at the next login)
termote restart                      # Restart with the saved options
termote logs follow                  # Tail the logs
termote show-password                # Print the saved username and password
termote url --qr                     # The link to open, as a QR code for a phone
termote pair                         # A one-time code that signs a new device in
termote devices                      # List the paired devices (devices revoke <id>)
termote machine add <ssh alias>      # Reach another computer's Termote (Machines in the sidebar)
termote skills install               # The orchestrator skill for Claude Code and Codex
termote update                       # Update to the latest release
termote uninstall                    # Remove the service, the command, the install and uploads

update 会切换到新版本并重启服务,如果新版本没有正常运行,则切换回原版本。uninstall 会保留配置(~/.config/termote)和日志(~/.local/state/termote),并打印这两个路径;uninstall --purge 会将它们一并删除。

安装

固定版本

curl -fsSL https://termote.ohnice.app/install.sh | TERMOTE_VERSION=1.0.0 sh
termote update --version 1.0.0
$env:TERMOTE_VERSION='1.0.0'; irm https://termote.ohnice.app/install.ps1 | iex

不设置 TERMOTE_VERSION 时,安装程序会获取最新的稳定版(1.0 或更高版本),且不会改动已有的安装。设置后,会将该版本安装在当前版本旁边并设为当前使用的版本,这也可以用来修复损坏的安装。预发布版本(X.Y.Z-rc.N)只有按这种方式指定(或使用 termote update --version)时才会安装,且仅在发布之后;参见部署指南。

容器模式

termote container up                          # Run the published image (podman or docker)
termote container up --workspace ~/projects   # Mount a directory at /workspace
termote container status
termote container logs -f
termote container down

container up 使用 podman(优先)或 docker 运行与已安装 termote 同版本的 ghcr.io/lamngockhuong/termote,端口为 7680,并将 ~/termote-workspace 挂载到 /workspace。它接受 --port、--lan、--tailscale、--cloudflare、--no-auth、--mux、--allow-host、--allow-path、--user、--fresh、--workspace 和 --build(仅限源码检出),这些设置与 start 的选项分开保存;用户名和密码与原生服务器共用。Docker 会在重启后重新启动容器;rootless Podman 没有守护进程来做这件事,因此请将其作为 Quadlet 单元运行。

安全提示:避免直接挂载 $HOME —— 容器将能访问 .ssh、.gnupg 等敏感目录。请改为挂载特定的项目目录。

不使用 CLI 直接运行 Docker

# Generates a password: docker exec termote cat /home/termote/.config/termote/password
docker run -d --name termote -p 7680:7680 \
  -v ~/projects:/workspace \
  ghcr.io/lamngockhuong/termote:latest

# With your own credentials
docker run -d --name termote -p 7680:7680 \
  -e TERMOTE_USER=admin -e TERMOTE_PASS=secret \
  ghcr.io/lamngockhuong/termote:latest
环境变量 说明
TERMOTE_USER 基本认证用户名(默认:admin)
TERMOTE_PASS 基本认证密码(默认:自动生成,保存在 /home/termote/.config/termote/password)
NO_AUTH 设为 true 以禁用认证

桌面应用

桌面应用(Windows、macOS、Linux)需要从发布页面单独下载:安装脚本和 termote update 不会安装或更新它。它需要同一台电脑上的原生服务器,并通过 termote desktop-link 而不是网络连接服务器,因此 Web 端口可以保持关闭:

termote start --web=false                                # No TCP port: only the CLI and the desktop app reach the server
termote pair --role full --name Desktop --expires never  # A code for the app's sign-in page

它尚未进行代码签名,所以首次打开时 macOS Gatekeeper 和 Windows SmartScreen 会发出警告:请先用对应的 .sha256 校验文件,然后在“系统设置 → 隐私与安全性”中点击 Open Anyway,或在 Windows 上点击 More info → Run anyway。在 Windows 上,它还能连接 WSL 发行版中的 Termote(Termote → Target → WSL: <distro>)。详情参见桌面应用。

从源码构建

git clone https://github.com/lamngockhuong/termote.git
cd termote
make build
./scripts/termote.sh start

make build 会构建 PWA 并将其嵌入 server/termote,需要 Go、Node.js 和 pnpm。scripts/termote.sh(Windows:scripts\termote.ps1)只用于运行源码检出:源码较新时会重新构建开发用二进制文件,然后以相同参数运行。termote update 在源码检出中会拒绝运行,请使用 git pull && make build。

从 0.x 升级

无法从 0.x 升级:1.0 安装在新的位置,也不会读取 0.x 的配置。请按照归档的 0.x 文档卸载 0.x,然后用上面的命令安装 1.0。

部署模式

flowchart LR
    subgraph Container["容器模式"]
        direction TB
        C1["Docker/Podman"] --> C2["Termote :7680 (自行传输终端流)"] --> C3["tmux / Herdr / Zellij"]
    end

    subgraph Native["原生模式"]
        direction TB
        N1["主机系统"] --> N2["Termote :7680 (自行传输终端流)"] --> N3["tmux/psmux、Herdr、Zellij 或 herdr-core + 主机工具"]
    end

    User["用户"] --> Container & Native
模式 命令 使用场景 平台
原生 termote start 访问主机工具(claude、gh) macOS, Linux, Windows
容器 termote container up 隔离的环境 macOS, Linux, Windows

原生服务器以用户服务的形式运行:Linux 上为 systemd 用户单元(没有用户级 systemd 时,例如未启用 systemd 的 WSL2,则为分离的进程),macOS 上为 launchd 代理,Windows 上为登录时运行的计划任务。

start 的选项

参数 说明
--port <port> 端口(默认:7680,Windows:7690)
--lan[=false] 在所有网络接口上监听(默认:仅 localhost)
--tailscale <host[:port]> 通过 Tailscale HTTPS 发布(默认端口 443)
--no-tailscale 停止通过 Tailscale 发布
--cloudflare <host> 你自己运行的 Cloudflare Tunnel 的主机名;前面没有 Cloudflare Access 时发出警告
--no-cloudflare 清除 Cloudflare 主机名
--proxy-client-header <name> 代理用来传递客户端地址的请求头(使用 --cloudflare 时默认:CF-Connecting-IP)
--no-proxy-client-header 不再读取该请求头
--no-auth[=false] 禁用基本认证
--mux <tmux|herdr|zellij|hc> 终端后端(默认:herdr 正在运行时用 herdr,否则用 tmux;zellij:Linux、macOS;hc:herdr-core)
--allow-host <name> 允许额外的 Host 头值(可重复;无通配符,参见安全说明)
--remove-host <name> 移除已允许的 Host 名称(可重复)
--allow-local-user <name> 允许本机的另一个系统用户连接,例如反向代理(可重复;Linux、Windows)
--remove-local-user <name> 不再允许该用户连接(可重复)
--allow-path <dir> 在 Files 的 Places 中提供一个文件夹(可重复)
--remove-path <dir> 移除已允许的文件夹(可重复)
--allow-herdr-no-auth 与 --mux herdr --no-auth 一起使用时必需
--allow-hc-no-auth 与 --mux hc --no-auth 一起使用时必需
--user <name> 登录用户名(默认:admin;与容器共用)
--fresh 设置新密码

使用 Tailscale HTTPS

使用 tailscale serve 实现自动 HTTPS(无需手动管理证书):

termote start --tailscale myhost.ts.net                # Default port 443
termote start --tailscale myhost.ts.net:8765           # Custom port
termote container up --tailscale myhost.ts.net         # Container mode
sudo tailscale set --operator=$USER                    # Linux, once: let Termote run tailscale serve

每次服务器启动时都会应用该映射。stop、start --no-tailscale 和 uninstall 只移除 Termote 自己的映射。

平台支持

平台 容器模式 原生模式 安装程序
Linux ✓ ✓ install.sh
macOS ✓ ✓ install.sh
Windows ✓ ✓ install.ps1

Windows 支持:容器模式需要 Docker Desktop 或 Podman Desktop;原生模式需要 psmux(Windows 上兼容 tmux 的终端复用器),可通过 winget install psmux 安装,也可以改用正在运行的 Herdr 服务器。

移动端使用

操作 手势
取消/中断 左滑(Ctrl+C)
Tab 补全 右滑
向下滚动 上滑
向上滚动 下滑
粘贴 长按
字体大小 捏合缩放

虚拟工具栏提供:Tab、Esc、Ctrl、Shift、方向键及常用组合键。支持 Ctrl+Shift 组合(粘贴、复制)。可在精简模式和展开模式之间切换以显示更多按键(Home、End、Delete 等)。

项目结构

termote/
├── Makefile                # Build/test/run commands
├── Dockerfile              # Container image (Termote + tmux + herdr + zellij)
├── docker-compose.yml      # Development from a checkout only
├── entrypoint.sh           # Container entrypoint
├── docs/                   # Documentation
│   └── images/screenshots/ # App screenshots
├── desktop/                # Desktop app (Wails v3), reaches the server through `termote desktop-link`
├── pwa/                    # React PWA
│   └── src/
│       ├── components/
│       ├── contexts/
│       ├── hooks/
│       ├── types/
│       └── utils/
├── server/                 # Go server + CLI (single binary)
│   ├── main.go             # Entry point (no args = menu, `serve` = server, else CLI)
│   ├── serve.go            # Server (PWA, auth, guards)
│   ├── mux.go              # Mux interface + /api/mux/* routes
│   ├── mux_tmux.go         # tmux/psmux backend
│   ├── mux_herdr.go        # Herdr backend
│   ├── mux_zellij*.go      # Zellij backend (commands, Chat view and Files)
│   ├── zellij_*.go         # Termote's Zellij clients, view-only stream, a pane's shell
│   ├── mux_hc*.go, hc_*.go # herdr-core backend (hc connect client, herdr-app document)
│   ├── stream.go           # Terminal WebSocket (xterm.js stream)
│   ├── agent_*.go          # Chat view, session history, tokens and cost (Claude Code, Codex, OpenCode)
│   ├── job_*.go, ask_*.go  # The orchestrator's job ledger and its questions for the user
│   ├── skills/             # The orchestrator skill (`termote skills install`, termote-plugins)
│   ├── cli*.go             # start/stop/update/container/logs/menu subcommands
│   └── webui/              # PWA embedded in the binary (filled by make build)
├── scripts/
│   ├── install.sh          # Unix online installer (curl | sh)
│   ├── install.ps1         # Windows online installer (irm | iex)
│   ├── termote.sh          # Unix shim: builds and runs a checkout
│   ├── termote.ps1         # Windows PowerShell shim: builds and runs a checkout
│   ├── termote-plugins.sh  # Writes the termote-plugins marketplace at each stable release
│   └── package-desktop.sh  # Builds and packages the desktop app for one platform
├── tests/                  # Test suite
│   ├── test-termote.sh     # Unix shim tests
│   ├── test-termote.ps1    # Windows shim tests
│   ├── test-install.sh     # Unix installer tests
│   ├── test-install.ps1    # Windows installer tests
│   └── test-entrypoints.sh # Container entrypoint tests
├── herdr-plugin/           # Herdr plugin (open a pane in Termote, QR code, start/stop)
├── video/                  # Remotion intro video
└── website/                # Astro Starlight docs site
    └── src/content/docs/   # MDX documentation

开发

make build          # Build the PWA and embed it in server/termote
make test           # Run all tests
make health         # Check service health
make clean          # Stop containers
make build-desktop  # The desktop app (needs the system libraries in desktop/README.md)
make test-desktop   # Its tests (not part of make test, same libraries)

# E2E tests (requires running server)
./scripts/termote.sh start           # Start server first
pnpm --filter termote test:e2e       # Run Playwright tests
pnpm --filter termote test:e2e:ui    # Run with UI debugger

手动测试: 参见自测清单

故障排除

会话未持久化

  • 检查 tmux:tmux ls
  • Termote 通过 tmux new-session -A 连接会话(attach-or-create)

WebSocket 错误

  • 检查 Termote 日志:termote container logs(容器模式)或 termote logs server(原生模式)
  • 终端 WebSocket 是 /api/mux/stream,由 Termote 自己提供,没有需要另外检查的终端进程

移动端键盘问题

  • 确保存在 viewport meta 标签
  • 在真机上测试,不要使用模拟器

原生模式:服务器未启动

termote status             # What the running server reports
termote logs server        # Or: termote logs follow
lsof -i :7680              # Check what holds the port
termote start --fresh      # If the saved password can no longer be read

安全说明

  • 默认:仅 localhost -- 除非使用 --lan 参数,否则不暴露到局域网
  • 默认启用基本认证 -- 使用 --no-auth 可为本地开发禁用;密码由首次 termote start 创建并加密保存
  • Host 白名单 -- 拒绝 Host 头无法识别的请求(防御 DNS 重绑定);可用 --allow-host 添加受信任的名称,没有能关闭此检查的通配符
  • Origin/CSRF 防护 -- 会改变状态的 /api/mux/* 请求和 /api/mux/stream WebSocket 会拒绝跨站的 Sec-Fetch-Site/Origin,并要求同源的一次性流令牌
  • 内置暴力破解防护 -- 速率限制(每 IP 每分钟 5 次失败尝试,每个 IPv6 /64 每分钟 20 次)
  • Herdr 后端 -- 会暴露主机上的所有 Herdr 工作区,因此除非同时指定 --allow-herdr-no-auth,否则拒绝 --mux herdr --no-auth
  • Zellij 后端 -- 与 tmux 一样,会暴露该用户所有正在运行的 Zellij 会话(--no-auth 没有额外防护);按键和 Chat 消息只通过 Termote 的 Zellij 客户端终端送达窗格,绝不经由其他本地用户可读取的进程参数
  • herdr-core 后端 -- herdr-core 没有自己的登录,因此除非同时指定 --allow-hc-no-auth,否则拒绝 --mux hc --no-auth,并且拒绝 container up --mux hc
  • 服务文件不含机密 -- systemd 单元、launchd 代理和计划任务中都不包含密码
  • 生产环境请使用 HTTPS(Tailscale)
  • 限制在受信任的网络/VPN 中使用
  • 已登录或已配对的设备能做什么,以及设备丢失时该怎么办:安全模型

其他项目

项目 描述
GitHub Flex 跨浏览器扩展(Chrome 和 Firefox),为 GitHub 界面增加生产力功能
TabRest Chrome 扩展,自动卸载不活动的标签页以释放内存
Specpin 将实时的、Git 版本化的业务规格固定到运行中的 Web UI 元素上(浏览器扩展 + Go sidecar)

许可证

MIT

探索相关项目

加载中…