portal-relay-admin SKILL.md skillA

portal-relay-admin from gosuda/portal-tunnel is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add gosuda/portal-tunnel/portal-relay-admin@git:20261108.f9aaa73

Pins git:20261108.f9aaa73 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
gosuda/portal-tunnel
Path
plugins/portal-relay/skills/portal-relay-admin/SKILL.md
Versions recorded
1
Latest version
git:20261108.f9aaa73, committed Nov 8, 2026
Size
4,901 bytes
Repository stars
301
License
MIT

Operate a running Portal relay through its admin and policy API - sign in with the relay ADMIN_TOKEN without exposing it, list leases and their approval state, approve, deny, ban, or rate-limit one identity, switch approval mode between auto and manual, change UDP and TCP lease limits, and read admin metrics. Use when the user runs a Portal relay and asks to approve or deny a tunnel, ban an identity, throttle a lease, change approval mode or lease limits, or check who is connected. Do not use…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Administer a Portal relay

The admin surface is the relay's own API on its public `443` listener: `/api/admin/*` for sign-in and metrics, `/api/policy*` for enforcement. The [Admin and Policy API](https://gosuda.github.io/portal-tunnel/api-reference/admin/) reference is the source of truth for fields; this skill adds the safe way to use it.

## Hard rules

- `ADMIN_TOKEN` is a credential, and the login's `access_token` is the same value, not a session token: the relay returns `ADMIN_TOKEN` itself. Never ask for them in chat, never print them, and never put them in a command-line argument, a file in a repository, or a log. Read the admin token from the operator's environment or secret store (for example `PORTAL_ADMIN_TOKEN`) and keep the access token in a shell variable only.
- Send credentials on stdin or a file descriptor, not in `argv`:

  ```sh
  ACCESS=$(printf '{"token":"%s"}' "$PORTAL_ADMIN_TOKEN" | curl -fsS -H 'Content-Type: application/json' --data @- https://<relay>/api/admin/auth/login | jq -r '.data.access_token')
  auth() { printf 'Authorization: Bearer %s\n' "$ACCESS"; }
  curl -fsS -H @<(auth) https://<relay>/api/policy/state
  ```
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add gosuda/portal-tunnel/portal-relay-admin@sha256:377728e331123484

The line at the top of this page pins the label git:20261108.f9aaa73, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_26r7bprb6rcwico6.svg)](https://markdownregistry.com/a/art_26r7bprb6rcwico6)

0 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Nov 8, 2026.

versioncommittedcommitsizeaudit
git:20261108.f9aaa73 latest2026-11-08 f9aaa73 4,901 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (4901 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

gosuda/portal-tunnel · 301 stars · license MIT · pushed 2026-11-08 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_26r7bprb6rcwico6
GET https://markdownregistry.com/api/v1/resolve?ref=gosuda/portal-tunnel/portal-relay-admin
GET https://markdownregistry.com/api/v1/blob/377728e331123484104d04ba237bf31710d54ac9a7db8107de67b09f424b94f5

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from gosuda/portal-tunnel

AGENTS.md AGENTS.md file
gosuda/portal-tunnel · AGENTS.md
git:20261004.21b5eda · audit A · 301 stars
AGENTS.md@frontend AGENTS.md file
gosuda/portal-tunnel · frontend/AGENTS.md
git:20261107.870adda · audit A · 301 stars
CLAUDE.md@frontend CLAUDE.md file
gosuda/portal-tunnel · frontend/CLAUDE.md
git:20260304.96dd745 · audit B · 301 stars
llms.txt llms.txt file
gosuda/portal-tunnel · llms.txt
git:20261108.f9aaa73 · audit B · 301 stars
portal-connect SKILL.md skill
gosuda/portal-tunnel · plugins/portal-deploy/skills/portal-connect/SKILL.md · Deprecated alias of the portal-connect skill, which moved to the portal-tunnel plugin. Use when the user asks to reach…
git:20261108.f9aaa73 · audit A · 301 stars
portal-expose SKILL.md skill
gosuda/portal-tunnel · plugins/portal-deploy/skills/portal-expose/SKILL.md · Deprecated alias of the portal-expose skill, which moved to the portal-tunnel plugin. Use when the user asks to expose…
git:20261108.f9aaa73 · audit A · 301 stars
portal-relay SKILL.md skill
gosuda/portal-tunnel · plugins/portal-deploy/skills/portal-relay/SKILL.md · Deprecated alias of the portal-relay skill, which moved to the portal-relay plugin. Use when the user asks to run…
git:20261108.f9aaa73 · audit A · 301 stars
portal-relay-aws SKILL.md skill
gosuda/portal-tunnel · plugins/portal-relay/skills/portal-relay-aws/SKILL.md · Create an AWS host for a Portal relay - an EC2 instance with a security group and an Elastic IP, or a Lightsail…
git:20261108.f9aaa73 · audit B · 301 stars
portal-relay-cloudflare SKILL.md skill
gosuda/portal-tunnel · plugins/portal-relay/skills/portal-relay-cloudflare/SKILL.md · Configure a Cloudflare-hosted parent zone for a Portal relay - the NS delegation of the relay subdomain to the relay's…
git:20261108.f9aaa73 · audit A · 301 stars
portal-relay-diagnose SKILL.md skill
gosuda/portal-tunnel · plugins/portal-relay/skills/portal-relay-diagnose/SKILL.md · Find which layer of a self-hosted Portal relay is failing - container and process, open ports, embedded DNS and NS/glue…
git:20261108.f9aaa73 · audit A · 301 stars
portal-relay-hetzner SKILL.md skill
gosuda/portal-tunnel · plugins/portal-relay/skills/portal-relay-hetzner/SKILL.md · Create a Hetzner Cloud server for a Portal relay with the hcloud CLI, attach a Hetzner Cloud Firewall that opens only…
git:20261108.f9aaa73 · audit A · 301 stars
portal-relay-oracle SKILL.md skill
gosuda/portal-tunnel · plugins/portal-relay/skills/portal-relay-oracle/SKILL.md · Create an Oracle Cloud Infrastructure (OCI) compute instance for a Portal relay, including Always Free Ampere A1…
git:20261108.f9aaa73 · audit A · 301 stars

Every file in gosuda/portal-tunnel

Browse by kind, by grade A, or by owner.