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.
mdr add gosuda/portal-tunnel/portal-relay-admin@git:20261108.f9aaa73Pins 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
mdr add gosuda/portal-tunnel/portal-relay-admin@sha256:377728e331123484The 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.
[](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.
Audit of the latest version
- 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
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.