MandoCode can use the maintained Codex ACP adapter through the existing ACP client. Codex owns model execution, its tools, and authentication. MandoCode displays the conversation and relays permissions through the same pane integration used for other ACP agents.
Install Node.js and sign in to Codex separately with codex login. MandoCode does not perform
the adapter's authentication flow or collect credentials. An existing compatible Codex login
can be reused; if authentication is required, finish it with Codex before reconnecting.
Install a pinned adapter into a folder you control. For example, in PowerShell:
$adapterFolder = Join-Path $env:USERPROFILE '.mandocode\acp\codex'
npm install --prefix "$adapterFolder" --save-exact @agentclientprotocol/codex-acp@2.6.0
Join-Path $adapterFolder 'node_modules\@agentclientprotocol\codex-acp\dist\index.js'Copy the absolute path printed by the last command. In MandoCode, register it with:
/agent-acp add codex node "C:\Users\YOUR_NAME\.mandocode\acp\codex\node_modules\@agentclientprotocol\codex-acp\dist\index.js"
/agent-acp test codex
/agent-acp codex --new-panel
Replace YOUR_NAME with your Windows user folder. If Node is not on PATH, use the absolute
path to node.exe. The adapter's package includes a compatible Codex dependency; a separately
installed Codex executable can be selected using CODEX_PATH in the entry's environment.
Keep the installation's lock file to preserve the resolved dependency versions.
/agent-acp add codex prints this setup guidance. It does not install an adapter or save a
configuration automatically. The normal launch confirmation still applies. MandoCode runs
Node directly, without npx, an npm shim, or a shell at launch time.
Other operating systems can use the same npm package and register its absolute JavaScript
entry path with node. The live validation below was performed on Windows only.
/agent-acp-modeopens the agent's mode picker, with its descriptions and current selection. For example, Codex can offer Read-only, Workspace access, Auto review, and Full access. These are agent-defined permission and behavior modes, not MandoCode's native approval settings./agent-acp-mode read-onlyselects an advertised mode directly. Changes keep the conversation and are refused while the pane has active work. The selection applies to this session; it does not rewrite global Codex configuration./modeluses the adapter's advertised model configuration. Available models depend on the account and adapter./compactand other agent-provided commands appear when the adapter advertises them.- Alt+V attaches a clipboard image when the connected adapter advertises image prompt support.
/clearstarts another ACP conversation and preserves the native MandoCode conversation./copyand/copy-coderead the ACP conversation's last reply./agent-acp stopreturns to the native conversation.- Folder changes follow the normal ACP restart and confirmation flow.
Capability handling remains shared with other ACP agents. This setup does not add native agent mentions, context handoff, or the proposed MandoCode MCP bridge. The generic ACP restrictions still apply even if Codex itself advertises additional features.
The adapter also supports API-key authentication. Existing OPENAI_API_KEY and CODEX_API_KEY
environment variables are not filtered by MandoCode. Check your Codex authentication setup
if you specifically intend to use an existing ChatGPT login instead of API billing.
Validated on Windows with @agentclientprotocol/codex-acp 2.6.0:
- ACP v1 initialization and session creation using existing login state, with API-key variables removed from the test process.
- MandoCode's actual
AcpClientand process transport connected to the adapter and parsed its configuration options. - Selected read-only mode, received a short streamed text reply, and closed the session and client successfully.
- The adapter accepted a
session/set_config_optionchange for itsmodeoption toread-only, then closed the session. The mode picker and its routing have automated coverage; its full interactive flow still needs a manual terminal check. - Command tests cover setup guidance without saving an entry and explicit executable registration.
This verifies the core connection and text path. Interactive permission menus, cancellation, model changes, compaction, session restoration, and folder restarts need manual validation with Codex before claiming those flows have been tested against this adapter.
- Final full-suite validation: 1,919 passed, one skipped, and zero failed on each of net8.0 and net10.0. The skip is the existing symlink-creation test on this Windows machine; the junction guard has separate coverage.
- All 95 targeted activity, permission, transcript, and export checks pass on both frameworks, including expansion across live updates and tool-call identity across turns and panes.
- All 64 agent-command tests pass on both net8.0 and net10.0, including the two new Codex tests.
- The first full run had 1,893 passes, one skip, and one failure on each target: a Windows file-access error in the concurrent config-save test on net8.0, and a command-notification timeout on net10.0. These are not Codex-specific tests; their cause remains unresolved.
- The notification test passed in isolation. Unchanged main passed its config-save tests and its complete net10.0 suite (1,892 passes, one skip). The final branch run above is clean; the earlier failures are retained here as validation history rather than attributed to a known fix.