Skip to content

rustunnel

Tunnel for exposing localhost, webhooks and AI agents, hosted or self-hosted

Copyleft (OSI) · AGPL-3.0

Listed by , founder & editor

74

Health

Active

Overview

Stars

668

Last commit

19 days ago

Nov 2026

Repository age

8 months

since Mar 2026

Latest version

v0.8.9

Nov 2026

Contributors

–

3 active in 90 days

Releases

25

last 12 months

Language

Rust

rustunnel exposes services on your machine through a public server. The client connects over encrypted WebSocket, and the server terminates TLS and proxies HTTP and TCP traffic. It is written in Rust and includes a live dashboard, Prometheus metrics and audit logging.

You can run your own server on Ubuntu with systemd or in Docker, or connect to the managed edge servers in Helsinki, Hillsboro and Singapore. The client picks the nearest region by default. A setup wizard stores the server address and your token, then a command such as rustunnel http 3000 opens a tunnel. A REST API and a --json output mode help with scripting.

It also ships an MCP server, so agent tools such as Cursor, Claude Code and Windsurf can open tunnels. It is licensed AGPL-3.0. The hosted service has a free tier with 2 concurrent tunnels and a pay-as-you-go plan. Self-hosting has no tunnel cap. It is a direct replacement for Ngrok.

Who it's for

Developers testing webhooks against local code

One command gives a public HTTPS URL for a local port, with a dashboard to watch traffic.

Skip if: You need OAuth, OIDC or JWT authentication in front of the tunnel.

Teams that want to run their own tunnel server

The server runs on one Ubuntu host or in Docker, with metrics and audit logs built in.

Skip if: You do not want to manage DNS, TLS certificates and a public server.

Users of AI coding agents

The bundled MCP server lets agents open tunnels without manual steps.

Skip if: Your agent tooling has no MCP support.

The problem it solves

Services running on your laptop are not reachable from the internet, which blocks webhook testing and demos. Commercial tunnel services charge for custom domains and extra tunnels. rustunnel gives you the same workflow on a server you control, or on a metered hosted service.

Strengths

  • Proxies both HTTP and TCP over encrypted WebSocket with TLS termination
  • Live dashboard, Prometheus metrics and audit logging included
  • Managed edge servers in three regions, with automatic nearest-region selection
  • Includes an MCP server for AI agent tools
  • Self-hosting has no tunnel limit

Trade-offs

  • No built-in OAuth, OIDC or JWT authentication
  • No traffic transformation
  • No rate limiting
  • AGPL-3.0 carries network copyleft obligations if you modify and offer it as a service

rustunnel replaces

Self-host rustunnel

Self-hostable
Yes

Quick start

rustunnel setup

From the project's own install instructions. Check the docs for production settings.

In the community

Frequently asked questions

Is rustunnel free?

Self-hosting is free. The hosted service has a free Hobby plan with 2 concurrent tunnels, random subdomains and 1 GB per month. Pay-as-you-go has a $3 monthly minimum and $0.10 per GB.

Can I self-host it?

Yes. You can deploy the server on Ubuntu with systemd or with Docker. Self-hosted use has unlimited tunnels and unmetered bandwidth.

How is it licensed?

It uses AGPL-3.0.

Does it work with AI agents?

Yes. It ships an MCP server with one-click setup for Cursor and guides for Claude Code, Claude Desktop and Windsurf.

Other Ngrok alternatives

Compare all 3 Ngrok alternatives →

Similar tools in Tunnels, VPNs and networking

Tailscale

Tunnels, VPNs and networking

WireGuard-based mesh VPN for teams and individuals who want SSO-managed private networks

40k 3.5k today Thriving BSD-3-Clause

Pangolin

Tunnels, VPNs and networking

Self-hosted zero trust access platform with reverse proxy and WireGuard VPN for small

24k 860 3 days ago Thriving AGPL-3.0

Netmaker

Tunnels, VPNs and networking

Self-hosted WireGuard network manager with admin UI for mesh, gateway and site-to-site

12k 668 6 days ago Active Unknown

Replaces Tailscale

frp

Tunnels, VPNs and networking

Self-hosted reverse proxy that exposes local TCP, UDP and HTTP services behind NAT

111k 15k 14 days ago Thriving Apache-2.0

bore

Tunnels, VPNs and networking

Minimal self-hosted TCP tunnel in Rust for exposing local ports through a public server

12k 534 10 months ago Dormant MIT

nebula

Tunnels, VPNs and networking

Certificate-based mesh overlay network for teams that run their own infrastructure

19k 1.2k today Thriving MIT

Replaces Tailscale