Supported providers
| Provider | Auth method | What you need |
|---|---|---|
| Anthropic | API key | An Anthropic API key from console.anthropic.com |
| OpenAI | API key | An OpenAI API key from platform.openai.com |
| OpenAI (Codex) | OAuth sign-in | A ChatGPT Plus, Pro, or Team subscription |
| API key | A Gemini API key from aistudio.google.com | |
| OpenRouter | API key | An OpenRouter API key from openrouter.ai |
Setting up BYOK
During onboarding
- On the setup wizard, select “Bring your own key”.
- Choose your provider.
- Enter your API key, or click “Sign in with Codex” for the OAuth flow.
- Complete the rest of the wizard and launch your sandbox.
After onboarding
- Go to Settings > API Keys.
- Select a provider and enter your key (or use Codex OAuth).
- Click Save. The change takes effect immediately.
Codex OAuth (ChatGPT sign-in)
If you have a ChatGPT Plus, Pro, or Team subscription, you can sign in with your OpenAI account instead of providing an API key. This uses the same authentication that the Codex CLI uses. How it works:- Click “Sign in with Codex” in the provider setup.
- A popup opens to OpenAI’s login page.
- Authorize Coral to use your ChatGPT subscription.
- Copy the callback URL from your browser’s address bar and paste it back into Coral.
- Coral exchanges the authorization code for access tokens using PKCE (Proof Key for Code Exchange).
Coral fallback
When using BYOK or Codex, you can enable Coral fallback — an automatic safety net that kicks in when your own API key fails (rate limits, quota exceeded, or provider errors). How it works:- Toggle “Enable Coral fallback” in Settings > API Keys after saving your credentials.
- When your primary key works, requests go directly to your provider at no Coral credit cost.
- When your primary key fails, the request automatically retries using Coral’s system-managed keys.
- Only fallback requests consume Coral credits. Successful BYOK requests are free from Coral’s perspective.
Coral fallback requires an active Coral subscription with remaining credits. If your credits are exhausted, fallback requests will also fail.
How BYOK affects billing
- BYOK requests — Billed by your AI provider directly. No Coral credits consumed.
- Fallback requests — Billed against your Coral credit balance (same rates as system-managed keys).
- Coral-managed keys (default) — All requests consume Coral credits.