V1.0.0-PREVIEW.1
Start with one connection.
Tunlite is a single Go binary that turns native OpenSSH forwards into named, OS-managed connections. The preview supports macOS and Linux; Windows is not published yet.
01 · INSTALL
Install the native binary
The only runtime dependency is the system ssh. The bootstrap downloads the platform archive and verifies its SHA-256 before installation.
$ command -v ssh $ curl -fsSL https://raw.githubusercontent.com/tunlite/tunlite/main/bootstrap.sh | sh $ ~/.local/bin/tunlite version --json
install -m 0755 ./tunlite ~/.local/bin/tunlite.02 · DECLARE
Create your first connection
Use the same forward syntax as OpenSSH. Forward flags are repeatable, and add creates a stopped native service—it does not open a connection.
# local TCP forward $ tunlite add db -L 5432:localhost:5432 deploy@app01 # remote publish and SOCKS proxy $ tunlite add preview -R 9000:localhost:3000 deploy@app01 $ tunlite add socks -D 1080 deploy@app01
., _, and -. UPN/multi-@, +, and DOMAIN\user forms are unsupported, and there is no separate -l option.Identity files, jump hosts, groups, and safe OpenSSH Key=Value options are explicit fields:
$ tunlite add private-db -p 2222 \
-i ~/.ssh/work_ed25519 -J bastion@example.com \
-L 5432:localhost:5432 --group work deploy@app01
set patches only supplied fields. Remove optional SSH fields with the repeatable clear operation:
$ tunlite set private-db --clear identity --clear jump --clear options
The clearable fields are exactly identity, jump, and options. Unknown or duplicate clears, and setting plus clearing the same field in one command, are rejected.
ssh -F none. They do not inherit aliases, commands, hidden forwards, or multiplexing from ~/.ssh/config; use an explicit host and explicit safe arguments.03 · RUN
Choose who owns the lifecycle
tunlite run dbforegroundCurrent terminal; Ctrl-C stops ittunlite start dbbackgroundNative service for this login sessiontunlite enable dbpersistentNative service now and on future loginstunlite enable db --scope systempersistentmacOS LaunchDaemon; administrator authorization required$ tunlite check db --timeout 12 $ tunlite start db $ tunlite status db $ tunlite logs db --lines 100 $ tunlite stop db
authorized_keys.user. An existing service keeps its scope unless enable --scope user|system explicitly migrates it. Scope is not exported with the Connection. macOS supports system scope; Linux currently reports it unsupported.04 · OBSERVE
State without guesswork
Status separates five questions that older tunnel tools often collapse into one word:
serviceStateIs a native definition registered?modeStopped, foreground, background, or persistent?processStateIs the provider process actually running?healthDo configured endpoint probes pass?consistencyStateDoes the system definition match Tunlite?scopeIs the local native service owned by the user or the system?$ tunlite doctor db --offline $ tunlite resolve db --use tunlite --dry-run $ tunlite resolve db --use system
Drift repair always names the source of truth. There is no silent overwrite of a native service definition.
05 · AUTOMATE
A versioned interface for agents
Use --json --non-interactive and verify protocolVersion before mutation. Use --dry-run whenever the command supports it.
Non-interactive system-scope operations never wait for a password. Arrange authorization outside Tunlite so the platform's non-interactive privilege check succeeds, or handle privilege_required.
$ tunlite capabilities --json --non-interactive $ tunlite schema cli --json --non-interactive $ tunlite add db -L 5432:localhost:5432 deploy@app01 \ --dry-run --json --non-interactive
Batch operations return one result per connection. Exit code 5 means partial failure; inspect every item instead of treating it as total failure or success.
06 · SUPPORT
Preview support matrix
macoslaunchd user + system scopes; system requires adminlinux_x64systemd user scope; system unsupportedlinux_arm64systemd user scope; system unsupportedCross-compilation is not treated as platform validation. On 2026-08-31, Intel macOS passed the final Universal 2 build check, LaunchAgent release E2E, and an isolated LaunchDaemon USER→SYSTEM→USER→SYSTEM success path with real -L traffic, system set, restart without sudo, disable/remove, and exact cleanup. Ubuntu 24.04 PID 1 systemd Docker E2E passed. Apple Silicon hardware and non-container Linux hosts remain unverified before stable v1.0.0. See the acceptance guide for the exact hardware gates.