Godot Networking logo

Godot Networking

Community
EL4CTEO
godot-networking

Networking in Godot 4.7 - high-level multiplayer (ENet, WebSocket, WebRTC), server-authoritative design, @rpc / [Rpc] modes, MultiplayerSpawner and MultiplayerSynchronizer replication, authority, authentication, dedicated headless servers, interpolation, security rules, plus HTTPRequest/REST, raw TCP/UDP/WebSocket. Use for online or LAN multiplayer, co-op, lobbies, or calling web APIs.

Overview

PublisherEL4CTEO
Repositorygodot-skills
Skill namegodot-networking
Stars
60
Forks
6
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by EL4CTEO on GitHub. Read the source before you install it.

Installation

Install the Godot Networking AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-networking
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/EL4CTEO/godot-skills.git /tmp/godot-skills
mkdir -p .claude/skills
cp -r /tmp/godot-skills/skills/godot-networking .claude/skills/godot-networking
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Godot Networking in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Godot Networking on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Godot Networking is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Networking (4.7)

Architecture first

  • Server-authoritative. The server (or listen host) owns game state. Clients send inputs and requests, never results ("I picked up item 42", not "my gold is 9999").
  • Peer IDs: the server is always 1. multiplayer.get_unique_id(), multiplayer.is_server(), multiplayer.get_peers(). Signals: peer_connected/peer_disconnected (all) and connected_to_server/connection_failed/server_disconnected (clients).
  • Transports (all are MultiplayerPeer, so swapping is trivial): ENetMultiplayerPeer (UDP, desktop and mobile, the default choice), WebSocketMultiplayerPeer (web clients; host needs TLS for https pages), WebRTCMultiplayerPeer (P2P, needs signaling), and Steam through the GodotSteam extension.
  • Dedicated server: export with the dedicated_server feature (Export → Resources → "Dedicated Server" strips visuals) and run with --headless. Branch with OS.has_feature("dedicated_server") or DisplayServer.get_name() == "headless".

RPCs

  • GDScript: @rpc("any_peer" | "authority", "call_local" | "call_remote", "reliable" | "unreliable" | "unreliable_ordered", channel). Call with rpc(&"method", args) (everyone) or rpc_id(peer, &"method", args). The default @rpc is authority-only, call_remote and reliable.
  • C#: [Rpc(MultiplayerApi.RpcMode.AnyPeer, CallLocal = true, TransferMode = MultiplayerPeer.TransferModeEnum.Reliable)], then Rpc(MethodName.Fire, dir) / RpcId(1, MethodName.Fire, dir).
  • The method must exist with the same RPC config on every peer, at the same node path. Spawn replicated nodes through MultiplayerSpawner so names and paths match.
  • Inside an RPC, multiplayer.get_remote_sender_id() tells you who called. Validate every any_peer RPC on the server: is the sender allowed, is the value sane, is it rate-limited?
  • Use unreliable for frequent state (positions), reliable for events (damage, chat, spawn requests) and unreliable_ordered for streams where old packets are useless. Use separate channels for unrelated reliable streams so they don't block each other.

Replication nodes (prefer them to hand-written RPC sync)

  • MultiplayerSpawner: set spawn_path (the parent node) and add_spawnable_scene("res://player.tscn"), or a spawn_function for custom data. Only the authority adds children (or calls spawn(data)), and clients get them automatically. The spawned signal fires on clients.
  • MultiplayerSynchronizer: set root_path and a replication config with properties such as .:position and Sprite2D:flip_h. Each property has a mode: spawn-only, ON_CHANGE (watch) or ALWAYS (sync). Tune replication_interval/delta_interval. Control interest with public_visibility = false + set_visibility_for(peer, true) or add_visibility_filter(callable).
  • Authority: call set_multiplayer_authority(peer_id) on a player's node (recursive by default) so that client's input synchronizer sends its data. Check is_multiplayer_authority() before reading local input. A common split is client authority over an input-only synchronizer node while the server keeps authority over state.
  • Smooth remote entities: interpolate received positions toward the latest snapshot in _process, or buffer two snapshots. Never snap.

Auth and safety

  • SceneMultiplayer.auth_callback + send_auth/complete_auth runs a handshake (version check, token) before a peer counts as connected.
  • Keep SceneMultiplayer.allow_object_decoding = false (the default). Never send Objects or Resources over the network.
  • Never load() paths or str_to_var data that came from peers. Don't call() method names received from the network.
  • Limit how many players can connect (create_server(port, max_clients)), and handle disconnects mid-game: despawn their nodes on the server.

HTTP and web APIs

  • HTTPRequest node: request(url, headers, method, body), then request_completed(result, code, headers, body). Parse with JSON.parse_string(body.get_string_from_utf8()). Use one request at a time per node (create more nodes for parallel requests), and set timeout.
  • TLS is automatic for https. For custom CAs use TLSOptions.client(trusted_cert).
  • Lower level: HTTPClient (streaming), WebSocketPeer (connect_to_url, call poll() every frame), StreamPeerTCP (4.6+: poll()/get_status() live on StreamPeerSocket), PacketPeerUDP and StreamPeerUDS (Unix sockets, 4.6+).
  • Never ship secret API keys in the client. Route them through your own backend.

Testing locally

Debug → "Customize Run Instances" in the editor can launch several instances with different arguments (--server, --client). From the CLI, start one headless server process plus GUI clients. run_godot.py smoke covers a headless server boot.

Lobby (ENet host/join), spawner + synchronizer player, validated RPCs, HTTP client, C# RPCs (compiled by the tests): references/patterns.md

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Godot Networking AI skill do?

Networking in Godot 4.7 - high-level multiplayer (ENet, WebSocket, WebRTC), server-authoritative design, @rpc / [Rpc] modes, MultiplayerSpawner and MultiplayerSynchronizer replication, authority, authentication, dedicated headless servers, interpolation, security rules, plus HTTPRequest/REST, raw TCP/UDP/WebSocket. Use for online or LAN multiplayer, co-op, lobbies, or calling web APIs.

Why use Godot Networking on TypingMind?

Because you install it once and use it with any model. Godot Networking is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Godot Networking in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-networking. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Godot Networking?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Godot Networking?

As many as you like. As long as a model supports skills, you can use Godot Networking with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Godot Networking AI skill free?

Yes. It is published on GitHub by EL4CTEO under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇