Status: [UNTESTED] Endpoints found: http://localhost:8000/v1/responses Source: https://github.com/alexander12581/CodeX-responses-chat-proxy # Responses Chat Proxy English | [中文](#中文) A small, standalone proxy service that accepts OpenAI Responses API requests, converts them to Chat Completions requests, forwards them to a Chat-compatible upstream, and converts the upstream response back to Responses API format. It is designed to be easy to self-host and publish as an independent open-source project. It does not depend on Django, databases, billing, or user management. ## Features - `POST /v1/responses`: Responses API compatible endpoint. - Converts Responses `input` and `instructions` to Chat `messages`. - Converts Responses tool definitions to Chat Completions function tools. - Converts non-streaming Chat Completions responses back to Responses objects. - Converts streaming Chat Completions SSE chunks to Responses API SSE events. - Optional `POST /v1/chat/completions` passthrough endpoint. - Unmatched `/v1/*` requests (e.g., `GET /v1/models`) are forwarded to the upstream. - Optional proxy-side bearer token authentication. - Supports environment-variable configuration for services and an interactive local launcher for desktop use. - Logs every request, tool conversions, and streaming event counts for debugging. ## Quick Start ```bash cd responses-chat-proxy python -m venv .venv source .venv/bin/activate pip install -e . cp .env.example .env ``` Edit `.env`: ```env UPSTREAM_BASE_URL=https://api.openai.com/v1 UPSTREAM_API_KEY=sk-your-upstream-key PROXY_API_KEY= ``` Run the service: ```bash python -m responses_chat_proxy ``` Or: ```bash uvicorn responses_chat_proxy.main:app --host 0.0.0.0 --port 8000 ``` ## Interactive Local Launcher For desktop/local use, you can run the interactive launcher: ```bash responses-chat-proxy ``` The launcher asks for: - upstream `base_url` - upstream API key It saves the values to: ```text ~/.responses-chat-proxy/config.json ``` On the next start, press Enter to reuse the saved configuration, or type `r` to reconfigure. The interactive launcher