Skip to main content
This quickstart takes you from nothing to a live public URL for your local service in three steps: install the rustunnel client, get an auth token, and open a tunnel. The same steps work against the managed cloud at rustunnel.com or your own self-hosted server.

Step 1 — Install the client

This installs both rustunnel (the CLI client) and rustunnel-mcp (the MCP server for AI agent integration). No Rust toolchain required.
Download the archive for your platform from the latest GitHub Release, extract it, and move the binary onto your $PATH.
Requires Rust 1.76 or later.
Verify the installation:

Step 2 — Get an auth token

Access to the hosted service requires an auth token. Create a free account and generate one yourself.
1

Create a free account

Sign up at rustunnel.com.
2

Generate a token

Go to Dashboard → API Keys → Create token and copy the token value.
3

Run the setup wizard

The wizard prompts for your region and token, then writes ~/.rustunnel/config.yml with the correct server address.
Pick a specific region (eu, us, ap) to skip probing, or self-hosted if you run your own server.
If you are self-hosting, skip token requests entirely — use the admin_token you set in your server.toml. See the Self-Hosting guide.

Step 3 — Open your first tunnel

The client prints the public URL as soon as the tunnel is established:
Press Ctrl-C to close the tunnel.

Available regions

The client auto-selects the nearest region by default when region: auto is set in your config.

Next steps

Client Guide

All commands, flags, config options, reconnection behavior, and error reference.

Self-Hosting

Run your own rustunnel server on a VPS with systemd and Let’s Encrypt.

Docker Deployment

Spin up the server locally or in production using Docker Compose.

MCP Server

Let AI agents manage tunnels on your behalf via the Model Context Protocol.