OpenAI's Codex App Server is a bidirectional JSON-RPC API that enables different surfaces (web, CLI, IDE extensions, macOS app) to embed the same Codex agent harness. The architecture includes thread lifecycle management, authentication, tool execution, and a protocol built around three primitives: items (atomic I/O units),
Table of contents
Origin of the App ServerInside the Codex harnessThe conversation primitivesIntegrating with clientsChoosing the right protocolTaking this forwardSort: