Codex Unity Bridge is a file-based bridge that lets Codex trigger Unity Editor operations from a running project.
This project is a public Codex-focused fork of ManageXR/claude-unity-bridge.
The original project did the hard foundational work on the file-based bridge design, Unity command execution model, and deterministic CLI workflow. ProdFact's fork ports that work to Codex, separates the runtime so both tools can coexist, and continues development from there.
- Codex-native packaging and skill installation
- Separate CLI executable:
codex-unity-bridge - Separate Unity runtime directory:
.codex-unity-bridge/ - Separate Unity package ID:
com.prodfact.codex-bridge - Separate C# namespace and logs:
ProdFact.CodexBridge,[CodexBridge]
Those changes let the Codex fork coexist with the original Claude bridge:
- Same machine: safe, because the pip package and installed skill use Codex-specific names
- Same Unity project: safe, because this fork watches
.codex-unity-bridge/instead of.unity-bridge/
- Run EditMode or PlayMode tests
- Trigger script compilation
- Refresh the asset database
- Read Unity console logs
- Inspect editor status
- Toggle play, pause, and step
macOS / Linux / Git Bash:
curl -sSL https://raw.githubusercontent.com/ProdFact/codex-unity-bridge/main/install.sh | bashWindows PowerShell:
irm https://raw.githubusercontent.com/ProdFact/codex-unity-bridge/main/install.ps1 | iexIn Unity, open Window > Package Manager > + > Add package from git URL....
Stable release:
https://github.com/ProdFact/codex-unity-bridge.git?path=/package#v0.3.0
Latest main:
https://github.com/ProdFact/codex-unity-bridge.git?path=/package
Natural Codex prompts:
Run the Unity tests
Check for compilation errors
Show me the last 10 Unity errors
Direct CLI usage:
codex-unity-bridge run-tests --mode EditMode
codex-unity-bridge compile
codex-unity-bridge get-console-logs --limit 10 --filter ErrorCodex -> codex-unity-bridge -> .codex-unity-bridge/command.json -> Unity Editor -> .codex-unity-bridge/response-{id}.json
- Codex or a user runs
codex-unity-bridge. - The CLI writes a command file into
.codex-unity-bridge/. - The Unity package polls that directory, executes the command, and writes a response file.
- The CLI polls for the response, formats the result, and cleans up.