docs/provider-config/openai-codex.mdx
OpenAI Codex lets you connect your OpenAI account directly to Cline using OAuth, meaning you don't need to manage API keys. Simply sign in with your OpenAI account through a one-click browser authentication, and you'll automatically have access to all the models available on your OpenAI plan. No additional configuration required.
<Tip> If you prefer to use API keys instead, see the [OpenAI (API Key)](/provider-config/openai) provider configuration. </Tip>For the most current list of available models and their capabilities, see the official OpenAI Models documentation.
To disconnect your OpenAI account from Cline:
This removes the OAuth connection. You can reconnect at any time by signing in again.
OAuth tokens are automatically refreshed by Cline. If you encounter authentication errors:
Cline only requests the permissions necessary to make API calls on your behalf. Your OpenAI credentials are never stored by Cline.
When using OpenAI Codex, Cline accesses models through your OpenAI/ChatGPT subscription. There is no separate per-token API billing or consumption of OpenAI API credits for this provider; usage and limits are governed by your ChatGPT (or OpenAI account) subscription plan, not by Cline.