Status: [LIVE] Endpoints found: https://chatgpt.com/backend-api/codex/responses Source: https://github.com/bdcdo/strixcodex # strixcodex Local OpenAI-compatible proxy that bridges **Strix AI** (autonomous pentest agent) to the **ChatGPT Codex backend**, so you can run Strix using your **ChatGPT Pro** subscription instead of paying for OpenAI API tokens. Inspired by and reusing OAuth code from [`simonw/llm-openai-via-codex`](https://github.com/simonw/llm-openai-via-codex) (Apache-2.0). ``` Strix (LiteLLM, Chat Completions) ↓ http://localhost:8787/v1/chat/completions strixcodex proxy ← translates Chat Completions ↔ Responses ↓ https://chatgpt.com/backend-api/codex/responses ChatGPT Codex backend (auth via OAuth from ~/.codex/auth.json) ``` ## Why this exists - Strix uses LiteLLM and speaks `/chat/completions`. - The ChatGPT Codex backend only speaks the Responses API (`/responses`). - This proxy translates between the two formats, including streaming SSE and tool calls, while reusing the OAuth tokens that the official `codex` CLI stores locally. ## Prerequisites - ChatGPT Pro (or Plus, with Codex access). - [`codex`](https://github.com/openai/codex) CLI installed and logged in (`codex login`). - Python 3.10+, [`uv`](https://docs.astral.sh/uv/) (or `pip`). - Strix AI installed (see [docs.strix.ai](https://docs.strix.ai/)). ## Install ```bash uv sync # or: pip install -e . ``` ## Run the proxy Strix runs inside a Docker container, so the proxy must listen on `0.0.0.0` and Strix must dial it via `host.docker.internal` (which Strix already maps to `host-gateway` automatically — see `strix/runtime/docker_runtime.py`). ```bash uv run python -m strixcodex --host 0.0.0.0 # listens on http://0.0.0.0:8787 ``` Smoke test (from the host): ```bash curl -fsS http://127.0.0.1:8787/healthz curl -fsS http://127.0.0.1:8787/v1/models | jq curl http://127.0.0.1:8787/v1/chat/completions \ -H 'Content-Type: application/json' \ -d '{ "model": "gpt-5.4", "messages": [{"role":"user","content":"reply with the word ok"}] }' ``` ## Run Strix through the proxy