Tunnels for localhost

Your localhost, on a public HTTPS address

Run one command and get a link anyone can open. For webhooks, demos and testing your app on a real phone.

$ ktunx http 3000
Status online
Account octocat
Forwarding https://k7qz-x3m9q2wbna.ktunx.foo -> localhost:3000
14:02:11 GET / 200 41ms
14:02:12 GET /assets/index.js 200 12ms
14:02:15 POST /webhooks/stripe 200 88ms

Three steps, once

  1. 1

    Install the CLI

    Needs Node.js 20 or newer.

    npm install --global @ktunx/tunnel
  2. 2

    Save your token

    Sign in with GitHub and copy the token from your dashboard.

    ktunx login <token>
  3. 3

    Open a tunnel

    Point it at any local port. The public address appears at the top of the terminal.

    ktunx http 3000

What you get

HTTPS by default

Every tunnel gets its own address on ktunx.foo with a valid certificate.

Addresses that stay

With Pro, name a tunnel and it gets the same address every time, even after a restart.

WebSockets included

Hot reload and live connections work through the tunnel.

Survives a dropped connection

If your Wi-Fi blinks, ktunx reconnects and keeps the same address.

Works from Node.js

Open tunnels from your own scripts and tests with the same package.

Every request in view

Method, path, status and timing scroll by as requests arrive.

Questions and answers

What is ktunx?

ktunx gives a server running on your computer a public HTTPS address. Run one command and anyone can open your local app at an address on ktunx.foo, with a valid certificate. Requests travel to your machine over one encrypted connection that your computer opens, so there is nothing to configure on your router or firewall.

What can I use it for?

Receiving webhooks from Stripe, GitHub, Shopify or Telegram while you develop, OAuth and payment callbacks that need a public HTTPS URL, showing work in progress to a client or a colleague, and testing your site on a real phone or tablet.

What do I need to run it?

Node.js 20 or newer on macOS, Windows or Linux, and a free ktunx account. Install the command with npm install --global @ktunx/tunnel, save your token once with ktunx login, and you are ready. Nothing to set up on your router or firewall.

Is ktunx free?

Yes. Sign in with GitHub, copy your token and open tunnels with random addresses, within fair-use limits. ktunx Pro, a small monthly subscription, adds named tunnels, your own handle and higher limits; your dashboard shows both plans.

Does it work with Vite, Next.js and other dev servers?

Yes, including WebSockets, so hot reload keeps working through the tunnel. Dev servers that check the host name need the tunnel domain allowed, for example .ktunx.foo in the allowedHosts setting of Vite.

Can I keep the same address?

Yes, with ktunx Pro. Give a tunnel a name, for example ktunx http 3000 --name api, and it gets the same address every time, made of your account handle and that name. On any plan, if your connection drops, ktunx reconnects and keeps the address.

Is my traffic private?

Visitors reach your tunnel over HTTPS, and the connection between ktunx and your computer is encrypted too. ktunx does not store the content of requests. Anyone who knows the address can open it, so only tunnel what you are happy to share, and close the tunnel when you are done.

Can I open a tunnel from my own code?

Yes. The same npm package that installs the command also exports connect(), which opens a tunnel from Node.js with your token and an optional name. That suits test setups, preview environments and scripts.