Openrouter Proxy — Development skill for Claude Code
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.
How to install Openrouter Proxy
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ahaostudy/openrouter-proxy and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Openrouter Proxy does
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.
Alternatives in Development
- Projectmem — Open-source coding agent memory 766 ★
- Y Router — A Simple Proxy enabling Claude Code to work with OpenRouter 378 ★
- Overnight PRs — Autonomous overnight loop — verify issues against the codebase, close stale ones, ship PRs through /ship (bug 324 ★
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.
**[中文文档](./README_CN.md)**
The Problem
**Free MiMo for any tool** — [Xiaomi MiMo](https://openrouter.ai/xiaomi/mimo-v2-pro) 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_thinkingerrors- 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
┌──────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ Any AI Tool │──────▶│ OpenRouter Proxy │──────▶│ OpenRouter │
│ │ │ localhost:8899 │ │ │
│ Claude Code │◀──────│ │◀──────│ Xiaomi MiMo │
│ Continue │ │ • Inject headers │ │ (free via │
│ Cline / Aider │ │ • Repair SSE │ │ OpenClaw) │
│ OpenAI SDK │ │ • WebSocket │ │ │
│ Any HTTP client │ │ │ │ │
└──────────────────┘ └──────────────────┘ └─────────────────┘
| Feature | Detail |
|---|---|
| Header injection | Adds HTTP-Referer + X-OpenRouter-Title to qualify for free MiMo — works with any tool |
| SSE repair | Fixes redacted_thinking, block lifecycle, event order — Claude Code only |
| Transparent |
Related Skills
Commandcode Proxy Go
Personal maintenance fork of liwei/commandcode-proxy-go: Claude Code tool-image fixes, resilient streaming and
Opencc
Tiny zero-dependency proxy that runs Claude Code against any OpenAI-compatible API — free or local models
Kotlin Build
Fix Kotlin/Gradle build errors, compiler warnings, and dependency issues incrementally. Invokes the kotlin-bui
Rust Build
Fix Rust build errors, borrow checker issues, and dependency problems incrementally. Invokes the rust-build-re
React Build
Fix React build failures in a Turborepo monorepo using Next.js (App Router) — incremental fixes for TypeScript
Flue Framework Skill
Covers createAgent, init, defineTool, defineAgentProfile, routing, SSE streaming, production deployment, and a
Related Agents
Hono Builder
Hono API implementer — routes, middleware, validation, error handling, streaming/SSE, the typed RPC client (Ap
API Test Fixer
Fixes API endpoint test failures, HTTP client issues, and API contract validation problems. Expert in REST API
Pipeline Optimizer
Reviews the LLM/agent pipeline — model selection, LangGraph wiring, MCP client lifecycle, async/streaming beha