Provider id:Documentation Index
Fetch the complete documentation index at: https://docs.ctrlnode.ai/llms.txt
Use this file to discover all available pages before exploring further.
codex · CtrlNode agent type: CodexSdk
Uses @openai/codex-sdk (stdio JSON-RPC to codex app-server). Each agent gets an isolated CODEX_HOME under the workspace.
When to use it
- You use OpenAI Codex for autonomous coding on the Bridge host
- You want per-agent Codex configuration directories
Prerequisites
Install Codex CLI with optional native deps:Authentication
Option A — API keyEnvironment variables
| Variable | Default | Description |
|---|---|---|
CODEX_API_KEY | — | OpenAI API key |
CODEX_BIN_PATH | Auto from PATH | Absolute path to codex binary |
CODEX_DEFAULT_MODEL | SDK default | e.g. gpt-5.4-nano |
CODEX_TIMEOUT_MINUTES | 10 | Task timeout |
AGENTS_FOLDER | Home | Workspace root |
Example .env
CtrlNode setup
- Project agent type Codex
- Register agents in Team
- Ensure agent type is
CodexSdkso routing usescodex, not Copilot or Cursor
Troubleshooting
| Issue | Fix |
|---|---|
Unable to locate Codex CLI binaries | Reinstall with optional deps; set CODEX_BIN_PATH |
| Wrong provider executed task | Agent must be CodexSdk; check sync_codex_agents after reconnect |
| 401 | codex auth login or refresh CODEX_API_KEY |