ngrok
$ ngrok Official High Riskngrok 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.
brew install ngrok/ngrok/ngrok 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
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
--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=jsonand local:4040/api/tunnels
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
Single binary across macOS, Linux, and Windows, though requires account signup and ngrok config add-authtoken.
- Requires ngrok account registration and authtoken configuration
Polished webhook debugging and :4040 request inspection/replay API.
- Built-in
:4040inspection API and Traffic Policy support
Official commercial ngrok agent; proprietary closed-source binary.
- Official vendor binary from ngrok.com
Clear official agent CLI documentation at ngrok.com/docs.
- Official docs at ngrok.com/docs/agent/cli
Security, Auth & Guardrails
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.
Proprietary CLI; free tier with rate/ephemeral limits plus paid plans.
# 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
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.
ngrok config check
Verifies syntax and schema of local ngrok.yml without opening tunnels.
Controlled Writes & Previews
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=jsoneliminates the interactive TUI cleanly. - + Built-in local
:4040/api/tunnelsJSON 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=stdoutis passed, and tunnel runs block as daemons.