MASTER KEY · PROJECT NAMESPACES · CASCADE REVOKE

The tunnel for AI agents.

Mint a master key once. Your AI assistant runs autonomously with scoped, short-lived child keys and instant cascade revoke. Built for Claude Code, Cursor, Aider, Devin, and the ones not yet named.

$ curl -fsSL https://login.21tunnel.com/install.sh | sh
mtk_master_ delegation Project namespaces One-click cascade revoke

Not building with an AI agent? 21tunnel is also a regular open-source ngrok alternative — public URLs for your localhost, custom domains on the free tier, full request inspector, self-hostable if you need it. The AI-agent shape is what we shipped first; the rest is what we built around it.

Everything you'd reach for, in one binary.

Seven capabilities, all live today. No tier-locked features pretending to be free.

HTTP, TCP, SSH

mytunnel http 3000, mytunnel tcp 5432, mytunnel ssh — same agent, three protocols.

Sticky random subdomains

Random URL stays the same across agent restarts. No flag, no premium upgrade. Pass --subdomain to claim a specific name.

Bring your own domain

Add app.acme.com, server hands you a TXT record, verify, bind. Real ACME challenge — not a string field.

Edge auth (Google sign-in)

Gate any tunnel behind Google OAuth before traffic reaches your localhost. Email + domain allowlists. Pro

Live request inspector

Every inbound request streams to the dashboard over WebSocket. Click any request to inspect headers + body. Replay is wired in code but gated until per-tunnel allowlists ship.

Teams, RBAC, audit log

Owner / admin / member / viewer. Every mutating action lands in a partitioned audit log with per-user activity feed.

AI-agent ready

Paste an mtk_master_ key once; the AI assistant mints its own short-lived project keys, opens tunnels in isolated buckets, and one click cascade-revokes everything.

$ mytunnel projects create feature-x "X"
$ eval $(mytunnel projects keys mint feature-x \
    --ttl 4 --output-env)
$ mytunnel http 3000 --subdomain api
→ https://api-feature-x.21tunnel.com

Built like infrastructure, priced like a side project.

Engineered to outlast the demo. Single-tenant on your own VM when you need it; hosted SaaS until you do.

RUST AGENT
single static binary
Linux (x86_64 + arm64) · macOS · Windows
YAMUX MULTIPLEX
one TLS, N streams
spec'd, public crate
CAPABILITY TOKENS
bincode + HMAC
signed claims, dashboard revocation
POSTGRES + AUDIT
month-partitioned
queryable per-user activity feed