Before You Begin
To successfully connect to your organization’s OpenAI-compatible endpoint, you’ll need a few things ready. Cline extension installed and configuredThe Cline extension must be installed in VS Code and you need to be signed into your organization account. If you haven’t installed Cline yet, follow our installation guide.
Quick Check: Open the Cline panel in VS Code. If you see your organization name in the bottom left, you’re signed in correctly.
You need an API key or credentials to authenticate with your organization’s configured endpoint. For Azure Foundry deployments using Azure Identity Authentication, your Azure AD credentials may be used instead.
If you’re unsure what credentials to use, check with your administrator or IT team about how your organization has configured access.
Configuration Steps
Open Cline Settings
Open VS Code and access the Cline settings panel using either of these methods:
- Click the settings icon (⚙️) in the Cline panel
- Click on the API Provider dropdown located directly below the chat area
Configure Your Credentials
The authentication method depends on how your administrator configured the endpoint:
API Key Authentication
API Key Authentication
For most OpenAI-compatible endpoints:
- Select or confirm the OpenAI Compatible provider is selected
- Enter your API key in the API Key field
- The base URL, custom headers, and other settings are preconfigured by your administrator
- Click Save to store your credentials
Azure Identity Authentication (Azure Foundry)
Azure Identity Authentication (Azure Foundry)
If your organization uses Azure AD authentication:
- Select or confirm the OpenAI Compatible provider is selected
- Ensure you are signed into Azure in your development environment
- The extension will use your Azure AD credentials automatically
- No API key is needed when Azure Identity Authentication is enabled
You may need the Azure Account extension or Azure CLI installed for credential resolution.
The Base URL, custom headers, Azure API version, and Azure Identity settings are preconfigured by your administrator and do not need to be set in the extension.
Verify Configuration
After configuring your credentials, administrator-controlled settings will be locked (shown with a lock icon 🔒) as they’re managed by your organization.
Troubleshooting
OpenAI Compatible not available as provider optionConfirm you’re signed into the correct Cline organization. Verify your administrator has saved the configuration and that you have the latest version of the Cline extension. Authentication errors (“Access Denied” or “Invalid API Key”)
Verify your API key is correct and active. For Azure Foundry with Azure Identity Authentication, ensure you are signed into Azure in your development environment and that your account has the appropriate role assignments on the Azure OpenAI resource. Connection errors or timeouts
The endpoint URL is configured by your administrator. If you experience connection issues, check with your IT team about network requirements (VPN, firewall rules, etc.). Models not available
The available models depend on your organization’s endpoint configuration. Contact your administrator if expected models are not available in the model dropdown. Configuration changes don’t persist
Make sure to save your credentials. The base URL and other admin-controlled settings cannot be changed locally.
Security Best Practices
When working with your API credentials:- Keep your API key secure and do not share it
- Never store credentials in code or version control
- Report any suspected key compromise to your administrator immediately
- Follow your organization’s usage guidelines for the configured endpoint

