Download

How to use Codex in Cursor

Tyler J. Cagle6 min read

Auto, the Mac app for all your coding agents runs your ChatGPT plan inside Cursor's own Agent: connect the plan in Auto, enable Cursor and restart it, and new chats start on Auto, with no API key. To run Codex itself in Cursor, install OpenAI's Codex extension, which OpenAI lists for Cursor next to VS Code and Windsurf (OpenAI), open the Codex sidebar and sign in with ChatGPT. It runs on your ChatGPT plan's Codex limits. Cursor's own Agent doesn't take a ChatGPT subscription: it bills GPT models from prepaid credit at API list price, on Premium and above (Cursor).

Auto wrote this post. Every Cursor and OpenAI detail below comes from their docs and pricing pages as read on November 24, 2026; check the linked page before you follow a step.

How do you install Codex in Cursor?

Install the Codex extension from Cursor's Extensions view and sign in with your ChatGPT account (OpenAI):

  1. Open the Extensions view with Cmd+Shift+X, search for "Codex" and install OpenAI's extension (openai.chatgpt), or use the Cursor link on OpenAI's IDE page.
  2. Click the Codex icon. If it isn't visible, open the Command Palette and run Codex: Open Codex Sidebar.
  3. Sign in with ChatGPT and finish in your browser, or use an OpenAI API key.
  4. Open a project and start a chat. OpenAI suggests a Git checkpoint before and after each task so you can revert changes.

The extension brings open files and selections into the prompt, shows its edits as diffs beside your code, and can hand a longer task to Codex web (OpenAI). The Codex CLI runs in Cursor's terminal too, on the same sign-in.

Does Codex in Cursor use your ChatGPT plan?

Yes, from Plus up. As of November 24, 2026, OpenAI lists Codex in the IDE extension on Plus ($20 a month) and Pro (from $100), while its Free and Go cards list only the desktop app; an API key bills per token instead (OpenAI). On Plus, a five-hour window holds 17 to 180 local messages on GPT-6.2 Sol, 15 to 160 on GPT-6.1 Sol and 6 to 50 on GPT-6.2 Astra, and Pro plans have no five-hour limit.

Cursor's own Agent is billed differently. Claude, GPT and Gemini are third-party models there, billed at API list price from prepaid credit from the first request on Premium ($30 a month) and above, and Free and Plus don't include them (Cursor). An OpenAI API key in Cursor's settings bills per token; How to use your own API key in Cursor covers that route. Neither draws on a ChatGPT subscription. Codex usage limits covers each ChatGPT plan in detail.

How do you use your ChatGPT plan in Cursor's own Agent?

Connect the plan in Auto and enable Cursor. In Cursor, Auto uses the plans you connect in Auto, and other models run on credits:

  1. Download Auto for macOS from autorouter.com.
  2. Open it, sign in or create a free account, and sign in to your ChatGPT plan and the other AI subscriptions you already pay for.
  3. Allow Accessibility and click Enable on Cursor's row.
  4. Click Restart on Auto's notice. New Cursor chats start on autorouter; you can also pick one of Auto's models yourself in the model picker.

Cursor support is experimental. It covers Chat and Agent; Tab, Cursor's Auto, cloud agents and the Cursor CLI stay on Cursor. While it's on, Cursor's own named models stop working, because Cursor's API key setting covers every model; Cursor's Auto keeps working. Turning Cursor off in Auto puts your earlier settings back (Auto for Cursor).

Choose Auto and it works out how hard each task is and sends it to the model that fits: hard work goes to the most capable model your plans cover, and quick work to the model that costs you least, which is often your plan or a low-cost open model. Every request shows its model, what it cost and why. For a Claude plan in Cursor, see How to use Claude Code in Cursor; How to use Claude in Codex and GPT in Claude Code covers the plans across those two agents, and How to choose and change models in Codex and Claude Code covers the wider lineup.

What does each way of using GPT in Cursor cost?

Only the Codex routes and Auto draw on a ChatGPT plan. As of November 24, 2026:

RouteWhere it runsWhat pays
Codex extensionIts own sidebar in CursorYour ChatGPT plan, Plus and above
codex CLICursor's terminalYour ChatGPT plan
GPT model in Cursor's AgentCursor's AgentCursor prepaid credit at API list price, Premium ($30) and above
Your OpenAI API keyCursor's AgentYour OpenAI account, per token
AutoCursor's Chat and Agent, and every app you enableYour connected plans; $0 on Free for two subscriptions

Auto Free costs $0 a month and connects two subscriptions, and routing across your own subscriptions is free. Pro connects any number and adds every other model, billed at the provider's price plus 10%. When one account reaches its limit, Auto moves on to the account with the most room left, before it spends any credit. Auto earns nothing on plans.

The limits: Auto runs on macOS 14 or later and is in beta. Requests pass through Auto's servers on their way to each provider; Auto doesn't store transcripts, but keeps the message that opens each request, up to 4,000 characters, to review routing, along with records of the model chosen, tokens and cost (Auto privacy).

Should you use the Codex extension or Cursor's Agent?

For Codex inside Claude Code, see How to use Codex in Claude Code.

Questions

Can I use my ChatGPT subscription in Cursor?

Yes, two ways. OpenAI's Codex extension or CLI runs inside Cursor on your ChatGPT plan, and Auto runs the plan in Cursor's own Agent. Cursor itself doesn't list a ChatGPT subscription as a way to pay; its Agent bills GPT models from prepaid credit (Cursor).

Does Codex work in Cursor on ChatGPT Free?

OpenAI's pricing page lists the IDE extension from Plus; its Free and Go cards list only GPT-6 Luna in the desktop app, subject to rollout (OpenAI).

Why don't I see the Codex icon in Cursor?

Open the Command Palette and run Codex: Open Codex Sidebar (OpenAI).

Does Cursor Tab use my ChatGPT plan?

No. Tab stays on Cursor's built-in models with Auto on, as it does with your own API key (Cursor), and the Codex extension works in its own sidebar without changing Tab.

Sources