# How to use Codex in Cursor

> Use AutoRouter, the Mac app for all your coding agents, to run your ChatGPT plan inside Cursor's own Agent: connect the plan, enable Cursor, restart it, and new chats start on AutoRouter. To run Codex itself in Cursor, install OpenAI's Codex extension (`openai.chatgpt`) from Cursor's Extensions view, open the Codex sidebar and sign in with ChatGPT; it runs on your ChatGPT plan's Codex limits, from Plus up. Without either, Cursor's Agent bills GPT models from prepaid credit at API list price.

Authors: AutoRouter
Author profile: https://autorouter.com/about
Published: 2026-11-26T13:40:00.000Z
Reading time: 6 min
Canonical: https://autorouter.com/blog/codex-in-cursor
Publisher: AutoRouter (https://autorouter.com)

![AutoRouter puts your ChatGPT plan in Cursor's Agent. Where do you want GPT? In Cursor Codex's panel: Extension, on your ChatGPT plan; In Cursor Cursor's own Agent: Prepaid credit at API price; In Cursor Agent, on your plan: AutoRouter, ChatGPT plan connected. Source: OpenAI's Codex docs, Cursor's pricing docs and AutoRouter, read November 20, 2026.](https://autorouter.com/blog/images/codex-in-cursor/1-routes.png)

[AutoRouter, the Mac app for all your coding agents](https://autorouter.com) runs your ChatGPT plan inside Cursor's own Agent: connect the plan in AutoRouter, enable Cursor and restart it, and new chats start on AutoRouter, 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](https://developers.openai.com/codex/ide)), 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](https://cursor.com/docs/models-and-pricing)).

AutoRouter 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](https://developers.openai.com/codex/ide)):

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](https://developers.openai.com/codex/ide).
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.

![Codex installs in Cursor in four steps. 1. Install the extension (openai.chatgpt); 2. Open the Codex sidebar (The Codex icon); 3. Sign in with ChatGPT (In your browser); 4. ChatGPT plan runs it (Codex usage limits). Source: OpenAI's Codex IDE extension docs, read November 20, 2026.](https://autorouter.com/blog/images/codex-in-cursor/2-install.png)

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](https://developers.openai.com/codex/ide)). 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](https://developers.openai.com/codex/pricing)). 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.

![Codex messages per five hours on ChatGPT Plus. GPT-6.2 Sol: 17 to 180; GPT-6.1 Sol: 15 to 160; GPT-6.2 Astra: 6 to 50. Source: OpenAI's Codex pricing page, local messages per five-hour period, read November 20, 2026.](https://autorouter.com/blog/images/codex-in-cursor/3-plus-limits.png)

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](https://cursor.com/docs/models-and-pricing)). An OpenAI API key in Cursor's settings bills per token; [How to use your own API key in Cursor](/blog/cursor-api-key) covers that route. Neither draws on a ChatGPT subscription. [Codex usage limits](/blog/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 AutoRouter and enable Cursor. In Cursor, AutoRouter uses the plans you connect in AutoRouter, and other models run on credits:

1. Download AutoRouter for macOS from [autorouter.com](https://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 AutoRouter's notice. New Cursor chats start on `autorouter`; you can also pick one of AutoRouter'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 AutoRouter puts your earlier settings back ([AutoRouter for Cursor](https://autorouter.com/integrations/cursor)).

Choose AutoRouter 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](/blog/claude-code-in-cursor); [How to use Claude in Codex and GPT in Claude Code](/blog/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 AutoRouter draw on a ChatGPT plan. As of November 24, 2026:

| Route                       | Where it runs                                     | What pays                                                        |
| --------------------------- | ------------------------------------------------- | ---------------------------------------------------------------- |
| Codex extension             | Its own sidebar in Cursor                         | Your ChatGPT plan, Plus and above                                |
| `codex` CLI                 | Cursor's terminal                                 | Your ChatGPT plan                                                |
| GPT model in Cursor's Agent | Cursor's Agent                                    | Cursor prepaid credit at API list price, Premium ($30) and above |
| Your OpenAI API key         | Cursor's Agent                                    | Your OpenAI account, per token                                   |
| AutoRouter                  | Cursor's Chat and Agent, and every app you enable | Your connected plans; $0 on Free for two subscriptions           |

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

The limits: AutoRouter runs on macOS 14 or later and is in beta. Requests pass through AutoRouter's servers on their way to each provider; AutoRouter 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 ([AutoRouter privacy](https://autorouter.com/privacy)).

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

- **Use the Codex extension** if you want Codex itself beside your editor, with cloud hand-off to Codex web, on your ChatGPT plan.
- **Use Cursor's Agent with AutoRouter** if you prefer Cursor's own agent and want your ChatGPT plan, and the other AI subscriptions you pay for, to pay for it.
- **Use both** if you like each for different work; they run side by side.

For Codex inside Claude Code, see [How to use Codex in Claude Code](/blog/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 AutoRouter 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](https://cursor.com/docs/models-and-pricing)).

### 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](https://developers.openai.com/codex/pricing)).

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

Open the Command Palette and run **Codex: Open Codex Sidebar** ([OpenAI](https://developers.openai.com/codex/ide)).

### Does Cursor Tab use my ChatGPT plan?

No. Tab stays on Cursor's built-in models with AutoRouter on, as it does with your own API key ([Cursor](https://cursor.com/help/models-and-usage/api-keys)), and the Codex extension works in its own sidebar without changing Tab.

## Sources

- [AutoRouter](https://autorouter.com)
- [AutoRouter for Cursor](https://autorouter.com/integrations/cursor)
- [AutoRouter privacy](https://autorouter.com/privacy)
- [Codex IDE extension](https://developers.openai.com/codex/ide), OpenAI, read November 24, 2026
- [Codex pricing](https://developers.openai.com/codex/pricing), OpenAI, read November 24, 2026
- [Models & Pricing](https://cursor.com/docs/models-and-pricing), Cursor, read November 20, 2026
- [Bring your own API key](https://cursor.com/help/models-and-usage/api-keys), Cursor

## Read next

- [How to use Codex in Claude Code](https://autorouter.com/blog/codex-in-claude-code.md): Use AutoRouter, the Mac app for all your coding agents, to run GPT as Claude Code's own model on your ChatGPT plan: connect the plan, enable Claude Code, and pick a GPT model or AutoRouter with `/model`. To call Codex itself from Claude Code, install OpenAI's Codex plugin with `/plugin marketplace add openai/codex-plugin-cc` and `/plugin install codex@openai-codex`, run `/codex:setup`, then use `/codex:review` for a second review or `/codex:rescue` to hand off a task. The plugin runs on your ChatGPT plan's Codex limits or an OpenAI API key.
- [How to use Claude Code in Cursor](https://autorouter.com/blog/claude-code-in-cursor.md): Use AutoRouter, the Mac app for all your coding agents, to run your Claude plan inside Cursor's own Agent: connect the plan, enable Cursor and restart it, and new chats start on AutoRouter. To run Claude Code itself in Cursor, install Anthropic's Claude Code extension from Cursor's Extensions view, or run `claude` in Cursor's terminal, and sign in with your Claude account; it runs on your Claude plan with no API key. Without either, Cursor's Agent bills Claude models from prepaid credit at API list price.
- [How to use Claude in Codex and GPT in Claude Code](https://autorouter.com/blog/claude-in-codex-and-gpt-in-claude-code.md): Use AutoRouter, the Mac app for all your coding agents: connect the AI subscriptions you already pay for, and your Claude plan runs inside Codex and your ChatGPT plan inside Claude Code, with no keys or config. The Free plan connects two subscriptions for $0 a month. Natively, Claude in Codex takes a Responses-compatible gateway such as OpenRouter in `config.toml`, and GPT in Claude Code takes a gateway such as a LiteLLM proxy behind `ANTHROPIC_BASE_URL`; both bill per token on a key.

Tags: [Guides](https://autorouter.com/blog/tags/guides.md), [Codex](https://autorouter.com/blog/tags/codex.md), [Costs](https://autorouter.com/blog/tags/costs.md)

Drafted with AI from the sources linked above, then checked and edited by the AutoRouter team.

AutoRouter is a Mac app for AI model routing in Codex, Claude Code, Cursor and other supported coding agents. It uses eligible connected subscriptions first. See [setup](https://autorouter.com/setup.md) and [pricing](https://autorouter.com/pricing).
