Status: [LIVE] Endpoints found: http://localhost:9090/v1/responses Source: https://github.com/dyrnq/ai-adapter # AI Adapter A Rust proxy that exposes an **OpenAI Responses API** interface, translating to various upstream backends (DeepSeek, OpenAI, Anthropic) with full streaming SSE support. Built for Codex CLI and similar tools hardcoded to OpenAI. ``` Codex / Client AI Adapter :9090 Upstream ───────────── ───────────────── ──────── /v1/responses ──▶ translate/ ──▶ DeepSeek Chat (Responses API) deepseek/chat.rs (Plan A) /v1/responses ──▶ translate/ ──▶ DeepSeek Anthropic (Responses API) deepseek/anthropic.rs (Plan B) /v1/responses ──▶ translate/ ──▶ OpenAI Chat (Responses API) openai/chat.rs /v1/responses ──▶ translate/ ──▶ Anthropic (Responses API) anthropic/convert.rs /v1/responses ──▶ translate/ ──▶ XiaomiMimo Chat (Responses API) xiaomimimo/chat.rs (+ Anthropic) ``` ## Features - **Vendor isolation**: `src/translate/{deepseek,openai,anthropic}/` — each vendor gets its own module with vendor-specific quirks - **Bidirectional streaming**: Full SSE event translation in all directions (Chat ↔ Responses, Anthropic ↔ Responses) - **DeepSeek Plan A/B**: - **Plan A** (Chat): `thinking: disabled`, `developer → system` role mapping, reasoning cache for multi-turn - **Plan B** (Anthropic): tool_use/tool_result merging, native thinking support - **Reasoning cache**: On-disk `redb` cache at `~/.ai-adapter/state.redb` for multi-turn thinking compliance - **Tool calling**: Full function call streaming, flat & nested tool format support (`get_function()`) - **Compaction**: `POST /v1/responses/compact` for Codex CLI context management - **Config-driven**: YAML/JSON config files, environment variables, CLI flags - **Error dumps**: Saves failed exchanges to `l