Keeping SSH tunnels alive is a chore: pros juggle autossh, a systemd unit per tunnel, and a pile of -L/-R/-D flags — and reconnect by hand when one drops; newcomers don't even know where to start. tunlite folds it into one command: type it yourself, or just tell an AI Agent — it builds the tunnel, connects, and reconnects on its own.
挂 SSH 隧道有多烦,用过的都懂:老手要配 autossh、写 systemd 单元、记一堆 -L/-R/-D,断了还得手动重连;新手连免密、参数都不知道从哪下手。tunlite 全收进一个命令——自己敲,或用大白话交给 AI Agent,它替你建好、连上、断了自动重连。
--json and stable exit codes on every command, plus a bundled Agent skill — an AI Agent manages your tunnels end-to-end.每个命令都带 --json 和稳定退出码,还内置一份 Agent skill —— AI 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 文件。
Install with your AI Agent让 AI Agent 帮你装
Read and follow https://tunlite.dev/skill.txt
to install tunlite (an SSH tunnel manager) and its skill.
— or install it yourself ——— 或者自己装 ——
npx tunlite install
Prefer curl, or no Node? More install options →想用 curl,或没装 Node?更多安装方式 →
Everything else — multi-forwards, daemon-less run, jump hosts, tags, webhooks — is in the full documentation →
其余的 —— 多转发、无守护进程的 run、跳板机、标签、webhook —— 都在完整文档里 →
tunlite brings it up and keeps it connected.建一条隧道 —— tunlite 帮你连上,并一直保持在线。
tunlite monitor — a live dashboard for every tunnel's state, with auto-reconnect in front of you.tunlite monitor —— 每条隧道的状态尽在掌控,守护进程在你眼前自动重连。