jcrabapple/hermes-skills/ngrok-tunnels

Claude Code and agent skill by jcrabapple/hermes-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Configure and manage ngrok tunnels, including TCP tunnels for external access to local services like game servers, static IP reservations, and systemd persistence.

Install

npx vskill@latest install jcrabapple/hermes-skills/ngrok-tunnels

SKILL.md

The same SKILL.md was published earlier as jcrabapple/hermes-skills/ngrok-tunnels.

This skill provides guidance on setting up ngrok tunnels, especially for services requiring persistent external access like Minecraft servers. It covers API key management, reserving static TCP addresses, and integrating with systemd for automatic startup.

Setup & Configuration

  1. Install ngrok: Follow the official ngrok documentation for installation.
  2. Authenticate: Use ngrok authtoken <YOUR_AUTH_TOKEN> to set up your authentication token.

Reserving a Static TCP Address (Hobbyist Tier and Above)

For persistent access where the address doesn't change on tunnel restart, you need an ngrok paid account (e.g., Hobbyist tier) to reserve a TCP address.

Pitfall: API Key vs. Authtoken

ngrok api commands (like reserved-addrs create) require a separate API key, which is distinct from the authtoken used for general tunnel launching. Pass the API key using the --api-key flag with ngrok api commands, or ensure it's configured correctly in your ~/.config/ngrok/ngrok.yml (refer to ngrok documentation for the correct v3 config format for API keys).

To reserve a TCP address:

bash
ngrok api --api-key <YOUR_NGROK_API_KEY> reserved-addrs create --region us --description "Descriptive name for your service"

This command will return the reserved address (e.e.g., 7.tcp.ngrok.io:27132).

Creating a Persistent Systemd Service

To ensure your ngrok tunnel automatically starts on boot and restarts if it crashes, create a systemd user service.

  1. Create the service file:

```bash cat > \"$HOME/.config/systemd/user/ngrok-my-service.service\" << 'EOF' [Unit] Description=ngrok TCP tunnel for My Service (port <LOCAL_PORT>) After=network-online.target Wants=network-online.target

[Service] ExecStart=/usr/local/bin/ngrok tcp <LOCAL_PORT> --log=stdout --remote-addr <RESERVED_ADDRESS> --config ~/.config/ngrok/ngrok.yml Restart=always RestartSec=5

[Install] WantedBy=default.target EOF ```

  • Replace <LOCAL_PORT> with the port your local service is listening on (e.g., 25565).
  • Replace <RESERVED_ADDRESS> with the address you reserved (e.g., 7.tcp.ngrok.io:27132).
  • The --config ~/.config/ngrok/ngrok.yml ensures your authtoken is used.
  1. Enable and start the service:

``bash systemctl --user daemon-reload systemctl --user enable ngrok-my-service.service systemctl --user start ngrok-my-service.service ``

Checking Tunnel Status via API

To check the operational status and public URL of your tunnels, query the local ngrok API endpoints. Note that when running multiple ngrok processes or services, the API port increments (4040, 4041, etc.):

bash
# Query port 4040 or check all active ports
curl -sf http://localhost:4040/api/tunnels | python3 -c "
import sys, json
data = json.load(sys.stdin)
for t in data.get('tunnels', []):
print(f'{t.get(\"proto\")}: {t.get(\"public_url\")} -> {t.get(\"config\", {}).get(\"addr\")}')
"

Note: If `curl` fails to parse JSON or returns an empty body, check `ss -tlnp | grep -E "4040|4041"` to ensure you are querying the correct API port for that process.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jcrabapple/hermes-skills/ngrok-tunnels/badge)](https://verified-skill.com/skills/jcrabapple/hermes-skills/ngrok-tunnels)

Something wrong with this skill or its page? Tell us.