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
Release not published yet? A 404 is expected before the Preview Release exists. Testers can install a supplied native binary with 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
Preview username limit: only ASCII letters, digits, ., _, 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.

Tunlite SSH execution and checks use 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

CommandModeOwnership
tunlite run dbforegroundCurrent terminal; Ctrl-C stops it
tunlite start dbbackgroundNative service for this login session
tunlite enable dbpersistentNative service now and on future logins
tunlite 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
Use system OpenSSH tools to manage keys. Tunlite never generates credentials, copies public keys, weakens host-key checking, or modifies remote authorized_keys.
One declaration, local scope: new services default to 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.

Use the official Agent Skill →

06 · SUPPORT

Preview support matrix

PlatformArtifactNative lifecycle
macOS 12+ · Intel / Apple Siliconmacoslaunchd user + system scopes; system requires admin
Linux · x64linux_x64systemd user scope; system unsupported
Linux · arm64linux_arm64systemd user scope; system unsupported
Windowsnot publishedrepository compiles; Monitor rejects the platform before TUI; native lifecycle deferred

Cross-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.