AI Gateway is now available: identity-aware access to any AI provider, eliminate API keys, and tunnel to self-hosted models. Get started

AI GatewayProviders

OpenAI

Connect OpenAI as an AI Gateway provider

An OpenAI provider forwards Chat Completions and Responses requests to OpenAI's API. Attach it to an AI Gateway resource when you want Codex, OpenCode, Open WebUI, OpenClaw, or any other OpenAI-compatible client to use your org's OpenAI key.

See AI Providers if you haven't created a provider before. Field options are in Provider Configuration.

Defaults

SettingValue
Upstream URLhttps://api.openai.com/v1
Auth typeBearer
CapabilitiesOpenAI Chat Completions, OpenAI Responses

Configure

  1. Sidebar → AI Gateway → Providers → Create.
  2. Set Provider Type to OpenAI. Name, capabilities, upstream URL, and auth type fill in from the defaults above.
  3. Paste your OpenAI API key.
  4. Set Allow and Block lists. * allows every model key; gpt-* is a typical narrower pattern.
  5. Save, then attach the provider to an AI Gateway resource.

Leave the upstream URL as the default unless you are pointing at a compatible OpenAI-style base URL.

Clients

ClientGuide
CodexSetup guide
OpenCodeSetup guide
Open WebUISetup guide
OpenClawSetup guide

Was this page helpful?

⌘I

On this page