Public URLs for localhost, from inside Claude Code.
Give Claude Code public HTTPS URLs for any localhost service. Install the rustunnel plugin or MCP server in one command and create, list, and close tunnels in plain language.
1. Install
brew tap joaoh82/rustunnel && brew install rustunnel2. Get an API token
Sign up free at rustunnel.com and create a key under Dashboard → API Keys. Self-hosting? Generate a token on your own server. Either way, it goes in RUSTUNNEL_TOKEN below — you never paste it into chat.
3. Connect Claude Code
Plugin (recommended — zero config):
/plugin install rustunnelOr configure the MCP server manually:
{
"mcpServers": {
"rustunnel": {
"command": "rustunnel-mcp",
"args": [
"--server", "eu.edge.rustunnel.com:4040",
"--api", "https://eu.edge.rustunnel.com:8443"
],
"env": { "RUSTUNNEL_TOKEN": "<your-token>" }
}
}
}4. Ask for a tunnel
Paste this prompt (or just describe what you need — the agent picks the right tool):
I need a public HTTPS URL for my localhost:3000 server. Use rustunnel — its MCP tools or the rustunnel CLI — to open the tunnel and give me the public URL when it's ready.
The agent gets six tools — create_tunnel, list_tunnels, close_tunnel, get_connection_info, list_regions, and get_tunnel_history — covering HTTP, TCP, and UDP tunnels, custom subdomains, regions, P2P, and load-balanced pools with health checks.
npx skills add https://rustunnel.com/skills/rustunnel