Skip to content
프로젝트

소개

최신 OpenAI Codex CLI 및 Codex 데스크톱 앱에서 주요 대규모 언어 모델에 연결할 수 있도록 해 주는 로컬 프록시입니다(macOS/Windows 패키지 지원, 백그라운드 실행, 시작 시 자동 재시작을 제공합니다). Xiaomi MiMo V2.5와 DeepSeek V4 Pro를 기본 제공하며, 일반적인 provider 메커니즘을 통해 **OpenAI Chat Completions 호환** 업스트림(Qwen / GLM / Kimi / 로컬 vLLM / Ollama / LM Studio …) 또는 **네이티브 Responses API**(OpenAI 자체)를 최신 Codex에 연결할 수 있습니다. Codex의 Responses API를 업스트림의 Chat Completions API로 실시간 변환하고, 클라이언트가 전송한 `model` 필드에 따라 provider 사이에서 요청을 자동으로 라우팅합니다.

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
-3
in 15 days
-4
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

mimo2codex

[!IMPORTANT] This repository is no longer maintained.

English · 简体中文 · Docs site

GitHub Stars npm version downloads license node wire_api Sponsor on PayPal

Local proxy that lets the latest OpenAI Codex CLI / desktop talk to virtually any modern LLM. Built-in support for Xiaomi MiMo V2.5 and DeepSeek V4 Pro, plus a generic provider mechanism for any OpenAI Chat Completions-compatible (Qwen / GLM / Kimi / vLLM / Ollama / LM Studio …) or native Responses API upstream — no code changes, no re-publish. It translates Codex's Responses API ↔ upstream Chat Completions on the fly, routes per-request by the model field, and runs on 127.0.0.1.

Why: MiMo's official Codex integration only supports wire_api = "chat", which newer Codex versions hard-error on. mimo2codex sits in between, so you keep Codex on latest and it thinks it's talking to a native Responses backend. Conceptually a thin protocol shim — sibling to openrouter / claude-code-router.

Three ways to run

  1. CLI — npm install -g mimo2codex. The classic path; full control from the terminal.
  2. Docker — for intranet / team setups: user login, BYOK, OAuth, downloadable Codex config bundles; the upstream key never leaks. → Auth & deployment
  3. Desktop app (Windows / macOS, best for non-technical users) — installer, runs in the background, starts on boot; one click from the tray opens the admin UI. → Download

Admin console · dashboard

What it does

  • ✅ Codex CLI (wire_api = "responses") + desktop app — stay on the latest Codex.
  • ✅ Multi-provider in one process — MiMo + DeepSeek + generic providers, per-request routing by the model field.
  • ✅ Any OpenAI-compatible / native-Responses upstream — Qwen / GLM / Kimi / Ollama / OpenAI, declared in providers.json.
  • ✅ Tool calling, web search, vision, reasoning — function & parallel tools, MCP namespace; MiMo native web_search; correct multi-turn reasoning_content round-trip.
  • ✅ One-click Codex model switching from the admin webui (replaces cc-switch).
  • ✅ Admin console at http://127.0.0.1:8788/admin/ — model catalog, chat logs, token stats, provider config; sqlite persistence.

Quick start

npm install -g mimo2codex     # 1. install (Node ≥ 18)
mimo2codex init               # 2. add your API key → edit ~/.mimo2codex/.env
mimo2codex                    # 3. start the proxy on 127.0.0.1:8788

Then point Codex at it — one-click on the admin UI's Codex Enable page, or copy the printed config.toml / auth.json into ~/.codex/. Walkthrough: Codex Enable.

Keys & per-OS setup → Env setup · Run Codex CLI in isolation on Windows → Isolated Codex CLI

Documentation

Full docs (searchable, bilingual) live at https://mimodoc.chengj.online.

Getting started

  • Env setup — set up all keys once; per-OS .env loader (macOS / Linux / Windows)
  • Codex Enable — one-click model switching in the webui (replaces cc-switch)
  • Isolated Windows Codex CLI — let Codex CLI use MiMo while Codex Desktop stays untouched

Deployment

  • Docker — docker compose up -d, data persistence, multi-arch images
  • Auth & multi-user — login, BYOK, OAuth, downloadable Codex config bundles

Providers

Reference

License

MIT — see LICENSE.

관련 프로젝트 살펴보기

불러오는 중…