tunnel-stop.template

tunnel-stop.template is a command for Claude Code from evan043/claude-cli-advanced-starter-pack. It costs 0 tokens per session (817 once invoked), scanned A, original, MIT.

A command template for stopping local tunnel processes, which are services that make a development server reachable from the internet. It includes commands for localtunnel, ngrok, and cloudflared.

In plain words
What is it for?
Stop localtunnel, ngrok, or cloudflared processes after development or testing.
Why use it?
It helps close a tunnel when you no longer want your local development server to be publicly reachable. It also reports when a named tunnel process is not running.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: names the AskUserQuestion tool; mentions Codex.

Good fit Stop localtunnel, ngrok, or cloudflared processes after development or testing.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/evan043/claude-cli-advanced-starter-pack/tunnel-stop.template
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/evan043/claude-cli-advanced-starter-pack

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tunnel-stop.template

README.md
[![agentmods](https://agentmods.dev/badge/commands/evan043/claude-cli-advanced-starter-pack/tunnel-stop.template.svg)](https://agentmods.dev/commands/evan043/claude-cli-advanced-starter-pack/tunnel-stop.template)
Your own site
<a href="https://agentmods.dev/commands/evan043/claude-cli-advanced-starter-pack/tunnel-stop.template"><img src="https://agentmods.dev/badge/commands/evan043/claude-cli-advanced-starter-pack/tunnel-stop.template.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 817 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00817
Opus 5 $0.00000 $0.00409
Sonnet 5 $0.00000 $0.00163
Haiku 4.5 $0.00000 $0.00082

Measured 3d ago against content hash 64a2c7e099e1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

tunnel-stop.template scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X DELETE http://localhost:{{devEnvironment.tunnel.adminPort}}/api/tunnels/<tunnel-name>
templates/commands/tunnel-stop.template.md · 135 lines

How it starts

The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Codex Runtime Compatibility

This prompt was authored for Claude-style slash workflows. In Codex runtime, adapt tool calls as follows:

  • AskUserQuestion => ask the user directly in chat.
  • WebSearch/WebFetch => use available web tools (search_query, open, find) and cite links.
  • Read/Write => use shell/filesystem tools in this workspace.
  • Claude-only MCP calls (for example Playwright MCP names) => use available equivalents or clearly state fallback.
  • Keep intent and output format identical; only adapt execution mechanics.

tunnel-stop — Codex Runtime

Stop any running tunnel processes.

# Kill localtunnel
pkill -f "localtunnel" 2>/dev/null || echo "No localtunnel running"

# Kill ngrok
pkill -f "ngrok" 2>/dev/null || echo "No ngrok running"

# Kill cloudflared
pkill -f "cloudflared" 2>/dev/null || echo "No cloudflared running"

Tell me which tunnel you started and I'll stop it cleanly.


description: Stop the running tunnel service model: haiku

/tunnel-stop - Stop Development Tunnel

Stop the currently running tunnel service and clean up.

{{#if (neq devEnvironment.tunnel.service "none")}}

Stop Commands

{{#if (eq devEnvironment.tunnel.service "ngrok")}}

ngrok

# Find ngrok process
{{#if (eq process.platform "win32")}}
tasklist | findstr ngrok
{{else}}
pgrep -f ngrok
{{/if}}

# Kill ngrok
{{#if (eq process.platform "win32")}}
taskkill /IM ngrok.exe /F
{{else}}
pkill ngrok
{{/if}}

# Or use ngrok API
curl -X DELETE http://localhost:{{devEnvironment.tunnel.adminPort}}/api/tunnels/<tunnel-name>

{{/if}}

{{#if (eq devEnvironment.tunnel.service "localtunnel")}}

localtunnel

# Find and kill localtunnel process
{{#if (eq process.platform "win32")}}
taskkill /IM node.exe /F  # Warning: kills all Node processes
{{else}}
pkill -f localtunnel
{{/if}}

Or simply press Ctrl+C in the terminal running localtunnel. {{/if}}

Read the full file on GitHub · 135 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 135 lines · 0 tokens per session scan A 64a2c7e099e1

Subscribe to this mod's changes

tunnel-stop.template is a command published in the GitHub repository evan043/claude-cli-advanced-starter-pack (61 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 817 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.