npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mimo-free-opencode-plugin

v0.1.0

Published

OpenCode provider plugin for Xiaomi MiMo Code's free mimo-auto model — anonymous, keyless, no account required

Readme

mimo-free

An OpenCode provider plugin for Xiaomi MiMo Code's free mimo-auto model. It handles the anonymous bootstrap/JWT auth that the MiMo Code CLI does internally, so you get the free model inside OpenCode without a MiMo account, an API key, or running a separate proxy server.

Modeled on opencode-omniroute-auth, but keyless — MiMo's free tier authenticates anonymously.

How it differs from a proxy

Instead of pointing OpenCode at a local HTTP proxy, the plugin registers a mimo-free provider whose custom fetch does everything inline:

  1. Generates a per-install fingerprint, persisted to ~/.mimo-free/client-fingerprint.
  2. Exchanges it for a short-lived anonymous JWT via POST /api/free-ai/bootstrap.
  3. Rewrites the SDK's …/chat/completions call to MiMo's real …/chat endpoint.
  4. Forces model: "mimo-auto", prepends the required MiMoCode system prompt, and attaches the JWT + CLI headers.
  5. Refreshes the JWT ~5 min before expiry or on a 401/403, retrying once.

Install

Published to npm as mimo-free-opencode-plugin — public, installs anonymously, no token needed. Reference it from your opencode.json:

// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["mimo-free-opencode-plugin"]
}

Or load a local build directly:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["./path/to/mimo-free-opencode-plugin/dist/index.js"]
}

Build the plugin first:

npm install
npm run build

Use

After OpenCode loads the plugin, pick the MiMo Auto (Free) model (mimo-free/mimo-auto) from the model list — that's it.

If your OpenCode version requires a provider to be "connected" before use, run:

/connect mimo-free

choose Anonymous — no key needed, and just press Enter at the key prompt. The plugin ignores whatever you type and authenticates anonymously.

Environment variables

  • MIMO_BASE_URL — override the upstream base URL (default https://api.xiaomimimo.com).

Public API

import MimoFreePlugin from "mimo-free-opencode-plugin";
// or named:
import { MimoFreePlugin } from "mimo-free-opencode-plugin";

Reusable runtime helpers (the same logic the plugin uses):

import {
  bootstrap,
  getJwt,
  createMimoFetch,
  ensureMimoSystemPrompt,
  PROVIDER_ID,
  MIMO_MODEL_ID,
} from "mimo-free-opencode-plugin/runtime";

Standalone proxy (optional)

The original OpenAI-compatible proxy server still lives at proxy/server.ts for anyone who wants a plain HTTP proxy instead of the plugin:

deno run -A proxy/server.ts

It serves POST /v1/chat/completions, GET /v1/models, and GET /health on port 3000 (override with PORT). Set PROXY_API_KEY to require callers to send Authorization: Bearer <key>.

License

MIT — see LICENSE.