№ 0831Skill
Muse subscription for OpenCode (serverless)
Installer that routes OpenCode's coder and reviewer agents at a Muse coding subscription, calling api.meta.ai directly with no local proxy, reusing the muse login key.
Muse subscription for OpenCode (serverless)
Route OpenCode's coder / reviewer agents at your Muse coding
subscription. OpenCode calls https://api.meta.ai/v1 directly from its own
process — no local server, proxy, or background task.
Already have your Muse Code authenticated? Otherwise it does not work.
Runmuse login(device-code OAuth) BEFORE installing. The installer
reuses that login's subscription key and refuses to continue without it.
Install
Windows:
powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1
macOS / Linux:
sh ./install.sh
What it does:
- Refuses unless
museis installed and~/.config/muse/auth.jsonholds a
subscription key. - Copies that key into OpenCode's
auth.jsonasmuse-sub(read from disk
on every launch — no env-var timing issues). - Merges a
muse-subprovider (muse-spark-1.3) pluscoder/reviewer
agent mappings intoopencode.jsonc(or.json), preserving comments.
A timestamped backup is kept next to the config; a failed merge restores
it automatically. Existing entries are never overwritten. - Verifies against the live Meta API.
Then restart OpenCode. Re-run the installer whenever Muse rotates the key.
Notes
- Spend is metered to the Muse subscription (the API streams
response.subscription_usageper call). - Reasoning effort is the API default; per-model effort selection is not
wired up. - Uninstall: delete the
muse-subblock from the provider section, the two
agent mappings, and themuse-subentry inauth.json.



