portal-relay-hetzner

portal-relay-hetzner is a skill for Claude Code, Codex from gosuda/portal-tunnel. It costs 109 tokens per session (1,124 once invoked), scanned A, original, MIT.

A skill for creating a Hetzner Cloud server and firewall for a Portal relay. Hetzner Cloud is a hosted service for running virtual servers, and the skill hands the prepared host to the relay deployment process.

In plain words
What is it for?
Use it to create the server, attach a Hetzner Cloud Firewall, open only the relay ports, keep a stable primary IPv4 address, and pass the host to the deployment skill.
Why use it?
It sets up the required host and restricts its exposed network ports instead of leaving server creation and firewall configuration to separate manual steps.

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-relay plugin — 6 skills shipped together

Good fit Use it to create the server, attach a Hetzner Cloud Firewall, open only the relay ports, keep a stable primary IPv4 address, and pass the host to the deployment skill.

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

Made for: Claude Code, Codex.

Or install portal-relay, the plugin that ships this one along with the rest of its 6 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-relay-hetzner

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/gosuda/portal-tunnel/portal-relay-hetzner"><img src="https://agentmods.dev/badge/skills/gosuda/portal-tunnel/portal-relay-hetzner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,124 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.
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.00109 $0.01124
Opus 5.5 $0.00044 $0.00450
Sonnet 5.5 $0.00022 $0.00225
Haiku 4.5 $0.00011 $0.00112

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

Security

Grade A, and why

portal-relay-hetzner 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 21d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `ssh root@<ip>` works, and after deployment `dig @<ip> <relay domain> NS` and `curl -fsS https://<relay domain>/api/healthz` succeed. A port that times out is usually missing from the Cloud Firewall.
plugins/portal-relay/skills/portal-relay-hetzner/SKILL.md · 48 lines

How it starts

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

Portal relay on Hetzner Cloud

This skill creates and opens the host. portal-relay deploys the relay on it. Follow ../portal-relay/references/provider-contract.md (the portal-relay skill's contract in this same plugin; the path is relative to this file, so it matches the installed version and needs no network) for the phase order, credential rules, and approval rules. This file adds only what is specific to Hetzner Cloud.

Preflight

  • hcloud version. If the CLI is missing, point to the official hcloud install instructions and stop.
  • hcloud context active names the active project context, and a read-only call such as hcloud server-type list -o noheader proves the token works here. Do not open ~/.config/hcloud/cli.toml; it stores the token.

Authenticate

When no context works, ask the user to create a project API token in the Hetzner Console and run hcloud context create <name> locally; the CLI prompts for the token, so it never appears in chat or in shell history. A project token can change every resource in that project, so suggest a dedicated project for the relay. In a CI or sandbox environment that the user controls, HCLOUD_TOKEN in its secret store also works; never set it in a command line.

Plan

Collect and show, then wait for approval:

  • Location (hcloud location list) and server type (hcloud server-type list; read current names and prices from hcloud server-type describe <type> instead of assuming them). The smallest Arm or x86 type is enough; the relay image supports linux/arm64 and linux/amd64.
  • Image: a current Ubuntu image from hcloud image list --type system.
  • SSH key: an existing key from hcloud ssh-key list, or the user's public key added with hcloud ssh-key create --public-key-from-file. Without one Hetzner emails a root password; avoid that.
  • Firewall rules from the contract. Hetzner Cloud Firewalls allow only what a rule lists, so every port the relay needs must be present.
  • Primary IPv4: billed separately from the server. Create it on its own (hcloud primary-ip create --type ipv4 --name <name> --location <location>, with auto-delete off) and pass it with --primary-ipv4, so the glue address survives server re-creation.
  • Optional --enable-protection delete,rebuild against accidental deletion.

Read the full file on GitHub · 48 lines

Files

What ships with it

1 file 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. 21d ago First seen · 48 lines · 109 tokens per session scan A 69975b2d511b

Subscribe to this mod's changes

portal-relay-hetzner is a skill published in the GitHub repository gosuda/portal-tunnel (304 stars, last pushed today), licensed MIT. It adds 109 tokens to every session and 1,124 once invoked, about $0.0004 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-11-09.

Related

portal-relay-hetzner compared with skills from other repositories

portal-relay-hetzner next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
portal-relay-hetznergosuda/portal-tunnelSkill304todayMITA109Claude Code, Codex
tianji-workermsgbyte/tianjiSkill3.1ktodayApache-2.0A38Claude Code, Codex
cloudflare-skillzeenie-ai/OpenCompanySkill1.1k4d agoMITA72Claude Code
gcloud-skillzeenie-ai/OpenCompanySkill1.1k4d agoMITA55Claude Code
vercel-skillzeenie-ai/OpenCompanySkill1.1k4d agoMITA59Claude Code
aws-skillzeenie-ai/OpenCompanySkill1.1k4d agoMITA59Claude Code
hetznerericrisco/rsc-harnessSkill6915d agoMITA97Claude Code, Codex