AI-Built Games: How to take a game you made with AI online, with one dedicated server per match and Matchmaking

This guide shows you how to take a game you made with AI online: a browser game built with Claude Code, Cursor, Codex, ChatGPT, Lovable, Bolt, v0, Replit, Websim, fal.ai or any other tool, played against bots in the page. You'll give it online matches with one dedicated game server per match, near the players in it, and matchmaking so strangers can press one button and play together. Solo play keeps working.
Edgegap doesn't care which tool made your game. It runs any game server packed in a Linux container (a "custom runtime", in our Docker documentation): you push an image, Edgegap starts a copy of it for each match, from a simple API call, in one of 615+ locations, and the server stops itself when the match ends. You pay only while people play.
This guide covers:
Getting your game's code into a repo, and an Edgegap account
Connecting your coding agent to Edgegap
Moving the game's rules into one file the page and the server share
Building the server and packing it in a container
Testing it, then deploying one test server
Adding matchmaking (optional)
Putting your game's page online
Testing the full loop in two browser tabs
You can do it two ways, and mix them:
With a coding agent. Connect Claude Code, Cursor, Codex or another agent to the Edgegap MCP server and its agent skills. The agent splits the game, writes the server and the Dockerfile, tests it, deploys it and writes the matchmaker configuration. You handle the Edgegap dashboard, the secrets, and playtest. You don't need to know servers, Docker or certificates.
By hand. Every step below also works without an agent.
Built with Manus or fal.ai? Their guides cover each tool's own steps. Built a Three.js, Phaser or Babylon.js game by hand? Start from Browser Games. Made it as one HTML file in a Claude chat? See Claude.
Will my game work online?
Online, a key press travels to the server and back before it shows on screen: about one round trip, plus up to 50 ms. Some games hide that easily, some don't. Check yours before you start:
Feels fine online | Needs care | Change the design, or expect lag |
|---|---|---|
Slippery or floaty movement (ice, hover, drifting cars), pushing and bumping, party games, collecting, arenas with slow projectiles, turn-based | Fast top-down shooters, sports with a ball, racing with tight corners | Precise platforming, rhythm games, fighting games with frame timing, instant-hit aiming |
For a game in the right column, ask your agent for a design change (a bit of slide, slower projectiles, a wind-up before hits) rather than trying to hide the delay.
Our samples were picked to fit the left column: Thin Ice Tussle, an ice brawler for 4 made with Claude Code, plays fine on mobile data because the ice is slippery anyway.
Step-by-Step Guide
Detailed Integration Steps
1. Before you start
A free Edgegap account. Verify your email. No credit card is needed to test.
Your game's code in a folder and a git repo. Made in a coding agent (Claude Code, Cursor, Codex): it already is. Made in Lovable, Bolt, v0 or Replit: connect the project to GitHub, or download it; these projects are usually React + Vite, and the steps are the same, the files move. A single HTML file (a Claude artifact, a ChatGPT or Gemini Canvas game, a Websim page): keep it as one file. The edgegap-chat-canvas skill has the prompt and the script that copy its rules out for the server.
A way to build a container. Docker Desktop on your computer, or no install at all: GitHub Actions can build the server image for you.
For the agent path: an Edgegap API token, from Dashboard → User Settings → Tokens. It is organization-wide, so treat it like a password: never put it in your game, your repo or a chat.
2. Connect your coding agent to Edgegap
Skip this step if you're doing everything by hand.
The Edgegap MCP server lets your agent create apps and versions, deploy servers, read logs and write matchmaker configurations on your account. The agent skills give it the tested workflow: edgegap-vibe-coded for a game made with AI, edgegap-threejs for the server and page templates.
Claude Code: install the Edgegap plugin. It adds both the MCP server and the skills, and asks for your API token during install:
/plugin marketplace add edgegap/llm-agent-skills, then /plugin install edgegap@edgegap. Restart the session.
Cursor, VS Code, Codex and other clients that send headers: add https://mcp.edgegap.com/mcp with the header Authorization: token YOUR_EDGEGAP_API_TOKEN, and install the skills with npx skills add edgegap/llm-agent-skills --skill "*".
Check it works:
"List my Edgegap apps."
An empty list is fine.
3. Move the game's rules into one file
Don't rewrite your game for the server. Move its rules (movement, hits, scores, bots) into one file that both the page and the server run. The page keeps drawing the game and reading input; solo mode keeps running the rules in the page, exactly as before.
With your agent:
"Load the edgegap-vibe-coded skill. Check whether my game holds up online, then move its rules into client/rules.js with no window, document, rendering, audio or timers in it, so a server can run the same file. Keep solo mode working against bots."
Check: solo plays exactly as before. In Thin Ice Tussle, the rules file didn't change at all when the game went online.
4. Build the server and pack it in a container
The server runs your rules file for one match, at a fixed tick rate, and talks to the page over WebSockets. It follows a few rules so it fits Edgegap:
One WebSocket port, for example 7777, with TLS Upgrade on, so pages served over https:// connect with secure
wss://without you buying certificates. Browsers can't use raw UDP.Bots fill empty seats, so a lone player still gets a match.
It stops itself when the match ends or empties, by calling the
ARBITRIUM_DELETE_URLEdgegap gives every deployment. An idle server keeps billing until its maximum duration.It logs to stdout, never prints the environment, and holds no secret.
Then it goes in a container, like any custom runtime:
Build for Edgegap's platform,
linux/amd64, even on a Mac:docker build --platform linux/amd64 -t registry.edgegap.com/<project>/<game>:<tag> .Copy only the server and the rules file into the image. Art, models and sounds stay with the page.
Push to the Edgegap Container Registry with a new tag for every build, never
latest. No Docker on your computer? A GitHub Actions workflow builds and pushes the image from your repo.
Then create the application and its version in the dashboard: your image and tag, registry credentials, port 7777 WS named gameport with TLS Upgrade on, restart policy Never, and a maximum duration of 30 minutes as a backstop.
With your agent:
"Load the edgegap-threejs skill. Build an authoritative Node.js WebSocket server that runs client/rules.js for one match, fills empty seats with bots and stops itself when the match ends. Write a Dockerfile for linux/amd64 that copies only the server and rules.js, then create the Edgegap app version: port 7777 WS named gameport with TLS Upgrade, restart policy never, max duration 30 minutes."
5. Test it, then deploy one test server
Locally first: run two headless players against the server on your computer, then the container itself with docker run, the same way the Docker documentation tests an image. Your agent runs both and fixes what fails.
Then on Edgegap:
"Deploy my latest Edgegap version near me, wait until it's ready, and give me the wss:// address to connect to."
Open your page in two browser tabs and connect both to that address. When the deployment is Ready, your server can still need a few seconds to start, so the page retries for up to a minute.
Leave the match: the server stops itself, and the deployment disappears from the dashboard. The free tier runs one deployment at a time.
6. Add matchmaking
So strangers can press Find Match and play together, Edgegap's matchmaker groups players, starts a server near them and gives every page its address.
Have your agent write the configuration: "Write an Edgegap matchmaker configuration for my app version: 2 to 4 players, a lone player gets a match with bots after 20 seconds, and allow my page's origins." Browsers can't send the latency pings desktop games use, so the matchmaker places the server from the players' locations.
In the dashboard, open Matchmaker, select Create Matchmaker, upload the file and select Create and Start. Copy the API URL and Auth Token. The Auth Token is safe to put in your page; the Edgegap API token never is.
Your agent adds Find Match, Cancel and a queue timer to the page with the Edgegap JavaScript SDK. Solo stays one click away.
Every address your page is served from must be in the matchmaker's allowed origins, or Find Match fails with a CORS error.
7. Put your game's page online
Your page is static files, so any host works: GitHub Pages, itch.io, Netlify or your AI tool's own hosting. Add its address to the matchmaker's allowed origins.
Leaving it public? Only the matchmaker runs all the time; every match server stops within seconds of its match ending. Before you share the link:
Scan the repo for secrets. The only one allowed in the page is the matchmaker's Auth Token.
The free tier's matchmaker stops about 3 hours after each start, and runs one match at a time. A demo that must stay up needs a paid tier: see pricing.
8. Test the full loop in two browser tabs
Make sure no test deployment is still running.
Open your public page in two tabs and select Find Match in both within 20 seconds.
Both land in the same match, on a server near you.
Leave the match. The deployment stops itself within seconds.
Then play it with a friend on another network: a phone on mobile data is enough.
Play Thin Ice Tussle, made with Claude Code → (code, with the single-player
beforeand the onlineafter)
Want sign-in and a leaderboard too? See Supabase.
Stuck? Ask your agent to load edgegap-troubleshoot, or ask our team and other studios on the Edgegap Discord.
Frequently Asked Questions
Common questions about taking a game made with AI online with Edgegap's dedicated servers.
Can I make a game I built with AI multiplayer?
Yes. Your agent moves the game's rules into one file, builds a small server that runs it, and Edgegap starts one server per match near the players. Solo play keeps working. Our samples were made with Claude Code and fal.ai this way.
Do I need to know servers or Docker?
No. Your coding agent writes the server and the Dockerfile, and GitHub Actions can build the image, so you don't need Docker on your computer. You create the account, the matchmaker and a token in the dashboard.
Which AI tools does this work with?
Any tool whose code you can put in a git repo: Claude Code, Cursor, Codex, ChatGPT, Gemini, Lovable, Bolt, v0, Replit, Websim, fal.ai or Manus. Edgegap runs the server container, whatever made it.
Which games work well online?
Games with slippery movement, pushing, collecting, slow projectiles or turns. Precise platforming, rhythm games and instant-hit aiming show the network delay; change the design a little, or expect lag.
What keeps costing money when nobody plays?
Only the matchmaker, while it runs. Each match server stops itself seconds after its match ends, and a maximum duration stops any server that doesn't.
Is anything secret in my game's page?
Only the matchmaker's Auth Token, which is made to be public: it gives no access to your account. Your Edgegap API token and registry credentials never go in the page or the repo.

Clients
Learn more from clients who integrated Edgegap
31 case studies are available from studios that moved to Edgegap from another platform.

A Flawless Global Launch for Rivals of Aether 2
Aether Studios
Learn how Aether Studios quickly added Edgegap and delivered flawless launch & post-launch to their community.
Case Study

Overcome Latency Introduced by VR’s use of WiFi in Competitive Multiplayer
Halfbrick Studios
Discover how Halfbrick successfully launched & maintains a multiplayer-focused Early Access on META Quest's VR platform.
Case Study

MENA’s Social App Adds Online Games
WOLF
Learn how the highly popular MENA-region social app added matchmaking & multiplayer games orchestration easily to WOLF Qanawat.
Case Study

Hybrid Orchestration Keeps Kickoff Tactics Ready for Any Traffic
Birch Games
How hybrid orchestration helped Birch Games handle traffic, pairing egress-free Fleets with the regionless cloud.
Case Study

Authentic Online Warfare Requires the Ultimate Orchestration
Highwire Games
Learn how Highwire's need for performance required orchestration only Edgegap can deliver.
Case Study

22,000 Reviews, 4.8 Stars, and Infrastructure That Scaled Automatically
Sinn Studios
How a simple, Slack-supported integration got Sinn Studio's hit VR title online fast and keeps it there.
Case Study

Dynamic Server Orchestration
Under NDA - AAA Studio
Discover how one the world's biggest AAA studio improved its peer-to-peer multiplayer experience through edge computing.
Case Study

Near Zero Latency for AAA Fighting Game
AAA Studio - Under NDA
How an unannounced project delivered the lowest lag possible and improved fairness in its 1v1 game.
Case Study

Play Gods with Multiplayer Physics
Squido Studio
Learn how Squido uses Edgegap's highligh optimized game servers to deliver mind-bending & chaotic VR gameplay.
Case Study

A Fully Managed Solutions that Saves Time for Indies Multiplayer VR Horror
Dirty Pearl Studios
Discover how Dirty Pearl Studios saved development time thanks to Edgegap’s easy integration and automated orchestration alongside its Nakama integration.
Case Study

7 Days Blood Moons
The Fun Pimps & iLLOGIKA
Learn how Illogika dramatically reduced server costs & ensured the online experience the 7 Days to Die franchise expects.
Case Study

Instant Global Server Deployment for Collaborative XR Medical Education
AlensiaXR
How AlensiaXR uses Edgegap to deliver low-latency, always-available shared anatomy sessions to medical students worldwide.
Case Study

FunPlus
FunPlus
Case Study

The Lightkeepers: A VR Social Co-op Game with Dedicated Servers
Spectral Games
How Spectral Games used Edgegap Matchmaking and Server Browser to launch dedicated servers for its VR social lobby, with no prior server experience.
Case Study

Fast & reliable deployments worldwide for PvPvE challenger Gravebound
Crater Studios
How Edgegap’s orchestration and matchmaking helped Crater Studios dramatically helped a small them focus on gameplay instead of infrastructure.
Case Study

Rapid Scaling of Web Metaverse
Hiber
Learn how Hiber eliminated the guesswork out of its server capacity planning with Edgegap.
Case Study

High Hardware Requirements & Custom Game Server Pools
Alderon Games
Learn how Alderon Games instantly leverages a custom pool of game servers across multiple providers worldwide for its popular MMO.
Case Study

Easy Integration for Indie Devs
WhaleFood Games
Read how WhaleFood Games "kicked out" its netcode issues with Edgegap.
Case Study

Cutting-edge tech that powers South-East Asia’s first-ever eSports title.
Anantarupa Studios
Learn how Edgegap transformed South-East Asia’s gaming landscape streamlining complex infrastructure and cutting-edge tech with one seamless solution.
Case Study

One Strike. Global Reach.
Triple Hill Interactive
How Triple Hill Interactive leverages Edgegap's orchestration to deliver low latency and improve fairness in a genre where every millisecond counts.
Case Study

Fast-paced Team Battle Royale... with Gun-totting Animal Plushes!
SANDYFLOOR
Discover how a Korea-based Indie Studio launched it multiplayer worldwide.
Case Study

Mobile Horse Racing Goes Global with Instant, Cost-Efficient Servers
Mirai Labs
How Mirai Labs powers Pegaxy Blaze's worldwide multiplayer races with just-in-time server deployment and fractional vCPU to keep cost per player low.
Case Study

Server Management & Distribution
Matrioshka Games
Read how Matrioshka Games were able to ship a Battle Royale in early access with limited ressources.
Case Study

At my Signal, Unleash Hell!
TyGames
Discover how Indie studio TyGames immerses players in third-person gladiatorial combat multiplayer.
Case Study

Instant Worldwide Orchestration
Soliton Interactive
Discover how Soliton Interactive did the impossible… Ship it's first playable as multiplayer!
Case Study

Competitive play with server-side physics ensures ideal sub-50 ms latency
NS7
Discover why solely Edgegap could enable an indie studio to deliver on its vision for a AAA-quality F2P sports gameplay through server-side physics and authority.
Case Study

Regional Deployments for iGaming
X1 Contra 1
X1 Contra 1 delivers real-time PvP casual games to its Brazilian player base through cost-effective hosting & regional deployments, ensuring data and legal compliance.
Case Study

Pay Only When Players Play: Affordable Multiplayer Infrastructure
Meltdown Interactive
How Edgegap helped indie developer Meltdown Interactive Media solve cost-effective scaling and matchmaking without the complexity, so they could focus on building the game.
Case Study

One Edgegap platform, three very different networking profiles
Warped Games
How Warped Games runs a social hub, real-time co-op, and turn-based co-op, all on the same Edgegap deployment API and the same container pipeline.
Case Study

Pool Live Tour Max
RETA Games
Case Study

Korea’s Web3 POP Extraction Shooter Goes Global, Instantly
NDUS Entertainment
How XOCIETY easily added Edgegap orchestration & integrated custom matchmaking working alongside Edgegap Ping Beacons to optimize latency.
Case Study

Multiplayer in Every Dimension
Arcadia.tv
Discover how Arcadia.tv uses Edgegap's edge network to deliver an innovative, team and location-based athletic VR sport.
Case Study

F2P Mobile Fighter Cuts Infrastructure Costs With Just-in-Time Servers
Game Changers Worldwide
How Game Changer Worldwide hosted Rumble Rush's real-time 3v3 PvP globally on mobile.
Case Study
Key reasons why they chose Edgegap
Discover the impact of Edgegap's automated game server orchestration for a flawless multiplayer experience.









