How sexlovr/mimo-2-api-chat-continuation works
MiMo Chat Continuation is an OpenAI-compatible proxy that translates chat requests, reuses persisted MiMo conversation IDs, and streams responses back to clients. Its main workflow runs through the HTTP server, conversation handling, MiMo client, and response translation. The repository also provides an admin UI and account, key, model, and conversation management, plus browser-based account login. Edges reflect the shown imports, calls, and documented flows; some admin routing details are not excerpted.
Main entry points: index.js HTTP Server · database.js SQLite Database · mimoClient.js MiMo Client · autologin.mjs Browser Auto-login
Components 16
Proxy Runtime
- HTTP Server
index.js - Conversation Continuation
index.js - Request Translation
lib/translator.js - MiMo Client
lib/mimoClient.js
Administration
- Admin UI
lib/page.js - Account Management
index.js - cURL Import
lib/curlParser.js - API Key Management
index.js - Model Management
index.js - Conversation Management
index.js
Account Login
- Browser Auto-login
captures/tools/autologin.mjs - CDP Driver
captures/tools/cdp.mjs
Persistent State
- SQLite Database
lib/database.js
Other components
- OpenAI Client
- MiMo Studio
- Chromium
Connections 21
- OpenAI Client → HTTP Server: sends requests
README.md - HTTP Server → Conversation Continuation: handles chats
index.js - HTTP Server → Request Translation: parses directives
index.js - Conversation Continuation → Request Translation: builds queries
index.js - Conversation Continuation → SQLite Database: reads and writes
index.js - Conversation Continuation → MiMo Client: requests stream
index.js - MiMo Client → MiMo Studio: calls chat API
lib/mimoClient.js - MiMo Client → Request Translation: generates message IDs
lib/mimoClient.js - HTTP Server → SQLite Database: initializes and cleans
index.js - HTTP Server → Account Management: routes admin requests
README.md - Account Management → cURL Import: parses imported cURL
index.js - Account Management → SQLite Database: stores accounts
index.js - API Key Management → SQLite Database: manages keys
index.js - Model Management → SQLite Database: manages models
README.md - Conversation Management → SQLite Database: manages conversations
README.md - HTTP Server → Admin UI: serves page
index.js - Admin UI → HTTP Server: logs in
lib/page.js - Account Management → Browser Auto-login: starts login
README.md - Browser Auto-login → CDP Driver: drives browser
captures/tools/autologin.mjs - CDP Driver → Chromium: controls via CDP
captures/tools/cdp.mjs - Browser Auto-login → Account Management: provides fresh credentials