portals-multiplayer-and-voice

portals-multiplayer-and-voice is a skill for Claude Code from portals-labs/portals-plugin-claude. It costs 156 tokens per session (2,713 once invoked), scanned A, original, ISC.

A toolkit for adding online multiplayer, text chat, and voice chat to a hosted Portals web game.

In plain words
What is it for?
Joining rooms, managing multiplayer sessions, adding in-game messaging and voice, and declaring whether a game is single-player, cooperative, or competitive.
Why use it?
It uses the hosting platform’s supported connections, avoiding unsupported outside network connections in the game sandbox.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the portals-plugin-claude plugin — 8 skills, 1 MCP server shipped together

Good fit Joining rooms, managing multiplayer sessions, adding in-game messaging and voice, and declaring whether a game is single-player, cooperative, or competitive.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/portals-labs/portals-plugin-claude/portals-multiplayer-and-voice
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 portals-labs/portals-plugin-claude --skill portals-multiplayer-and-voice
Clone the repo
git clone --depth 1 https://github.com/portals-labs/portals-plugin-claude

Made for: Claude Code.

Or install portals-plugin-claude, the plugin that ships this one along with the rest of its 8 skills, 1 MCP server.

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 portals-multiplayer-and-voice

README.md
[![agentmods](https://agentmods.dev/badge/skills/portals-labs/portals-plugin-claude/portals-multiplayer-and-voice/github.svg)](https://agentmods.dev/skills/portals-labs/portals-plugin-claude/portals-multiplayer-and-voice)
Your own site
<a href="https://agentmods.dev/skills/portals-labs/portals-plugin-claude/portals-multiplayer-and-voice"><img src="https://agentmods.dev/badge/skills/portals-labs/portals-plugin-claude/portals-multiplayer-and-voice/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 portals-multiplayer-and-voice

Your own site · 80×15
<a href="https://agentmods.dev/skills/portals-labs/portals-plugin-claude/portals-multiplayer-and-voice"><img src="https://agentmods.dev/badge/skills/portals-labs/portals-plugin-claude/portals-multiplayer-and-voice.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 156 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,713 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00156 $0.02713
Opus 5 $0.00078 $0.01357
Sonnet 5 $0.00031 $0.00543
Haiku 4.5 $0.00016 $0.00271

Measured 12d ago against content hash 86c4bbccea95, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

portals-multiplayer-and-voice scanned grade A with 0 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 12d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/portals-plugin-claude/skills/portals-multiplayer-and-voice/SKILL.md · 99 lines

How it starts

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

Portals multiplayer, chat, and voice

Portals.net and Portals.voice are the only multiplayer and voice transports available to a hosted game. The sandbox has no outside network access: fetch, WebSocket, and WebRTC to other servers all fail, and networking or voice libraries cannot work. The Portals host page owns the real connections.

Read references/multiplayer-and-voice.md for the full API, code examples, availability matrix, and dev-token setup. It is the official documentation, copied verbatim.

Both transports ship with the SDK the project already includes:

<script src="./_portals/sdk.js"></script>
<script src="./game.js"></script>

Multiplayer rules that are easy to get wrong

  • A session is everyone in the same bucket — all players of the game page, or the people in one Portals room. join({ channel }) makes a private sub-lobby: letters, numbers, colons, underscores, hyphens; must start alphanumeric; max 64 characters.
  • Sessions run on US servers by default — one worldwide room per channel, so players everywhere meet. Turning on Latency-sensitive multiplayer in the game's settings on portals.to/my-games places each session on servers near its players instead — one room per region, so nearby players get low latency but players in different regions never meet. Recommend it for fast-paced games; it applies to new sessions immediately, no republish. The toggle is not settable through update_web_game_settings — the developer flips it on the settings page.
  • In a latency-sensitive game a global: channel prefix shares one worldwide room again. A match arranged in a global lobby needs a global channel too (global:match-x7), or players split back into their own regions and never meet. Global rooms run in the US home region, so keep fast-paced matches regional.
  • join({ region: "us" | "eu" }) forces the session onto that region's servers for every player and outranks all of the above, including a global: prefix. Pin only when the game needs one known location (a scheduled event, a persistent world, a region the players share) — distant players pay the latency. Pass the same value for every player of a room: differing pins are different rooms, which is how you would deliberately run separate US and EU worlds. A pin never falls back, so join() rejects if that region has no capacity.
  • join() resolves to a plain snapshot, not a handle — every method stays on Portals.net. Use net.players(), net.self(), net.getState() for live synchronous reads after joining.
  • send() does not echo to the sender; the state event does fire for the writer. Apply state changes from the event, not at the call site.
  • Limits: 8 KB JSON per message and per state value, 128-character keys, 64 keys per session. About 20 broadcasts and 10 state writes per player per second — never send per-frame; sample on a 100–150 ms timer and interpolate locally.
  • Anything a late joiner must see belongs in shared state, not in a broadcast.
  • There is no automatic reconnect. On status disconnected, show a rejoin control that calls join() again.
  • Without a server script, every client is authoritative over what it sends — the session is exactly as trustworthy as its least trustworthy player. The default design for a multiplayer game is a server-simulated one (the portals-server-sim skill); at minimum ship a server-script referee (the portals-server-scripts skill). Validate every incoming message's kind and shape, and never let a peer's messages control currency, prizes, access, or another entitlement. Only purely cosmetic shared spaces and slow turn-based games should ship trust-light.
  • Text chat rides the same relay with a kind field — never a third-party chat service. Cap length (e.g. 300 chars) on send and receive, and render with textContent, never innerHTML. For history late joiners see, keep a rolling array (last ~20) in shared state.

Read the full file on GitHub · 99 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. 12d ago First seen · 99 lines · 156 tokens per session scan A 86c4bbccea95

Subscribe to this mod's changes

portals-multiplayer-and-voice is a skill published in the GitHub repository portals-labs/portals-plugin-claude (4 stars, last pushed 3d ago), licensed ISC. It adds 156 tokens to every session and 2,713 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

gameobject-component-destroy

Destroy one or more Components from a target GameObject. Missing (null) components are skipped — they cannot be destroyed. Use 'gameobject-find' and 'gameobject-component-get' to identify the components first.

IvanMurzak/Unity-MCP · 49 tokens

unity-version-split

Split a C# file into Unity 6.5+ and pre-Unity 6.5 variants. Use when a file needs different implementations for different Unity versions due to API changes (e.g., EntityId vs int, GetEntityId vs GetInstanceID).

IvanMurzak/Unity-MCP · 59 tokens

godot-signals-groups

Build event-driven, decoupled Godot 4.7 gameplay with signals and node groups: declare and emit custom signals, connect with Callables (incl. bind/one-shot), and broadcast to many nodes via groups and callgroup. Use when wiring node communication in a Godot project, replacing tight references with signals…

gamedev-skills/awesome-gamedev-agent-skills · 95 tokens

motion

How an agent turns a character mesh into a usable animated FBX — and how to judge whether the result is shippable.

OpenDCAI/GameFactory-3A · 0 tokens

unity-addressables

Manage Addressables groups, entries, profiles and content builds (com.unity.addressables, reflection-based).

Besty0728/Unity-Skills · 25 tokens

threejs-exposure-color-grading

Build a measured exposure and grading path in Three.js. Use for a 64x36 encoded luminance meter, asynchronous readback, weighted log-average exposure, asymmetric adaptation, single tone-map ownership, and a generated 32-cube post-tone-map LUT.

scottstts/Threejs-Awesome-Graphics-Agent-Skills · 60 tokens