OpenAI
Use this when your team already runs on OpenAI and you want that vendor family to stay explicit in Loong config instead of disappearing behind a generic compatibility route.At A Glance
| Field | Value |
|---|---|
| Built-in kind | openai |
| Provider group | Direct Hosted Providers |
| Protocol family | openai_chat_completions |
| Feature family | openai_compatible |
| Auth scheme | bearer |
| Credential envs | OPENAI_CODEX_OAUTH_TOKEN, OPENAI_OAUTH_ACCESS_TOKEN, OPENAI_API_KEY |
| Aliases | openai_compatible |
| Default base URL | https://api.openai.com |
| Request endpoint | https://api.openai.com/v1/chat/completions |
| Models endpoint | https://api.openai.com/v1/models |
Minimal Config
Verify It
list-models is unreliable for this account or region, pin an explicit provider.model or add preferred_models instead of leaving recovery implicit.
Auth And Routing Contract
| Contract | Value |
|---|---|
| Auth optional | no |
| Model probe auth optional | no |
| Default API key env | OPENAI_API_KEY |
| OAuth env | OPENAI_CODEX_OAUTH_TOKEN |
| Primary request route | https://api.openai.com/v1/chat/completions |
| Primary model-catalog route | https://api.openai.com/v1/models |
Operator Notes
- OpenAI can use either the normal API key path or the OAuth token path exposed through the descriptor contract.
Related Docs
- Continue to Providers And Models when you still need the broader chooser page.
- Continue to Provider Guides for the full built-in provider matrix.
- Continue to Provider Recipes for representative rollout recipes.
- Continue to Configuration Patterns for the shared provider-profile shape.