skills/remix-multiplayer/SKILL.md
Enable multiplayer support for a Remix game
npx skillsauth add farworld-labs/remix-skills remix-multiplayerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill guides you through enabling and integrating multiplayer functionality for games on the Remix platform.
REMIX_API_KEY environment variable must be set.<script src="https://cdn.jsdelivr.net/npm/@remix-gg/sdk@latest/dist/index.min.js"></script>
Read .remix-settings.json in the current directory. If it exists and contains
a gameId, use that value.
Only if .remix-settings.json does not exist or has no gameId should you
follow the upload-game workflow to create one.
Enable multiplayer for the game via REST:
POST https://api.remix.gg/v1/games/{gameId}
Authorization: Bearer $REMIX_API_KEY
Content-Type: application/json
{ "isMultiplayer": true }
const sdk = window.RemixSDK
await sdk.ready()
// Access all players in the session
const players = sdk.players // Array of player objects
// Listen for game state updates from other players
sdk.onGameStateUpdated((state) => {
// Sync game state from other players
})
// Send game state to other players
sdk.multiplayer.actions.gameOver({ scores: playerScores })
For multiplayer games, use multiplayer.actions.gameOver -- NOT
singlePlayer.actions.gameOver. Pass a scores object keyed by player ID:
sdk.multiplayer.actions.gameOver({
scores: { [playerId]: score }
})
Multiplayer games still need these callbacks:
sdk.onPlayAgain(() => {
// Reset game state and restart
})
sdk.onToggleMute(({ isMuted }) => {
// Mute or unmute all audio
})
sdk.players to get the list of players and their IDs.onGameStateUpdated fires whenever another player sends state -- use it to
keep all clients in sync.singlePlayer.actions.gameOver and multiplayer.actions.gameOver
in the same game. Use one or the other.content-media
Generate and add images to a Remix game
development
Build lightweight mobile-friendly 3D browser games with Three.js
tools
Upload and validate HTML game code for Remix. Use when creating or updating a draft version through the CLI, MCP tools, or direct REST calls.
data-ai
Upload images, audio, or 3D models as hosted game assets