Cannot redeem credits when using log with ChatGPT (PRO)

Resolved 💬 11 comments Opened May 17, 2025 by ramarivera Closed Aug 7, 2025

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=<SOMETHING>&redirect_uri=http%3A%2F%2Flocalhost%3A1455%2Fauth%2Fcallback&scope=openid+profile+email+offline_access&code_challenge=<SOMETHING>&code_challenge_method=S256&id_token_add_organizations=true&state=<SOMETHING>

Credit redemption request failed: 404 Not Found

Additional information

_No response_

View original on GitHub ↗

11 Comments

IuriiIaremenko · 1 year ago

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.
growdelan · 1 year ago

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?
samuelstevens · 1 year ago

+1, exact same issue.

SmartManoj · 1 year ago
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

IuriiIaremenko · 1 year ago

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 
ramarivera · 1 year ago
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

SmartManoj · 1 year ago
0.1.2505161800

Happens in v0.1.2505171619?

Balaxxe · 1 year ago

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.

gerrywastaken · 1 year ago

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?
BadPackage · 11 months ago

Is there still no fix for this?

codex-maintainers · 11 months ago

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.