Open-source tunnels.
Stop paying for idle time.
Expose localhost, webhooks, and AI agents over a Rust-fast, end-to-end encrypted edge. Pay-as-you-go from $3/mo — idle time always free. Or self-host free under AGPL.
Expose localhost, webhooks, and AI agents over a Rust-fast, end-to-end encrypted edge. Pay-as-you-go from $3/mo — idle time always free. Or self-host free under AGPL.
Solution pages for webhook testing, sharing localhost, AI agents, TCP/SSH, game servers, and IoT — each with real CLI commands and a clear CTA.
rustunnel works with any MCP harness — Claude Code, Claude Desktop, Codex, Cursor, Windsurf, Cline, and custom agents — via a one-command installer or copy-paste config. Setup is one step: get an API key, set RUSTUNNEL_TOKEN, and your agent can create, manage, and close tunnels in plain language. See the Agent Integration guide, or jump to per-harness setup in the AI tools hub.
Claude Code, Claude Desktop, Codex, Cursor, Windsurf, Cline, or your own custom agent. One MCP server, copy-paste config for every client.
rustunnel-mcpRun the installer, paste your API key, and it writes the right config for your harness — merging into existing JSON or appending Codex's TOML automatically.
integrations/install.shHTTP, TCP, and UDP tunnels, custom subdomains, regions, P2P, and load-balanced pools with health checks — every feature, drivable in natural language.
“load-balance these two backends”Stop dealing with complex network setups. Expose localhost to the internet with secure, end-to-end encrypted tunnels — and run the same Rust server yourself when you need full control.
Written entirely in Rust and deployed globally. Minimal memory footprint, high concurrency, and negligible latency overhead.
Use our globally distributed relay network for hassle-free tunneling, or deploy the open-source relay on your own infrastructure.
End-to-end encrypted multiplexed connections. Automatic Let's Encrypt TLS provisioning for all generated public endpoints.
Run multiple backends behind one subdomain or TCP port. Inbound connections are dispatched at random across healthy members — perfect for hot-spare backups or zero-downtime rollouts.
Configure TCP or HTTP probes per tunnel and rustunnel automatically removes unhealthy backends from the rotation. Failover happens client-side, so the edge never wastes a request on a sick upstream.
Two clients can connect peer-to-peer with NAT hole punching. The server signals; bytes flow directly between peers via QUIC, with automatic relay fallback when direct doesn't work.
Why we built a pay-as-you-go alternative to flat-fee dev tunneling
88% wasted on idle time
Every cent goes toward actual usage
Minimum is credited to your usage — not a fee
A direct, named comparison for the question every ngrok alternative visitor asks. Factual only — no snark.
| Feature | rustunnel | ngrok |
|---|---|---|
| Price model | Hobby free · PAYG $3/mo min credited at $0.10/GB · self-host free | Free (limited) · Hobbyist ~$8–10/mo · PAYG $20/mo + usage* |
| Idle cost | $0 while tunnels sit unused (min credited toward usage) | Paid plan fee still applies when endpoints sit idle |
| Custom subdomains | Yes on PAYG & self-host | Paid plans (not free tier) |
| Open source / self-host | AGPL — self-host free forever | Closed source · self-host is Enterprise sales |
| MCP for AI agents | First-class MCP server (Claude Code, Cursor, …) | No first-class MCP product surface |
| P2P tunnels | Yes (direct + relayed) | No equivalent open P2P mode |
| Load balancing + health checks | Named groups with TCP/HTTP probes | Available on higher tiers / product suite |
*ngrok figures from ngrok.com/pricing (checked 2026-07-15). Plans and included usage change — re-verify before budgeting. Deeper dive: rustunnel as an open-source ngrok alternative.
Start tunneling for free. Upgrade to pay-as-you-go when you need custom subdomains and more tunnels — billed per gigabyte, not per tunnel.
Perfect for testing webhooks and sharing progress.
For developers who need custom subdomains and no monthly commitment.
$3/month minimum — pay only for what you use beyond that.
Deploy on your own infrastructure. Open-source under AGPL.
The short version of what rustunnel is, how it’s priced, and how it compares to other tunneling tools.
rustunnel is an open-source secure tunnel that exposes services running on your laptop or private network to the public internet over an encrypted WebSocket connection. It is similar to ngrok or Cloudflare Tunnel, but written in Rust, AGPL-licensed, and available either as a managed cloud with pay-as-you-go billing or as a self-hosted server you run on your own infrastructure.
Yes. rustunnel offers a free Hobby tier on the managed cloud (two concurrent tunnels with random subdomains) and the entire server is open source under AGPL, so you can self-host it for free with no usage limits. Paid plans add custom subdomains and pay-as-you-go usage with a $3 monthly minimum that is credited against your usage rather than charged on top of it.
Yes. The rustunnel server is published on GitHub under AGPL and ships with a Docker image, a Makefile target, and a systemd service template. Self-hosting gives you unlimited tunnels, custom subdomains, and full control over the relay; you only need a VPS with a public IP and a wildcard DNS record pointed at it.
HTTP/HTTPS with automatic Let's Encrypt TLS, raw TCP on a configurable port range, UDP forwarding, and direct peer-to-peer tunnels with NAT hole-punching over QUIC. Tunnels can be grouped behind a single subdomain or TCP port for client-side load balancing with TCP and HTTP health checks.
The Hobby plan is free forever. The Pay-as-you-go plan has a $3/month minimum that is credited toward usage at $0.10 per GB of bandwidth — if you transfer one gigabyte of traffic in a month you spend the minimum, and idle tunnels cost nothing. Self-hosting is free under AGPL.
Yes. rustunnel ships an MCP server that works with any MCP harness — Claude Code, Claude Desktop, Codex, Cursor, Windsurf, Cline, and custom agents. A one-command installer (integrations/install.sh) or copy-paste config wires it up; setup is one step — get an API key, set RUSTUNNEL_TOKEN, done. From there your agent can drive the full feature set in natural language: HTTP/TCP/UDP tunnels, custom subdomains, regions, P2P, and load-balanced pools with health checks.
All client-server traffic is end-to-end encrypted with TLS, public HTTPS endpoints get automatic Let's Encrypt certificates, and tunnels are authenticated with API keys you control. The managed cloud routes traffic through regional edges only — payloads are not inspected or logged.
Yes. rustunnel is a drop-in tunnel for testing Stripe, GitHub, Slack, or any other webhook against a service running on localhost. Open an HTTP tunnel on the port your dev server is listening on, paste the public HTTPS URL into the provider's webhook configuration, and inbound deliveries are forwarded straight to your machine over an end-to-end encrypted connection.
Yes. Pay-as-you-go and self-hosted plans let you bind tunnels to a custom subdomain on the rustunnel edge (for example `myapp.eu.edge.rustunnel.com`). When self-hosting, the server is configured against your own wildcard DNS record so you can serve tunnels under any domain you own — there is no per-domain fee.
Both expose local services without opening inbound ports, but the trade-offs differ. Cloudflare Tunnel is free and ties tunnels to a Cloudflare account and DNS zone — convenient if you already use Cloudflare. rustunnel is open source under AGPL, can be self-hosted on any VPS with no vendor lock-in, supports raw TCP and UDP plus direct peer-to-peer connections, and ships an MCP server so AI agents can manage tunnels programmatically.
ngrok is a mature commercial tunnel with free and paid plans (Hobbyist roughly $8–10/mo and Pay-as-you-go from about $20/mo plus usage on public pricing — always re-check ngrok.com/pricing). rustunnel is open source under AGPL, free to self-host, and meters managed-cloud bandwidth with a $3 monthly minimum credited toward usage so idle tunnels cost nothing. rustunnel also ships UDP, P2P tunnels, load-balancing groups with health checks, and a first-class MCP server for AI agents. Prefer ngrok when you need its enterprise packaging or existing org standard; prefer rustunnel when you want open source, self-hosting, or pay-for-usage without a flat idle plan fee.
rustunnel is an open-source tunnel server published under the AGPL licence. Run it on your own VPS for unlimited tunnels, custom domains, and full data sovereignty — no Enterprise contract required. See the self-hosting guide for the Ubuntu + systemd walkthrough.
View on GitHub