Using OpenAI With Kilo Code
Kilo Code supports accessing models directly through the official OpenAI API.
Website: https://openai.com/
💡Tip
Already have a ChatGPT Plus or Pro subscription? You can use it to access OpenAI's Codex models inside Kilo Code — no separate API key or pay-as-you-go charges needed. See the ChatGPT Plus/Pro provider page for setup instructions.
Getting an API Key
- Sign Up/Sign In: Go to the OpenAI Platform. Create an account or sign in.
- Navigate to API Keys: Go to the API keys page.
- Create a Key: Click "Create new secret key". Give your key a descriptive name (e.g., "Kilo Code").
- Copy the Key: Important: Copy the API key immediately. You will not be able to see it again. Store it securely.
Configuration in Kilo Code
Open Settings (gear icon) and go to the Providers tab to add OpenAI and enter your API key.
The extension stores this in your kilo.json config file. You can also edit the config file directly — see the CLI tab for the file format.
Tips and Notes
- Pricing: Refer to the OpenAI Pricing page for details on model costs.
- Azure OpenAI Service: Use Kilo Code's native
azureprovider for Azure OpenAI, especially GPT-5 deployments. Do not configure Azure GPT-5 through a generic OpenAI-compatible custom provider.