/ngrok:ngrok-surfacesfrom ngrok
Routes ngrok endpoint and Traffic Policy configuration to the correct surface (CLI, SDK, REST API, Terraform, Kubernetes Operator) based on signals in the user's project. A reference skill loaded by other ngrok skills.
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.
Job skills decide what to build - the endpoint type and the policy, both in ngrok-engine. This skill decides where to apply it and hands off to the mechanics.
The configuration itself does not change across surfaces. The same policy body, the same endpoint URL, the same internal hostname. Only the wrapper differs. So never re-derive a policy because the user switched surfaces; re-wrap it.
Read it off the user's project rather than asking:
| Signal | Surface | Reference |
|---|---|---|
| A terminal, a port, "just give me a URL" | agent CLI / ngrok.yml | references/cli.md |
package.json, pyproject.toml, go.mod, or Cargo.toml with an ngrok dependency; or the endpoint should live and die with the process | SDK | references/sdk.md |
| A controlplane creating resources per tenant/sandbox/device at runtime | REST API | references/api.md |
*.tf files | Terraform | references/terraform.md |
Chart.yaml, kustomization.yaml, k8s manifests | Kubernetes Operator | references/kubernetes-operator.md |
If none of these is obvious, the CLI is the safe default for a one-off task.
Surfaces differ by when the resource is created and what owns its lifetime:
Terraform and the API look interchangeable and are not. "My account has these three endpoints" is Terraform. "Every sandbox gets one" is the API. See provision-sandbox-access for the latter.
A single setup often uses two: the API or Terraform provisions the public cloud endpoint, and the CLI or SDK brings up the internal endpoint from inside the workload. They rendezvous on an agreed internal hostname.
NGROK_AUTHTOKEN). It starts agent sessions and nothing else.These are not interchangeable and have very different blast radii. If a call fails with an auth error, check which credential is in play before rotating anything. See ngrok-setup.
Some jobs create account resources that live outside the workload: a reserved domain, a vault and its secrets, a cloud endpoint. You need the ngrok MCP server or an API key to create them. Use the first option that applies:
*.tf files, Operator manifests). Add the resource there, so the setup stays reproducible. Use the MCP server only to check state.platform_whoami). Create the resource with the MCP server, and do not ask the user for an API key. Call platform_whoami first. It names the user's role and plan. The server refuses a write when the role cannot make the change or the plan does not include the feature, so tell the user that before you try.ngrok api with an API key that the user sets (see ngrok-setup), or the dashboard. Tell the user once that the ngrok MCP server removes the need for an API key here, then continue.| Resource | MCP server tool | CLI with an API key |
|---|---|---|
| Reserved domain | gw_reserve_domain | ngrok api reserved-domains create |
| Vault | gw_create_vault | ngrok api vaults create |
| Secret | gw_create_secret | ngrok api secrets create |
| Cloud endpoint | gw_create_cloud_endpoint, then gw_update_cloud_endpoint to change it | ngrok api endpoints create |
When you use the MCP server:
gw_create_secret never takes the value. It returns a dashboard link where the user types the value, with status awaiting_user_action. The secret does not exist until the user saves the form. Call the tool again with the same arguments and the started_at from the result. Create a policy that reads the secret only after the status is complete.gw_validate_traffic_policy with endpoint_type set to cloud. Keep the policy in a file in the user's project, and give the user the IDs of what you created. Then the user can recreate or remove the setup without you.This order is for setup that you do for the user. Code that creates resources at run time, such as a controlplane (see provision-sandbox-access), always uses an API key.
Each ngrok command that you run starts with NGROK_CLIENT_SOURCE=skills/{SKILL}, as the examples in the references do. Replace {SKILL} with the task skill you are running, for example skills/receive-webhooks, or with ngrok-surfaces if no task skill sent you here.
DO_NOT_TRACK is set.gw_list_endpoints or get_resource with the URL to confirm the endpoint is live, and gw_validate_traffic_policy to check a policy (see ngrok-engine).policy.yaml and reference it. That is what makes it portable when the user adds a second surface later, which they usually do.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
9 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./npx claudepluginhub ngrok/skills --plugin ngrokOther plugins' skills for the same job