Status: [LIVE] Endpoints found: https://api.z.ai/api/coding/paas/v4/chat https://api.z.ai/api/coding/paas/v4/chat/completions Source: https://github.com/alexeygrigorev/codex-proxy # codex-proxy [![CI](https://github.com/alexeygrigorev/codex-proxy/workflows/CI/badge.svg)](https://github.com/alexeygrigorev/codex-proxy/actions) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) A headless OpenAI **Responses API**-compatible proxy that runs [Codex](https://developers.openai.com/codex) against multiple LLM providers. ## Providers | Path prefix | Provider | Wire format | | --- | --- | --- | | `/zai/v1/responses` | Z.AI coding plan | converted to Z.AI chat completions | | `/go/v1/responses` | OpenCode Go (`providers.go`) | per model: native responses passthrough, chat-completions, or Anthropic messages | | `/zen/v1/responses` | OpenCode Zen (`providers.zen`) | same wire shapes as Go; different catalog/billing (e.g. `muse-spark-1.3-contributor-free`) | Each provider also serves `/{provider}/v1/models` for model listing. Model selection per provider is handled by the built-in catalogs plus the existing routing configuration; unknown models fall back to name-prefix inference. ## Quick start ```bash cargo build --release # → target/release/codex-proxy ``` Example config enabling both providers: ```json { "server": { "host": "127.0.0.1", "port": 18766 }, "models": { "served": [] }, "routing": { "model_routes": {} }, "accounts": [], "access": { "require_key": false, "keys": [] }, "reasoning": { "default_effort": "high" }, "timeouts": { "connect_seconds": 10, "read_seconds": 600 }, "compaction": {}, "providers": { "zai": { "api_url": "https://api.z.ai/api/coding/paas/v4/chat/completions", "models": [] }, "go": { "base_url": "https://opencode.ai/zen/go/v1", "api_key_env": "OPENCODE_GO_API_KEY" }, "zen": { "base_url": "https://opencode.ai/zen/v1", "api_key_env": "OPENCODE_ZEN_API_KEY" } } } ``` Point Codex at the desired provider: ```toml [model_providers.go] base_url = "http://127.0.0.1:18766/go/v1" wire_api =