Files
Foundry/pkgs
Gabriel Fontes 503751805e feat(codex-openai-proxy): add Responses API proxy for ChatGPT Codex sub
Bridges LibreChat's native Responses API custom endpoint to the ChatGPT Codex
backend at chatgpt.com/backend-api/codex/responses. It exchanges a refresh token
(CODEX_REFRESH_TOKEN) for access tokens on demand, derives the chatgpt-account-id
from the id_token claims, injects the headers the backend gates on (originator,
OpenAI-Beta, session), and reshapes the body (store:false, streaming, inline
reasoning). Nothing is persisted to disk.

Serves GET /v1/models, POST /v1/responses (streaming passthrough, or reassembled
into a single response object for non-streaming callers), and GET /health.

Ships a services.codex-openai-proxy NixOS module (host, port, environmentFile).

The ChatGPT account only accepts a subset of model ids (gpt-5.5, gpt-5.4,
gpt-5.4-mini); others such as gpt-5, the -codex variants, and gpt-5.5-mini 400.
Probe with /v1/responses if OpenAI rotates the allowed set.

Assisted-by: pi (claude-opus-4-8)
2026-06-28 17:23:08 -03:00
..
2025-12-20 12:11:32 -03:00
2024-04-07 14:21:47 -03:00
2026-06-24 10:27:11 -03:00
2025-08-28 15:13:21 -03:00
2025-01-30 17:28:12 -03:00
2025-10-15 11:43:15 -03:00
2025-09-19 22:23:03 -03:00
2024-04-07 14:21:47 -03:00