# codex · Embedding interfaces

> Levels are per column and must not be summed, averaged or ranked. A level states which written criterion the runtime's source meets. It is not a measure of quality or task success. Higher is not always preferable.

Source: "Agent runtime comparison: ten open-source agent runtimes, source review", study of 2026-11-28. Mark notation: `3` is the level in the default deployment; `1→4 [opt: …]` is level 1 by default and level 4 in the named configuration; `s` source-verified, `d` documented or test only. Service dependencies are classes (E embedded, O on demand, R resident service, X external server required), not levels.

- Runtime: [codex](https://ai-agents-review.com/runtime/codex.md)
- Column: [Embedding interfaces](https://ai-agents-review.com/column/embedding-interfaces.md) (Product integration)
- Mark: 2 s
- Default deployment: 2
- Best supported configuration: 2
- Page: https://ai-agents-review.com/cell/codex/embedding-interfaces

## Rationale

Full lifecycle, approvals and several transports exist, but app-server is labelled [experimental] (codex-rs/cli/src/main.rs:177), which the L2 anchor names

## Rubric criteria for this column

- 0: Interactive UI only
- 1: Non-interactive CLI with text or JSON output only (scraping)
- 2: One supported programmatic interface (library **or** protocol) with an event stream, marked experimental or covering only part of the session lifecycle
- 3: Supported programmatic interface with typed events **and** session lifecycle control (start, follow-up/steer, interrupt, resume)
- 4: Level 3, plus host callbacks for approvals or host-executed tools **and** two or more transports or bindings (e.g. in-process plus network protocol)

## Review finding

Built in: `codex app-server` JSON-RPC (about 200 methods plus typed notifications and server-to-client approval requests) over stdio by default [opt: unix socket, WebSocket]. Non-loopback WebSocket refused without auth. Python SDK wraps app-server; TypeScript SDK wraps `codex exec --experimental-json`. Some fields are experimental. Not an MCP server. [I1][I2][I3][I4][I5][I6]

## Evidence cited by the mark

- [I1] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/app-server-transport/src/transport/mod.rs#L84-L89 — transports `Stdio | UnixSocket | WebSocket | Off`; default stdio — [S]
- [I3] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/app-server-protocol/src/protocol/common.rs#L531-L1677 — client request method table (threads, turns, steer, interrupt, fork, fs, plugins, MCP, config); server→client requests and notifications follow at :1956-1998, :2102-2224 — [S]
- [I4] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/sdk/python/src/openai_codex/client.py#L215-L272 — Python SDK: typed JSON-RPC client for `codex app-server` over stdio — [S]

## Evidence also cited by the review finding

- [I2] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/app-server-transport/src/transport/websocket.rs#L160-L175 — refuses non-loopback WebSocket listener without `--ws-auth` — [S]
- [I5] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/sdk/typescript/src/exec.ts#L95-L203 — TypeScript SDK spawns `codex exec --experimental-json` — [S]
- [I6] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/app-server/README.md#L9-L11 — some app-server workflows require `experimentalApi: true` — [D]

## Grading record

- Grader A (default / best): 2 / 2
- Grader B (default / best): 4 / 4
- Adjudication: disagreement; literal anchor. Full lifecycle, approvals and several transports exist, but app-server is labelled [experimental] (codex-rs/cli/src/main.rs:177), which the L2 anchor names
