by gosuda
Publishes localhost services to the agentic web through self-hostable, trustless relays.
# Add to your Claude Code skills
git clone https://github.com/gosuda/portal-tunnelGuides for using ai agents skills like portal-tunnel.
portal-tunnel is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by gosuda. Publishes localhost services to the agentic web through self-hostable, trustless relays. It has 304 GitHub stars.
portal-tunnel's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/gosuda/portal-tunnel" and add it to your Claude Code skills directory (see the Installation section above).
portal-tunnel is primarily written in Go. It is open-source under gosuda on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh portal-tunnel against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Portal is an open-source tunnel runtime and relay network for publishing services to the agentic web. It exposes local apps, APIs, tools, and agents through self-hosted or public relays, keeps routing and security policy in the local tunnel process, and eliminates the need for hosted vendor accounts or credit cards.
--ban-mitm blocks a relay for that exposure when exporter values differ.identity.json) with SIWE challenge signing.The Feature Inventory lists all 20+ capabilities across CLI, Agent, SDK, and Relay, with interface support and trust boundaries.
| Portal | ngrok | Cloudflare Tunnel | frp | |
|---|---|---|---|---|
| Public localhost URL | Yes | Yes | Yes | Yes |
| Self-hostable | Yes | Enterprise only | No | Yes |
| Open source | MIT | No | Client only | Apache 2.0 |
| Custom domain | Yes | Paid plans | Yes | Yes |
| End-to-end tenant TLS | Yes (uncached exposures) | No | No | No |
| MITM self-probe | Yes (TLS keying material export) | No | No | No |
| Multi-relay failover | Yes | Managed | Built-in | No |
| Account required | No | Yes | Yes | No |
| Native x402 payments | Yes | No | No | No |
macOS / Linux:
curl -fsSL https://github.com/gosuda/portal-tunnel/releases/latest/download/install.sh | bash
portal expose 3000
Windows (PowerShell):
$ProgressPreference = 'SilentlyContinue';
irm https://github.com/gosuda/portal-tunnel/releases/latest/download/install.ps1 | iex;
portal expose 3000
Portal prints an HTTPS URL when the tunnel is ready. Without --name it is a
short random URL such as https://sunny-otter-k7m2q6rt3vx5z4ab.<relay-domain>/.
It stays the same while the command runs, including reconnects, and changes on
the next run. To choose a stable short URL, use --name myapp to select the service. When that
name is available, share https://myapp.<relay-domain>/, printed as short URL
in the readiness message (alias_url in JSON logs). The identity-bound URL is
also available; it includes the Ethereum address and supports opt-in relay
caching. If the name is already taken, Portal prints only the identity-bound URL.
The identity file supplies a reusable signing key. Repeat --name myapp on
later runs to select the same service, or choose another name to serve a
different service with that key. New files do not save the name; omitting it
chooses a random service name for Keyless HTTP. Unnamed Local TLS and raw TCP/UDP
keep their existing behavior. Older files retain their saved name as the default.
See identity names
for URL behavior. Additional common usages:
# Custom name and explicit relay
portal expose 3000 --name myapp --relays https://portal.example.com --discovery=false
# Mount multiple local services behind one domain
portal expose --name myapp \
--http-route /api=http://127.0.0.1:3001 \
--http-route /=http://127.0.0.1:5173
# Dedicated raw TCP port (Minecraft, SSH, databases)
portal expose localhost:25565 --name minecraft --tcp
# Prefer an IVNP overlay backhaul path
portal expose 3000 --overlay
The repository includes two plugins for Codex, Claude Code, and Cursor: portal-tunnel (portal-expose and portal-connect) for publishing and reaching services, and portal-relay for running a relay:
# GitHub CLI
gh skill install gosuda/portal-tunnel portal-tunnel/portal-expose
# skills CLI
npx skills add gosuda/portal-tunnel --skill portal-expose
Ask your agent: "Expose my app on port 3000 with Portal and verify the public URL." See plugins/portal-tunnel/README.md and plugins/portal-relay/README.md for full setup instructions.
When tunnels should run continuously in the background or as a system service:
portal agent run --config config.toml
portal agent dashboard --config config.toml
See the Portal Agent Guide for configuration syntax and OS service installation.
A relay exposes a public endpoint on your IP and domain. Budget for egress and finite compute and ports, plan for outages, and be prepared to handle abuse complaints and IP, domain or CA reputation damage. Approved publishers and their visitors can still generate costs. A stream rate limit in bytes/second cannot guarantee a monthly traffic bill or remove legal liability.
Choose Public (auto) to accept registrations by default, or Approval Required (manual) to review authenticated service identities before allocating resources. For a first or capacity-constrained relay, start with manual approval. Check the effective mode in /admin or the relay’s public /sdk/domain report. A saved policy.json overrides the startup setting.
Set APPROVAL_MODE=manual in your new deployment’s .env to use approval requests:
git clone https://github.com/gosuda/portal-tunnel
cd portal-tunnel && cp .env.example .env
# Set APPROVAL_MODE=manual and ADMIN_TOKEN in .env before first startup.
docker compose up
See Deployment for DNS automation (ACME), TCP/UDP port ranges, and production policy configuration.
The ordinary uncached forwarding path works as follows:
Browser
-> Relay SNI router (reads ClientHello/SNI, forwards tenant ciphertext)
-> Reverse session
-> Portal tunnel (completes TLS handshake locally, derives session keys)
-> Local service
/v1/sign. The relay never receives session keys.Portal minimizes relay trust; it does not yet eliminate it. A malicious relay with the certificate private key can still impersonate an endpoint, and the self-probe checks only sampled connections. See the Security Model for guarantees and exceptions, or Keyless TLS Explained for the design rationale.
Portal includes the official public relay registry by default:
https://raw.githubusercontent.com/gosuda/portal-tunnel/main/registry.json
Registry membership is voluntary. Check the relay’s /sdk/domain report for its admission mode. Older relays may omit this field.
If you operate a public Portal relay, open a pull request to add your relay URL to registry.json.