Last reviewed: 2026-02-14
Audience: contributors using Codex app/CLI on macOS (Apple Silicon) with Codex-Synaptic.
This guide is aligned with:
codex --helpcodex mcp --helpcodex mcp add --help- OpenAI Codex docs:
https://developers.openai.com/codex/quickstart/https://developers.openai.com/codex/app/https://developers.openai.com/codex/app/features/https://developers.openai.com/codex/cli/features/https://developers.openai.com/codex/security/
cd /absolute/path/to/codex-synaptic
npm install
npm run build
# verify codex + mcp command surfaces
codex --help
codex mcp --help
codex mcp add --help
# one-command bootstrap + strict readiness gate
node dist/cli/index.js launch --json
# explicit strict form for CI/automation
node dist/cli/index.js launch --strict --jsonLaunch defaults:
- Detached runtime authority (
background start) that remains running after success. - Required MCP gate set:
mcp-filesystem,mcp-playwright,mcp-desktop-commander. - Hard-stop behavior in strict mode: first failing gate exits non-zero with remediation commands.
Typical first Codex app prompt in this repo:
Launch codex-synaptic and determine health/status prior to beginning repository work.
# Codex auth missing
codex login
# Docker registry auth for MCP images
node dist/cli/index.js env docker-login mcp-filesystem mcp-playwright mcp-desktop-commander
# MCP runtime or registration drift
node dist/cli/index.js env up mcp-filesystem mcp-playwright mcp-desktop-commander
node dist/cli/index.js env codex-register mcp-filesystem mcp-playwright mcp-desktop-commander --replace
# Re-run hard gate
node dist/cli/index.js launch --strict --jsonUse one orchestrator authority at a time:
- Detached authority:
background start+ attach/monitor/TUI against daemon. - In-process authority:
system start+system monitorin current shell.
If a daemon is already running, local system start is blocked to prevent split-brain (unless explicitly overridden with CODEX_ALLOW_LOCAL_WITH_DAEMON=1).
node dist/cli/index.js background start
node dist/cli/index.js background status
node dist/cli/index.js background attach --watch --interval 2000
node dist/cli/index.js background logs --tail 100
node dist/cli/index.js background restart
node dist/cli/index.js background stop --timeout 10000node dist/cli/index.js system start
node dist/cli/index.js system status
node dist/cli/index.js system monitor --interval 2000
node dist/cli/index.js system stop# attach to daemon (preferred when detached runtime is active)
node dist/cli/index.js tui --attach-daemon --interval 1000
# force local dashboard
node dist/cli/index.js tui --local --interval 1000OpenAI Codex app modes:
Local: edits current project directory.Worktree: isolates changes in a dedicated git worktree.Cloud: remote execution in configured cloud environment.
Reference: https://developers.openai.com/codex/app/features/.
codex -C /absolute/path/to/codex-synaptic
# non-interactive:
codex exec -C /absolute/path/to/codex-synaptic "Audit consensus gating and suggest minimal fixes"Recommended checks:
npm run lint
npm test
node dist/cli/index.js system statusgit worktree add ../codex-synaptic-macos-2026 -b codex/macos-2026-readiness
codex -C ../codex-synaptic-macos-2026Cleanup:
git worktree remove ../codex-synaptic-macos-2026codex cloud list --json
codex cloud exec --env <env-id> --branch main "Run codex-synaptic release preflight and propose fixes"
codex cloud status <task-id>
codex cloud diff <task-id>
codex cloud apply <task-id># inspect profiles and codex registration targets
node dist/cli/index.js env plan mcp-filesystem mcp-playwright mcp-desktop-commander
# authenticate required Docker registries (for private GHCR images)
node dist/cli/index.js env docker-login mcp-filesystem mcp-playwright mcp-desktop-commander
# safest default: filesystem read-only
node dist/cli/index.js env up mcp-filesystem mcp-playwright mcp-desktop-commander
# optional controlled-write filesystem mode (explicit opt-in required)
node dist/cli/index.js env up mcp-filesystem --filesystem-mode controlled-write --allow-filesystem-write
# health/status diagnostics
node dist/cli/index.js env status mcp-filesystem mcp-playwright mcp-desktop-commander
# register HTTP MCP servers with Codex CLI config
node dist/cli/index.js env codex-register mcp-filesystem mcp-playwright mcp-desktop-commander --replace
codex mcp list --jsonExpected indicators:
env statusreturnsrunning: yesandhealthy: yesfor active profiles.launch --jsonreturnsok: trueandnextAction: "continue".doctorreports MCP profile checks passing and registration present.
From Codex security guidance (https://developers.openai.com/codex/security/):
- Default for trusted repo work:
workspace-write+on-requestapprovals (Codex--full-autobehavior). - For unfamiliar/untrusted code: start in
read-onlymode. - Use danger-full-access only in explicitly isolated environments.
Practical examples:
codex --sandbox workspace-write --ask-for-approval on-request
codex --sandbox read-only --ask-for-approval on-request# 1) refresh build + readiness
npm run build
node dist/cli/index.js launch --strict --json
# 2) run focused work
codex exec "Implement one bounded fix with tests"
# 3) verify before merge
npm run lint && npm test
npm run release:preflight