Skip to main content

Crate monoloop_connector_codex

Crate monoloop_connector_codex 

Source
Expand description

SPDX-License-Identifier: AGPL-3.0-or-later Copyright (C) Alexander R. Croft

OpenAI Codex ACP connector profile.

Speaks JSON-RPC 2.0 over stdio NDJSON, same client shape as Cursor / Agy ACP.

Practical path: official adapter @agentclientprotocol/codex-acp (starts Codex App Server, maps ACP ↔ Codex). Configure via CODEX_ACP_BIN or default discovery (codex-acpnpx --yes @agentclientprotocol/codex-acp). Host auth: existing codex login, or OPENAI_API_KEY / CODEX_API_KEY.

Session correlation identity is the ACP sessionId (explicit create/load only).

The TypeScript/Python Codex SDK and codex app-server are alternate control planes; Monoloop folds Codex in via ACP so the shared Interpreter path applies.

Structs§

CodexAgentConfig
How to launch the ACP server process for Codex.
CodexAgentHandle
Live Codex ACP process + optional session.
CodexConnector
Factory for Codex ACP process connections.
CodexConnectorError
Codex / codex connector failure.
CodexConnectorFactory
ConnectorFactory for this profile.
CodexRawDump
Bounded collector for exact inbound/outbound NDJSON lines.
CodexSession
One Codex session on an ACP process.
CodexSessionConfig
Session create parameters (session/new + optional mode).

Functions§

codex_channel_binding
Build a ChannelBinding for StartedRuntime / ChannelRegistry composition.