/ngrok:troubleshoot-ngrokfrom ngrok
Diagnoses ngrok errors and connection problems by looking up ERR_NGROK codes in ngrok's docs and checking live account state (endpoints, agents, traffic, limits). Covers offline endpoints, upstream failures, auth limits, and TLS errors.
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.
None: SKILL.md is the whole skill.
Diagnose a failing ngrok endpoint or agent in three steps: get the error, read its docs page, then check live state to find which cause applies.
ngrok errors carry an ERR_NGROK_<code> code. It shows on the error page in the browser, in agent output, in API responses, and in the traffic inspector. Some codes are numbers (ERR_NGROK_8012) and some are names (ERR_NGROK_AGENT_NOT_FOUND).
Get the code. If the user has only the message, keep the exact text, with its values. If there is no error at all, go to By symptom.
Every code has a page with its causes and fixes. Do not explain a code from memory: codes are specific, and a near guess sends the user down the wrong path.
docs_get_error: call it with code, or with message when there is no code. If it returns several codes for one message, ask the user for the code. Do not pick one.https://ngrok.com/docs/errors/err_ngrok_<code>.md, with the code in lowercase and without the ERR_NGROK_ prefix. For example, ERR_NGROK_8012 is err_ngrok_8012.md. A 404 means the code is wrong; check it with the user.docs_search does not find error pages. Do not use it for an error code.
An error page lists the possible causes. Check the account to find the one that applies, instead of asking the user to check each one.
With the ngrok MCP server:
| Question | Tool |
|---|---|
| Is anything serving this URL? | get_resource with the URL. gw_list_endpoints shows what the account serves; a near-miss URL is a common cause. |
| Is the agent connected, and is its version current? | gw_list_agents: connected agents, versions, and any deprecation deadline. |
| What happened to this one request? | gw_get_traffic_inspector_request with the request ID from the ngrok error page. |
| Which requests failed? | gw_query_traffic_inspector: each row carries its ngrok error code. Filter by host, status, or path. |
| TCP or TLS endpoint failures | gw_query_connections (it filters by error code), then gw_get_connection. |
| Is a TCP or TLS connection stalled? | gw_get_connection_progress with the connection_id: bytes over time, and how long since bytes last moved. |
| Is the account at a limit? | platform_get_limits: each limit's cap, usage, status, and the error code it rejects with. Match the user's code to its row. |
| Is the Traffic Policy valid? | gw_validate_traffic_policy reports each problem with its line and column. |
Without the server, use the agent's own output, the local inspector at http://localhost:4040, and the dashboard. To see the agent's output:
NGROK_CLIENT_SOURCE=skills/troubleshoot-ngrok ngrok http <port> --log stdout
Then apply the fix from the page, and send the failing request again to confirm.
The docs page has the full fix. These notes are what the page does not say.
http vs https, localhost vs 127.0.0.1 vs a container address).ngrok-setup.gw_list_agents shows where it runs.Host header. See expose-localhost/references/TROUBLESHOOTING.md. For internal endpoints, --host-header=rewrite (see run-mcp-gateway).ngrok-setup) or a config file that does not parse. Run ngrok config check.ngrok-surfaces). See ngrok-engine for rule order.gw_query_connections, then call gw_get_connection_progress with its connection_id. It shows bytes over time, and how long since bytes last moved.openssl s_client -connect <host>:443 -servername <host>.Prefix each ngrok command you run with NGROK_CLIENT_SOURCE=skills/troubleshoot-ngrok, as the examples do. Leave it out of files you write for the user. See "Attribution" in ngrok-surfaces.
ngrok-setup or ngrok-engine. Do not repeat their content here.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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-engineReference for ngrok's traffic model - what an endpoint is and what happens to traffic at the edge. Covers endpoint types (agent, cloud, internal), bindings and protocols (HTTP, TLS, TCP), and Traffic Policy - the YAML rule language of phases, CEL expressions, and actions, with a generated catalog of all 26 actions. Other ngrok skills point here to decide what to build, then to ngrok-surfaces to apply it. Not a standalone task - load when another skill references it./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.Other plugins' skills for the same job