Nonla Tunnel

Share a local app from your own VPS

Expose local HTTP apps through a server you own: subdomain routing, Traefik TLS and an ngrok-style CLI. No dashboard; it is built to be driven by scripts and AI agents.

LinuxmacOSWindowsMIT
$ nonla-tunnel http 3000 --name my-api
Forwarding https://my-api.tunnel.example.com -> http://localhost:3000
# background mode returns once the URL is live
$ nonla-tunnel http 3000 --name my-app -d
$ nonla-tunnel status
$ nonla-tunnel stop my-app

Install

The server runs next to Traefik on your VPS. Each agent installs the client with a one-time invite, so the admin token never leaves the server.

Latest release on GitHub

Server (Docker, next to Traefik)
mkdir -p nonla-tunnel && cd nonla-tunnel
curl -fsSL -o docker-compose.yml \
  https://raw.githubusercontent.com/devnonla/nonla-tunnel/main/docker-compose.yml
curl -fsSL -o .env.example \
  https://raw.githubusercontent.com/devnonla/nonla-tunnel/main/.env.example
cp .env.example .env   # set DOMAIN, AUTH_TOKEN, TRAEFIK_DYNAMIC_DIR
docker compose pull && docker compose up -d

Point *.tunnel.example.com and tunnel.example.com at the VPS first: two A records.

Invite an agent (on the server)
docker compose exec nonla-tunnel nonla-tunnel-server invite --label agent-1
Client (Linux and macOS)
curl -fsSL https://tunnel.example.com/install | sh -s -- --invite nti_…

On Windows: $env:NONLA_INVITE='nti_…'; irm https://tunnel.example.com/install.ps1 | iex

From DNS to a public URL

Four steps, once. After that, opening a tunnel is one command.

  1. 01

    Point DNS

    Two A records to your VPS: the wildcard *.tunnel.example.com and the apex tunnel.example.com.

  2. 02

    Deploy the server

    Run the Docker image next to Traefik. It writes Traefik routes; Traefik handles TLS with Let's Encrypt.

  3. 03

    Invite an agent

    Create a one-time invite. The agent trades it for its own credential on first use.

  4. 04

    Open a tunnel

    nonla-tunnel http 3000 --name my-api prints the public https URL as soon as it is live.

How a request reaches your laptop

Traefik terminates TLS for every tunnel and for the control channel. The server only writes route files Traefik watches.

A visitor opens https://my-api.tunnel.example.com

Internet

HTTPS

Traefik

TLS, Let's Encrypt

tunnel router

nonla-tunnel-server

on your VPS

tunnel

localhost:3000

your laptop

The client keeps the tunnel open

nonla-tunnel http 3000

client

TLS :443

Traefik

connect.<domain>

TCP :6200

nonla-tunnel-server

writes traefik/dynamic

Built for agents, safe to hand out

Commands never prompt, and every agent gets its own revocable credential.

One-time invites

An invite is single use and expires (24 hours by default). A leaked or used invite is worthless.

Per-agent credentials

List and revoke each agent's credential. A revoked agent's live tunnels drop within about 15 seconds.

TLS control channel

Clients connect to connect.<domain> over TLS on port 443, terminated by Traefik.

Names you keep

A tunnel name belongs to the first client that used it; others can't take it over.

Agent-friendly CLI

http -d returns once the public URL is live; uninstall takes --yes. Exit codes and output are predictable.

Verified installs

Installers and upgrade check every binary against the release's SHA256SUMS.txt.

Every desktop

Clients for Linux (static, x86_64 and arm64), macOS (Apple Silicon and Intel) and Windows 10/11.

Limits built in

128 concurrent requests and 100 requests per second per tunnel. Wrong tokens wait a second; 10 failures block the IP for a minute.

Give your agent the skill

Works with any coding agent. Give it your server domain and an invite, and point it at “Using it from an agent” in the README: enroll once, then open tunnels with -d and --name.

On Claude Code, the repo is also a plugin with a skill that knows the formats and commands:

Claude Code
/plugin marketplace add devnonla/nonla-tunnel
/plugin install nonla-tunnel@nonla-tunnel

Open source, MIT

Read the code, file an issue or send a pull request. Every release ships from GitHub.