/ngrok:ngrok-setupfrom ngrok
Walks through ngrok authentication setup for CLI, SDK, or infrastructure-as-code. Detects installed surface, guides authtoken or API key configuration, and handles auth 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.
Get the user authenticated and pointed at the right surface. Every ngrok action requires a credential: an authtoken (agent/SDK), an API key (IaC and the REST API), or an OAuth login to the ngrok MCP server. There is no unauthenticated mode; this is deliberate abuse prevention.
Pick from what the user is doing, then defer the how-to to that surface skill:
ngrok-surfaces carries the routing table and the per-surface mechanics - read it off the user's project rather than asking. In short: a terminal means the agent CLI, an ngrok dependency in a manifest means the SDK, *.tf or k8s manifests mean infrastructure-as-code, and a controlplane provisioning per-tenant resources means the REST API.
If it is not obvious, the terminal path is the safe default for one-off tasks.
CLI / SDK (authtoken):
Check for an existing token: ngrok config check, and check the NGROK_AUTHTOKEN env var.
If none is set, have the user set it themselves - do not ask them to paste the token to you. Give them the link and the exact command to run:
Grab your authtoken from https://dashboard.ngrok.com/get-started/your-authtoken, then run:
ngrok config add-authtoken <YOUR_TOKEN>
On a headless box, or where the token comes from a secret store, export NGROK_AUTHTOKEN=<YOUR_TOKEN> in their environment does the same job.
Tell them to say when it is done, then re-run ngrok config check to confirm and carry on with the original task. Run every other ngrok command yourself - the authtoken is the one step that stays with the user.
IaC and the REST API (API key): Terraform, the operator, and api.ngrok.com authenticate with an ngrok API key (the operator needs an API key and an authtoken), not the agent authtoken. Point the user to https://dashboard.ngrok.com/api-keys and have them set it as the provider/operator credential or NGROK_API_KEY. See ngrok-surfaces.
Before you ask for an API key, check whether the ngrok MCP server is connected. If it is, a one-off account resource such as a vault, a secret, or a cloud endpoint needs no API key. ngrok-surfaces says when to use which.
The two credentials are not interchangeable and have very different blast radii: an API key administers the account, an authtoken only starts agent sessions. If a call fails with an auth error, check which one is in play before rotating anything.
ngrok MCP server (OAuth): gives you, the agent, access to the user's account with the user's role permissions. It can read and change resources, so keep the client's approval prompts on. It is a third credential, separate from both of the above. CLI authtokens and API keys do not authenticate it. The server is at https://mcp.ngrok.com/mcp (streamable HTTP) and is available on all plans, including free. If the user asks to connect it, give them the commands for their client from the MCP server docs. Login is a browser step the user does themselves, like the authtoken.
If the server is already connected, use it to check instead of asking: platform_whoami names the account, the caller's role, and the plan. platform_list_authtokens and platform_list_api_keys show which credentials exist and who owns them. No tool returns a secret value.
ngrok is not installed, install it (brew install ngrok, or the platform package). Confirm with ngrok --help.ngrok-surfaces.ngrok-surfaces.Once authenticated and the surface is ready, return to whatever the user actually asked for (expose a service, receive webhooks, etc.).
POST /credentials.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./Other plugins' skills for the same job