
Codex Client Control
A local HTTP bridge for AI-driven Minecraft client control.
About this Mod
Codex Client Control started from a simple problem: most AI tools can explain Minecraft, talk about Minecraft, and write code for Minecraft, but they still cannot actually operate a running Minecraft client.
That gap is what this mod is meant to close. It opens a token-protected local HTTP and WebSocket interface on 127.0.0.1, so an AI agent on the same machine can read client state and send real in-game actions back to the client it is supposed to control.
This project was built with Codex in mind first. The name is not accidental: it exists to give Codex a practical way to see what the client is doing, inspect the current UI, and perform actual gameplay-side operations instead of stopping at text-only reasoning.
In practice, that means an external tool can read chat, inspect the current screen, check the focused block, look at container contents, move the player, turn the camera, switch hotbar slots, type into GUI fields, click widgets, take screenshots, or run short action sequences.
HTTP was chosen on purpose. It is simple, easy to inspect, easy to debug, and easy for AI tools to call. If an agent can make a normal local request, it can control the client without needing a special plugin host or an embedded scripting environment.
Why It Exists
- To let AI tools operate a real Minecraft client instead of only talking about one
- To give Codex a straightforward control path through a local API
- To make client automation easy to inspect, test, and extend
- To bridge normal scripts, desktop tools, and AI agents with a running game client
What It Can Control
- Player state, chat history, crosshair target, container contents, current screen, and player list
- Movement keys, look control, hotbar selection, chat sending, and command execution
- GUI clicks, scroll input, key input, text entry, and widget targeting
- Screenshots, action sequences, managed actions, and local debug helpers
Notes
- The API is local-only by default and token-protected.
- It controls the client you are already running; it does not log in a second account.
- It was built for Codex first, but anything that can call the local API can use it.
- If you need very heavy continuous automation, the repository also includes an optional
lan-botside project for that style of workload.
Available Versions
How to Install Codex Client Control on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.11).
Install Mod
Open the mod browser in the dashboard and search for "Codex Client Control". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.11, 1.21.8
Server-side
✗ UnsupportedRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Codex Client Control server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.11). You can switch loaders with one click in the panel.
Is Codex Client Control compatible with fabric and neoforge?
Codex Client Control officially supports fabric, neoforge for Minecraft 1.21.11, 1.21.8. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Codex Client Control – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Codex Client Control consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Codex Client Control with just one click on your server.