Keep going
Every workflow on Rundown University, free for 7 days
Members get all guides, courses, live sessions, and $1,000+ in partner perks.
Guides OpenAI published jan 16, 2026
This guide teaches you how to set up OpenAI Codex in Cursor, run Codex in the cloud from your phone, and configure Codex to review your code automatically. You’ll produce a Codex-ready project setup and a workflow for local coding, cloud tasks, and pull request reviews.
You’ll install Codex, connect it to a project, and create an AGENTS.md file that tells Codex about your project. You’ll also explore slash commands and set up automated code reviews.
Cloud-based Codex calls from the web or other connectors do not count against your 5-hour local limit, so you can code locally in Cursor and use the cloud agent for pull requests and reviews.
For this guide, use the Cursor extension because it keeps your agent chat separate from your terminal. If you use VS Code or Windsurf, you can follow along as well.
Go to https://developers.openai.com/codex/quickstart/ and select your IDE, then follow the brief download instructions.
Open a project in Cursor. Press CMD+Shift+P, search for Codex, and select New Codex Agent.
You should see a Codex agent window open.
Ask the agent to create an AGENTS.md file from your project files.
Create an AGENTS.md file based on the project files.If you’re starting from scratch, give Codex your PRD or spec sheet instead.
After it creates AGENTS.md, ask it to initialize git and write a commit if you have not done that yet.
Click the slash button to see available commands.
The most important commands are:
Use the official documentation for the full list of slash commands.
Go to https://chatgpt.com/codex/settings/connectors and connect your GitHub account.
This lets Codex access your repositories and create pull requests from its work. Tasks run in isolated cloud sandboxes, so your local machine stays free.
To access Codex from anywhere, go to chatgpt.com/codex, select a repository and branch, and give it a prompt. Codex will run the code in a virtual environment.
You can edit your project-specific virtual environments so Codex can use your API keys or browse the web.
Codex can automatically review every pull request in the cloud.
Now whenever you open a pull request, Codex will automatically review it.
Cloud-based Codex calls from the web or other connectors do not count against your 5-hour local limit. Use this workflow to save tokens:
Commit these changes to a new branch and submit a new pull request.Keep going
Members get all guides, courses, live sessions, and $1,000+ in partner perks.