Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

ngrok

$ ngrok Official High Risk
ngrok · Browser & Web · Proprietary · macos / linux / windows

ngrok exposes local HTTP, TCP, or TLS ports through managed cloud ingress URLs with request inspection and webhook replay. Passing --log=stdout --log-format=json disables the interactive terminal UI so agents can parse tunnel URLs cleanly.

FCRS-1.0 Score
77 /100
Good
Medium Confidence
Zero-Friction Install
brew install ngrok/ngrok/ngrok
CLI vs MCP Decision CLI Only

Runs as a local tunnel agent (ngrok http) with a companion local inspection API (http://127.0.0.1:4040/api/tunnels).

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

--log=stdout --log-format=json disables the interactive TUI and ngrok api supports JSON, though tunnel commands block as daemons.

  • Supports --log=stdout --log-format=json and local :4040/api/tunnels
Trust & Safety 15 / 25

Exposes local ports to the public internet (high risk if unauthenticated) and requires account authtokens stored in ngrok.yml.

  • Opens public internet ingress to localhost; stores authtoken in ngrok.yml
Setup & Portability 13 / 15

Single binary across macOS, Linux, and Windows, though requires account signup and ngrok config add-authtoken.

  • Requires ngrok account registration and authtoken configuration
Utility & Efficiency 13 / 15

Polished webhook debugging and :4040 request inspection/replay API.

  • Built-in :4040 inspection API and Traffic Policy support
Maintenance & Lineage 9 / 10

Official commercial ngrok agent; proprietary closed-source binary.

  • Official vendor binary from ngrok.com
Docs & Verifiability 9 / 10

Clear official agent CLI documentation at ngrok.com/docs.

  • Official docs at ngrok.com/docs/agent/cli

Security, Auth & Guardrails

Auth Modes
Env API Key Config File
Credential Storage

Stores authtoken and optional API keys in ngrok.yml inside OS config directories (~/Library/Application Support/ngrok/ngrok.yml or ~/.config/ngrok/ngrok.yml); also accepts NGROK_AUTHTOKEN.

Side Effects
Read-Only Local Write Remote Write Billing Impact
Cost & Quotas

Proprietary CLI; free tier with rate/ephemeral limits plus paid plans.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# ngrok Agent Rules
- Always pass `--log=stdout --log-format=json` when spawning `ngrok http` so the full-screen TUI never hangs agent shells.
- Only open public tunnels with explicit user permission and close the background process immediately after testing.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect active ngrok tunnels via local agent API
curl -fsS http://127.0.0.1:4040/api/tunnels | jq '.tunnels[] | {name, public_url}'

Queries the running local ngrok agent's JSON API without starting a new tunnel.

Validate ngrok configuration file offline
ngrok config check

Verifies syntax and schema of local ngrok.yml without opening tunnels.

Controlled Writes & Previews

Expose localhost port 3000 with JSON logs
ngrok http 3000 --log=stdout --log-format=json

Starts an HTTPS tunnel without the interactive TUI and emits structured JSON log lines.

Strengths for Agents

  • + --log=stdout --log-format=json eliminates the interactive TUI cleanly.
  • + Built-in local :4040/api/tunnels JSON API lets scripts read public URLs and inspect captured webhook requests.

Caveats & Pitfalls

  • ! Proprietary binary requiring an ngrok account authtoken.
  • ! Interactive TUI is default unless --log=stdout is passed, and tunnel runs block as daemons.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI