[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EABG9VHWA68C1D2CWQXKS8":3,"skill-same:01M7EABG9VHWA68C1D2CWQXKS8":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":6,"ownerHtmlUrl":45,"ownerBlogUrl":6,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M7EABG9VHWA68C1D2CWQXKS8","pinggy-tunnel",null,"Zero-install localhost tunnels over SSH via Pinggy.","sanjeevafk\u002Fagent-skills","sanjeevafk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F230678117?v=4","01M7C540EFY46ETG1NNWKS5X3Q","Sanjeev","01M7C540F366J5C1D587BMKH9Q",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fhermes-agent\u002Fskills\u002Fpinggy-tunnel\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pinggy-tunnel\ndescription: Zero-install localhost tunnels over SSH via Pinggy.\nversion: 0.1.0\nauthor: Teknium (teknium1), Hermes Agent\nlicense: MIT\nplatforms: [linux, macos, windows]\nmetadata:\n  hermes:\n    tags: [Pinggy, Tunnel, Networking, SSH, Webhook, Localhost]\n    related_skills: []\n---\n\n# Pinggy Tunnel Skill\n\nExpose a local service (dev server, webhook receiver, MCP endpoint, demo) to the public internet using a Pinggy SSH reverse tunnel. No daemon to install — the user's stock SSH client connects to `a.pinggy.io:443` and Pinggy hands back a public HTTP\u002FHTTPS URL.\n\nFree tier: 60-minute tunnels, random subdomain, no signup. Pro tier ($3\u002Fmo) is an opt-in with a token.\n\n## When to Use\n\n- User asks to \"expose this locally\", \"share my dev server\", \"make this URL public\", \"tunnel port N\", \"get a public URL for a webhook\"\n- Need to receive a webhook callback during a local task (Stripe, GitHub, Discord, AgentMail)\n- Sharing a one-off HTTP demo (MCP server, Ollama\u002FvLLM endpoint, dashboard) with a remote party\n- The host has SSH but no `cloudflared` \u002F `ngrok` binary, and installing one would be overkill\n\nIf the host already has `cloudflared` configured, prefer the `cloudflared-quick-tunnel` skill — Cloudflare quick tunnels don't expire after 60 minutes.\n\n## Prerequisites\n\n- `ssh` on PATH (`ssh -V`). Default on Linux, macOS, and Windows 10+. No other install.\n- A local service listening on `127.0.0.1:\u003Cport>` before the tunnel starts. Pinggy will return URLs but they'll 502 until the local origin is up.\n\nOptional:\n\n- `PINGGY_TOKEN` env var for paid Pro features (persistent subdomain, custom domain, multiple tunnels, no 60-minute cap). Free tier needs no credentials.\n\n## Quick Reference\n\n```bash\n# Plain HTTP\u002FHTTPS tunnel for port 8000 (free tier)\nssh -p 443 -o StrictHostKeyChecking=no -o ServerAliveInterval=30 \\\n    -R0:localhost:8000 free@a.pinggy.io\n\n# TCP tunnel (databases, raw SSH, etc.)\nssh -p 443 -o StrictHostKeyChecking=no -R0:localhost:5432 tcp@a.pinggy.io\n\n# TLS tunnel (Pinggy can't decrypt — bring your own certs at origin)\nssh -p 443 -o StrictHostKeyChecking=no -R0:localhost:443 tls@a.pinggy.io\n\n# Basic auth gate (b:user:pass)\nssh -p 443 -o StrictHostKeyChecking=no -R0:localhost:8000 \\\n    \"b:admin:secret+free@a.pinggy.io\"\n\n# Bearer token gate (k:token)\nssh -p 443 -o StrictHostKeyChecking=no -R0:localhost:8000 \\\n    \"k:mysecrettoken+free@a.pinggy.io\"\n\n# IP whitelist (w:CIDR)\nssh -p 443 -o StrictHostKeyChecking=no -R0:localhost:8000 \\\n    \"w:203.0.113.0\u002F24+free@a.pinggy.io\"\n\n# Enable CORS + force HTTPS redirect\nssh -p 443 -o StrictHostKeyChecking=no -R0:localhost:8000 \\\n    \"co+x:https+free@a.pinggy.io\"\n\n# Pro tier (persistent URL, no 60-min cap)\nssh -p 443 -o StrictHostKeyChecking=no -R0:localhost:8000 \"$PINGGY_TOKEN+a.pinggy.io\"\n```\n\n## Procedure — Start a Tunnel and Get the URL\n\nThe model SHOULD use the `terminal` tool. The tunnel must stay alive for the duration of the share, so run it as a background process and parse the public URL from stdout.\n\n### 1. Confirm a local origin is up\n\n```bash\ncurl -sI http:\u002F\u002F127.0.0.1:8000\u002F | head -1\n# expect HTTP\u002F1.x 200 (or any non-connection-refused response)\n```\n\nIf nothing is listening yet, start it first (e.g. `python -m http.server 8000 --bind 127.0.0.1`). Pinggy will happily return a URL pointed at nothing — the user will see 502 until the origin comes up.\n\n### 2. Launch the tunnel as a background process\n\nUse `terminal(background=True)` and capture output to a logfile (Pinggy prints the URLs on stdout, then keeps the connection open):\n\n```bash\nLOG=~\u002F.hermes\u002Fcache\u002Fscratch\u002Fpinggy-8000.log\nnohup ssh -p 443 \\\n    -o StrictHostKeyChecking=no \\\n    -o UserKnownHostsFile=\u002Fdev\u002Fnull \\\n    -o ServerAliveInterval=30 \\\n    -o ServerAliveCountMax=3 \\\n    -R0:localhost:8000 free@a.pinggy.io \\\n    > \"$LOG\" 2>&1 &\necho $! > ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fpinggy-8000.pid\n```\n\n`StrictHostKeyChecking=no` + `UserKnownHostsFile=\u002Fdev\u002Fnull` skips the first-run host-key prompt. `ServerAliveInterval=30` keeps the SSH session from getting torn down by an idle NAT.\n\n### 3. Parse the URL out of the log\n\n```bash\nsleep 4\ngrep -oE 'https:\u002F\u002F[a-z0-9-]+\\.[a-z]+\\.pinggy\\.link' ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fpinggy-8000.log | head -1\n```\n\nExpected output looks like:\n\n```\nYou are not authenticated.\nYour tunnel will expire in 60 minutes.\nhttp:\u002F\u002Fyqycl-98-162-69-48.a.free.pinggy.link\nhttps:\u002F\u002Fyqycl-98-162-69-48.a.free.pinggy.link\n```\n\nHand the `https:\u002F\u002F...pinggy.link` URL to the user.\n\n### 4. Verify\n\n```bash\ncurl -sI https:\u002F\u002F\u003Cthe-url>\u002F | head -3\n# expect 200\u002F302\u002Fwhatever the local origin actually returns\n```\n\nIf you get `502 Bad Gateway`, the SSH session is up but the local origin isn't listening — fix step 1 first.\n\n### 5. Teardown\n\n```bash\nkill \"$(cat ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fpinggy-8000.pid)\"\n# or, if the pid file got lost:\npkill -f 'ssh -p 443 .* free@a\\.pinggy\\.io'\n```\n\nIf you have a session_id from `terminal(background=True)`, prefer `process(action='kill', session_id=...)`.\n\n## Access Control via Username Keywords\n\nPinggy stacks control flags into the SSH username separated by `+`. Always quote the whole `user@host` argument when it contains a `+`:\n\n| Keyword | Effect |\n|---------|--------|\n| `b:user:pass` | HTTP Basic auth gate |\n| `k:token` | Bearer-token header gate (`Authorization: Bearer \u003Ctoken>`) |\n| `w:CIDR` | IP whitelist (single IP or CIDR, repeatable) |\n| `co` | Add `Access-Control-Allow-Origin: *` (CORS) |\n| `x:https` | Force HTTPS — auto-redirect HTTP to HTTPS |\n| `a:Name:Value` | Add request header |\n| `u:Name:Value` | Update request header |\n| `r:Name` | Remove request header |\n| `qr` | Print a QR code of the URL to stdout (handy for mobile sharing) |\n\nCombine freely: `\"b:admin:secret+co+x:https+free@a.pinggy.io\"`.\n\n## Web Debugger (optional)\n\nPinggy can mirror the inbound traffic to `localhost:4300` for inspection. Add a local forward to the SSH command:\n\n```bash\nssh -p 443 -L4300:localhost:4300 -R0:localhost:8000 free@a.pinggy.io\n```\n\nThen open `http:\u002F\u002Flocalhost:4300` in a browser to see live request\u002Fresponse pairs.\n\n## Pitfalls\n\n- **60-minute hard cap on the free tier.** The SSH session terminates at the 60-minute mark; the URL goes dead. For longer shares, either use `PINGGY_TOKEN` (Pro) or auto-restart with a shell loop (note that the URL changes on every restart for free-tier).\n- **Free-tier URL is random and changes on restart.** Don't bookmark it, don't paste it into a config file. Re-parse from the log each time.\n- **Concurrent free tunnels are limited to one per source IP.** Starting a second tunnel from the same machine usually kills the first. Pro tier lifts this.\n- **`+` in usernames must be quoted.** Bare `ssh ... b:admin:secret+free@a.pinggy.io` works in bash but breaks under shells that treat `+` specially or when assembled programmatically. Always wrap in double quotes.\n- **Don't tunnel anything sensitive without an access-control flag.** A bare HTTP tunnel is reachable by anyone with the URL. Use `b:`, `k:`, or `w:` for non-public services.\n- **`process(action='log')` may miss SSH banner output.** Pinggy prints the URLs and then the SSH session goes interactive. Always redirect to a logfile and `grep` the file directly — same pattern as `cloudflared-quick-tunnel`.\n- **Host-key prompt on first run.** Default OpenSSH config asks the user to accept Pinggy's host key. Always pass `-o StrictHostKeyChecking=no -o UserKnownHostsFile=\u002Fdev\u002Fnull` for unattended runs.\n- **TCP and TLS tunnels return a `\u003Csubdomain>.a.pinggy.online:\u003Cport>` pair, not an https URL.** Parse with a different regex (`tcp:\u002F\u002F` and a port). Don't assume every Pinggy tunnel is HTTP.\n- **Pro mode requires the token as the username, not a flag.** Use `\"$PINGGY_TOKEN+a.pinggy.io\"` (no `free@`). With a token you can also add `:persistent` for a stable subdomain — see `pinggy.io\u002Fdocs\u002F`.\n\n## Recipes\n\nComposite patterns combining a local origin with a Pinggy tunnel. Each recipe is self-contained — start the origin, start the tunnel, parse the URL, hand it back to the user.\n\n### Recipe 1 — Receive a webhook callback\n\nUse this when an external service (Stripe, GitHub, Discord, AgentMail, etc.) needs to POST to a publicly reachable URL during a local task.\n\n```bash\n# 1. Tiny capturing server: every request gets appended to ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-hits.log\ncat >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-server.py \u003C\u003C'PY'\nimport http.server, json, datetime, pathlib\nLOG = pathlib.Path(\"~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-hits.log\").expanduser()\nclass H(http.server.BaseHTTPRequestHandler):\n    def _capture(self):\n        n = int(self.headers.get(\"content-length\") or 0)\n        body = self.rfile.read(n).decode(\"utf-8\", \"replace\") if n else \"\"\n        rec = {\"t\": datetime.datetime.utcnow().isoformat(), \"path\": self.path,\n               \"method\": self.command, \"headers\": dict(self.headers), \"body\": body}\n        with LOG.open(\"a\") as f: f.write(json.dumps(rec) + \"\\n\")\n        self.send_response(200); self.send_header(\"content-type\",\"application\u002Fjson\")\n        self.end_headers(); self.wfile.write(b'{\"ok\":true}\\n')\n    def do_GET(self): self._capture()\n    def do_POST(self): self._capture()\n    def log_message(self,*a,**k): pass\nhttp.server.HTTPServer((\"127.0.0.1\", 18080), H).serve_forever()\nPY\nnohup python ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-server.py >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-server.log 2>&1 &\necho $! >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-server.pid\n\n# 2. Tunnel — bearer-token-gate so randos can't pollute the capture log\nnohup ssh -p 443 -o StrictHostKeyChecking=no -o UserKnownHostsFile=\u002Fdev\u002Fnull \\\n    -o ServerAliveInterval=30 \\\n    -R0:localhost:18080 \"k:$(openssl rand -hex 12)+free@a.pinggy.io\" \\\n    >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-pinggy.log 2>&1 &\necho $! >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-pinggy.pid\nsleep 5\nURL=$(grep -oE 'https:\u002F\u002F[a-z0-9-]+\\.[a-z]+\\.pinggy\\.link' ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-pinggy.log | head -1)\necho \"Webhook URL: $URL\"\n\n# 3. While the agent works, watch hits land\ntail -f ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-hits.log\n```\n\nHand `$URL` to the service that needs to call you. Teardown: `kill $(cat ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-server.pid) $(cat ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-pinggy.pid)`.\n\n### Recipe 2 — Expose an MCP server over HTTP\u002FSSE\n\nUse when a remote MCP client (Claude Desktop on another machine, a teammate's editor, etc.) needs to reach an MCP server running on the local box. Only works for MCP servers that speak HTTP transport — stdio-mode servers can't be tunneled.\n\n```bash\n# 1. Start the MCP server in HTTP mode (example: a FastMCP server on port 8765)\nnohup python my_mcp_server.py --transport http --port 8765 \\\n    >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fmcp-server.log 2>&1 &\necho $! >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fmcp-server.pid\n\n# 2. Tunnel with a bearer token — MCP traffic should not be open to the internet\nTOKEN=$(openssl rand -hex 16)\nnohup ssh -p 443 -o StrictHostKeyChecking=no -o UserKnownHostsFile=\u002Fdev\u002Fnull \\\n    -o ServerAliveInterval=30 \\\n    -R0:localhost:8765 \"k:$TOKEN+free@a.pinggy.io\" \\\n    >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fmcp-pinggy.log 2>&1 &\necho $! >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fmcp-pinggy.pid\nsleep 5\nURL=$(grep -oE 'https:\u002F\u002F[a-z0-9-]+\\.[a-z]+\\.pinggy\\.link' ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fmcp-pinggy.log | head -1)\necho \"MCP URL: $URL\"\necho \"Bearer token: $TOKEN\"\n```\n\nThe remote client connects to `$URL` with `Authorization: Bearer $TOKEN`. Hermes' own native MCP client config: `{\"transport\": \"http\", \"url\": \"\u003CURL>\", \"headers\": {\"Authorization\": \"Bearer \u003CTOKEN>\"}}`.\n\n### Recipe 3 — Expose a local LLM endpoint (Ollama \u002F vLLM \u002F llama.cpp)\n\nShare a local model with a remote caller (another agent, a phone, a teammate). Ollama listens on `:11434`, vLLM and llama.cpp typically on `:8000`.\n\n```bash\n# Pre-req: the model server is already running on 127.0.0.1:11434 (Ollama default)\nTOKEN=$(openssl rand -hex 16)\nnohup ssh -p 443 -o StrictHostKeyChecking=no -o UserKnownHostsFile=\u002Fdev\u002Fnull \\\n    -o ServerAliveInterval=30 \\\n    -R0:localhost:11434 \"k:$TOKEN+co+free@a.pinggy.io\" \\\n    >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fllm-pinggy.log 2>&1 &\necho $! >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fllm-pinggy.pid\nsleep 5\nURL=$(grep -oE 'https:\u002F\u002F[a-z0-9-]+\\.[a-z]+\\.pinggy\\.link' ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fllm-pinggy.log | head -1)\necho \"Endpoint: $URL\"\necho \"Token:    $TOKEN\"\n\n# Verify\ncurl -s \"$URL\u002Fapi\u002Ftags\" -H \"Authorization: Bearer $TOKEN\" | head\n```\n\n`co` enables CORS so a browser caller can hit the endpoint. Drop `co` for backend-only callers. For an OpenAI-compatible vLLM\u002Fllama.cpp endpoint, callers use base URL `$URL\u002Fv1` with `Authorization: Bearer $TOKEN` — but note Pinggy strips\u002Freplaces nothing in the body, so the model server itself sees Pinggy's token; the local server should be configured to ignore auth (it's already on `127.0.0.1`) and let Pinggy do the gating.\n\n### Recipe 4 — Share a dev server with a one-shot password\n\nThe fastest \"let a teammate poke at my running app\" pattern. Random password, prints once, dies when you Ctrl-C.\n\n```bash\nPASS=$(openssl rand -base64 12 | tr -d '+\u002F=' | head -c 12)\necho \"Dev server password: $PASS\"\nssh -p 443 -o StrictHostKeyChecking=no -o UserKnownHostsFile=\u002Fdev\u002Fnull \\\n    -o ServerAliveInterval=30 \\\n    -R0:localhost:3000 \"b:dev:$PASS+co+x:https+free@a.pinggy.io\"\n# URL prints to the terminal. Share URL + password. Ctrl-C to tear down.\n```\n\n`b:dev:$PASS` gates the URL with HTTP Basic auth. `x:https` forces TLS. `co` adds CORS for SPA frontends.\n\n## Verification\n\n```bash\n# End-to-end: spin up a trivial origin, tunnel it, hit it, tear down\npython -m http.server 18000 --bind 127.0.0.1 >~\u002F.hermes\u002Fcache\u002Fscratch\u002Forigin.log 2>&1 &\nORIGIN_PID=$!\n\nnohup ssh -p 443 \\\n    -o StrictHostKeyChecking=no \\\n    -o UserKnownHostsFile=\u002Fdev\u002Fnull \\\n    -R0:localhost:18000 free@a.pinggy.io >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fpinggy-verify.log 2>&1 &\nSSH_PID=$!\n\nsleep 5\nURL=$(grep -oE 'https:\u002F\u002F[a-z0-9-]+\\.[a-z]+\\.pinggy\\.link' ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fpinggy-verify.log | head -1)\necho \"URL: $URL\"\ncurl -sI \"$URL\u002F\" | head -1\n\nkill \"$SSH_PID\" \"$ORIGIN_PID\"\n```\n\nExpected: a `pinggy.link` URL and `HTTP\u002F2 200` on the curl head.\n","# Pinggy Tunnel Skill\n\nExpose a local service (dev server, webhook receiver, MCP endpoint, demo) to the public internet using a Pinggy SSH reverse tunnel. No daemon to install — the user's stock SSH client connects to `a.pinggy.io:443` and Pinggy hands back a public HTTP\u002FHTTPS URL.\n\nFree tier: 60-minute tunnels, random subdomain, no signup. Pro tier ($3\u002Fmo) is an opt-in with a token.\n\n## When to Use\n\n- User asks to \"expose this locally\", \"share my dev server\", \"make this URL public\", \"tunnel port N\", \"get a public URL for a webhook\"\n- Need to receive a webhook callback during a local task (Stripe, GitHub, Discord, AgentMail)\n- Sharing a one-off HTTP demo (MCP server, Ollama\u002FvLLM endpoint, dashboard) with a remote party\n- The host has SSH but no `cloudflared` \u002F `ngrok` binary, and installing one would be overkill\n\nIf the host already has `cloudflared` configured, prefer the `cloudflared-quick-tunnel` skill — Cloudflare quick tunnels don't expire after 60 minutes.\n\n## Prerequisites\n\n- `ssh` on PATH (`ssh -V`). Default on Linux, macOS, and Windows 10+. No other install.\n- A local service listening on `127.0.0.1:\u003Cport>` before the tunnel starts. Pinggy will return URLs but they'll 502 until the local origin is up.\n\nOptional:\n\n- `PINGGY_TOKEN` env var for paid Pro features (persistent subdomain, custom domain, multiple tunnels, no 60-minute cap). Free tier needs no credentials.\n\n## Quick Reference\n\n```bash\n# Plain HTTP\u002FHTTPS tunnel for port 8000 (free tier)\nssh -p 443 -o StrictHostKeyChecking=no -o ServerAliveInterval=30 \\\n    -R0:localhost:8000 free@a.pinggy.io\n\n# TCP tunnel (databases, raw SSH, etc.)\nssh -p 443 -o StrictHostKeyChecking=no -R0:localhost:5432 tcp@a.pinggy.io\n\n# TLS tunnel (Pinggy can't decrypt — bring your own certs at origin)\nssh -p 443 -o StrictHostKeyChecking=no -R0:localhost:443 tls@a.pinggy.io\n\n# Basic auth gate (b:user:pass)\nssh -p 443 -o StrictHostKeyChecking=no -R0:localhost:8000 \\\n    \"b:admin:secret+free@a.pinggy.io\"\n\n# Bearer token gate (k:token)\nssh -p 443 -o StrictHostKeyChecking=no -R0:localhost:8000 \\\n    \"k:mysecrettoken+free@a.pinggy.io\"\n\n# IP whitelist (w:CIDR)\nssh -p 443 -o StrictHostKeyChecking=no -R0:localhost:8000 \\\n    \"w:203.0.113.0\u002F24+free@a.pinggy.io\"\n\n# Enable CORS + force HTTPS redirect\nssh -p 443 -o StrictHostKeyChecking=no -R0:localhost:8000 \\\n    \"co+x:https+free@a.pinggy.io\"\n\n# Pro tier (persistent URL, no 60-min cap)\nssh -p 443 -o StrictHostKeyChecking=no -R0:localhost:8000 \"$PINGGY_TOKEN+a.pinggy.io\"\n```\n\n## Procedure — Start a Tunnel and Get the URL\n\nThe model SHOULD use the `terminal` tool. The tunnel must stay alive for the duration of the share, so run it as a background process and parse the public URL from stdout.\n\n### 1. Confirm a local origin is up\n\n```bash\ncurl -sI http:\u002F\u002F127.0.0.1:8000\u002F | head -1\n# expect HTTP\u002F1.x 200 (or any non-connection-refused response)\n```\n\nIf nothing is listening yet, start it first (e.g. `python -m http.server 8000 --bind 127.0.0.1`). Pinggy will happily return a URL pointed at nothing — the user will see 502 until the origin comes up.\n\n### 2. Launch the tunnel as a background process\n\nUse `terminal(background=True)` and capture output to a logfile (Pinggy prints the URLs on stdout, then keeps the connection open):\n\n```bash\nLOG=~\u002F.hermes\u002Fcache\u002Fscratch\u002Fpinggy-8000.log\nnohup ssh -p 443 \\\n    -o StrictHostKeyChecking=no \\\n    -o UserKnownHostsFile=\u002Fdev\u002Fnull \\\n    -o ServerAliveInterval=30 \\\n    -o ServerAliveCountMax=3 \\\n    -R0:localhost:8000 free@a.pinggy.io \\\n    > \"$LOG\" 2>&1 &\necho $! > ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fpinggy-8000.pid\n```\n\n`StrictHostKeyChecking=no` + `UserKnownHostsFile=\u002Fdev\u002Fnull` skips the first-run host-key prompt. `ServerAliveInterval=30` keeps the SSH session from getting torn down by an idle NAT.\n\n### 3. Parse the URL out of the log\n\n```bash\nsleep 4\ngrep -oE 'https:\u002F\u002F[a-z0-9-]+\\.[a-z]+\\.pinggy\\.link' ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fpinggy-8000.log | head -1\n```\n\nExpected output looks like:\n\n```\nYou are not authenticated.\nYour tunnel will expire in 60 minutes.\nhttp:\u002F\u002Fyqycl-98-162-69-48.a.free.pinggy.link\nhttps:\u002F\u002Fyqycl-98-162-69-48.a.free.pinggy.link\n```\n\nHand the `https:\u002F\u002F...pinggy.link` URL to the user.\n\n### 4. Verify\n\n```bash\ncurl -sI https:\u002F\u002F\u003Cthe-url>\u002F | head -3\n# expect 200\u002F302\u002Fwhatever the local origin actually returns\n```\n\nIf you get `502 Bad Gateway`, the SSH session is up but the local origin isn't listening — fix step 1 first.\n\n### 5. Teardown\n\n```bash\nkill \"$(cat ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fpinggy-8000.pid)\"\n# or, if the pid file got lost:\npkill -f 'ssh -p 443 .* free@a\\.pinggy\\.io'\n```\n\nIf you have a session_id from `terminal(background=True)`, prefer `process(action='kill', session_id=...)`.\n\n## Access Control via Username Keywords\n\nPinggy stacks control flags into the SSH username separated by `+`. Always quote the whole `user@host` argument when it contains a `+`:\n\n| Keyword | Effect |\n|---------|--------|\n| `b:user:pass` | HTTP Basic auth gate |\n| `k:token` | Bearer-token header gate (`Authorization: Bearer \u003Ctoken>`) |\n| `w:CIDR` | IP whitelist (single IP or CIDR, repeatable) |\n| `co` | Add `Access-Control-Allow-Origin: *` (CORS) |\n| `x:https` | Force HTTPS — auto-redirect HTTP to HTTPS |\n| `a:Name:Value` | Add request header |\n| `u:Name:Value` | Update request header |\n| `r:Name` | Remove request header |\n| `qr` | Print a QR code of the URL to stdout (handy for mobile sharing) |\n\nCombine freely: `\"b:admin:secret+co+x:https+free@a.pinggy.io\"`.\n\n## Web Debugger (optional)\n\nPinggy can mirror the inbound traffic to `localhost:4300` for inspection. Add a local forward to the SSH command:\n\n```bash\nssh -p 443 -L4300:localhost:4300 -R0:localhost:8000 free@a.pinggy.io\n```\n\nThen open `http:\u002F\u002Flocalhost:4300` in a browser to see live request\u002Fresponse pairs.\n\n## Pitfalls\n\n- **60-minute hard cap on the free tier.** The SSH session terminates at the 60-minute mark; the URL goes dead. For longer shares, either use `PINGGY_TOKEN` (Pro) or auto-restart with a shell loop (note that the URL changes on every restart for free-tier).\n- **Free-tier URL is random and changes on restart.** Don't bookmark it, don't paste it into a config file. Re-parse from the log each time.\n- **Concurrent free tunnels are limited to one per source IP.** Starting a second tunnel from the same machine usually kills the first. Pro tier lifts this.\n- **`+` in usernames must be quoted.** Bare `ssh ... b:admin:secret+free@a.pinggy.io` works in bash but breaks under shells that treat `+` specially or when assembled programmatically. Always wrap in double quotes.\n- **Don't tunnel anything sensitive without an access-control flag.** A bare HTTP tunnel is reachable by anyone with the URL. Use `b:`, `k:`, or `w:` for non-public services.\n- **`process(action='log')` may miss SSH banner output.** Pinggy prints the URLs and then the SSH session goes interactive. Always redirect to a logfile and `grep` the file directly — same pattern as `cloudflared-quick-tunnel`.\n- **Host-key prompt on first run.** Default OpenSSH config asks the user to accept Pinggy's host key. Always pass `-o StrictHostKeyChecking=no -o UserKnownHostsFile=\u002Fdev\u002Fnull` for unattended runs.\n- **TCP and TLS tunnels return a `\u003Csubdomain>.a.pinggy.online:\u003Cport>` pair, not an https URL.** Parse with a different regex (`tcp:\u002F\u002F` and a port). Don't assume every Pinggy tunnel is HTTP.\n- **Pro mode requires the token as the username, not a flag.** Use `\"$PINGGY_TOKEN+a.pinggy.io\"` (no `free@`). With a token you can also add `:persistent` for a stable subdomain — see `pinggy.io\u002Fdocs\u002F`.\n\n## Recipes\n\nComposite patterns combining a local origin with a Pinggy tunnel. Each recipe is self-contained — start the origin, start the tunnel, parse the URL, hand it back to the user.\n\n### Recipe 1 — Receive a webhook callback\n\nUse this when an external service (Stripe, GitHub, Discord, AgentMail, etc.) needs to POST to a publicly reachable URL during a local task.\n\n```bash\n# 1. Tiny capturing server: every request gets appended to ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-hits.log\ncat >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-server.py \u003C\u003C'PY'\nimport http.server, json, datetime, pathlib\nLOG = pathlib.Path(\"~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-hits.log\").expanduser()\nclass H(http.server.BaseHTTPRequestHandler):\n    def _capture(self):\n        n = int(self.headers.get(\"content-length\") or 0)\n        body = self.rfile.read(n).decode(\"utf-8\", \"replace\") if n else \"\"\n        rec = {\"t\": datetime.datetime.utcnow().isoformat(), \"path\": self.path,\n               \"method\": self.command, \"headers\": dict(self.headers), \"body\": body}\n        with LOG.open(\"a\") as f: f.write(json.dumps(rec) + \"\\n\")\n        self.send_response(200); self.send_header(\"content-type\",\"application\u002Fjson\")\n        self.end_headers(); self.wfile.write(b'{\"ok\":true}\\n')\n    def do_GET(self): self._capture()\n    def do_POST(self): self._capture()\n    def log_message(self,*a,**k): pass\nhttp.server.HTTPServer((\"127.0.0.1\", 18080), H).serve_forever()\nPY\nnohup python ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-server.py >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-server.log 2>&1 &\necho $! >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-server.pid\n\n# 2. Tunnel — bearer-token-gate so randos can't pollute the capture log\nnohup ssh -p 443 -o StrictHostKeyChecking=no -o UserKnownHostsFile=\u002Fdev\u002Fnull \\\n    -o ServerAliveInterval=30 \\\n    -R0:localhost:18080 \"k:$(openssl rand -hex 12)+free@a.pinggy.io\" \\\n    >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-pinggy.log 2>&1 &\necho $! >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-pinggy.pid\nsleep 5\nURL=$(grep -oE 'https:\u002F\u002F[a-z0-9-]+\\.[a-z]+\\.pinggy\\.link' ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-pinggy.log | head -1)\necho \"Webhook URL: $URL\"\n\n# 3. While the agent works, watch hits land\ntail -f ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-hits.log\n```\n\nHand `$URL` to the service that needs to call you. Teardown: `kill $(cat ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-server.pid) $(cat ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fwebhook-pinggy.pid)`.\n\n### Recipe 2 — Expose an MCP server over HTTP\u002FSSE\n\nUse when a remote MCP client (Claude Desktop on another machine, a teammate's editor, etc.) needs to reach an MCP server running on the local box. Only works for MCP servers that speak HTTP transport — stdio-mode servers can't be tunneled.\n\n```bash\n# 1. Start the MCP server in HTTP mode (example: a FastMCP server on port 8765)\nnohup python my_mcp_server.py --transport http --port 8765 \\\n    >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fmcp-server.log 2>&1 &\necho $! >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fmcp-server.pid\n\n# 2. Tunnel with a bearer token — MCP traffic should not be open to the internet\nTOKEN=$(openssl rand -hex 16)\nnohup ssh -p 443 -o StrictHostKeyChecking=no -o UserKnownHostsFile=\u002Fdev\u002Fnull \\\n    -o ServerAliveInterval=30 \\\n    -R0:localhost:8765 \"k:$TOKEN+free@a.pinggy.io\" \\\n    >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fmcp-pinggy.log 2>&1 &\necho $! >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fmcp-pinggy.pid\nsleep 5\nURL=$(grep -oE 'https:\u002F\u002F[a-z0-9-]+\\.[a-z]+\\.pinggy\\.link' ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fmcp-pinggy.log | head -1)\necho \"MCP URL: $URL\"\necho \"Bearer token: $TOKEN\"\n```\n\nThe remote client connects to `$URL` with `Authorization: Bearer $TOKEN`. Hermes' own native MCP client config: `{\"transport\": \"http\", \"url\": \"\u003CURL>\", \"headers\": {\"Authorization\": \"Bearer \u003CTOKEN>\"}}`.\n\n### Recipe 3 — Expose a local LLM endpoint (Ollama \u002F vLLM \u002F llama.cpp)\n\nShare a local model with a remote caller (another agent, a phone, a teammate). Ollama listens on `:11434`, vLLM and llama.cpp typically on `:8000`.\n\n```bash\n# Pre-req: the model server is already running on 127.0.0.1:11434 (Ollama default)\nTOKEN=$(openssl rand -hex 16)\nnohup ssh -p 443 -o StrictHostKeyChecking=no -o UserKnownHostsFile=\u002Fdev\u002Fnull \\\n    -o ServerAliveInterval=30 \\\n    -R0:localhost:11434 \"k:$TOKEN+co+free@a.pinggy.io\" \\\n    >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fllm-pinggy.log 2>&1 &\necho $! >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fllm-pinggy.pid\nsleep 5\nURL=$(grep -oE 'https:\u002F\u002F[a-z0-9-]+\\.[a-z]+\\.pinggy\\.link' ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fllm-pinggy.log | head -1)\necho \"Endpoint: $URL\"\necho \"Token:    $TOKEN\"\n\n# Verify\ncurl -s \"$URL\u002Fapi\u002Ftags\" -H \"Authorization: Bearer $TOKEN\" | head\n```\n\n`co` enables CORS so a browser caller can hit the endpoint. Drop `co` for backend-only callers. For an OpenAI-compatible vLLM\u002Fllama.cpp endpoint, callers use base URL `$URL\u002Fv1` with `Authorization: Bearer $TOKEN` — but note Pinggy strips\u002Freplaces nothing in the body, so the model server itself sees Pinggy's token; the local server should be configured to ignore auth (it's already on `127.0.0.1`) and let Pinggy do the gating.\n\n### Recipe 4 — Share a dev server with a one-shot password\n\nThe fastest \"let a teammate poke at my running app\" pattern. Random password, prints once, dies when you Ctrl-C.\n\n```bash\nPASS=$(openssl rand -base64 12 | tr -d '+\u002F=' | head -c 12)\necho \"Dev server password: $PASS\"\nssh -p 443 -o StrictHostKeyChecking=no -o UserKnownHostsFile=\u002Fdev\u002Fnull \\\n    -o ServerAliveInterval=30 \\\n    -R0:localhost:3000 \"b:dev:$PASS+co+x:https+free@a.pinggy.io\"\n# URL prints to the terminal. Share URL + password. Ctrl-C to tear down.\n```\n\n`b:dev:$PASS` gates the URL with HTTP Basic auth. `x:https` forces TLS. `co` adds CORS for SPA frontends.\n\n## Verification\n\n```bash\n# End-to-end: spin up a trivial origin, tunnel it, hit it, tear down\npython -m http.server 18000 --bind 127.0.0.1 >~\u002F.hermes\u002Fcache\u002Fscratch\u002Forigin.log 2>&1 &\nORIGIN_PID=$!\n\nnohup ssh -p 443 \\\n    -o StrictHostKeyChecking=no \\\n    -o UserKnownHostsFile=\u002Fdev\u002Fnull \\\n    -R0:localhost:18000 free@a.pinggy.io >~\u002F.hermes\u002Fcache\u002Fscratch\u002Fpinggy-verify.log 2>&1 &\nSSH_PID=$!\n\nsleep 5\nURL=$(grep -oE 'https:\u002F\u002F[a-z0-9-]+\\.[a-z]+\\.pinggy\\.link' ~\u002F.hermes\u002Fcache\u002Fscratch\u002Fpinggy-verify.log | head -1)\necho \"URL: $URL\"\ncurl -sI \"$URL\u002F\" | head -1\n\nkill \"$SSH_PID\" \"$ORIGIN_PID\"\n```\n\nExpected: a `pinggy.link` URL and `HTTP\u002F2 200` on the curl head.\n",{"name":5,"author":24,"license":15,"version":25,"metadata":26,"platforms":36,"description":7},"Teknium (teknium1), Hermes Agent","0.1.0",{"hermes":27},{"tags":28,"related_skills":35},[29,30,31,32,33,34],"Pinggy","Tunnel","Networking","SSH","Webhook","Localhost",[],[37,38,39],"linux","macos","windows","main","4e084e84eb42fc53e144c89c0f7f48b39c8a4b0f","collections\u002Fhermes-agent\u002Fskills\u002Fpinggy-tunnel",1,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fsanjeevafk","First make it work. Then make it right. Then make it fast.","2026-11-14 13:36:16",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add sanjeevafk\u002Fagent-skills --skill pinggy-tunnel",{"tool":54,"command":55},"bunx","bunx skills add sanjeevafk\u002Fagent-skills --skill pinggy-tunnel",{"tool":57,"command":58},"pnpm","pnpm dlx skills add sanjeevafk\u002Fagent-skills --skill pinggy-tunnel","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fhermes-agent\u002Fskills\u002Fpinggy-tunnel\u002FSKILL.md",true,[],[63,70,78,87,95,102],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7EFHX67M3KKXT1BXVPA5ADT","zarr-python","Chunked N-D arrays for cloud storage (Zarr-Python 3). Compressed arrays, parallel I\u002FO, S3\u002FGCS via fsspec, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":74,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7EFFQGM51TZBGRENXY50ZYM","whiteboard-diagrams","Create accurate, simple, hand-drawn whiteboard diagrams from a user's process, system, architecture, learning workflow, comparison, or causal explanation. Use when the user asks for a scribbly whiteboard visual, educational workflow graphic, hand-drawn explainer, or diagram like the bundled reference; ask one focused clarification question when the subject or relationships are missing, then generate and visually verify the final image.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":82,"licenseFileUrl":83,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7EFF1CSQNTDMHFK4ZGY6NYK","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":82,"licenseFileUrl":91,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7EFE8106X6C28FT8PA74427","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7EFCSNZM9G7ZHS6F127Q71X","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":106,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M7EFCE7EZMKPRYDDNKBQ9EEH","vercel-deploy","Deploy applications and websites to Vercel. Use when the user requests deployment actions like \"deploy my app\", \"deploy and give me the link\", \"push this live\", or \"create a preview deployment\".","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FSKILL.md",[],[]]