/ngrok:ngrok-enginefrom ngrok
Reference for ngrok's traffic model: endpoint types (agent, cloud, internal), protocols (HTTP, TLS, TCP), and Traffic Policy YAML rule language with phases, CEL expressions, and 26 actions. Loaded by other ngrok skills, not invoked directly.
Ships in ngrok. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Two decisions sit behind almost every ngrok task:
This skill answers both at the level a job skill needs, and holds the detail in references/. Where to apply the result is a separate question - see ngrok-surfaces.
Make these decisions from the user's intent. Do not ask them to choose an endpoint type; they should not have to know the taxonomy.
forward-internal action. This is how a receiver stays off the public internet.The composed shape most jobs land on:
cloud endpoint (public, runs the policy) -> forward-internal -> internal endpoint -> local service
Protocol is a separate axis from type. HTTP is the default; TCP (SSH, RDP, databases) changes several things - a public TCP endpoint needs a reserved address, internal TCP URLs need an explicit port, the policy phase becomes on_tcp_connect, and the Kubernetes operator does not support TCP at all.
Full decision logic, bindings, and the TCP rules: references/endpoints.md.
Rules grouped by phase. Each rule has optional CEL expressions and a list of actions.
on_http_request:
- expressions:
- "req.url.path.startsWith('/admin')"
actions:
- type: deny
on_http_request, on_http_response, on_tcp_connect, on_event_stream_message.Grammar, CEL variables, Secrets and Vaults, the seven most-used actions, and how actions chain: references/traffic-policy.md.
All 26 actions, so you know what exists without fetching anything:
deny, forward-internal, http-request, log, restrict-ips, set-vars, terminate-tlsadd-headers, circuit-breaker, log, owasp-crs-request, rate-limit, redirect, remove-headers, request-body-find-replace, set-vars, url-rewriteadd-headers, compress-response, custom-response, log, owasp-crs-response, remove-headers, response-body-find-replace, set-vars, sse-find-replacebasic-auth, jwt-validation, oauth, openid-connect, owasp-crs-request, owasp-crs-response, restrict-ips, terminate-tls, verify-webhookcircuit-breaker, close-connection, deny, forward-internal, http-request, owasp-crs-request, owasp-crs-response, rate-limitNever guess an action's config. Look it up in two steps:
references/action-catalog.md - the index. One row per action: phases, whether it ends the chain, what it does.references/actions/<action>.md - that action's config fields, result variables, and an example.Read only the action file you need; the whole directory is ~12k tokens and one action is a few hundred.
references/traffic-policy.md are the ones existing job skills happen to use. They are not the interesting half - reach for the catalog whenever the task needs anything else.rate-limit returns its own 429, verify-webhook fails closed). Check the action's entry before adding a deny that duplicates it.policy.yaml so it survives the user adding a second surface later.gw_validate_traffic_policy before you show or apply it. It runs the same checks as a save, including plan entitlements, and reports each problem with its line and column. Pass endpoint_type, scheme, and binding when the policy is for a cloud, TCP, or internal endpoint.references/ start with NGROK_CLIENT_SOURCE=skills/{SKILL}. See "Attribution" in ngrok-surfaces.references/action-catalog.md (opens in a new tab)references/actions/add-headers.md (opens in a new tab)references/actions/basic-auth.md (opens in a new tab)references/actions/circuit-breaker.md (opens in a new tab)references/actions/close-connection.md (opens in a new tab)references/actions/compress-response.md (opens in a new tab)references/actions/custom-response.md (opens in a new tab)references/actions/deny.md (opens in a new tab)references/actions/forward-internal.md (opens in a new tab)references/actions/http-request.md (opens in a new tab)references/actions/jwt-validation.md (opens in a new tab)references/actions/log.md (opens in a new tab)references/actions/oauth.md (opens in a new tab)references/actions/openid-connect.md (opens in a new tab)references/actions/owasp-crs-request.md (opens in a new tab)references/actions/owasp-crs-response.md (opens in a new tab)references/actions/rate-limit.md (opens in a new tab)references/actions/redirect.md (opens in a new tab)references/actions/remove-headers.md (opens in a new tab)references/actions/request-body-find-replace.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ngrok/skills --plugin ngrok9 skills in this plugin
/expose-localhostExpose a local service to the public internet using ngrok. Starts a tunnel, optionally adds OAuth or WAF via Traffic Policy. Handles HTTP services and raw TCP (SSH, RDP, databases). Use when asked to expose, tunnel, share, or make a local service publicly accessible, or to reach a machine that has no public IP. Also covers sharing work-in-progress with a specific person and the dev-server quirks that break a shared preview./ngrok-setupGet authenticated and ready to use ngrok on whatever surface the task needs - agent CLI, an SDK, or infrastructure-as-code. Detects what is already installed, walks the one-time authtoken step, and routes to the right surface. Use before other ngrok tasks, or whenever an ngrok command fails with an authentication or configuration error. Use when the user says "set up ngrok", "install ngrok", "add my authtoken", "ngrok isn't authenticated", "getting an auth error from ngrok", or "connect the ngrok MCP server"./ngrok-surfacesHow to apply an ngrok endpoint and Traffic Policy on whichever surface the user is actually working in - the agent CLI and ngrok.yml, the ngrok SDKs (Go, JavaScript, Python, Rust), the REST API at api.ngrok.com, the Terraform provider, and the Kubernetes Operator. Routes from signals in the user's project to the right surface, then to that surface's reference file. Other ngrok skills point here once they know what to build. Not a standalone task - load when another skill references it./provision-sandbox-accessGive every sandbox, container, device, or tenant its own isolated ngrok endpoint, provisioned programmatically at runtime from a controlplane. Covers the per-workload resource set - service user, reserved address or domain, ACL-scoped authtoken, cloud endpoint forwarding to a private internal endpoint - plus the agent config that runs inside the workload, and teardown. Use when the user is building a platform that spins up isolated environments./receive-webhooksReceive and verify inbound webhooks from providers like Stripe, GitHub, Twilio, Slack, or Shopify and deliver them to a local or private service without exposing that service to the public internet. Verify signatures at the edge with no app code; route third-party callbacks to a service behind a firewall, including regulated (HIPAA/PCI) environments or a centralized webhook gateway shared across teams. Use when the user needs to receive, test, or debug webhooks locally, wants signature verification without writing it, or must route callbacks to a private service./run-mcp-gatewayExpose an in-development MCP (Model Context Protocol) server for remote testing against AI model providers like Claude and OpenAI, with per-provider authentication and traffic inspection. Puts a cloud endpoint in front of your local MCP server, authenticates each provider with its own bearer token via Vaults, and forwards to your server kept off the public internet. Use when the user is building or testing an MCP server and needs a remote AI client to reach it. Use when the user says "test my MCP server", "expose my MCP server to Claude", "connect my MCP server to OpenAI", or "front door for my MCP server". Not for connecting ngrok's own MCP server - use ngrok-setup.Other plugins' skills for the same job