Status: [UNTESTED] Endpoints found: http://localhost:19911/v1/chat/completions https://opengateway.gitlawb.com/v1/xiaomi-mimo`: http://localhost:19911/v1/models https://opengateway.gitlawb.com/v1/xiaomi-mimo` Source: https://github.com/Nakasz/mimo-gateway-proxy # mimo-gateway-proxy > Proxy lokal tanpa dependensi untuk mengakses model Xiaomi MiMo secara gratis > melalui [Gitlawb OpenGateway](https://opengateway.gitlawb.com) dengan format > API yang kompatibel OpenAI. Cocok untuk **OpenAI SDK**, **Cline**, **Continue**, **Cursor**, atau klien lain yang mendukung format OpenAI. ```bash node proxy.mjs # -> arahkan klien ke http://localhost:19911/v1 ``` ## Kenapa Perlu Proxy? Gateway upstream di `https://opengateway.gitlawb.com/v1/xiaomi-mimo`: - **Gratis**, tanpa registrasi, tanpa API key. - Sudah kompatibel format OpenAI. - Menyediakan model: `mimo-v2.5-pro`, `mimo-v2.5`, `mimo-v2-pro`, `mimo-v2-omni`, `mimo-v2-flash`. Tapi kebanyakan klien AI: - Memaksa isi API key (proxy ini terima string apapun). - Tidak mengenali field `reasoning_content` dari MiMo (proxy bisa gabungkan ke `content`). - Kadang error karena chunk keepalive kosong (proxy membuangnya secara default). ## Cara Pakai ### Jalankan Langsung ```bash node proxy.mjs ``` ### Tes Cepat ```bash # Cek status curl -s http://localhost:19911/status # Daftar model curl -s http://localhost:19911/v1/models # Chat completion curl -s http://localhost:19911/v1/chat/completions \ -H "Content-Type: application/json" \ -d '{"model":"mimo-v2.5-pro","messages":[{"role":"user","content":"halo"}]}' ``` ### Konfigurasi Klien | Field | Nilai | |-------|-------| | Base URL | `http://localhost:19911/v1` | | API Key | isi apapun (misal `none`) | | Model | `mimo-v2.5-pro` | ## Endpoint | Method + Path | Fungsi | |---------------|--------| | `GET /status` | Cek kesehatan proxy | | `GET /v1/models` | Daftar model dari upstream (fallback ke daftar statis jika upstream mati) | | `POST /v1/chat/completions` | Proxy ke upstream, mendukung `stream: true` | ## Variabel Lingkungan | Variabel | Default | Keterangan | |----------|---------|------------| | `PORT` | `19911` | Port yang digunakan | | `UPSTREAM_URL` | `https://opengateway.gitlawb.com/v1/xiaomi-mimo` | URL upstream g