An HTTPS URL for localhost in one command#
Start whatever you are building on its usual port, then run one command next to it. There is no binary to install and no config file:
npx otterkit login
npx otterkit tunnel 3000 ✓ Tunnel ready
URL https://tunnel-a1b2c3d4.otterkit.app
Target 127.0.0.1:3000
Rate 1 credit/hr · never more than 300/month
200 GET / (12ms)
200 GET /api/users (8ms)That localhost URL now works from anywhere: a phone, a teammate's browser, a webhook provider, an AI agent in the cloud. It is an HTTPS tunnel, with a certificate in place from the first request, and visitors go straight to your app with no warning page in between. Change the port number to tunnel localhost to the internet from any other dev server, such as 5173 for Vite or 8000 for Django.
How it works: CLI, Mac app and agent-provisioned tunnels#
The program on your machine opens an outbound connection to OtterKit's edge and keeps it open. A request to the public URL travels down that connection to your local port, and the response goes back the same way. Because the connection is outbound, it works behind a home router, a NAT or an office firewall with no port forwarding. There are three ways to create a tunnel to localhost:
- The CLI.
npx otterkit tunnel <port>, with flags for a stable name, a password, background mode and auto-stop. - The Mac app. A free native app that lists every port with something listening on it and puts an Expose button next to each. It shows live traffic for every tunnel you or your agents have open.
- An agent. Claude Code, Cursor or any MCP client can open a tunnel itself with the
tunnel_createtool and hand you the URL. More on that below.
All three use the same account, so a tunnel opened in one shows up in the others.
Free tier and what it includes#
If you are looking for a free tunneling service, here is exactly what OtterKit gives you at no cost, and where free tunneling ends:
- 10 free credits on a new account, with no card. One credit is one connected hour of a tunnel, so that is ten hours of public HTTPS URLs. Billing pauses while a tunnel is disconnected.
- Every feature during those hours: stable names, Basic auth, request capture, inspect and replay. Nothing is held back for a paid plan.
- The software. The CLI, the Mac app and the MCP server are free. Only live endpoints spend credits.
- A webhook URL on the try page with no account at all, if all you need is to see what a sender posts. It lasts 30 minutes and captures up to 50 requests.
OtterKit has no permanent free plan. After the free credits a tunnel costs $0.01 per connected hour and never more than $3 in any 30 days: eight hours a day on twenty working days is $1.60 a month. The smallest credit pack is $5 and there is no subscription. See pricing for the full list.
Custom domains and persistent URLs#
A random URL is fine for a quick look. Webhook settings, OAuth redirect URIs and bookmarks need one that stays put. Pass --subdomain and the name is reserved to your account the first time you use it:
npx otterkit tunnel 3000 --subdomain my-api
# https://my-api.otterkit.app, every timeYou can reserve up to 10 names per account at no extra charge. A tunnel's persistent address is always its .otterkit.app name. A hostname on your own domain attaches to a webhook endpoint, not to a tunnel: add one CNAME record and the certificate is issued and renewed for you. See custom domains.
Built-in request inspection and replay#
Every request through a tunnel is captured to a log on your machine: method, path, headers, body, status and duration. You don't need a second tool to see what a caller sent.
# Watch requests as they arrive, or only the failures
npx otterkit inspect my-api --follow
npx otterkit inspect my-api --follow --status 5xx
# Send the latest captured request into your server again
npx otterkit replay my-api --target 127.0.0.1:3000Replay is what makes webhook work bearable: trigger the event once, then replay it as many times as it takes to fix the handler. Bodies over 64 KB are stored as metadata only, and --no-log turns capture off. See inspect and replay.
Tunnels for AI agents: MCP servers, webhooks, previews#
OtterKit assumes the thing opening the tunnel may be an agent, so every step works without a dashboard.
Previews#
An agent that has just built a web app can create its own preview URL and hand it back, with a timer so it cleans up after itself:
npx otterkit tunnel 3000 --daemon --ttl 2h --json
# {"subdomain":"tunnel-…","publicUrl":"https://tunnel-….otterkit.app","pid":51423, ...}MCP servers#
Claude on the web cannot reach an MCP server on your machine. One command gives a local server a public link to paste into any MCP client:
npx otterkit mcp publish ./server.jsThe guide to testing a local MCP server walks through it.
Webhooks#
Point a provider at a tunnel and the agent can block until the event arrives, then read the payload as JSON:
npx otterkit tunnel 3000 --daemon --subdomain checkout-dev
npx otterkit await checkout-dev --method POST --count 1 --timeout 120s --jsonTo give an agent all of this as tools, add the MCP server with claude mcp add otterkit -- npx otterkit mcp, or install the agent skill. Because each tunnel is capped at $3 in any 30 days, an agent that forgets to stop one can't run up a bill.
Getting started on Mac, Linux and Windows#
The CLI is the same on all three. It needs Node.js 18 or later and runs through npx:
| System | What to do |
|---|---|
| macOS | Run npx otterkit tunnel 3000 in Terminal, or use the free Mac app (macOS 14 or later, Apple Silicon and Intel). |
| Linux | Run npx otterkit tunnel 3000. Add --daemon on a server or in CI. |
| Windows | Run npx otterkit tunnel 3000 in PowerShell or Windows Terminal. |
npx otterkit login # once per machine
npx otterkit tunnel 3000 --subdomain my-api # a stable URL
npx otterkit tunnel 3000 --auth me:secret # require a password
npx otterkit tunnel 3000 --daemon --ttl 8h # in the background for the workday