安全、轻量的远程终端中继方案。通过 QUIC 协议连接 Agent 和客户端,无需公网 IP、无需 SSH 端口暴露。
选择你需要的组件。Server 部署一台,Agent 装在被控机器上,Client 装在你的设备上。
2026-10-12 更新 · 三个平台使用同一套 Go 代码。安装脚本同时下载 relayexec、relaycp、relaysync。
与 Linux、Windows 共用 Go 实现。支持 Apple Silicon / Intel,可由当前用户的 LaunchAgent 运行。
下载 Apple Silicon 下载 Intel 安装脚本下载 SHA-256 校验清单 · 首次安装默认连接东京服务器;已有配置、配对码和权限设置会保留。
macOS 客户端 1.0.0,仅支持 Apple M 系列芯片(M1 / M2 / M3 / M4 及后续),要求 macOS 26.2 或以上。此版本不作为通用版本提供,不支持 Intel Mac 和 macOS 15。
下载 M 系列版(macOS 26.2+)三步即可开始:部署 Server → 启动 Agent → 客户端输入配对码连接。
# 解压后进入目录 cd server/ # 启动(后台运行,自动写日志) ./start.sh # 带公网 IP 参数(用于自签证书 SAN) ./relayterm YOUR_PUBLIC_IP # 查看日志 / 停止 ./logs.sh -f ./stop.sh
# 登录获取 token curl -X POST http://SERVER_IP:8080/admin/login \ -d '{"username":"admin","password":"admin_pass"}' # 查看在线 Agent curl -H "Authorization: Bearer TOKEN" \ http://SERVER_IP:8080/admin/agents
admin 密码:admin_passcurl -fsSL --noproxy '*' https://www.made2020.cn/rt6k/install.sh \
-o install-relayterm.sh
sh install-relayterm.sh --owner YOUR_ACCOUNT
使用普通用户运行。安装后会显示配对码和 machine_id,并注册为当前用户的后台服务。
$web = New-Object System.Net.WebClient
$web.Proxy = $null
$web.DownloadFile('https://www.made2020.cn/rt6k/i.ps1', "$PWD\install-relayterm.ps1")
powershell -NoProfile -ExecutionPolicy Bypass `
-File .\install-relayterm.ps1 -Owner YOUR_ACCOUNT
Windows 安装器使用当前用户目录,不需要管理员权限。把 YOUR_ACCOUNT 换成 RelayServer 用户系统中的账号。
--owner 控制账号列表中的可见性;--name 设置客户端显示的机器名称。AI 远程执行接口和同步删除默认关闭,需要时显式开启:Linux / macOS 安装器使用 --allow-exec、--allow-delete;Windows 使用 -AllowExec、-AllowDelete。终端会话和文件传输按现有 Agent 配置工作。
# Linux / macOS ~/.local/bin/relayterm-agent --version sh install-relayterm.sh --status # Windows powershell -NoProfile -ExecutionPolicy Bypass ` -File .\install-relayterm.ps1 -Status
下载文件可使用 SHA-256 清单核对。Windows 客户端首次启动账号密码为空,只记住上次成功登录的凭据。