Curated with by@mohithkumar808

№ 0277GitHub

muse-openrouter-shim

A local shim that lets the unmodified muse coding CLI run on any OpenRouter API key by translating its Responses-API-plus-extension wire protocol, so no Meta account is needed.

joymadhu49/muse-openrouter-shimREADME ↗

muse-openrouter-shim

Run Meta's muse coding CLI on any OpenRouter API key. No Meta account, no Meta Model API key, any model you want.

muse (unmodified) ──> local shim (port 8399) ──> openrouter.ai/api/v1/responses

Why

Muse Code ships with a single compiled provider that talks to api.meta.ai and only accepts a Meta Model API key. The multi-provider code (OpenRouter, OpenAI, Anthropic) exists in the binary but is feature-gated out of the public build.

It turns out the wire protocol is just the OpenAI Responses API plus one proprietary endpoint, GET /muse-code/models, that muse needs at startup. So a ~180 line local proxy is enough:

  • serves a synthetic model catalog at /muse-code/models
  • streams POST /responses through to OpenRouter untouched (auth passes through, muse never knows)
  • maps muse's extended reasoning efforts (xhigh, ultra) down to high
  • swallows telemetry so nothing else phones home

The catalog wire format was recovered by pointing --base-url at a local listener and iterating on the binary's serde decode errors until the schema parsed. Full field layout is documented in shim.py.

Setup

Requires Python 3 (stdlib only, no pip installs) and an installed muse (curl -fsSL https://dev.meta.ai/install.sh | bash).

git clone https://github.com/joymadhu49/muse-openrouter-shim
cd muse-openrouter-shim
cp .env.example .env
# paste your OpenRouter key into .env

Use

./muse-or                 # interactive TUI
./muse-or exec "fix the failing test"
./muse-or --model x-ai/grok-4.3

muse-or starts the shim automatically if it is not already running, injects the base URL and model, and hands your OpenRouter key to muse as META_API_KEY so the shim can pass it through as the Bearer token. Set a default model with MUSE_OR_MODEL in .env.

Model compatibility

Verified working end to end, including tool calls:

Model Status
meta/muse-spark-1.2 works (Meta's own model, via OpenRouter billing)
openai/gpt-5.1 works (default)
x-ai/grok-4.3 works
google/gemini-2.5-pro works
deepseek/deepseek-v3.2 works
qwen/qwen3-coder works
anthropic/* blocked: the provider returns a Terms of Service 403 for this scaffold
moonshotai/kimi-k2 fails: 131k context is smaller than muse's startup prompt

Anything on openrouter.ai/models with a

muse-openrouter-shim on github.com

Also filed under Coding & dev tools

See all →
  1. 0870

    CodexBar adds Muse Code usage tracking★

    CodexBar learned a few new tricks in the last few weeks! TypeSafe, Nous Portal, Muse Code, CodeRabbit, Replicate, HuggingFace, Pi, Helmcode, v0, Charm Hyper, GitKraken AI, Bifrost My ambitions for this app REALLY outgrew the app name. (Oh and these keychain alerts are no more)

    @steipete

    X post

    Coding & dev tools

  2. 0656

    Custom terminal built with a Muse★

    A cool thing about @Muse is that every Muse runs on its own Linux machine. So you and your Muse can do normal Linux stuff together — like build your own terminal!

    @lucas_switzer

    X post

    Coding & dev tools

  3. 0597

    Spark 1.3 Contributor free in Cline★

    Meta’s Muse Spark 1.3 Contributor model is now available for free in Cline. Benchmarks show it’s similar in performance to Opus 5, but considerably more affordable.

    @cline

    X post

    Coding & dev tools

  4. 0574

    Muse Spark 1.3 in Cursor★

    Muse Spark 1.3 from Meta is now available in Cursor!

    @cursor_ai

    X post

    Coding & dev tools

More GitHub

See all →
  1. 1089

    Gig Driver Profit Checker — real delivery profit in minutes

    A working mobile-friendly web app built by the Meta Muse personal agent from a real courier's detailed requirements. It compares DoorDash/Uber Eats delivery offers after total miles (including empty return), waiting time, all-in vehicle costs and tolls. The surprising demo: a $9 offer can yield $19.08 net per hour while a $20 offer only yields $16.09 under stated assumptions. Muse created the standalone offline HTML and logic tests (49/49 self-reported); I downloaded it, independently verified actual browser inputs/outputs, published the source and proof screenshot to GitHub, and deployed a no-signup live demo. Live app: https://boyhoangxattpt2-blip.github.io/gig-driver-profit-checker/ . GitHub README includes exact math, source code, build story, and reproducible prompt.

    Anonymous

    GitHub

    Apps & websites

  2. 1087

    Zouroboros Workshop

    Muse is your personal assistant. Zouroboros Workshop is the workshop behind it. Workshop is an MCP service that runs on a private, single-tenant VPS provisioned for each customer. From a normal Muse conversation, a user can dispatch real software work to a coordinated team of seven AI coding executors — Claude Code, Codex, Gemini, OpenCode, Kimi, Hermes, and Pi — routed by health and capability, with automatic fallback when one executor is unavailable. Three things make it different from a single-vendor hosted builder. First, it runs on the subscriptions the user already pays for: there are no Workshop model credits and no second meter. Second, its memory is shared across every executor and survives across sessions, so a decision recorded by one tool is retrieved by another in a later Muse conversation — memory that compounds instead of resetting. Third, work is verified before it is delivered: builds run through a factory lane with deterministic review, and swarm results return with per-task evidence, not just an agent's claim that it is done. The customer-facing promise is simple: turn your existing AI tools into a workshop that delivers tested, reviewed work — a finished pull request, not a wall of code in chat.

    @Xmarlandoj

    GitHub

    Connectors & MCP

  3. 1086

    Self-Healing Agent VM

    A self-healing watchdog pattern for AI agent VMs: byte-exact restore caches in persistent storage, sentinel probes, no-clobber atomic restores, and verified heals. When the VM's root filesystem is rebuilt with pieces missing (Python stdlib, timezone data, Node), the watchdog restores them in minutes and reports only repairs and failures. Includes an AGENTS.md so any agent can set it up.

    @TMTrevisan

    GitHub

    Agents & automation

  4. 1084

    burner: a spare Android phone for Muse

    burner gives Muse a real Android phone you set aside for it. Muse uses the apps on it the way you would: it opens them, taps, types, scrolls and sends you screenshots, so it can use apps that have no website or API it can reach, like marketplaces and shopping apps. It stops and asks before anything you can't undo (sending, posting, buying), and it never signs in for you. Setup is one message to Muse: "Set up burner for me. Read the guide at https://useburner.si/skill.md and do everything in it." Muse then walks you through about 10 minutes of taps on the phone. Needs a spare Android phone (Android 11 or newer). Free and open source (MIT).

    @tropoFarmer

    GitHub

    Agents & automation

Curator picks

  1. 1057

    Muse Mail: your agent gets an email address★

    MUSE FEATURE ALERT: y'all have been asking for this one. your @muse is getting its own email address. add it to a thread or forward it stuff and it’ll handle it for you. muse mail!

    @alexandr_wang

    X post

    Agents & automation

  2. 1054

    Kevin Roose gives his Muse $100 and a Kalshi account★

    gave my Muse $100 and a kalshi account, let's see how frontier this thing is

    @kevinroose

    X post

    Agents & automation

  3. 1046

    Medical bills audited line by line, $4,000 saved★

    Got Muse logged in to my medical provider’s portal, he pulled the itemized bills, and questioned every line. So far he’s found several times I’d been double billed, asked for some discounts and has saved me over $4,000. If your moat is bureaucracy, you’re cooked.

    @Ryan_Holdaway

    X post

    Errands & personal agent

  4. 1042

    GitHub connector for Muse★

    GitHub 🤝 @Muse A new way to connect your GitHub account to review PRs, catch up on issues and notifications, and leave comments without switching tabs.

    @github

    X post

    Connectors & MCP

Want more AI builds?artificialbuilds.com