jcrabapple/hermes-skills/ngrok-tunnels
Claude Code and agent skill by jcrabapple/hermes-skills
- community
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-tunnelsSKILL.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
- Install ngrok: Follow the official ngrok documentation for installation.
- 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:
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.
- 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.ymlensures your authtoken is used.
- 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.):
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
- SKILL.md in the repositoryCheckingdevops/ngrok-tunnels/SKILL.md
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
[](https://verified-skill.com/skills/jcrabapple/hermes-skills/ngrok-tunnels)