Add Meta Muse Spark via Muse Code subscription (bring-your-own-subscription, no Pro required)
Author: TheStreamCodeCreated Sep 30, 2026Updated Sep 30, 2026
Labelsfeature request
Summary
Add a "Muse Code subscription" entry to the model picker, next to the Claude Code and ChatGPT subscription entries. Users sign in with their Meta account through a device-code flow; usage is billed to their own Muse Code subscription, with no Dyad Pro involvement.
Motivation
Muse Code subscribers currently have no way to use their subscription inside Dyad. They must either pay per-token via another provider or enable Dyad Pro, even though Meta exposes an OpenAI-compatible endpoint for subscribers.
Proposal
- Model picker entry "Muse Code subscription" with Meta brand icon and Experimental badge.
- Sign-in via Meta device-code flow (RFC 8628) executed in the main process; minted key stored encrypted in
muse-code-subscription.enc(same pattern ascodex-subscription.enc). muse-codecloud provider (muse-spark-1.3) over an OpenAI-compatible client pointed at the Meta API; explicit settings key still takes precedence (manual BYOK keeps working).- Picker unlock bypass when the subscription is connected, mirroring the Claude Code / ChatGPT bypasses.
- No changes to Pro routing: with Pro credits enabled the standard engine path applies.
Tests included (service, hook, menu, picker, client). No dependency, schema, or migration changes.
Open questions for maintainers
- Is an unofficial Meta auth flow acceptable, given it can break without notice?
- With Pro credits enabled, requests would take the standard engine path with the
muse-code/prefix. How should that case behave — is gateway support conceivable, or do you prefer an explicit "not supported via Pro" message? - Is a separate
.enccredential file the preferred storage, or should the minted key live inproviderSettings?
Happy to reshape the implementation based on your feedback before opening a PR.
Source: dyad-sh/dyad