codex --version already works in your terminal, skip ahead to Installation and use yellow-pro setup codex. Otherwise, follow the steps below first.
1
Install
Install Codex CLI globally via npm:Alternative install methods:
2
Verify
Open a new terminal window (a window that was already open won’t see an updated
PATH), then run:3
Log in
Run:This opens a browser-based sign-in flow using your ChatGPT account. Check that it worked with:
For headless machines without a browser, use
codex login --device-auth instead. To authenticate with an API key rather than a ChatGPT account, use codex login --with-api-key or set the CODEX_API_KEY environment variable.yellow-pro setup codex to register the Yellow.pro MCP server with Codex CLI.