portal-expose

portal-expose is a skill for Claude Code, Codex from gosuda/portal-tunnel. It costs 221 tokens per session (4,197 once invoked), scanned A, original, MIT.

A guide for making a locally running website, web app, network route, or explicitly requested service reachable through Portal. Portal creates a public connection to the existing local service; it does not build or host the app in the cloud.

In plain words
What is it for?
Use it to publish temporary previews, serve a local directory, combine several local HTTP services, expose a paid route, or keep a tunnel running through a configured agent.
Why use it?
It provides a documented process for choosing the right exposure mode, handling protected or paid routes, and checking whether the public endpoint works.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the portal-deploy plugin — 3 skills shipped together

Good fit Use it to publish temporary previews, serve a local directory, combine several local HTTP services, expose a paid route, or keep a tunnel running through a configured agent.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gosuda/portal-tunnel/portal-expose
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 gosuda/portal-tunnel --skill portal-expose
Clone the repo
git clone --depth 1 https://github.com/gosuda/portal-tunnel

Made for: Claude Code, Codex.

Or install portal-deploy, the plugin that ships this one along with the rest of its 3 skills.

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 portal-expose

README.md
[![agentmods](https://agentmods.dev/badge/skills/gosuda/portal-tunnel/portal-expose/github.svg)](https://agentmods.dev/skills/gosuda/portal-tunnel/portal-expose)
Your own site
<a href="https://agentmods.dev/skills/gosuda/portal-tunnel/portal-expose"><img src="https://agentmods.dev/badge/skills/gosuda/portal-tunnel/portal-expose/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 portal-expose

Your own site · 80×15
<a href="https://agentmods.dev/skills/gosuda/portal-tunnel/portal-expose"><img src="https://agentmods.dev/badge/skills/gosuda/portal-tunnel/portal-expose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 221 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,197 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00221 $0.04197
Opus 5.5 $0.00088 $0.01679
Sonnet 5.5 $0.00044 $0.00839
Haiku 4.5 $0.00022 $0.00420

Measured today against content hash 4432e547bb56, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

portal-expose 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 today.

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.

- Verify the URL being handed off (`alias_url` when granted, otherwise `public_url`) with one bounded request. `*.localhost` often resolves to `::1` first, so use `curl -sk --ipv4 --connect-timeout 5 --max-time 15 -o /de
plugins/portal-deploy/skills/portal-expose/SKILL.md · 131 lines

How it starts

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

Expose an App with Portal

Portal publishes a service that is already running on the user's machine. It does not build the app or move it to a cloud host. Treat a successful tunnel as dependent on both the local app and the Portal process or agent remaining available. This is the app side of Portal: every relay website offers the same three steps (paste what to share, run one install-and-expose command built from the app settings, open the public URL), and this skill performs those steps for the app with verification around them. Any other program that reaches the published URL needs nothing from Portal.

Run the workflow in order. Open a reference only when that branch is taken: references/x402.md for a paid route, references/application-auth.md when only chosen people may open the URL (a credential link, wallet, or OIDC sign-in), references/safety-and-verification.md for an authenticated, sensitive/high-risk, or non-HTTP service, references/game-hosting.md for a game server, references/portal-cli.md when choosing persistent-agent configuration or checking a flag, references/sdk-embed.md only for a Go app that should run the tunnel inside its own process. Use the installed portal CLI for flags.

Choose the Mode

Use the smallest mode that satisfies the request:

  • Temporary web preview: portal expose <target>.
  • Connect the app to a relay the user picked, as its website's quick start does: install Portal from the official GitHub installer if it is missing, then portal expose <target> --name <name> --relays <relay-url>, with --discovery=false when only that relay should carry the app.
  • Trusted static directory or HTML entry: portal expose --serve <path>.
  • Multiple local HTTP services under one URL: repeat --http-route.
  • Paid HTTP path: routed HTTP with an explicit x402 payment contract; never enable payment implicitly.
  • Only chosen people may open the URL: add --auth credential, --auth siwe, or --auth oidc to the same command, as references/application-auth.md describes. It needs an allowlist for OIDC and cannot be combined with --tcp, --udp, or --cache.
  • Durable tunnel that should survive terminal or login restarts: an explicit portal agent config and managed service.
  • Session-owned durable tunnel without an OS service: portal agent run --foreground.
  • Game server (Minecraft, Terraria, Palworld, or any dedicated game server): always start from references/game-hosting.md — raw TCP/UDP transport has different prerequisites and verification than HTTP.
  • Go app that should carry the tunnel in-process instead of running the CLI next to it: references/sdk-embed.md. The CLI stays the default even for Go; embedding is for users who ask for it.

Read the full file on GitHub · 131 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today Changed · +3 lines · +13 tokens per session 4432e547bb56
  2. 3d ago Changed 81f65a160272
  3. 1mo ago Changed · +5 lines · +104 tokens per session d05676b530f5
  4. 1mo ago Changed 039b972951d5
  5. 1mo ago Changed b43c03a92072
  6. 1mo ago Changed 997c5b4c48a2
  7. 1mo ago First seen · 123 lines · 104 tokens per session scan A 525d08371ab4

Subscribe to this mod's changes

portal-expose is a skill published in the GitHub repository gosuda/portal-tunnel (291 stars, last pushed yesterday), licensed MIT. It adds 221 tokens to every session and 4,197 once invoked, about $0.0009 per session on Opus 5.5. 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-08-30.

Related

Other skills, from other repositories

tianji-worker

Use when creating, testing, deploying, invoking, debugging, scheduling, pausing, or rolling back Tianji Workers, or managing their environment variables and shared modules.

msgbyte/tianji · 38 tokens

cloudflare-skill

Work with Cloudflare via the official cf CLI — find the right cf command, list zones, list/create/edit/delete DNS records, query the GraphQL Analytics API (zone traffic, Web Analytics/RUM), and run any other cf command (Workers, R2, KV, D1, Pages, cache). Output is parsed JSON.

zeenie-ai/OpenCompany · 72 tokens

gcloud-skill

Work with Google Cloud via the official gcloud CLI — check auth/config, list and switch projects, manage Compute Engine instances, deploy and inspect Cloud Run services, work with Cloud Storage, and run any other gcloud command. Output is parsed JSON.

zeenie-ai/OpenCompany · 55 tokens

vercel-skill

Deploy sites and apps to Vercel, inspect deployments, stream logs, and manage projects/env/domains via the Vercel CLI. Deploy a directory and get back the live deployment URL; everything else the CLI supports is available through the custom command passthrough.

zeenie-ai/OpenCompany · 59 tokens

aws-skill

Work with Amazon Web Services through the official boto3 SDK — check the identity behind the key, list, start and stop EC2 instances, list, upload, download and delete S3 objects, and call any other AWS API operation. Output is AWS's own JSON response.

zeenie-ai/OpenCompany · 59 tokens

nvcf-self-managed-prerequisite

Install the prerequisites the NVCA operator / compute plane needs before nvcf-nvca-install can succeed: the operator tool nvcf-cli (required by the compute-plane stack's register-cluster step), KAI Scheduler (for the KAIScheduler feature gate), and the SMB CSI driver (for the sharedStorage Samba sidecar PVCs). The two…

NVIDIA/nvcf · 195 tokens