Status: [UNTESTED] Endpoints found: http://127.0.0.1:8135/v1/responses` http://localhost:11434/v1/responses Source: https://github.com/AliXperia71/Codex-Probe # Codex Probe A local recording reverse-proxy for the OpenAI **Codex CLI**. It sits at Codex's `model_providers..base_url` extension point and does two things: 1. **Records every LLM call** Codex makes — the complete request (system/developer instructions, the full running message and tool history, the tool schemas) and the complete response (message text and/or tool calls), with streaming responses reassembled — into a per-session JSONL log. 2. **Swaps the backend model.** Pointing Codex at a self-hosted open model is a change to the `config` dict, not a change to any code, so the same recorder captures both the "before" (OpenAI) and "after" (local) runs. It does this without patching Codex's Rust source. `base_url` is a supported, documented extension point, so the proxy survives Codex upgrades and needs no Rust toolchain. --- ## Important: the task description is out of date, and it matters The task brief says to understand "the difference between the two `wire_api` values Codex supports" and to point Codex at a local server speaking Chat Completions. **That is no longer possible.** As of February 2026 Codex speaks only the Responses API. From `codex-rs/model-provider-info/src/lib.rs` in the Codex source: ```rust pub enum WireApi { /// The Responses API exposed by OpenAI at `/v1/responses`. #[default] Responses, } ``` and deserializing the old value is now a hard error: ```rust "chat" => Err(serde::de::Error::custom(CHAT_WIRE_API_REMOVED_ERROR)), ``` > `wire_api = "chat"` is no longer supported. > How to fix: set `wire_api = "responses"` in your provider config. > More info: https://github.com/openai/codex/discussions/7782 This has a direct consequence for the task's requirement 5. The brief suggests `vllm serve Qwen/Qwen2.5-Coder-7B-Instruct`, whose OpenAI-compatible surface is primarily Chat Completions. Codex can no longer talk to that directly. CodexProbe handles it by **reintroducing `wire_api = "chat"` at the