Stream a Codex subscription response
Forward the official Codex client’s native request to the fixed OpenAI Codex backend using its ChatGPT token. The separate personal Aixy key selects the authorized project and user. Supports HTTP SSE with supports_websockets=false in Codex configuration. Native history, tool identifiers, encrypted reasoning and streaming events are preserved. Activity records billing_channel=subscription, reported usage and no API cost. ChatGPT limits and credits still apply. This route provides no cross-provider translation, fallback or subscription pooling.
Authorizations
The caller's personal, project-scoped Aixy key. Aixy validates and removes this header before forwarding. It does not replace the ChatGPT token.
The user's ChatGPT access token supplied by the official Codex client. Forwarded only to the fixed Codex backend; never stored as a connection.
Headers
Optional caller-generated request identifier for end-to-end tracing.
255Optional opaque conversation identifier recorded in Activity metadata. Reuse it for every call in a conversation. Sessions are isolated by organization, project, user and API key. Use no personal data or secrets. Invalid values are ignored. The header is not forwarded, grants no permissions and does not change routing affinity.
1 - 128^[A-Za-z0-9._:-]+$"conversation-82"
Account/workspace selected by Codex; preserved for OpenAI validation. It does not select or authorize an Aixy tenant.
Body
Response
Incremental native SSE. A successful stream ends with response.completed; errors can occur after headers or text arrive.
The response is of type string.