You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Automatic use API key once chatGPT account limits exceeded #2992
Hello
Could you please add configuration to continue a workflow smoothly using API key once chatGPT account limits exceeded? Very convenient and do not break action in the middle of code change.
Thanks in advance
Are you interested in implementing this feature?
No response
Additional information
No response
Reacted by Pierre TASSEL, Algorithon, Tim, TIAcode, Paul Aspinall, wbdb, Darko Luketic, Sotiris-Bekiaris, uncomposed, KaidenLarsen and 35 more
Reacted by Emile du Toit, SeongUk Cho, Kamil Baranek, Shangjie Xue and Hameed2000
Not really. Using IDE extension you do not see an option to have both login and API. You have to log off before you see an option to connect using API KEY.
If you login and reach your limits, you have manually logoff and force to use the KEY. Result - broken workflow and lost context.
My expectation is that the agent continue workflow after login limit exhausted using the KEY.
Not really. Using IDE extension you do not see an option to have both login and API. You have to log off before you see an option to connect using API KEY.
If you login and reach your limits, you have manually logoff and force to use the KEY. Result - broken workflow and lost context.
My expectation is that the agent continue workflow after login limit exhausted using the KEY.
I don't even see that. Where do you see you can even put in any API credentials in the first place? It's only a ChatGPT login no? I'm not talking about the CLI only. I'm talking about the VS code extension. Like in the extensions side bar. And it looks like a ChatGPT UI.
From a company perspective, maintaining separate credit balances (API vs. in-app credits) adds unnecessary friction. Unifying or simplifying this would make it much easier to continue using OpenAI products without interruption.
It would be especially helpful to allow users to provide an API key directly in the Codex app (or via config.toml). That way, when users hit limits (e.g., 5h or weekly caps), they can seamlessly continue working via the API.
Also worth noting: both credits and API balances expire after a year, so aligning these systems would reduce confusion and overhead.
Activity
anfedoro commentedon Sep 2, 2025
Not really. Using IDE extension you do not see an option to have both login and API. You have to log off before you see an option to connect using API KEY.
If you login and reach your limits, you have manually logoff and force to use the KEY. Result - broken workflow and lost context.
My expectation is that the agent continue workflow after login limit exhausted using the KEY.
Sotiris-Bekiaris commentedon Sep 2, 2025
This is so true. Losing context also means higher token usage, which leads to hitting limits faster, spending more, and getting worse results.
I’ve lost context before due to an authentication error right in the middle of a feature, and I had to log out and log back in.
Lack of history is another known issue, and it should definitely be taken into consideration when switching from subscription to API key.
jeffscottward commentedon Sep 6, 2025
I don't even see that. Where do you see you can even put in any API credentials in the first place? It's only a ChatGPT login no? I'm not talking about the CLI only. I'm talking about the VS code extension. Like in the extensions side bar. And it looks like a ChatGPT UI.
wbdb commentedon Mar 18, 2026
@etraut-openai @charley-oai Any update on this in light of the Responses API changes?
#3942 (comment)
From a company perspective, maintaining separate credit balances (API vs. in-app credits) adds unnecessary friction. Unifying or simplifying this would make it much easier to continue using OpenAI products without interruption.
It would be especially helpful to allow users to provide an API key directly in the Codex app (or via config.toml). That way, when users hit limits (e.g., 5h or weekly caps), they can seamlessly continue working via the API.
Also worth noting: both credits and API balances expire after a year, so aligning these systems would reduce confusion and overhead.