Have you heard of Codex App Server?

Instead of interacting with Codex through the CLI, Codex App Server lets you control a Codex agent over JSON-RPC.

In other words, you can build your own GUI, TUI, task queue, or orchestration layer on top of Codex.

This article focuses on keeping a fast pace, so if you're looking for precise protocol details and specifications, please refer to the official README:

https://github.com/openai/codex/blob/main/codex-rs/app-server/README.md