The examples on this page use the object-oriented SDK surface:
AsyncRunloopSDK in Python and RunloopSDK in TypeScript.Overview
The Codex adapter connects Broker to a Codex CLI subprocess running in app-server mode inside your devbox. Broker speaks JSON-RPC to the Codex CLI and republishes Codex notifications into Axon.Broker mount configuration
| Field | Type | Description |
|---|---|---|
type | string | Must be broker_mount |
axon_id | string | Required. The Axon stream Broker reads from and writes to |
protocol | string | Must be codex_app_server |
How Broker uses Codex
- Broker launches Codex CLI in app-server mode when the Devbox starts
- Codex initializes and sets up the session
- Publish
user.messageto the Axon to start a turn - Broker forwards that message as a
turn/startJSON-RPC request - Codex output is republished to Axon as
turn.codex.<method>events - Broker auto-approves command execution and file change requests
- Use
broker.control.cancelto stop the active turn
