whatisgithub

What is mimocode2api?

sliverkiss/mimocode2api — explained in plain English

Analysis updated 2026-05-18

65GoAudience · developerComplexity · 2/5LicenseSetup · easy

In one sentence

A lightweight Go gateway that lets OpenAI-compatible tools like Cursor talk to the MiMo language model without changing the tool's code.

Mindmap

mindmap
  root((MiMoCode2API))
    What it does
      OpenAI format gateway
      Translates to MiMo API
      Streaming and non streaming
    Tech stack
      Go
      Docker
    Use cases
      Connect Cursor to MiMo
      Self host small proxy
      Use OpenAI tools with MiMo
    Audience
      Developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Point an OpenAI-compatible coding tool like Cursor or Continue at MiMo without modifying the tool.

USE CASE 2

Deploy a small Docker container that proxies OpenAI-format chat requests to the MiMo API.

USE CASE 3

Get streaming or non-streaming chat responses from the mimo/mimo-auto model.

USE CASE 4

Run a self-hosted API gateway with automatic API key generation and configurable settings.

What is it built with?

GoDockerOpenAI API

How does it compare?

sliverkiss/mimocode2apitj/go-gracefullywalkingddd/cpa-helper
Stars656663
LanguageGoGoGo
Last pushed2014-12-27
MaintenanceDormant
Setup difficultyeasyeasymoderate
Complexity2/52/53/5
Audiencedeveloperdeveloperops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Deploys as a ~12MB Docker image, for learning and research use only per the README's disclaimer.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice, the README also states it is for learning and research only, not commercial use.

So what is it?

MiMoCode2API is a small API gateway written in Go that translates requests from the OpenAI chat format to MiMo's AI model service and back. The README is written in Chinese. The practical use case is compatibility: many AI coding tools and applications (such as Cursor, Continue, and Hermes Agent) are built to speak to OpenAI's API format. MiMo is a separate AI language model with its own API. This gateway sits in between, accepting requests in the OpenAI format and forwarding them to MiMo, so you can point existing OpenAI-compatible tools at this gateway without modifying them. It supports both streaming responses (where text appears word-by-word as the model generates it) and standard non-streaming responses (where you wait for the full reply). Deployment is done with Docker. The compiled Docker image is about 12 MB. When you start it for the first time, it automatically generates an API key that you use to authenticate requests to the gateway. The gateway listens on port 10000 by default. Configuration is done through environment variables, including the upstream MiMo API address, the port to listen on, and a debug logging toggle. The supported model listed is mimo/mimo-auto, which accepts text and image input, supports up to one million tokens of context, and can output up to 128,000 tokens. The README includes a disclaimer (in Chinese) stating the project is for learning and research only, not commercial use, and that users bear responsibility for any consequences of using it. Licensed under MIT.

Copy-paste prompts

Prompt 1
Walk me through deploying MiMoCode2API with Docker and finding the auto-generated API key.
Prompt 2
Show me how to configure Hermes Agent to use this gateway as a custom provider.
Prompt 3
Explain the difference between the streaming and non-streaming chat completion endpoints here.
Prompt 4
Help me set the environment variables for port, upstream URL, and debug logging.

Frequently asked questions

What is mimocode2api?

A lightweight Go gateway that lets OpenAI-compatible tools like Cursor talk to the MiMo language model without changing the tool's code.

What language is mimocode2api written in?

Mainly Go. The stack also includes Go, Docker, OpenAI API.

What license does mimocode2api use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice, the README also states it is for learning and research only, not commercial use.

How hard is mimocode2api to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is mimocode2api for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.