codex icon indicating copy to clipboard operation
codex copied to clipboard

Using with ChatGPT Plus/Pro

Open uwe-schwarz opened this issue 1 year ago • 44 comments

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

uwe-schwarz avatar Apr 16 '25 18:04 uwe-schwarz

That would be an amazing upgrade =)

ratacat avatar Apr 16 '25 18:04 ratacat

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

fouad-openai avatar Apr 16 '25 22:04 fouad-openai

@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).

piskov avatar Apr 17 '25 01:04 piskov

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

sam598 avatar Apr 17 '25 02:04 sam598

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.

allquixotic avatar Apr 17 '25 08:04 allquixotic

This should have been an option on day one. 😭

sonofmartinus avatar Apr 18 '25 19:04 sonofmartinus

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 avatar Apr 19 '25 04:04 ccchan234

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.

ccchan234 avatar Apr 19 '25 04:04 ccchan234

@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.

piskov avatar Apr 19 '25 11:04 piskov

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.

pizapadmin avatar Apr 29 '25 22:04 pizapadmin

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

malikdraz avatar May 04 '25 15:05 malikdraz

@malikdraz have you voted for it? 😉

piskov avatar May 04 '25 16:05 piskov

@malikdraz have you voted for it? 😉

Done!

malikdraz avatar May 04 '25 16:05 malikdraz

Looking forward to this feature!

vladkampov avatar May 14 '25 11:05 vladkampov

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.

kaichen avatar May 16 '25 16:05 kaichen

And as mention from May 16 post

@kaichen Where was this post? Able to link?

Edit: Seemingly this blog post:

  • https://openai.com/index/introducing-codex/#updates-to-codex-cli
  • https://github.com/openai/codex/pull/963
    • Sign in with ChatGPT to get an API key (flow to grant API credits for Plus/Pro coming later today!)

    • merged commit c6e08ad into main 5 hours ago

    • 3e19e8fd598d09d549962166533b1039c5500084

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:

  • https://github.com/openai/codex/pull/974

Edit 3:

  • https://github.com/openai/codex/pull/998
    • factor out redeem flow into maybeRedeemCredits

    • call new helper from login callback

    • --free Retry redeeming free credits

    • "Sorry, your subscription must be active for more than 7 days to redeem credits. More info: https://help.openai.com/en/articles/11381614"

    • "Users with Plus or Pro subscriptions can redeem free API credits. More info: https://help.openai.com/en/articles/11381614"

      • Image
      • Image
 ⇒ codex --free
codex --free attempting to redeem credits...
Refreshing credentials...
Credit redemption request failed: 500 Internal Server Error

0xdevalias avatar May 17 '25 01:05 0xdevalias

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

DovieW avatar May 18 '25 15:05 DovieW

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

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

piskov avatar May 18 '25 16:05 piskov

@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

DovieW avatar May 18 '25 17:05 DovieW

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

piskov avatar May 18 '25 17:05 piskov