Repository navigation
Releases
v0.5.2
Documented
- Troubleshooting now names the versions that matter: 0.5.1 or newer is required because 0.5.0 skipped the adapter for a plain
metaAPI key, and opencode 2.2.4 or newer is required because 2.2.0 loads the plugin without invoking its V2 setup.
No code changes in this release.
v0.5.1
Fixed
- Inference routing no longer depends on the V2 Muse OAuth credential. Every
metarequest now goes through the loopback adapter, so an existingmetaAPI key keeps working after the update; the V2 OAuth token is still used to overrideAuthorizationwhen that sign-in is active. - The adapter hooks previously skipped requests when the active
metacredential was not the V2 Muse OAuth connection, which sent them straight toapi.meta.aiand left the client restriction in place.
Requirements
- opencode 2.2.4 or newer for inference through the adapter: 2.2.0 loads the plugin but does not invoke its V2 setup.
Update
opencode plugin updatev0.5.0
What changed
- Local loopback wire adapter for the V2 plugin API: it aliases the client tool names that collide with the 40-name Muse builtin catalog, restores them in streaming and JSON responses, and normalizes the Responses parameters.
- The adapter's
/v1origin becomes the per-request base URL; on routes that ignore that override the plugin rewrites the assembled request onto the same origin. - If Meta still refuses the request, the adapter retries once with every tool aliased.
ADAPTER_CONTRACT.mdv3 pins the rules;MUSE_CODE_ADAPTER=offkeeps the proxy but disables the reshaping.
Notes
- Working inference requires the V2 plugin API (opencode 2.x). The V1
server()export keeps authenticating but still receives Meta's 403.
Install
opencode plugin add opencode-muse-authv0.4.1: document Meta's client restriction
0.4.1
- Document that a successful sign-in does not guarantee model access.
- Explain the
client_attestation_denied/ Muse Code client-only 403, and why signing in again does not remove it. - Clarify the 401 guidance: a rejected request can be a rotated key or a client restriction.
v0.4.0: host credential store and safer login handling
0.4.0
- Prefer the OpenCode auth store in the V1 loader; keep the legacy cache as a fallback.
- Log sanitized login failures and surface V2 errors with a descriptive message.
- Use a realistic credential expiry.
- Document V1/V2 storage and removal; pin the shared auth contract.
v0.3.0: OpenCode V2 subscription auth
Registers the Muse Code subscription method through the OpenCode V2 setup() entrypoint (fixes #7, thanks @martonbtoth). Includes the root index.js entrypoint for local directory installs and the @opencode/plugin v2 runtime dependency.
v0.2.0 — opencode v2 plugin format
opencode v2 loads plugins from the module's default export, which must carry an id and the server plugin function; v1 named exports are no longer accepted and fail with PluginModule.LoadError on every startup.
- default export { id: "muse-code-auth", server, setup() }
- accepted by opencode 1.18.29+ and 2.x alike
- devDependency @opencode-ai/plugin ^1.19.0 (v2-aligned types)
v0.1.2
Security hardening: the credential cache no longer persists the Meta OAuth access token (apiKey/accountId/email only). Re-run /connect once to refresh pre-0.1.2 caches.
opencode-muse-auth v0.1.1
Release for tag v0.1.1. Routes Meta Muse Spark through the reader's Muse Code monthly subscription via device-code login (no API key; owner-only cached credential). See the repo README and SECURITY.md for setup and the 401 rotation story.