portal-relay-cloudflare

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

A skill for configuring Cloudflare DNS records for a Portal relay subdomain. DNS is the system that directs domain names to services; this skill also handles the delegation and DNSSEC records needed for the relay's embedded DNS.

In plain words
What is it for?
Use it to update a Cloudflare parent zone with the relay's NS, A, AAAA, and DS records, then verify delegation and DNSSEC using public DNS resolvers.
Why use it?
It prevents unrelated DNS records from being changed while setting up delegation, glue records, and DNSSEC for the relay.

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 update a Cloudflare parent zone with the relay's NS, A, AAAA, and DS records, then verify delegation and DNSSEC using public DNS resolvers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gosuda/portal-tunnel/portal-relay-cloudflare
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-cloudflare
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-cloudflare

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/gosuda/portal-tunnel/portal-relay-cloudflare"><img src="https://agentmods.dev/badge/skills/gosuda/portal-tunnel/portal-relay-cloudflare.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 131 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,938 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.00131 $0.01938
Opus 5.5 $0.00052 $0.00775
Sonnet 5.5 $0.00026 $0.00388
Haiku 4.5 $0.00013 $0.00194

Measured 21d ago against content hash c3ac9054df18, 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-cloudflare 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.

- Keep the token out of process arguments: pass the header from a file descriptor, for example `curl -fsS -H @<(printf 'Authorization: Bearer %s\n' "$CLOUDFLARE_API_TOKEN") https://api.cloudflare.com/client/v4/...`. Neve
plugins/portal-relay/skills/portal-relay-cloudflare/SKILL.md · 72 lines

How it starts

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

Portal relay DNS on Cloudflare

Cloudflare is the parent DNS provider here, not the host. The relay serves its own subdomain from embedded DNS; this skill writes only the parent-zone records that point to 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. Take the record layout and DNSSEC facts from portal-relay and the Embedded DNS reference.

Records this skill may change

For relay domain relay.example.com in Cloudflare zone example.com:

Type Name Content When
NS relay.example.com ns.relay.example.com Delegation
A ns.relay.example.com relay public IPv4, DNS only Glue, when IPv4 is reachable
AAAA ns.relay.example.com relay public IPv6, DNS only Glue, when IPv6 is reachable
DS relay.example.com key tag, algorithm, digest type, digest from the relay startup log After the delegation resolves

Change nothing else. If any other record already exists at relay.example.com or below it, stop and show it: Cloudflare cannot keep other records at a delegated name, and removing them is a separate decision. Glue records must not be proxied.

Cloudflare cannot delegate a subdomain of a zone on a partial (CNAME) setup. Glue at the registrar is needed only when the relay domain is the registered domain itself, which this layout avoids.

Preflight and authentication

  • Use a Cloudflare API token, never the Global API Key. Ask the user to create a custom token limited to the one zone with Zone - DNS - Edit (add Zone - Zone - Read only if the zone ID must be looked up), and to put it in this environment as CLOUDFLARE_API_TOKEN through a secret store or protected session, not in chat, files in the repository, or a command line.
  • Keep the token out of process arguments: pass the header from a file descriptor, for example curl -fsS -H @<(printf 'Authorization: Bearer %s\n' "$CLOUDFLARE_API_TOKEN") https://api.cloudflare.com/client/v4/.... Never echo the variable.
  • Check the token with GET /user/tokens/verify (account-owned tokens use GET /accounts/<account_id>/tokens/verify), then find the zone with GET /zones?name=example.com and read its DNSSEC state with GET /zones/<zone_id>/dnssec.
  • If no token is usable here, give the user the records above to create in the Cloudflare dashboard instead, and continue with verification.

Read the full file on GitHub · 72 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 · 72 lines · 131 tokens per session scan A c3ac9054df18

Subscribe to this mod's changes

portal-relay-cloudflare is a skill published in the GitHub repository gosuda/portal-tunnel (304 stars, last pushed today), licensed MIT. It adds 131 tokens to every session and 1,938 once invoked, about $0.0005 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-cloudflare compared with skills from other repositories

portal-relay-cloudflare next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
portal-relay-cloudflaregosuda/portal-tunnelSkill304todayMITA131Claude 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