Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ngrok

БесплатноБез исполняемых скриптовНе проверен

Exposes local services to the internet through ngrok tunnels with a public URL. Use it to share a development server, test webhooks locally, demo an app to a…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

ngrok

Overview

ngrok is a cloud gateway plus a small agent (ngrok CLI, v3) that publishes a local port at a public URL, with request inspection and Traffic Policy rules for auth, rate limits and webhook verification. Typical uses: share a dev server, receive Stripe/GitHub/Telegram webhooks on localhost, demo to a client, expose SSH or a database. This page was checked against ngrok 3.39 and the docs at ngrok.com/docs (October 2026).

Key v3 changes to know: the CLI flags --domain, --basic-auth, --oauth, --verify-webhook and --cidr-allow on ngrok http are deprecated (they still print a warning and run). Use --url and a Traffic Policy instead. The config file uses version: 3 and endpoints:.

Prerequisites

  • Install the agent: brew install ngrok, snap install ngrok, choco install ngrok, or the apt repository / packages listed at https://ngrok.com/download.
  • An ngrok account. Without a valid authtoken the agent exits with "authentication failed: This ngrok session is not authenticated".
  • Save the token: ngrok config add-authtoken "$NGROK_AUTHTOKEN" (copy it from the dashboard, never commit it).

Instructions

Basic HTTP endpoint

ngrok http 3000

Prints a public https:// URL forwarding to localhost:3000 and serves a local inspector at http://127.0.0.1:4040. The URL is random on each run unless you choose one. Other upstream forms: ngrok http https://localhost:8443, ngrok http intranet.local:9000.

Stable URL

ngrok http 3000 --url https://shop-demo.ngrok.app       # a domain you own on a paid plan, or an ngrok domain

Every account gets one dev domain (for free accounts it ends in ngrok-free.dev or ngrok-free.app), shown in the dashboard. Free accounts cannot pick or reserve names; custom names and your own domain (via DNS CNAME) need a paid plan.

Webhook testing and inspection

ngrok http 8080
curl -s http://127.0.0.1:4040/api/requests/http | head -c 600   # list captured requests as JSON

The inspector shows headers, bodies and timings for every request and lets you replay one without re-triggering the sender (and the Traffic Inspector in the dashboard keeps history).

Traffic Policy (auth, rate limits, webhook signatures)

Policies are YAML with phases such as on_http_request. Save as policy.yml and pass it:

on_http_request:
  - actions:
      - type: basic-auth
        config:
          credentials:
            - "reviewer:correct-horse-battery"
  - actions:
      - type: rate-limit
        config:
          name: per-ip-burst
          algorithm: sliding_window
          capacity: 100
          rate: 60s
          bucket_key:
            - conn.client_ip
  - expressions:
      - req.url.path.startsWith('/webhooks/stripe')
    actions:
      - type: verify-webhook
        config:
          provider: stripe
          secret: ${STRIPE_WEBHOOK_SECRET}
ngrok http 3000 --url https://shop-demo.ngrok.app --traffic-policy-file policy.yml

basic-auth takes up to 10 user:password pairs and answers 401; rate-limit answers 429 with a retry-after header; verify-webhook answers 403 on a bad signature (set enforce: false to log only). Other actions include restrict-ips (allow / deny CIDR lists; works in on_tcp_connect too) and custom-response. The ${...} in the example is for illustration: ngrok does not read your shell, so write the real secret into the file or generate it with envsubst, and do not commit it.

Config file for several endpoints

ngrok config check shows which config file is used and validates it; ngrok config edit opens it.

version: 3
agent:
  authtoken: your-token-written-by-add-authtoken
endpoints:
  - name: webapp
    url: https://shop-demo.ngrok.app
    upstream:
      url: 3000
    traffic_policy:
      on_http_request:
        - actions:
            - type: basic-auth
              config:
                credentials:
                  - "reviewer:correct-horse-battery"
  - name: api
    url: https://shop-api.ngrok.app
    upstream:
      url: 8080
ngrok config check          # "Valid configuration file at ..."
ngrok start --all           # all endpoints
ngrok start webapp api      # only these

TCP and TLS

ngrok tcp 22                       # SSH; prints a tcp:// address
ngrok tcp 5432 --cidr-allow 203.0.113.0/24   # only this CIDR may connect
ngrok tls --url=app.northwind-labs.com 443   # TLS passthrough on your own domain

TCP endpoints may require a verified or paid account, and a stable TCP address must be reserved first. Expose a database only with an IP allowlist, never openly.

Load balancing and files

--pooling-enabled on two agents with the same --url balances traffic between them. ngrok http file:///var/log serves a directory read-only.

API and Docker

ngrok api endpoints list --api-key "$NGROK_API_KEY"    # active endpoints; also: tunnels, reserved-doma
Полный SKILL.md на GitHub

Установить ngrok в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл ngrok?

Exposes local services to the internet through ngrok tunnels with a public URL. Use it to share a development server, test webhooks locally, demo an app to a client, inspect and replay incoming requests, or put a temporary public URL on any local port.

Как установить скилл ngrok?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ngrok запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ngrok с