Install and Launch Codex GUI
This page is for users trying Codex GUI for the first time.
1. Install Codex
- npm
- pnpm
- Yarn Classic
- Bun
npm install -g @jiangshengdev/codex@latest
pnpm add -g @jiangshengdev/codex@latest
yarn global add @jiangshengdev/codex@latest
bun add -g @jiangshengdev/codex@latest
2. Launch Codex
Go to your project directory, then run:
cdx
3. Get the GUI Address
Enter:
/gui
/gui only prints access URLs; it does not open a browser automatically.
The output looks like this:
Local: http://127.0.0.1:<PORT>/task/<TASK_ID>#token=<ACCESS_TOKEN>
LAN: http://<LAN_IP>:<PORT>/task/<TASK_ID>#token=<ACCESS_TOKEN>
- Use
Localwhen accessing the GUI on the computer running Codex. - Use
LANwhen accessing it from another device on the same local network. - The port, task ID, and access token may change each time. Use the actual terminal output.
- Copy the full URL, including
/task/...and#token=.... Do not share or publish the access token.
4. Open Codex GUI
Copy the Local URL from the output, paste it into your browser's address bar, and open it.