Using with ChatGPT Plus/Pro

Resolved 💬 44 comments Opened Apr 16, 2025 by uwe-schwarz Closed Aug 23, 2025
💡 Likely answer: A maintainer (fouad-openai, contributor) responded on this thread — see the highlighted reply below.

Is there any way to use this without the API and just with a ChatGPT Plus or Pro subscription?

View original on GitHub ↗

44 Comments

ratacat · 1 year ago

That would be an amazing upgrade =)

fouad-openai contributor · 1 year ago

Great question! We really want to make this work as part of the initial launch, but stay tuned for a follow-up here :)

piskov · 1 year ago

@fouad-openai this will also help Windows users as there is no native work with apps integration like there is on mac. Even if it’s just inder WSL for now.

I am on pro $200 subscription and this would make it even more valuable.

Also the internal dread is this could be like “first one is free" crack in the alley: I’ve never used your API and, after some “free” usage within whatever limit there will be on pro subscription, I could be hooked to pay even more via API 😭.

I could only hope that some billing wizard could implement both API key and pro subscription (use the latter until it’s depleted and then switch to API until the next time pro subscription can be used again).

sam598 · 1 year ago

@fouad-openai I want to also chime in and say this would make me switch from using https://github.com/anthropics/claude-code immediately.

allquixotic · 1 year ago

If I could use my $200/month ChatGPT Pro subscription with Codex, I would no longer have any need to use an LLM from any other vendor, nor would I need to use any other IDE or tool. I'm currently swapping between Cursor, VS Code, Github Copilot, Claude, t3.chat, etc. I'm ready to go full into the OpenAI ecosystem and will back that up with cash, but I really need access to my ChatGPT Pro subscription to prevent paying twice for the same thing.

sonofmartinus · 1 year ago

This should have been an option on day one. 😭

ccchan234 · 1 year ago
Great question! We really want to make this work as part of the initial launch, but stay tuned for a follow-up here :)

i dont think will happen (at least for the 20USD/month plan, could be for the 200USD/mo plan).

the competitor Cxxxx still charge the expensive API for the Cxxx code, which is same idea same thing, after a 6mo period of launch.

if fixed 20USD/mo could use this, certainly no one will use API any more.

and the profit margin on API is much higher than the fixed 20USD/mo -- that's why we users ask for the fixed 20USD/month plan to be able to use this.

ccchan234 · 1 year ago
If I could use my $200/month ChatGPT Pro subscription with Codex, I would no longer have any need to use an LLM from any other vendor, nor would I need to use any other IDE or tool. I'm currently swapping between Cursor, VS Code, Github Copilot, Claude, t3.chat, etc. I'm ready to go full into the OpenAI ecosystem and will back that up with cash, but I really need access to my ChatGPT Pro subscription to prevent paying twice for the same thing.

i dont agree, openai's model never good at coding......

it's always Cxxxx 3.5/3.7/3.7+think, Gxxx 2.5 pro, and even the last month's DS V3 (newer version).

benchmark is one thing,
when you use, you could FEEL which one is really working -- the one that make you less frustrated.

piskov · 1 year ago

@ccchan234 you are forgetting that there is already ChatGPT integration with basically any app on mac via macOS accessibility api.

You already can use your existing subscription to write and edit code: ChatGPT app on Mac will automatically grab all open tabs in your IDE and edit code within your personal subscription limit (which is already unlimited within the reasonable usage limits).

As for OpenAi models performance vs Claude, Gemini, etc. what have you, don't forget a simple thing: not everyone uses python and js. When you go to stuff like C# (which I use extensively), that's where stuff like o1 previously and o3 start to shine. And that's why there's the thing like Aider polyglot benchmark.

tldr; everything in this thread is completely feasible. Don't forget that even API prices are not set in stone: Jetbrains and others get bulk discount.

pizapadmin · 1 year ago

I would like to add a plus one for this request. I LOVE Codex + o3 but the API calls are piling up while the $200 subscription is sitting idle. For me, the key feature is that CODEX gets the context of your full project, not just open tabs.

malikdraz · 1 year ago

Do we have any update on this? I can see Claude has introduced something similar recently.

piskov · 1 year ago

@malikdraz have you voted for it? 😉

malikdraz · 1 year ago
@malikdraz have you voted for it? 😉

Done!

vladkampov · 1 year ago

Looking forward to this feature!

kaichen · 1 year ago

I found they're working on this commit https://github.com/openai/codex/commit/da7cf6798eeffc0c1fd35881874d56f436acdf92

And as mention from May 16 post, plus and pro plan will get some credits.

We’re also making it much easier to connect your developer account to Codex CLI. Instead of manually generating and configuring an API token, you can now sign in with your ChatGPT account and select the API organization you want to use. We’ll automatically generate and configure the API key for you. Plus and Pro users who sign in to Codex CLI with ChatGPT can also begin redeeming $5 and $50 in free API credits, respectively, later today for the next 30 days.
0xdevalias · 1 year ago
And as mention from May 16 post

@kaichen Where was this post? Able to link?

Edit: Seemingly this blog post:

After updating, I was able to force the new sign-in prompt like this:

⇒ OPENAI_API_KEY="" codex
Sign in with ChatGPT to generate an API key or paste one you already have.
[use arrows to move, enter to select]

❯ Sign in with ChatGPT
  Paste an API key (or set as OPENAI_API_KEY)

Edit 2:

Edit 3:

 ⇒ codex --free
codex --free attempting to redeem credits...
Refreshing credentials...
Credit redemption request failed: 500 Internal Server Error
DovieW · 1 year ago

on plus plan im not getting any credits after logging on with the latest version of the tool

piskov · 1 year ago

@DovieW check whether you've verified your account via withpersona.

Click verify organization here: https://platform.openai.com/settings/organization/general

DovieW · 1 year ago
@DovieW check whether you've verified your account via withpersona. Click verify organization here: https://platform.openai.com/settings/organization/general

It wasn't so I did it now and tried codex --free and codex --login again to no avail.

codex --version: 0.1.2505172129

piskov · 1 year ago

@DovieW try selecting another model (like o4 mini) and performing any request on the repository (like what's this repo for)

DovieW · 1 year ago

it seems that didn't work. Just before this, I added a credit card to my account and bought $5 worth to see if that would help (if that's important context for you). I ctrl+c'ed the query after it started so I wouldn't waste credits.

❯ codex --model o4-mini
╭──────────────────────────────────────────────────────────────╮
│ ● OpenAI Codex (research preview) v0.1.2505172129            │
╰──────────────────────────────────────────────────────────────╯
╭──────────────────────────────────────────────────────────────╮
│ localhost session: 960da97474cf431cab74b50bb439978f          │
│ ↳ workdir: ~/repos/qmk_firmware                              │
│ ↳ model: o4-mini                                             │
│ ↳ provider: openai                                           │
│ ↳ approval: suggest                                          │
╰──────────────────────────────────────────────────────────────╯
user
explain this codebase to me

    command

    $ ls -1

    command.stdout (code: 0, duration: 0s)

    Doxyfile
    LICENSE
    Makefile
    builddefs
    ... (25 more lines)

    command

    $ sed -n '1,200p' readme.md

    command.stdout (code: 0, duration: 0s)

    # Quantum Mechanical Keyboard Firmware

    [![Current Version](https://img.shields.io/github/tag/qmk/qmk_firmware.svg)](https://github.com/qmk/qmk_firmware/tags)
    [![Discord](https://img.shields.io/discord/440868230475677696.svg)](https://discord.gg/qmk)
    ... (33 more lines)
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│(    ● ) 8s  Thinking                                                                                                                                                                                         press Esc twice to interrupt │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
  ctrl+c to exit | "/" to see commands | enter to send — 100% context left

❯ codex --free
codex --free attempting to redeem credits...
Refreshing credentials...
It looks like no credits were granted:
{
  "granted_chatgpt_subscriber_api_credits": 0
}
Credits: https://platform.openai.com/settings/organization/billing/credit-grants
More info: https://help.openai.com/en/articles/11381614
derekbsnider · 1 year ago

Hmm... excludes Teams... oh well. Btw, what's the next stage after this credits thing anyways? A monthly allotment of "free" subscription credits?

0xdevalias · 1 year ago
on plus plan im not getting any credits after logging on with the latest version of the tool

Also on ChatGPT Plus, and not getting it either. It keeps just getting a 400 error:

⇒ codex --free
(node:61147) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
codex --free attempting to redeem credits...
Credit redemption request failed: 400 Bad Request
Click verify organization here: platform.openai.com/settings/organization/general

Mine is already verified:

!Image

try selecting another model (like o4 mini) and performing any request on the repository (like what's this repo for)

Tried this, didn't change the 400 error.

Just before this, I added a credit card to my account and bought $5 worth to see if that would help (if that's important context for you).

@DovieW have you seen the eligibility requirements here?

I'm still seeing errors even though:

DovieW · 1 year ago

@0xdevalias I did not know about those requirements. The only thing I didn't have at first was the payment method. But as I mentioned, I added it and it didn't help.

I tried now again codex --free and I'm getting that 400 error you mentioned.

0xdevalias · 1 year ago
I tried now again codex --free and I'm getting that 400 error you mentioned.

@DovieW I just hacked in some debug logging to actually show the error response body, and this is what it's telling me:

⇒ NODE_DEBUG=fetch codex --free
(node:66101) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
codex --free attempting to redeem credits...
FETCH 66101: connecting to api.openai.com using https:undefined
FETCH 66101: connected to api.openai.com using https:h1
FETCH 66101: sending request to POST https://api.openai.com//v1/billing/redeem_credits
FETCH 66101: received response to POST https://api.openai.com//v1/billing/redeem_credits - HTTP 400
FETCH 66101: trailers received from POST https://api.openai.com//v1/billing/redeem_credits
Credit redemption request failed: 400 Bad Request
Response {
  status: 400,
  statusText: 'Bad Request',
  headers: Headers {
    date: 'Thu, 22 May 2025 01:56:17 GMT',
    'content-type': 'application/json',
    'content-length': '190',
    connection: 'keep-alive',
    'access-control-allow-origin': '*',
    'openai-version': '2020-10-01',
    'x-request-id': 'req_3ca0fa789e2eb34346301d5f5398280b',
    'openai-processing-ms': '455',
    'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
    'cf-cache-status': 'DYNAMIC',
    'set-cookie': 'REDACTED',
    'x-content-type-options': 'nosniff',
    server: 'cloudflare',
    'cf-ray': '9438b234e964f3c0-SYD',
    'alt-svc': 'h3=":443"; ma=86400'
  },
  body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true },
  bodyUsed: false,
  ok: false,
  redirected: false,
  type: 'basic',
  url: 'https://api.openai.com/v1/billing/redeem_credits'
}
{
  "error": {
    "message": "Cannot determine if subscription is eligible. Please log out and log back in.",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}

So then I went through the codex --login process again, and yet still it came back with:

{
  "error": {
    "message": "Cannot determine if subscription is eligible. Please log out and log back in.",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}

So seems like the backend service might be broken; and potentially should be raised to OpenAI support/similar.

Edit: I just reported this as a ChatGPT bug (for lack of a better choice) through their support agent bot on the help docs site. Apparently they will get back to me on email, so.. I guess we'll see.

piskov · 1 year ago

@0xdevalias try to log out in codex-cli, revoke the api key, then login in codex not via api key but via browser (I forgot the option in terminal).

Though why you all jump through these hoops is beyond me :-) In my case it was 50(?) bucks from pro subscription and that warranted 5 minutes of back and forth stuff (like I’ve said previously it helped to select o4-mini as I am not verified and API doesn’t allow access to o3, codex-mini etc.)

0xdevalias · 1 year ago
try to log out in codex-cli, revoke the api key, then login in codex not via api key but via browser

@piskov While I did have an OPENAI_API_KEY set in my terminal originally, I explicitly blocked it out when running OPENAI_API_KEY="" codex --login and OPENAI_API_KEY="" codex --free in the past; and it's not currently set in my shell. I've re-run codex --login and used the browser sign in multiple times since then.

To my knowledge there is no explicit 'logout' in the CLI that I have seen. I assumed that a re-login with codex --login would overwrite the stored keys, and thus be equivalent; though I admit I haven't actually traced the logic in the code to confirm that it does overwrite if there are existing keys.

To my knowledge, the only way to officially 'logout' would be to go and manually edit / remove ~/.codex/auth.json

!Image

Though even without removing that, I can already see that the OPENAI_API_KEY listed within it matches the one in the auto-generated API key, and that the token was last_refresh'd today; which aligns with when I last ran codex --login:

!Image

So.. are you speaking from experience; and is there something I am missing here? Or are you just stating the fairly obvious debugging solution off-hand?

---

Though why you all jump through these hoops is beyond me

@piskov Mostly because of an inherent need to understand why things are broken, and to find solutions to them, then to share that for the benefit of more than just myself.

Also probably because the original blog post reads a little ambiguously, and could be read as though you can claim that credit every day for 30 days:

  • https://openai.com/index/introducing-codex/#updates-to-codex-cli
  • > We’re also making it much easier to connect your developer account to Codex CLI. Instead of manually generating and configuring an API token, you can now sign in with your ChatGPT account and select the API organization you want to use. We’ll automatically generate and configure the API key for you. Plus and Pro users who sign in to Codex CLI with ChatGPT can also begin redeeming $5 and $50 in free API credits, respectively, later today for the next 30 days.

Though that doesn't seem to align with how it's written in the help docs:

kaichen · 1 year ago

Their permission system is probably a complete mess.

I passed the verification but still don’t have access to o3 or o4-mini. Now all Codex-related access—both via the web and CLI—returns the error: “Invalid prompt: your prompt was flagged as potentially violating our usage policy,” even when I just send a simple “hi.”

<img width="1258" alt="Image" src="https://github.com/user-attachments/assets/df512a17-e6fe-4614-91fb-e8fbab406170" />

Now i can redeem that 50 bucks to my pro subscription, but there’s still no way to access any codex related services. Only using gpt-4.1 with codex works.

The support team keeps asking the same questions over and over again, with no progress whatsoever.

0xdevalias · 1 year ago
Now all Codex-related access—both via the web and CLI—returns the error

@kaichen Unsure if related, but they had a codex status incident recently:

The support team keeps asking the same questions over and over again, with no progress whatsoever.

That's frustrating :(

piskov · 1 year ago

@0xdevalias

So.. are you speaking from experience; and is there something I am missing here? Or are you just stating the fairly obvious debugging solution off-hand?

I’ve tried a few things before I finally got my 50$:

  1. Logged-in in terminal via browser, ran the command for money, got no money and no error.
  2. Repeated a couple of times.
  3. Tried with my own api key.
  4. Added 10$, tried to run some command, got obscure error. Somehow figured it’s probably because of the codex-mini not for unverfied users. Switched to o4-mini, spent couple of cents. Still no 50$.
  5. Revoked the key, logged-in again via browser in terminal. Ran the command again for getting money. Somehow it worked.

tldr; that’s exactly what I said of the suggested steps previously, but no way in hell I would went further than step 3. if that was for 5$ or something.

0xdevalias · 1 year ago

I went and revoked all codex auto-generated API keys:

Removed all of the local codex auth creds:

⇒ rm ~/.codex/auth.json

Ensured I had no OPENAI_API_KEY set in my shell:

⇒ unset OPENAI_API_KEY

And then ran codex, which prompted me to sign in:

⇒ codex
(node:8440) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Sign in with ChatGPT to generate an API key or paste one you already have.
[use arrows to move, enter to select]

❯ Sign in with ChatGPT
  Paste an API key (or set as OPENAI_API_KEY)

Chose 'Sign in with ChatGPT', went through the oauth flow of logging in, and now I get this error in my browser at the point of login:

!Image

Looking at the dashboard, the only organisation I currently have is my 'Personal' org:

huangsen365 · 1 year ago

Hello Dear OpenAI Team and @fouad-openai ,

First, thank you for your ongoing dedication and innovation. I'm reaching out to strongly advocate for accelerating the support of Codex-CLI login through existing ChatGPT subscriptions (both Plus and Pro). Many of us are currently leveraging competitor solutions such as Claude Code extensively due to their streamlined access and integration capabilities.

Enabling subscription-based login support for Codex-CLI would significantly enhance our workflow, prevent redundant spending, and solidify our commitment to the OpenAI ecosystem. This functionality would not only meet our immediate needs but also foster greater loyalty among developers who are keen to fully embrace OpenAI tools.

We understand that platform integrations have complexities, but a quicker resolution here would be greatly beneficial and deeply appreciated by your dedicated user base.

Thank you for considering this request urgently. We're excited and eager for a positive update soon.

Best regards,
OpenAI ChatGPT fans

junxinzhang · 1 year ago

As a ChatGPT Plus / Pro subscriber, I hope the codex CLI can support the same model access and usage quota as included in my subscription plan.

Appreciate your update on this!

eual8 · 1 year ago

I agree with this request — I also vote for including access to Codex CLI as part of the ChatGPT Plus subscription, without requiring separate API usage or additional costs. It would be great to use these tools more seamlessly as part of the existing subscription.

rohvani · 11 months ago
As a ChatGPT Plus / Pro subscriber, I hope the codex CLI can support the same model access and usage quota as included in my subscription plan. Appreciate your update on this!

Agree heavily with this, as explained here, I'm even considering cancelling my Pro membership.

hxk1633 · 11 months ago

If this actually happens, I’ll cancel my claude code subscription.

murilocurti · 11 months ago

I am Team subscriber and I cant login in yet:

Route Error (400 ): {
"error": {
"message": "No eligible ChatGPT workspaces found.",
"type": "invalid_request_error",
"param": null,
"code": "chatgpt_account_missing"
}
}

Please add support to Team subscribers too

d1egoaz · 11 months ago

https://github.com/openai/codex/issues/1458#issuecomment-3165627966
♥️ 🙌

This commit message confirms it here, it was added today:
https://github.com/openai/codex/pull/1948/files

After you run codex select Sign in with ChatGPT. You’ll need a Plus, Pro, or Team ChatGPT account, and will get access to our latest models, including gpt-5, at no extra cost to your plan. (Enterprise is coming soon.)
murilocurti · 11 months ago

Updated here to version 0.16.0 and the message continues the same and the browser authentication flow is returning this message yet:

Route Error (400 ): {
"error": {
"message": "No eligible ChatGPT workspaces found.",
"type": "invalid_request_error",
"param": null,
"code": "chatgpt_account_missing"
}
}

HenriNext · 11 months ago

At least team plan doesn't work.

Please vote and comment: https://github.com/openai/codex/issues/1984

chaosz5050 · 11 months ago
@fouad-openai I want to also chime in and say this would make me switch from using https://github.com/anthropics/claude-code immediately.

I have done just that. It's so awesome! The only setback is that the limits aren't as generous as OpenAI's. You get 1 or 2 hours and then a 3 hour break and then next one is 4 hours. So... In a perfect world I would have ChatGPT 4o's personality (for collaboration immersion), Claude's really good coding skills, along with GPT's knowledge and GPT's limits combined with Claude code's looks. :)

gpeal contributor · 11 months ago

@chaosz5050 give this another shot. We've been dialing in the rate limits and just increased them 50% for Plus. We plan to add more transparency around this as well.

I'm going to close this one out for now since it should be working for everybody now.

HenriNext · 10 months ago

@gpeal Can you clarify whether this is 50% rate limit increase is only for Plus users or also for Team?

If it is only for Plus, I hope you consider that Team users pay 50% more than Plus so offering 50% more usage to Plus would be perceived as unfair by many.

0xdevalias · 10 months ago
Can you clarify whether this is 50% rate limit increase is only for Plus users or also for Team?

@HenriNext From the same Twitter thread linked above; in the replies; they say that Plus and Team have the same limits: