Getting an API Key
- Sign Up/Sign In: Visit the OpenAI Platform. You’ll need to create an account or sign in if you already have one.
- Navigate to API Keys: Once logged in, go to the API keys section of your account.
- Create a Key: Click on “Create new secret key”. It’s good practice to give your key a descriptive name (e.g., “Cline API Key”).
- Copy the Key: Crucial: Copy the generated API key immediately. For security reasons, OpenAI will not show it to you again. Store this key in a safe and secure location.
Supported Models
Cline is compatible with a variety of OpenAI models, including the latest frontier and reasoning models:GPT-5 Series
gpt-5.2(Default) - Latest flagship model with reasoning supportgpt-5.2-codex- Codex variant using Responses API (400K context)gpt-5.1- Previous GPT-5 generationgpt-5.1-2025-11-13- Dated snapshot of GPT-5.1gpt-5.1-codex- Codex variant using Responses APIgpt-5.1-chat-latest- Chat-optimized variant (400K context)gpt-5-2025-08-07- Original GPT-5 releasegpt-5-codex- GPT-5 Codex variantgpt-5-mini-2025-08-07- Compact, cost-effective GPT-5gpt-5-nano-2025-08-07- Ultra-compact GPT-5 for budget usegpt-5-chat-latest- Chat-optimized GPT-5
Reasoning Models
o3- Advanced reasoning with 200K contexto4-mini- Fast reasoning modelo3-mini- Compact reasoning modelo1- Original reasoning modelo1-preview- Preview reasoning modelo1-mini- Compact original reasoning model
GPT-4 Series
gpt-4.1- 1M+ context window modelgpt-4.1-mini- Compact 1M context modelgpt-4.1-nano- Ultra-compact 1M context modelgpt-4o- Multimodal model with 128K contextgpt-4o-mini- Fast, affordable multimodal modelchatgpt-4o-latest- Latest ChatGPT-optimized variant
Configuration in Cline
- Open Cline Settings: Click the settings gear icon (⚙️) in the Cline panel.
- Select Provider: Choose “OpenAI” from the “API Provider” dropdown menu.
- Enter API Key: Paste your OpenAI API key into the “OpenAI API Key” field.
- Select Model: Choose your desired model from the “Model” dropdown list.
- (Optional) Base URL: If you need to use a proxy or a custom base URL for the OpenAI API, you can enter it here. Most users will not need to change this from the default.
Tips and Notes
- Pricing: Be sure to review the OpenAI Pricing page for detailed information on the costs associated with different models.
- Azure OpenAI Service: If you are looking to use the Azure OpenAI service, please note that specific documentation for Azure OpenAI with Cline may be found separately, or you might need to configure it as an OpenAI-compatible endpoint if such functionality is supported by Cline for custom configurations.

