codex icon indicating copy to clipboard operation
codex copied to clipboard

Cannot redeem credits when using log with ChatGPT (PRO)

Open ramarivera opened this issue 1 year ago • 11 comments

What version of Codex is running?

0.1.2505161800

Which model were you using?

codex-mini-latest

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What steps can reproduce the bug?

Try to log with ChatGPT

What is the expected behavior?

Credit redemption works properly and I can see the grant

What do you see instead?

codex

Opening login page in your browser: https://auth.openai.com/oauth/authorize?response_type=code&client_id=&redirect_uri=http%3A%2F%2Flocalhost%3A1455%2Fauth%2Fcallback&scope=openid+profile+email+offline_access&code_challenge=&code_challenge_method=S256&id_token_add_organizations=true&state=

Credit redemption request failed: 404 Not Found

Additional information

No response

ramarivera avatar May 17 '25 14:05 ramarivera

I have the same issue on MacOS client:

Credit redemption request failed: 404 Not Found

$ codex login
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)

Opening login page in your browser: ***

Credit redemption request failed: 404 Not Found

( ●    ) Waiting for authentication… ctrl + c to quit
The model "codex-mini-latest" does not appear in the list of models available to your account. Double-check the spelling (use
  openai models list
to see the full list) or choose another model with the --model flag.

IuriiIaremenko avatar May 17 '25 15:05 IuriiIaremenko

Yeah, same issue here:

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)

Opening login page in your browser: ****************

Credit redemption request failed: 404 Not Found

(    ● ) Waiting for authentication… ctrl + c to quit

╭──────────────────────────────────────────────────────────────╮
│ ● OpenAI Codex (research preview) v0.1.2505161800            │
╰──────────────────────────────────────────────────────────────╯
╭──────────────────────────────────────────────────────────────╮
│ localhost session: 44520ff8f7c54f2db173910ef2e9acc5          │
│ ↳ workdir: ~                                                 │
│ ↳ model: codex-mini-latest                                   │
│ ↳ provider: openai                                           │
│ ↳ approval: suggest                                          │
╰──────────────────────────────────────────────────────────────╯
╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                        │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
  try: explain this codebase to me | fix any build errors | are there any bugs in my code?

growdelan avatar May 17 '25 15:05 growdelan

+1, exact same issue.

samuelstevens avatar May 17 '25 17:05 samuelstevens

To be eligible to receive Sign in with ChatGPT promotional credits, ChatGPT Plus or Pro subscriptions must be >7 days old & have a default payment method set in the selected API org.

One needs to add a minimum $5 credit for that.

Source

SmartManoj avatar May 18 '25 04:05 SmartManoj

Ok, I managed to get credits by adding the billing account in the OpenAI settings page.

Then executed:

npm i -g @openai/codex@latest
codex --free 

IuriiIaremenko avatar May 18 '25 13:05 IuriiIaremenko

Ok, I managed to get credits by adding the billing account in the OpenAI settings page.

Could you elaborate how exactly you did that? I already have a payment method setup, and have credits, but cannot get the redemption process to work

ramarivera avatar May 18 '25 13:05 ramarivera

0.1.2505161800

Happens in v0.1.2505171619?

SmartManoj avatar May 18 '25 14:05 SmartManoj

Yes - same for me. On Mac it has a different issue (made a issue for it).

When I try windows I get 404. Have latest version, billing setup. Have had API account/access for about a year.

Balaxxe avatar May 19 '25 17:05 Balaxxe

Same issue:

codex --free
codex --free attempting to redeem credits...
Credit redemption request failed: 400 Bad Request
╭──────────────────────────────────────────────────────────────╮
│ ● OpenAI Codex (research preview) v0.1.2505172129            │
╰──────────────────────────────────────────────────────────────╯
╭──────────────────────────────────────────────────────────────╮
│ localhost session: 4d9ba[redacted]7c8fc50f9530d9          │
│ ↳ workdir: ~/src/experiments/sites/subeggs/src               │
│ ↳ model: codex-mini-latest                                   │
│ ↳ provider: openai                                           │
│ ↳ approval: suggest                                          │
╰──────────────────────────────────────────────────────────────╯
╭─────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                         │
╰─────────────────────────────────────────────────────────────────────────────────────────╯
  try: explain this codebase to me | fix any build errors | are there any bugs in my 
  code?

gerrywastaken avatar Jun 07 '25 10:06 gerrywastaken

Is there still no fix for this?

BadPackage avatar Aug 06 '25 11:08 BadPackage

Thanks for the feedback! Please try again on the latest version of Codex CLI. If the issue persists, feel free to reach out with additional details.

codex-maintainers avatar Aug 07 '25 18:08 codex-maintainers