This package uses the bundled @openai/codex dependency by default.
Set CODEX_PATH to run a different Codex binary; versions other than the one specified in package.json may not be compatible.
- Download and install C++ redistributable package
Run from sources
- Install dependencies
npm install - Adjust ACP client config
{
"agent_servers": {
"Codex (app-server)": {
"command": "npm",
"args": ["run", "start", "--prefix", "/path/to/project/"],
"env": {
"CODEX_PATH": "node_modules/.bin/codex",
"APP_SERVER_LOGS": "optional/path/to/existing/log/directory"
}
}
}
}Run from binaries
- Download a
codex-acp-<platform>.ziparchive from https://github.com/agentclientprotocol/codex-acp/releases - Unzip the archive:
unzip codex-acp-<platform>.zip
- Adjust ACP client config
{
"agent_servers": {
"Codex (app-server)": {
"command": "/path/to/codex-acp",
"env": {
"CODEX_PATH": "/path/to/codex"
}
}
}
}Building standalone binaries requires bun.
Build single-file executables in dist/bin directory:
npm run bundle:allPackage binaries into zip archives:
npm run package:all- Update Codex dependency:
package.json - Regenerate Codex types in
src/app-server/:npm run generate-types - Ensure there are no type errors or failed tests:
npm run typecheckandnpm run test