Guide

OtterKit as an ngrok alternative

Looking for an ngrok alternative? OtterKit gives a local port a public HTTPS URL with one command, for a cent an hour and never more than $3 a month per tunnel. It adds always-on webhook endpoints, a free Mac app and an MCP server so AI agents can open and watch tunnels themselves. Here is an honest comparison, including where ngrok is still the better choice.

All docs

Why developers look beyond ngrok#

ngrok is a good tool, and for many jobs it is still the right one. People start searching for an ngrok alternative when one of three things gets in the way:

  • Limits on the free plan. The free plan gives you one auto-assigned domain, 1 GB of data transfer and 20,000 HTTP requests a month, and shows visitors a warning page before any HTML page loads in a browser.
  • Pricing that is hard to predict. A name of your choosing starts on the $10 a month Hobbyist plan. Your own domain starts on Pay-as-you-go, which has a $20 a month base and bills usage on top.
  • Agent workflows. A tunnel only answers while your machine is awake. An AI agent also needs to wait for a webhook, read what arrived and replay it, without a person watching a dashboard.

OtterKit covers the same core job, a public HTTPS URL for a local port, and is built around that third point: every feature works from a CLI or an MCP server that an agent can drive on its own.

OtterKit vs ngrok: features and pricing#

ngrok's side of this table comes from its pricing page↗ and free plan limits↗, read on 23 November 2026. Check them for current numbers.

OtterKitngrok
Pricing modelPrepaid credits, no subscription. 1 credit is $0.01.Free, Hobbyist at $10 a month, Pay-as-you-go from $20 a month plus usage, Enterprise.
HTTPS tunnel to a local port$0.01 per connected hour, never more than $3 per tunnel in any 30 days.Included on every plan, within that plan’s limits.
Free to start10 free credits, which is 10 endpoint-hours. No card.Free plan with no time limit: 3 endpoints online, 1 GB out and 20,000 HTTP requests a month.
Browser warning pageNone.Shown before HTML pages on the free plan. Paid plans remove it.
Stable URL you nameUp to 10 reserved names per account, at no extra charge.One auto-assigned domain on Free. 10 ngrok-branded domains on Hobbyist.
Your own domainOn webhook endpoints, at no extra charge.Pay-as-you-go and up, $0.01 per active hour.
Always-on webhook endpointYes. It answers senders with nothing running on your machine.Tunnels forward to an ngrok agent running on your side. See ngrok’s docs for its cloud endpoints.
Inspect and replay requestsYes, from the CLI, the MCP server, the console and the Mac app.Yes, on every plan. The inspector keeps 24 hours on Free and 72 hours on paid plans.
Driven by AI agentsMCP server with 23 tools, an agent skill, and await to block until a request arrives.Agent CLI, SDKs and an API.
TCP and TLS tunnelsNo. HTTP and HTTPS only.Yes.
Desktop appFree native Mac app.Web dashboard.

Free tier: what you get without paying#

If you are after a free ngrok alternative, here is exactly what OtterKit gives you at no cost:

  • 10 free credits on a new account, with no card. One credit is one hour of a tunnel or webhook endpoint, so that is ten hours of public URLs. Billing is per started hour and pauses while a tunnel is disconnected.
  • A live webhook URL on the try page, with no account at all. It lasts 30 minutes and captures up to 50 requests.
  • The Mac app, the CLI and the MCP server. The software is free; only live endpoints spend credits.

OtterKit has no permanent free plan. If you want a tunnel that stays free forever and the limits above don't bother you, ngrok's free plan is more generous. After the free credits, OtterKit costs a cent an hour: a tunnel used eight hours a day on twenty working days is $1.60 a month, and one left running all month stops billing at $3. The smallest credit pack is $5. See pricing for the full list.

Built for AI agents: MCP server, agent skill, await#

This is where the two tools differ most. OtterKit assumes the thing opening the tunnel may be Claude Code, Cursor or Codex, and gives it three ways in:

  • The MCP server. 23 tools to create tunnels and webhook endpoints, wait for requests, read captures and replay them. One line adds it to Claude Code.
  • The agent skill. Instructions that teach a coding agent when to reach for a tunnel or an endpoint and which commands to run.
  • await. Blocks until a matching request arrives, then prints it as JSON. The agent triggers an event, waits for it and checks the payload in one script.
Terminal
# Give Claude Code the full toolkit
claude mcp add otterkit -- npx otterkit mcp

# Or from a shell: open a tunnel in the background, then wait for the next POST
npx otterkit tunnel 3000 --daemon --subdomain checkout-dev
npx otterkit await checkout-dev --method POST --count 1 --timeout 120s --json

The login is shared across the machine, so every agent uses the account you logged in with once. Because each endpoint is capped at $3 in any 30 days, an agent that forgets to stop one can't run up a bill.

Mac app and CLI setup in two minutes#

The CLI needs Node.js and nothing else. There is no binary to install and no token to paste into a config file:

Terminal
npx otterkit login
npx otterkit tunnel 3000
Terminal
  ✓ Tunnel ready

  URL      https://tunnel-a1b2c3d4.otterkit.app
  Target   127.0.0.1:3000
  Rate     1 credit/hr · never more than 300/month

On a Mac you can skip the terminal. The free Mac app signs in with the same account, lists every port that has something listening on it and puts an Expose button next to each. It shows every tunnel and webhook that you or your agents have running, with live traffic, and can stop tunnels when the Mac sleeps. It needs macOS 14 or later and runs on Apple Silicon and Intel. The CLI setup page covers the rest.

Custom domains and stable URLs#

A random URL is fine for a quick demo. Webhook settings and OAuth redirect URIs need one that stays put. Pass --subdomain and the name is reserved to your account the first time you use it:

Terminal
npx otterkit tunnel 3000 --subdomain my-api
# https://my-api.otterkit.app, every time

You can reserve up to 10 names per account at no extra charge. For a URL on your own domain, attach a hostname to a webhook endpoint and add one CNAME record. The certificate is issued and renewed for you, at no extra charge:

Terminal
npx otterkit webhook --daemon --subdomain stripe-dev --ttl never
npx otterkit domain stripe-dev hooks.your-company.com

Custom domains attach to webhook endpoints, not to tunnels: a tunnel's stable address is its .otterkit.app name. See custom domains and tunnels for the details.

Migrating from ngrok commands#

Most ngrok habits map one to one. ngrok's flags have changed between versions, so check ngrok http --help for the spelling yours uses.

What you wantngrokOtterKit
Sign inngrok config add-authtoken <token>npx otterkit login
Expose port 3000ngrok http 3000npx otterkit tunnel 3000
Keep the same URLngrok http 3000 --url my-api.ngrok.appnpx otterkit tunnel 3000 --subdomain my-api
Require a passwordngrok http 3000 --basic-auth "me:secret"npx otterkit tunnel 3000 --auth me:secret
Forward to another hostngrok http 192.168.1.20:8080npx otterkit tunnel 8080 --host 192.168.1.20
See what came inThe inspector at localhost:4040npx otterkit inspect my-api --follow
Replay a requestThe Replay button in the inspectornpx otterkit replay my-api --target 127.0.0.1:3000
Run in the backgroundngrok service or your own process managerAdd --daemon

Two differences are worth knowing before you switch. An OtterKit tunnel stops by itself after 24 hours unless you pass another --ttl, such as --ttl never. And if the reason you kept ngrok open all day was to catch webhooks, you no longer need a tunnel for that: an always-on webhook endpoint receives them while your laptop is closed, and you replay them into your handler when you are back.

Terminal
# Catch events around the clock
npx otterkit webhook --daemon --subdomain stripe-dev

# Later: send the latest one to your local server
npx otterkit replay stripe-dev --target 127.0.0.1:3000

Questions about OtterKit as an ngrok alternative#

Is there a free ngrok alternative?#

OtterKit is free to start, not free forever: a new account gets 10 credits, which is ten hours of tunnels or webhook endpoints, and the try page needs no account. After that a tunnel costs $0.01 per connected hour, capped at $3 in any 30 days.

What is the best ngrok alternative?#

It depends on the job. For sharing a local web app, testing webhooks and letting an AI agent open and watch its own URLs, OtterKit is built for exactly that. For TCP tunnels or production ingress, stay with ngrok or a tool made for those.

Is there an ngrok alternative for Mac?#

Yes. OtterKit for Mac is a free native app for macOS 14 and later. It lists your listening ports, opens a tunnel in one click and shows live traffic for every session. The CLI also runs on macOS, Linux and Windows through npx.

Do visitors see a warning page?#

No. A request to an OtterKit URL goes straight to your local server, in a browser or from a script.

Can I use OtterKit and ngrok side by side?#

Yes. They are separate programs with separate URLs, and both can point at the same local port. Many people start by moving one webhook endpoint over.

Is it safe to expose localhost this way?#

A tunnel exposes one port and nothing else on the machine. Add --auth to require a password, which is checked on your machine and never sent to OtterKit's servers, and let the default 24-hour auto-stop close tunnels you forget.

Next steps#