ap-tunnels

ap-tunnels is a skill for Claude Code, Codex from agentproto/ts. It costs 69 tokens per session (999 once invoked), scanned A, original, Apache-2.0.

A tunnel tool that gives a local development server a public internet URL. It can use temporary or named Cloudflare or ngrok tunnels.

In plain words
What is it for?
Use it to publish a local port for webhook targets, share a development preview, test from a phone, or expose the agent gateway remotely.
Why use it?
Services outside your machine cannot normally reach localhost, which makes webhooks, demos, and remote testing difficult.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to publish a local port for webhook targets, share a development preview, test from a phone, or expose the agent gateway remotely.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agentproto/ts/ap-tunnels
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.

Any agent
npx skills add agentproto/ts --skill ap-tunnels
Clone the repo
git clone --depth 1 https://github.com/agentproto/ts

Made for: Claude Code, Codex.

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 ap-tunnels

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentproto/ts/ap-tunnels/github.svg)](https://agentmods.dev/skills/agentproto/ts/ap-tunnels)
Your own site
<a href="https://agentmods.dev/skills/agentproto/ts/ap-tunnels"><img src="https://agentmods.dev/badge/skills/agentproto/ts/ap-tunnels/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ap-tunnels

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentproto/ts/ap-tunnels"><img src="https://agentmods.dev/badge/skills/agentproto/ts/ap-tunnels.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 999 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00069 $0.00999
Opus 5.5 $0.00028 $0.00400
Sonnet 5.5 $0.00014 $0.00200
Haiku 4.5 $0.00007 $0.00100

Measured 12d ago against content hash 620ab022166f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ap-tunnels scanned grade A with 0 findings 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 12d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/skill-pack-agentproto/src/skills/ap-tunnels/SKILL.md · 69 lines

How it starts

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

ap-tunnels

When to use

  • A local dev server must be reachable from the internet (webhook targets, demo links, mobile testing).
  • You want to drive this daemon's MCP gateway from a remote client.
  • A tunnel is stuck or duplicated and needs to be found and rotated.

tunnel_*: expose any local port

// 1. Always check first — one tunnel per port; duplicates just fail
tunnel_list({ "onlyActive": true })

// 2. Quick tunnel: no account, ephemeral URL, ready in seconds
tunnel_create({ "targetPort": 3000, "provider": "cloudflare-quick", "label": "vite-preview" })
// → { "id": "uuid", "publicUrl": "https://random-words.trycloudflare.com",
//     "url": "https://random-words.trycloudflare.com/?t=<signed token>", "access": "private", ... }
// Share `url`, not `publicUrl` — the bare host rejects requests without the token.

// 3. Named tunnel: stable hostname you provisioned once
tunnel_create({
  "targetPort": 3000,
  "provider": "cloudflare-named",
  "hostname": "app.example.com",
  "tunnelId": "11111111-2222-3333-4444-555555555555",
  "credentialsFile": "~/.cloudflared/<tunnelId>.json",
  "autostart": true
})

// 4. Inspect / revoke the link / stop (stop is idempotent)
tunnel_status({ "tunnelId": "uuid" })
tunnel_revoke({ "tunnelId": "uuid" })   // invalidate the current link, get a fresh `url`; tunnel keeps running
tunnel_stop({ "tunnelId": "uuid" })

tunnel_create is private by default: an access guard (random bearer token, ttl default 24h, X-Robots-Tag: noindex, blocks /@fs/ and *.map) sits in front of targetPort, and the returned url carries the signed token. Pass "public": true only for content meant to be public — it skips the guard entirely (no token, no TTL, no revoke) and the descriptor carries a warning. list_tunnel_adapters enumerates the installed tunnel backends and their capabilities. Providers with credentials (e.g. ngrok authtokens, named-tunnel ids) are configured once, stored sensitively, and never echoed.

remote_enable: publish the gateway itself

Read the full file on GitHub · 69 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. 12d ago Changed · +4 lines 620ab022166f
  2. 1mo ago First seen · 65 lines · 69 tokens per session scan A a0716815fc60

Subscribe to this mod's changes

ap-tunnels is a skill published in the GitHub repository agentproto/ts (10 stars, last pushed yesterday), licensed Apache-2.0. It adds 69 tokens to every session and 999 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

aws-strands-agents-agentcore

Use when working with AWS Strands Agents SDK or Amazon Bedrock AgentCore platform for building AI agents. Provides architecture guidance, implementation patterns, deployment strategies, observability, quality evaluations, multi-agent orchestration, and MCP server integration.

sammcj/agentic-coding · 55 tokens

hyperpod-node-debugger

Diagnose and remediate per-node issues on a HyperPod cluster (EKS or Slurm) — a specific node is unhealthy, unresponsive, stuck, or needs replacing. Covers on-node EFA, GPU / accelerator hardware (XID, ECC, NVLink, row-remap, DCGM), Slurm node down/drained, disk and memory pressure, per-node lifecycle-script failures…

awslabs/agent-plugins · 139 tokens

aws-lambda-managed-instances

Evaluate, configure, and migrate workloads to AWS Lambda Managed Instances (LMI). Triggers on: Lambda Managed Instances, LMI, capacity provider, multi-concurrency Lambda, dedicated instance Lambda, EC2-backed Lambda, cold start elimination, Graviton Lambda, instance type for Lambda, scheduled scaling for LMI, Lambda…

awslabs/agent-plugins · 130 tokens

aws-architecture-diagram

Generate validated AWS architecture diagrams as draw.io XML using official AWS4 icon libraries. Use this skill whenever the user wants to create, generate, or design AWS architecture diagrams, cloud infrastructure diagrams, or system design visuals. Also triggers for requests to visualize existing infrastructure from…

awslabs/agent-plugins · 110 tokens

hyperpod-cluster-debugger

Diagnose and remediate cluster-wide HyperPod (EKS or Slurm) problems — creation / deployment failures (CloudFormation, EFA health check, lifecycle scripts, capacity), EKS access, node replacement, CloudFormation nested-stack errors, post-maintenance rollback state, dangling nodes, autoscaler conflicts. Includes…

awslabs/agent-plugins · 80 tokens

hyperpod-nccl

Diagnose NCCL failures and adjacent training-pod failures on HyperPod GPU clusters (EKS or Slurm) — training hangs, AllReduce / collective-op timeouts, EFA or libfabric errors, rendezvous failures, EFA TCP fallback, /dev/shm or memlock issues, NCCL version mismatch across pods, container OOM / exit-137 / OOMKilled…

awslabs/agent-plugins · 150 tokens