portal-relay-aws

portal-relay-aws is a skill for Claude Code, Codex from gosuda/portal-tunnel. It costs 122 tokens per session (1,323 once invoked), scanned B, original, MIT.

A cloud setup guide for creating an AWS host for a Portal relay. AWS is Amazon's cloud platform; the guide creates either an EC2 virtual machine or a Lightsail instance, opens its required network access, and provides the host for relay deployment.

In plain words
What is it for?
Use it to create the host, security group, public IP, and required access settings before deploying a Portal relay.
Why use it?
It removes the manual work of preparing a reachable AWS machine with a stable public address. It also uses existing AWS CLI profiles or IAM Identity Center sign-in instead of asking for long-lived keys.

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 host, security group, public IP, and required access settings before deploying a Portal relay.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/gosuda/portal-tunnel/portal-relay-aws"><img src="https://agentmods.dev/badge/skills/gosuda/portal-tunnel/portal-relay-aws.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,323 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. 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.00122 $0.01323
Opus 5.5 $0.00049 $0.00529
Sonnet 5.5 $0.00024 $0.00265
Haiku 4.5 $0.00012 $0.00132

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

Security

Grade B, and why

portal-relay-aws scanned grade B with 2 findings 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.

Reaches for credential filesmediumPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

- `aws sts get-caller-identity --profile <profile>` proves the credentials work in this environment. Report the account and role to the user for confirmation, and do not print or open `~/.aws/credentials` or the SSO cach

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

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

From outside AWS, `ssh` works, and after deployment `dig @<ip> <relay domain> NS` and `curl -fsS https://<relay domain>/api/healthz` succeed. A timeout with the container healthy almost always means a missing security gr
plugins/portal-relay/skills/portal-relay-aws/SKILL.md · 53 lines

How it starts

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

Portal relay on AWS

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 AWS.

Preflight

  • aws --version. If the CLI is missing, point to the official AWS CLI install guide and stop.
  • aws sts get-caller-identity --profile <profile> proves the credentials work in this environment. Report the account and role to the user for confirmation, and do not print or open ~/.aws/credentials or the SSO cache.

Authenticate

  • With an IAM Identity Center profile that is already configured, the user runs aws sso login --profile <profile> on a machine with a browser. Setting the profile up is aws configure sso, which needs the organization's start URL and is the user's task.
  • Without Identity Center, use the existing profile the user names. Never create long-lived access keys for the user, and never ask for them in chat.
  • An SSO session on the user's laptop does not exist in a remote sandbox; check with get-caller-identity here.

Choose EC2 or Lightsail

  • Lightsail: one fixed monthly bundle with included transfer; simpler for a single relay. Read bundles and prices with aws lightsail get-bundles and images with aws lightsail get-blueprints.
  • EC2: more control and instance types; data transfer out is billed per GB, which matters for game-hosting relays. Read prices for the chosen type and region before planning.

Show the estimated monthly cost of the chosen option, including the public IPv4 charge, in the plan.

EC2

  1. Image: the current Ubuntu AMI from the public SSM parameter, for example aws ssm get-parameter --name /aws/service/canonical/ubuntu/server/24.04/stable/current/arm64/hvm/ebs-gp3/ami-id (use amd64 for x86 types; the relay image supports both).
  2. aws ec2 create-security-group --group-name <name> --description "Portal relay" --vpc-id <vpc>, then aws ec2 authorize-security-group-ingress --group-id <sg> --ip-permissions file://rules.json with only the contract's ports. Use a new group; do not edit a shared one.
  3. aws ec2 run-instances --image-id <ami> --instance-type <type> --key-name <key> --security-group-ids <sg> --subnet-id <public subnet> --metadata-options HttpTokens=required --tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=<name>}]'.
  4. aws ec2 allocate-address --domain vpc and aws ec2 associate-address --instance-id <id> --allocation-id <alloc>, so the glue address survives instance replacement.

Read the full file on GitHub · 53 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 · 53 lines · 122 tokens per session scan B 48b7e7ad81dc

Subscribe to this mod's changes

portal-relay-aws is a skill published in the GitHub repository gosuda/portal-tunnel (304 stars, last pushed today), licensed MIT. It adds 122 tokens to every session and 1,323 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it B with 2 findings (reaches for credential files, 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-aws compared with skills from other repositories

portal-relay-aws next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
portal-relay-awsgosuda/portal-tunnelSkill304todayMITB122Claude 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