tunlite replaces autossh + a systemd unit per tunnel with one declarative CLI. Define named tunnels once; a tiny zero-dependency daemon keeps them connected, restarts them at login, and sets up passwordless access — and every command speaks --json, so agents drive it as easily as you do. tunlite 用一个声明式 CLI 取代「autossh + 每条隧道一个 systemd 单元」。一次定义命名隧道,由一个零依赖的小守护进程保持连接、开机自启、自动免密打通 —— 每个命令都讲 --json,agent 用起来和你一样顺手。
--json and stable exit codes on every command, plus a bundled agent skill — coding agents manage your tunnels end-to-end.每个命令都带 --json 和稳定退出码,还内置一份 agent skill —— coding agent 能端到端地接管你的隧道。
Pure Node.js standard library — no npm packages. All it needs is Node ≥ 18 and the system ssh it wraps.纯 Node.js 标准库,不装任何 npm 包。机器上只要 Node ≥ 18 和它封装的系统 ssh。
Named tunnels a daemon keeps alive with backoff reconnect, and the OS restarts at login — no per-tunnel unit files to hand-write.命名隧道由守护进程退避重连保活、开机由系统拉起 —— 不用再给每条隧道手写一个 unit 文件。
tunlite monitor — a live, top-style dashboard; the daemon auto-reconnects a dropped tunnel right in front of you.tunlite monitor —— 实时 top 式面板;守护进程会在你眼前把掉线的隧道自动重连回来。
Install安装
npx tunlite install
Prefer curl, or no Node? More install options →想用 curl,或没装 Node?更多安装方式 →
Define & bring up定义并启动
# reach server's :80 on your local :8080 $ tunlite add local web-8080 --to user@server --remote 80 --local 8080 $ tunlite up $ tunlite status
That's the whole flow. Everything else — forwards, jump hosts, tags, webhooks, the agent skill — is in the full documentation → 整个流程就这些。其余的 —— 多转发、跳板机、标签、webhook、agent skill —— 都在完整文档里 →