Spiele entwickeln mit Codex: Ueber die Codex CLI, die ChatGPT-App oder Flockbay
Codex kann Godot-4-Spiele bauen, wenn es diese auch ausfuehren kann. Per mcp add wird Codex mit Flockbay verbunden, wo es das Spiel im Editor erstellt, startet, Fehler liest und selbst testet. Alternativ genuegt ein ChatGPT-Login direkt in Flockbay.

Veröffentlicht am 25. Okt. • Zuerst veröffentlicht auf flockbay.com
Codex baut Spiele, wenn es sie ausführen kann: Verbinde es mit Flockbay über eine einzige Zeile mit codex mcp add, und Codex stellt in dem von Flockbay gehosteten Editor ein Godot-4-Spiel zusammen, führt es aus, liest seine Fehler und spielt es durch. Wenn du Codex lieber nicht selbst ausführen möchtest, melde dich stattdessen in Flockbay mit ChatGPT an, mit jedem ChatGPT-Plan, auch mit Free. Keines von beiden kostet mehr als den ChatGPT-Plan, den du ohnehin hast. Flockbay ist kostenlos, KI inklusive: täglich kostenlose gehostete KI oder dein eigenes Claude, ChatGPT, ein eigener Agent oder ein eigener API-Schlüssel. Es läuft auf Windows, macOS und Linux, auf der offiziellen Godot-Engine.
Quelle: https://flockbay.com/how-to-make-games-in-codex/ · Aktualisiert am 05.10.2026
Stand: 29. September 2026, unter Windows. Mit Codex: Installiere die CLI, melde dich mit ChatGPT an, und öffne dann in Flockbay Connectors, Connect your agent (MCP), Set up, Turn on, Codex, Copy, und füge die Zeile in PowerShell ein; /mcp in Codex listet flockbay-stage auf. Ohne Codex: Connectors, ChatGPT, Sign in with ChatGPT, mit jedem Plan, auch Free.
Codex ist von Grund auf vorsichtig. Es plant, arbeitet in einer Sandbox und fragt nach, bevor es etwas tut, bei dem es sich unsicher ist. Bittet man es um eine Münze, die sich dreht und verschwindet, wenn der Spieler sie berührt, erhält man ein sauberes Skript und eine ordentliche Erklärung. Was man nicht bekommt, ist der Moment, in dem Codex zusieht, wie der Spieler in die Münze läuft. Es hat das Spiel nie ausgeführt, weil ihm nichts dazu zur Verfügung stand.
Flockbay ist die fehlende Hälfte. Es ist ein kostenloser KI-Spielgenerator auf Basis von Godot: eine Desktop-Anwendung mit der offiziellen Godot 4.7.2 im Inneren, kein Fork, in der dein Spiel ein echtes Godot-4-Projekt ist, das du öffnen, lesen und ändern kannst, und die Welt-Werkzeuge leben im Godot-Editor. Über MCP reicht es Codex das laufende Spiel: Codex spielt es durch, liest die Fehler, macht Screenshots des Viewports und behebt, was kaputtgegangen ist, bevor es Bericht erstattet.
Es gibt zwei Wege, OpenAIs Modelle an einem Spiel in Flockbay arbeiten zu lassen, und es handelt sich um unterschiedliche Produkte. Du kannst Codex selbst ausführen und verbinden, oder du kannst dich in Flockbay mit ChatGPT anmelden und die eingebaute KI der App auf deinem Abo bauen lassen. Diese Seite behandelt beide Wege, mit der spezifischen Fehlerbehebung für Codex. Für Claude ist derselbe Weg die Anleitung, wie man Spiele in Claude Code erstellt.
64-Bit Windows 11 auf Intel oder AMD, ein Mac mit Apple Silicon oder Linux als x86_64-AppImage, dort läuft Flockbay. Eine Internetverbindung, solange du baust, und ein Flockbay-Konto, das kostenlos ist und das die Anwendung beim ersten Öffnen automatisch für dich anlegt.
Codex, an einem der drei Orte, an denen OpenAI es ausliefert: der Codex CLI, der IDE-Erweiterung oder der ChatGPT-Desktop-Anwendung, wo du Codex wählst. Die CLI läuft nativ unter Windows; installiere sie aus PowerShell mit der Zeile unten oder mit npm install -g @openai/codex. Beim ersten Ausführen von codex wählst du Sign in with ChatGPT.
Ein ChatGPT-Konto. Stand 5. Oktober 2026 listet die Codex-Preisseite bei OpenAI Codex in jedem ChatGPT-Plan: Free für kurze Programmieraufgaben, Go für leichte Aufgaben und mehr Nutzung mit Plus für 20 Dollar im Monat. Ein OpenAI-API-Schlüssel funktioniert ebenfalls, abgerechnet zu API-Konditionen: codex login --with-api-key liest ihn von der Standardeingabe. Die eigenständige CLI haben wir selbst nicht mit einem Free-Konto getestet; die Codex-Engine in Flockbay baut aber auf einem.
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex" Vollbildmodus aktivieren Vollbildmodus beenden Schritt 1: Codex mit codex mcp add mit Flockbay verbinden Installiere Flockbay von flockbay.com, öffne es und beschreibe dein Spiel in einem Satz. Die Anwendung zeigt, was sie verstanden hat, wobei 2D oder 3D vorausgewählt ist; wähle den Ordner und drücke Continue. Dein Spiel öffnet sich im Godot-Editor, den die Flockbay-Anwendung hostet. Lass es dort offen: Codex kann nur das Spiel erreichen, das die Anwendung geöffnet hat.
Wähle im Flockbay-Menü Connectors, dann Set up neben Connect your agent (MCP). Schalte es mit Turn on ein, wähle Codex aus der Liste und klicke auf Copy. Führe die kopierte Zeile in PowerShell oder der Eingabeaufforderung aus. Sie registriert einen einzigen Server, flockbay-stage, in Codex' globaler Konfiguration, sodass Codex ihn aus jedem Ordner sieht.
Drücke an derselben Stelle auf Install skills. Es kopiert Flockbays Anweisungen für deinen Agenten in Codex' Skills, sodass Codex weiß, wie die Werkzeuge zusammenspielen, bevor es loslegt. Codex erhält nur Skills; die Hooks, die die Anwendung installiert, sind für Claude Code und Cursor.
Die Flockbay-Anwendung schreibt dies für dich mit den echten Pfaden: Öffne das Kontomenü, wähle MCP connection, drücke Turn on, wähle Codex und drücke Copy. Die drei Pfade sind spezifisch für deinen Rechner und bleiben von einer Sitzung zur nächsten gleich, sodass du sie nur einmal einfügst. unten siehst du die Form, mit Pfaden als Platzhaltern.
codex mcp add flockbay-stage --env "FLOCKBAY_LOCAL_STAGE_CAPABILITY_AUTHORITY_DESCRIPTOR=<descriptor>" -- "<node>" "<coordinator>" --external-stage-mcp Vollbildmodus aktivieren Vollbildmodus beenden Codex speichert den Flockbay-Server in config.toml Codex speichert seine Server in config.toml in seinem Home-Ordner: %USERPROFILE%.codex\config.toml unter Windows. Die CLI, die IDE-Erweiterung und die ChatGPT-Desktop-Anwendung teilen sich diese Konfiguration, sodass laut OpenAIs Dokumentation ein einmal hinzugefügter Server alle drei erreicht.
Der Eintrag ist gut zu kennen, falls etwas schiefgeht. Unten ist er von Hand geschrieben, mit Pfaden als Platzhaltern und einer optionalen Zeile ergänzt. In TOML setzt man Windows-Pfade in einfache Anführungszeichen oder verdoppelt jeden Backslash. Zwei optionale Einstellungen sind hier relevant. startup_timeout_sec ist, wie lange Codex auf den Start des Servers wartet, standardmäßig 10 Sekunden. default_tools_approval_mode legt fest, ob Codex vor dem Ausführen der Werkzeuge dieses Servers fragt: auto, prompt, writes oder approve.
[ mcp_servers. flockbay-stage ] command = '<node>' args = [ '<coordinator>', '--external-stage-mcp' ] startup_timeout_sec = 20 [ mcp_servers. flockbay-stage. env ] FLOCKBAY_LOCAL_STAGE_CAPABILITY_AUTHORITY_DESCRIPTOR = '<descriptor>' Vollbildmodus aktivieren Vollbildmodus beenden Schritt 2: Codex im Ordner des Spiels starten und /mcp prüfen Öffne ein Terminal im Ordner deines Spiels, meist Dokumente\Flockbay und der Name des Spiels, und tippe codex. Innerhalb von Codex listet /mcp die gestarteten Server auf; flockbay-stage sollte dort stehen. /mcp verbose ergänzt die Diagnose jedes Servers.
Codex liest AGENTS.md, bevor es irgendeine Arbeit tut. Flockbays Anweisungen erreichen es über die Werkzeuge und Skills, daher ist AGENTS.md für deine eigenen Präferenzen da: das gewünschte Gefühl, was nicht geändert werden soll und wie du Änderungen berichtet haben möchtest.
Codex schlägt seine Berechtigungen anhand des Ordners vor. Für einen Ordner unter Git empfiehlt es Auto, das innerhalb des Ordners editiert und nachfragt, bevor es etwas außerhalb oder das Netzwerk anfasst; für einen Ordner ohne Git empfiehlt es Nur-Lesen. Führe git init im Ordner des Spiels aus, bevor deine erste Sitzung beginnt. Das gibt Codex die richtige Voreinstellung und gibt dir einen Verlauf, mit dem du einen misslungenen Nachmittag rückgängig machen kannst.
Codex ist mit einer Aufgabe am besten bedient, die eine Ziellinie hat. „Mach das Spiel Spaß“ hat keine. „Füge eine Münze hinzu, die sich dreht und mit einem Geräusch verschwindet, wenn der Spieler sie berührt. Spiele dann das Spiel, lauf mit dem Spieler in die Münze und sag mir, ob sie die Szene verlassen hat“ hat eine, und Codex kann sie selbstständig erreichen.
Beginne mit einer Leseaufgabe, damit es das Projekt zuerst kennenlernt: frage, was in der Hauptszene ist, wie sich der Spieler bewegt und welche Steuerung es gibt. Dann eine Mechanik pro Eingabeaufforderung, jeweils mit einer Zahl oder einem Ereignis zum Prüfen. Codex zeigt seinen Plan meist, bevor es handelt; lies ihn, denn das ist der günstigste Ort, um ein Missverständnis abzufangen.
Es ändert das Spiel über den geöffneten Godot-Editor. Nodes, Eigenschaften, Skripte, Ressourcen und Signale werden dort geändert, jede Änderung ein einzelner Schritt in Godots Undo-Verlauf, und danach wird die Szene gespeichert. Ein schlechter Schritt ist ein einziges Strg+Z im Editor.
Es beweist die Änderung. Für ein Skript, das es schreibt, erhält es Godots eigenen Parse-Fehler samt Zeile und kann einen Headless-Lauf machen, um zu sehen, ob es startet. Dann spielt es das Spiel im Game-Screen der Anwendung und liest stdout, jeden Fehler mit Datei, Zeile und Call-Stack.
Es probiert das Spiel so aus, wie ein Spieler es tun würde. Codex kann eine Taste eine halbe Sekunde gedrückt halten, klicken, die Maus bewegen oder eine Input-Action auslösen, dann einen Wert aus der laufenden Szene ablesen, etwa ob der Coin-Node noch existiert, und den Spiel-Viewport oder den 3D- oder 2D-Viewport des Editors aufzeichnen. Nichts davon bewegt deine eigene Maus, und wenn du während des Spielens eine Taste drückst, stoppt es und gibt das Spiel zurück.
Die Welt ist keine handgeschriebene Geometrie. Terrain, Wasser, Himmel, Wetter, der Spieler und jedes platzierte Objekt stammen aus Systemen, die Codex namentlich anfragt, samt Einstellungen: sechs davon in einem 3D-Spiel, vier in einem 2D-Spiel, das kein Wasser und Wetter hat. Für Props kann es Flockbays Bibliothek aus Modellen, Texturen und Klängen durchsuchen. Es kann neue Soundeffekte und Loops mit der kostenlosen Tagesnutzung oder mit deinem eigenen ElevenLabs-Schlüssel erstellen, sofern du einen hinterlegt hast, und neue 3D-Modelle mit deinem eigenen Tripo-Schlüssel.
Codex kann nachfragen, bevor es ein Werkzeug aufruft, das das Spiel verändert, abhängig von deinen Berechtigungen und der Approval-Einstellung des Servers. Zustimmen ist hier billig, denn jede Editor-Änderung ist ein einziges Strg+Z. Seine Schritte erscheinen auch in der Flockbay-Anwendung, in einem Chat namens Your agent.
Sie muessen Codex gar nicht ausfuehren, um auf Ihrem ChatGPT-Tarif zu bauen. Oeffnen Sie in Flockbay die Connectors und klicken Sie in der ChatGPT-Zeile auf Sign in with ChatGPT. Ihr Browser oeffnet die Anmeldeseite von OpenAI und fuehrt Sie danach zurueck. Von da an chatten Sie mit Flockbays eigener KI im Chat neben dem Godot-Editor, und sie laeuft ueber Ihr ChatGPT-Abo. Im Modellmenue verwendet die ChatGPT-Zeile das Modell, das Ihr ChatGPT-Konto vorgibt.
Das funktioniert mit jedem ChatGPT-Tarif, auch mit Free. OpenAI legt fest, wie viel jeder Tarif nutzen darf; auf seiner Codex-Preisseite wird Free fuer schnelle Programmieraufgaben beschrieben. Lehnt OpenAI ein Konto ab, weist Flockbay darauf auf einer Karte hin und nennt die Ablehnung, wenn eine Nachricht fehlschlaegt.
Der Unterschied zur Verbindung mit Codex liegt darin, wer steuert. Hier arbeitet Flockbays KI so, wie die App es vorsieht: Sie stellt jeweils eine Runde Fragen, schreibt ein kurzes Briefing darueber, was sie zuerst bauen will, und baut erst, wenn Sie dem zustimmen, wobei sie dieselben Werkzeuge nutzt wie Codex. Sie bleiben in einem Fenster, ohne Terminal. Bei verbundem Codex steuern Sie Codex mit Ihren eigenen Gewohnheiten und Einstellungen, und Flockbay stellt die Werkzeuge bereit. Generierte Grafiken bei einer ChatGPT-Anmeldung stammen aus Ihren eigenen Tripo- oder ElevenLabs-Schluesseln; ohne diese baut sie aus der Bibliothek oder mit Godots Formen.
Codex meldet, dass der flockbay-stage-Server nicht gestartet ist oder ein Timeout hatte. Codex gibt einem Server standardmaessig 10 Sekunden zum Starten. Fuegen Sie unter [mcp_servers.flockbay-stage] in der config.toml startup_timeout_sec = 20 hinzu. Falls es weiterhin fehlschlaegt, pruefen Sie die drei Pfade in diesem Eintrag gegen die Zeile im Flockbay-Dialog, der rot anzeigt, wenn die App selbst den Start nicht geschafft hat, und fuegen Sie die aktuelle Zeile erneut ein.
Der Server ist nicht unter /mcp vorhanden. Fuehren Sie codex mcp list in einem Terminal aus. Ist er dort nicht aufgefuehrt, fuegen Sie die Zeile erneut ein; sie ist global, daher spielt der Ordner keine Rolle.
Codex sieht flockbay-stage, aber nur ein einziges Tool, eine Statusabfrage. Die App ist geschlossen, es ist kein Spiel geoeffnet, oder in den Connectors ist Connect your agent (MCP) ausgeschaltet. Beheben Sie das jeweilige Problem, und die restlichen Werkzeuge gesellen sich von selbst zur Sitzung. Immer noch unvollstaendig? Beenden Sie Codex und starten Sie es neu.
Codex veraendert nichts. Der Ordner wurde schreibgeschuetzt gestartet. Wechseln Sie mit /permissions zu Auto, oder fuehren Sie git init im Spielordner aus, sodass Codex beim naechsten Mal Auto waehlt.
Codex meldet, der Editor sei geschlossen oder es muesse warten. Szenen- und Skriptaenderungen laufen ueber den Godot-Editor, den die Flockbay-App bereitstellt, also oeffnen Sie das Spiel zuerst in der App. Ein abgelehnter Play-Befehl ist beabsichtigt: Wenn Sie seit Codex' letztem Spielstart selbst die Weltwerkzeuge benutzt haben, uebergibt die App Play an Sie. Und waehrend Flockbays eigene KI in diesem Spiel einen Zug laufen hat, wird Codex gebeten, zu warten, bis sie endet.
Die ChatGPT-Anmeldung kann nicht bauen. Jeder ChatGPT-Tarif baut hier, auch Free. Lehnt OpenAI ein Konto ab, sagt das eine Karte mit dem Titel "Your ChatGPT account can't build here", und die fehlgeschlagene Nachricht nennt die Ablehnung.
Codex mit Flockbay zu verbinden ist kostenlos, ebenso das Bauen mit einer ChatGPT-Anmeldung. Sie zahlen OpenAI fuer Ihren Tarif, und ein ChatGPT-Free-Konto kostet nichts. Stand 29. September 2026: Plus kostet 20 Dollar im Monat und enthaelt Codex in der CLI, der IDE-Erweiterung und im Web; Pro beginnt bei 100 Dollar im Monat mit fuenf- oder zwanzigfacher Codex-Nutzung gegenueber Plus; Business kostet 25 Dollar pro Nutzer im Monat, bzw. 20 Dollar bei jaehrlicher Abrechnung. Ein API-Schluessel wird zu den API-Preisen abgerechnet.
Jedes Konto erhaelt zudem tagtaeglich kostenlose KI auf dem gehosteten Modell namens Demo, und am naechsten Tag ist sie wieder da. Tarife mit mehr gehosteter KI sind optional. Was Flockbay kostet, ist dort im Detail beschrieben.
Es kann nicht entscheiden, ob das Spiel gut ist. Es kann melden, dass die Muenze die Szene verlassen hat und der Sound abgespielt wurde; Sie spielen das Spiel, druecken Play oder F5 im Editor und beurteilen, ob es sich richtig anfuehlt.
Die Verbindung bedient das Spiel, das Flockbay geoeffnet hat. Das kann ein Godot-Projekt sein, das Sie bereits besitzen: Flockbay fragt einmal nach, bevor es etwas hinzufuegt, und Codex arbeitet dort mit den Godot-Werkzeugen, bis Sie ein Weltwerkzeug hineinlassen. Um das Projekt stattdessen in Ihrem eigenen Editor zu behalten, fuegen Sie einen Godot-MCP-Server hinzu, der dort funktioniert. Claude for Godot vergleicht diese Server, und Codex nutzt sie auf dieselbe Weise.
Die App laeuft unter Windows, macOS und Linux, und das Bauen erfolgt online; ein fertiges Spiel laesst sich ohne Verbindung spielen. Der Code, den Codex hier schreibt, ist GDScript, oder C#, wenn das Spiel es bereits verwendet. Die App ist nicht quelloffen, waehrend Godot darunter die offizielle Engine ist und jede Datei des Spiels Ihnen gehoert.
Es kann von selbst einen schreiben. Mit Flockbay verbunden kann es das Spiel zudem ausfuehren, seine Fehler lesen, Eingabeereignisse einschleusen und den Viewport aufnehmen, sodass es behebt, was bricht, bevor es das Spiel zurueckgibt. Ob das Spiel Spass macht, muessen weiterhin Sie beurteilen.
Nein. Die ChatGPT-Anmeldung in Flockbay baut mit jedem ChatGPT-Tarif, auch Free. Fuer die eigenstaendige Codex CLI listet die Codex-Preisseite bei OpenAI Codex mit Stand 5. Oktober 2026 in jedem ChatGPT-Tarif, mit groesserer Nutzung bei Plus und hoeher; ein OpenAI-API-Schluessel funktioniert ebenfalls.
Mit Codex verbinden heisst, Sie fuehren Codex aus und es nutzt Flockbays Werkzeuge. Mit ChatGPT anzumelden heisst, Flockbays eigene KI baut innerhalb der App auf Ihrem ChatGPT-Abo, stellt Fragen und schreibt ein Briefing, bevor sie baut. Beide nutzen dieselben Werkzeuge am selben Spiel.
OpenAIs Dokumentation sagt, dass die ChatGPT-Desktop-App, die Codex CLI und die IDE-Erweiterung ihre MCP-Konfiguration teilen, sodass die eingefuegte Zeile alle drei erreichen sollte. Die Desktop-App haben wir nicht selbst getestet.
Ja. Codex meldet sich mit einem Schluessel ueber codex login --with-api-key an. In Flockbay fuegen Sie den Schluessel in den Connectors unter Your own API key hinzu; OpenAI stellt Ihnen in Rechnung, was Sie nutzen.
Nein. Codex unterstuetzt MCP, das offene Protokoll zum Bereitstellen von Werkzeugen fuer einen Agenten, und Flockbay liefert seine Werkzeuge darueber aus. In Codex geht nichts ausser diesem einen Servereintrag und, falls gewuenscht, den Skills.
Codex tut es, und Flockbay ebenfalls: Es laeuft auf 64-Bit-Windows 11, auf Macs mit Apple Silicon und unter Linux als x86_64-AppImage.
Laden Sie Flockbay kostenlos herunter: ein kostenloser KI-Spielbaukasten auf Godot-Basis fuer Windows, macOS und Linux. Codex zu verbinden ist kostenlos, ebenso das Bauen mit einer ChatGPT-Anmeldung. https://flockbay.com/
Verwandt: Claude or ChatGPT with Godot, How to make games in Claude Code, Claude for Godot, Connect your own agent, Cursor for Godot, Godot AI agent, Making games from OpenCode
Ich entwickle Flockbay, einen kostenlosen KI-Spielbaukasten auf Godot-Basis. Das Original finden Sie auf flockbay.com.
Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.
Original (Englisch) anzeigen
Posted on Oct 25 • Originally published at flockbay.com
Codex makes games when it can run them: connect it to Flockbay with one codex mcp add line, and Codex puts together a Godot 4 game in the editor Flockbay hosts, runs it, reads its errors and playtests it. If you would rather not run Codex yourself, sign in with ChatGPT inside Flockbay instead, on any ChatGPT plan, Free included. Neither costs anything beyond the ChatGPT plan you already have. Flockbay is free, AI included: free hosted AI every day, or your own Claude, ChatGPT, agent or API key. It runs on Windows, macOS and Linux, on the official Godot engine.
Source: https://flockbay.com/how-to-make-games-in-codex/ · Updated 2026-10-05
As of 29 Sep 2026, on Windows. Codex: install the CLI, sign in with ChatGPT, then in Flockbay open Connectors, Connect your agent (MCP), Set up, Turn on, Codex, Copy, and paste the line into PowerShell; /mcp in Codex lists flockbay-stage. No Codex: Connectors, ChatGPT, Sign in with ChatGPT, on any plan, Free included.
Codex is careful by design. It plans, works inside a sandbox, and asks before it does anything it is unsure of. Ask it for a coin that spins and disappears when the player touches it, and you get a clean script and a tidy explanation. What you do not get is the moment where Codex watches the player walk into the coin. It never ran the game, because nothing it had could.
Flockbay is the missing half. It is a free AI game maker built on Godot: a desktop app with the official Godot 4.7.2 inside, not a fork, where your game is a real Godot 4 project you can open, read and change, and the world tools live inside the Godot editor. Over MCP it hands Codex the running game: Codex playtests it, reads the errors, captures the viewport and fixes what broke before it reports back.
There are two ways to put OpenAI's models to work on a game in Flockbay, and they are different products. You can run Codex yourself and connect it, or you can sign in with ChatGPT inside Flockbay and let the app's own AI build on your subscription. This page covers both, with the troubleshooting specific to Codex. For Claude, the same walk is how to make games in Claude Code.
64-bit Windows 11 on Intel or AMD, a Mac with Apple Silicon, or Linux as an x86_64 AppImage, which is where Flockbay runs. A connection to the internet for as long as you are building, and a Flockbay account, which is free and which the app makes for you the first time you open it.
Codex, in one of the three places OpenAI ships it: the Codex CLI, the IDE extension, or the ChatGPT desktop app, where you choose Codex. The CLI runs natively on Windows; install it from PowerShell with the line below, or with npm install -g @openai/codex. The first time you run codex, choose Sign in with ChatGPT.
A ChatGPT account. As of 5 Oct 2026, the Codex pricing page at OpenAI lists Codex on every ChatGPT plan: Free for quick coding tasks, Go for lightweight ones, and more usage from Plus at $20 a month. An OpenAI API key works too, billed at API rates: codex login --with-api-key reads it from standard input. We have not run the standalone CLI on a Free account ourselves; the Codex engine inside Flockbay does build on one.
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex" Enter fullscreen mode Exit fullscreen mode Step 1: connect Codex to Flockbay with codex mcp add Install Flockbay from flockbay.com, open it and describe your game in a sentence. The app shows what it understood, with 2D or 3D preselected; pick the folder and press Continue. Your game opens in the Godot editor that the Flockbay app hosts. Leave it there: Codex can only reach the game the app has open.
In the Flockbay menu choose Connectors, then Set up beside Connect your agent (MCP). Switch it on with Turn on, choose Codex from the list, and Copy. Run the copied line in PowerShell or Command Prompt. It registers a single server, flockbay-stage, in Codex's global config, so Codex sees it from any folder.
Press Install skills in the same place. It copies Flockbay's instructions for your agent into Codex's skills, so Codex knows how the tools fit together before it starts. Codex gets skills only; the hooks the app installs are for Claude Code and Cursor.
The Flockbay app writes this for you with the real paths filled in: open the account menu, choose MCP connection, press Turn on, pick Codex and press Copy. The three paths are specific to your machine and stay the same from one sitting to the next, so you paste it once. Below is the shape, with the paths as placeholders.
codex mcp add flockbay-stage --env "FLOCKBAY_LOCAL_STAGE_CAPABILITY_AUTHORITY_DESCRIPTOR=<descriptor>" -- "<node>" "<coordinator>" --external-stage-mcp Enter fullscreen mode Exit fullscreen mode Codex keeps the Flockbay server in config.toml Codex keeps its servers in config.toml, in its home folder: %USERPROFILE%.codex\config.toml on Windows. The CLI, the IDE extension and the ChatGPT desktop app share that configuration, so according to OpenAI's docs a server added once reaches all three.
The entry is worth knowing for when something goes wrong. Below it is written by hand, with the paths as placeholders and one optional line added. In TOML, put Windows paths in single quotes, or double every backslash. Two optional settings matter here. startup_timeout_sec is how long Codex waits for the server to start, 10 seconds by default. default_tools_approval_mode decides whether Codex asks before this server's tools run: auto, prompt, writes or approve.
[ mcp_servers. flockbay-stage ] command = '<node>' args = [ '<coordinator>', '--external-stage-mcp' ] startup_timeout_sec = 20 [ mcp_servers. flockbay-stage. env ] FLOCKBAY_LOCAL_STAGE_CAPABILITY_AUTHORITY_DESCRIPTOR = '<descriptor>' Enter fullscreen mode Exit fullscreen mode Step 2: start Codex in the game's folder and check /mcp Open a terminal in your game's folder, usually Documents\Flockbay and the game's name, and type codex. Inside Codex, /mcp lists the servers it started; flockbay-stage should be there. /mcp verbose adds each server's diagnostics.
Codex reads AGENTS.md before it does any work. Flockbay's instructions reach it through the tools and the skills, so AGENTS.md is for your own preferences: the feel you are after, what not to change, how you like changes reported.
Codex suggests its permissions from the folder. For a folder under git it recommends Auto, which edits inside the folder and asks before touching anything outside it or the network; for a folder without git it recommends read-only. Run git init in the game's folder before your first session. It gives Codex the right default and gives you a history to undo a bad afternoon with.
Codex is at its best with a task that has a finish line. "Make the game fun" has none. "Add a coin that spins, and disappears with a sound when the player touches it. Then play the game, walk the player into the coin, and tell me whether it left the scene" has one, and Codex can reach it on its own.
Open with a reading task so it learns the project first: ask what is in the main scene, how the player moves and what the controls are. Then one mechanic per prompt, each with a number or an event to check. Codex tends to show its plan before it acts; read it, because that is the cheapest place to catch a misunderstanding.
It changes the game through the open Godot editor. Nodes, properties, scripts, resources and signals are changed there, each change a single step in Godot's undo history, and the scene is saved after it. A bad step is one Ctrl+Z in the editor.
It proves the change. It gets Godot's own parse error, with the line, for a script it writes, and can do a headless run to see it start. Then it plays the game in the app's Game screen and reads stdout, every error with its file, line and call stack.
It tries the game the way a player would. Codex can hold a key for half a second, click, move the mouse or fire an input action, then read a value off the running scene, such as whether the coin node still exists, and capture the game viewport or the editor's 3D or 2D viewport. None of that moves your own mouse, and if you touch a key while it is playing, it stops and hands the game back.
The world is not hand-written geometry. Terrain, water, sky, weather, the player and every placed object come from systems Codex asks for by name and settings: six of them in a 3D game, four in a 2D one, which has no water or weather. For props it can search Flockbay's library of models, textures and sounds. It can make new sound effects and loops on the day's free usage, or on your ElevenLabs key if you added one, and new 3D models on your own Tripo key.
Codex may ask before it calls a tool that changes the game, depending on your permissions and the server's approval setting. Approving is cheap here, because every editor change is one Ctrl+Z. Its steps also show in the Flockbay app, in a chat named Your agent.
You do not need to run Codex at all to build on your ChatGPT plan. In Flockbay, open Connectors and press Sign in with ChatGPT on the ChatGPT row. Your browser opens OpenAI's sign-in, then brings you back. From then on you chat with Flockbay's own AI, in the chat beside the Godot editor, and it runs on your ChatGPT subscription. In the model menu, the ChatGPT row uses the model your ChatGPT account picks.
It works on any ChatGPT plan, Free included. OpenAI sets how much each plan can use; its Codex pricing page describes Free as for quick coding tasks. If OpenAI refuses an account, Flockbay says so on a card and names the refusal when a message fails.
The difference from connecting Codex is who is driving. Here Flockbay's AI works the way the app intends: it asks one round of questions at a time, writes a short brief of what it will build first, and builds only when you approve it, using the same tools Codex would. You stay in one window, with no terminal. With Codex connected, you drive Codex, with your own habits and settings, and Flockbay supplies the tools. Generated art on a ChatGPT sign-in comes from your own Tripo or ElevenLabs keys; without them it builds from the library or with Godot's shapes.
Codex says the flockbay-stage server failed to start or timed out. Codex gives a server 10 seconds to start by default. Add startup_timeout_sec = 20 under [mcp_servers.flockbay-stage] in config.toml. If it still fails, check the three paths in that entry against the line in the Flockbay dialog, which says in red when the app itself could not start it, and paste the current line again.
The server is not in /mcp. Run codex mcp list in a terminal. If it is not listed, paste the line again; it is global, so the folder does not matter.
Codex sees flockbay-stage but just one tool, a status check. The app is closed, has no game open, or has Connect your agent (MCP) switched off in Connectors. Fix whichever it is and the rest of the tools join the session on their own. Still missing? Quit Codex and start it again.
Codex will not edit anything. The folder started read-only. Use /permissions to switch to Auto, or run git init in the game's folder so Codex picks Auto next time.
Codex reports the editor is closed, or that it has to wait. Scene and script changes go through the Godot editor the Flockbay app hosts, so open the game in the app first. A refused Play is on purpose: when you have used the world tools yourself since Codex last ran the game, the app hands Play to you instead. And while Flockbay's own AI has a turn running in that game, Codex is asked to hold off until it ends.
ChatGPT sign-in fails to build. Any ChatGPT plan builds here, Free included. When OpenAI refuses an account, a card titled "Your ChatGPT account can't build here" says so, and the failed message names the refusal.
Connecting Codex to Flockbay is free, and so is building on a ChatGPT sign-in. You pay OpenAI for your plan, and a ChatGPT Free account costs nothing. As of 29 Sep 2026: Plus is $20 a month and includes Codex in the CLI, the IDE extension and on the web; Pro starts at $100 a month with five or twenty times Plus's Codex usage; Business is $25 a user a month, or $20 billed yearly. An API key is billed at API rates.
Every account also gets free AI each day on the hosted model, called Demo, and it comes back the next day. Plans for more hosted AI are optional. What Flockbay costs has the detail.
It cannot decide whether the game is good. It can report that the coin left the scene and the sound played; you play the game, press Play or F5 in the editor, and judge whether it feels right.
The connection serves the game Flockbay has open. That can be a Godot project you already have: Flockbay asks once before it adds anything to it, and Codex works with the Godot tools there until you let a world tool in. To keep the project in your own editor instead, add a Godot MCP server that works there. Claude for Godot compares those servers, and Codex uses them the same way.
The app runs on Windows, macOS and Linux, and building is online; a finished game plays without a connection. The code Codex writes here is GDScript, or C# when the game already uses it. The app is closed source, while Godot underneath is the official engine and every file of the game belongs to you.
It can write one on its own. Connected to Flockbay, it can also run the game, read its errors, inject input events and capture the viewport, so it fixes what breaks before it hands the game back. Whether the game is fun is still yours to judge.
No. The ChatGPT sign-in inside Flockbay builds on any ChatGPT plan, Free included. For the standalone Codex CLI, the Codex pricing page at OpenAI lists Codex on every ChatGPT plan as of 5 Oct 2026, with more usage on Plus and higher; an OpenAI API key works too.
Connecting Codex means you run Codex and it uses Flockbay's tools. Signing in with ChatGPT means Flockbay's own AI builds inside the app on your ChatGPT subscription, asking questions and writing a brief before it builds. Both use the same tools on the same game.
OpenAI's docs say the ChatGPT desktop app, the Codex CLI and the IDE extension share their MCP configuration, so the line you paste should reach all three. We have not tried the desktop app ourselves.
Yes. Codex signs in with a key through codex login --with-api-key. Inside Flockbay, add the key in Connectors under Your own API key; OpenAI bills you for what you use.
No. Codex supports MCP, the open protocol for giving an agent tools, and Flockbay serves its tools over it. Nothing goes into Codex beyond that one server entry and, if you want them, the skills.
Codex does, and so does Flockbay: it runs on 64-bit Windows 11, on Macs with Apple Silicon and on Linux as an x86_64 AppImage.
Download Flockbay free: A free AI game maker built on Godot, for Windows, macOS and Linux. Connecting Codex is free, and so is building on a ChatGPT sign-in. https://flockbay.com/
Related: Claude or ChatGPT with Godot, How to make games in Claude Code, Claude for Godot, Connect your own agent, Cursor for Godot, Godot AI agent, Making games from OpenCode
I make Flockbay, a free AI game maker built on Godot. The original is on flockbay.com.