Bring your ChatGPT subscription to Cline

If you have an OpenAI subscription, you can now use it directly in Cline without managing API keys

Bring your ChatGPT subscription to Cline


If you have a ChatGPT subscription, you can now bring it to Cline. Sign in with your OpenAI account and instantly access all the models you're already paying for. No API keys to manage. And if you're on a subscription plan, you get flat-rate pricing instead of per-token costs.

This is Cline's first OAuth provider integration, and it marks a shift in how we think about connecting to AI providers. Instead of managing credentials yourself, you authenticate once and Cline handles the rest.

Why this matters

API keys have always been a source of friction. They get committed to repos by accident. They need to be rotated. They create credential sprawl across machines. And when you're working across multiple devices, tracking down the right key becomes another task on your list.

OAuth solves these problems. Your OpenAI credentials never leave OpenAI's servers; Cline only receives the access tokens needed to make API calls on your behalf. Those tokens refresh automatically. When you sign in on a new device, you authenticate again and you're back to coding. No hunting for keys, no worrying about exposure.

This is how authentication should work: secure, seamless, and out of your way.

How to connect

Open Cline settings and select "OpenAI Codex" from the API Provider dropdown. Click "Sign in with OpenAI" and complete the authorization in your browser. Select your model and start coding.

0:00
/0:24

The models available to you depend on your OpenAI subscription tier. gpt-5.2-codex is optimized for agentic coding and complex refactors. gpt-5.2 is general-purpose with strong reasoning. gpt-5-mini is fast and cost-effective. o3 handles advanced reasoning tasks, while o4-mini provides efficient everyday reasoning.

What comes next

OpenAI Codex is our first OAuth integration, but it won't be the last. We're working toward a future where connecting to any provider is this simple: authenticate once and start coding. Cline is provider-agnostic by design; you should be able to use whatever model fits your workflow without fighting configuration.

Get started

Read the full setup guide. OpenAI Codex is available now. Download from the VS Code Marketplace and let us know what you think on Discord or Reddit.