Claude Code model router

Openrouter Proxy

A zero-dependency proxy that unlocks free Xiaomi MiMo on OpenRouter for any client, and fixes SSE streaming issues with the VS Code Claude Code extension.

Install

From source
git clone https://github.com/aaravarr/openrouter-proxy.git

From the README

OpenRouter Proxy
A zero-dependency proxy that unlocks free Xiaomi MiMo on OpenRouter for any client, and fixes SSE streaming issues with the VS Code Claude Code extension.

中文文档

The Problem

Free MiMo for any tool — Xiaomi MiMo is free on OpenRouter, but only when requests come through the OpenClaw channel. Without the right headers, you pay or get nothing. This proxy injects them automatically — works with any HTTP client.

Claude Code SSE fix — The VS Code Claude Code extension breaks when consuming OpenRouter's SSE stream due to:
- unsupported content type: redacted_thinking errors
- Duplicate or out-of-order events
- Missing content block boundaries

The SSE repair logic specifically targets Claude Code's Anthropic-style event format. Other tools (Continue, Cline, etc.) get the free MiMo access without needing the SSE fix.

OpenRouter Proxy handles both — transparently, with zero dependencies.

How It Works

Quick Start

The proxy listens on http://127.0.0.1:8899. Point your tool's base URL there:

Everything else (API key, paths, request body) stays the same.

Configuration

Edit the CONFIG object at the top of proxy.js:

SSE Compatibility Fixes

When using Claude Code in VS Code, OpenRouter translates model output into Anthropic-style streaming events. This causes compatibility issues that break Claude Code. The proxy repairs:

These fixes are only needed for Claude Code. Other tools (Continue, Cline, Aider, etc.) benefit from the header injection alone and don't require SSE manipulation.

License

MIT
Read the full README on GitHub

Details

Language
JavaScript
License
MIT
Last updated
30 July 2026

FAQ

What is Openrouter Proxy?

A zero-dependency proxy that unlocks free Xiaomi MiMo on OpenRouter for any client, and fixes SSE streaming issues with the VS Code Claude Code extension. It is a model router for Claude Code, from aaravarr/openrouter-proxy on GitHub.

How do I install Openrouter Proxy?

Clone aaravarr/openrouter-proxy from GitHub and follow the setup steps in its README.

Is Openrouter Proxy popular?

aaravarr/openrouter-proxy has 77 GitHub stars and 22 forks. It was last updated on 30 July 2026.

More model routers & proxies

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.