How to use it
- Configure a default AI adapter in your gateway config.
- Enable the OpenAI-compatible endpoints and set an
auth_token. - Point your OpenAI client at the gateway base URL.
- Send Chat Completions or Responses requests as you normally would.
- Drop-in OpenAI client compatibility while running a different backend.
- One HTTP ingress path that routes to your configured adapter.
Example: Chat Completions (curl)
Example: Responses (curl)
Example: OpenAI SDKs (base URL override)
Point the client at the gateway and use yourauth_token as the API key.
JavaScript:
Why they exist
- Compatibility: reuse OpenAI client libraries, CLI tools, and SDKs.
- Single adapter path: the same safety rules, session storage, and logging apply regardless of how the request arrives.