René's URL Explorer Experiment


Title: [feat] Consider using `muse serve` / `@muse-code/sdk` instead of extracting subscription credentials · Issue #12 · TheStreamCode/opencode-muse-auth · GitHub

Open Graph Title: [feat] Consider using `muse serve` / `@muse-code/sdk` instead of extracting subscription credentials · Issue #12 · TheStreamCode/opencode-muse-auth

X Title: [feat] Consider using `muse serve` / `@muse-code/sdk` instead of extracting subscription credentials · Issue #12 · TheStreamCode/opencode-muse-auth

Description: Summary The current authentication and inference flow in opencode-muse-auth appears to conflict with the Muse Code subscription terms. The plugin obtains a subscription-linked inference credential and uses it to make inference requests d...

Open Graph Description: Summary The current authentication and inference flow in opencode-muse-auth appears to conflict with the Muse Code subscription terms. The plugin obtains a subscription-linked inference credential ...

X Description: Summary The current authentication and inference flow in opencode-muse-auth appears to conflict with the Muse Code subscription terms. The plugin obtains a subscription-linked inference credential ...

Opengraph URL: https://github.com/TheStreamCode/opencode-muse-auth/issues/12

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[feat] Consider using `muse serve` / `@muse-code/sdk` instead of extracting subscription credentials","articleBody":"# Summary\n\nThe current authentication and inference flow in `opencode-muse-auth` appears to conflict with the Muse Code subscription terms. The plugin obtains a subscription-linked inference credential and uses it to make inference requests directly through OpenCode's `meta` provider, outside the Muse Code CLI's own agent execution path.\n\nCould we investigate replacing this approach with the official `muse serve` session interface, using [`@muse-code/sdk`](https://github.com/meta-models/muse-code-sdk)?\n\nThis would allow OpenCode to integrate with Muse Code while leaving subscription authentication and inference handling within the official CLI, rather than reusing its subscription credential in a different client.\n\nThe proposed approach is inspired by [Paseo's Muse Code integration](https://paseo.sh/docs/muse-code), which uses `muse serve` and the Muse Session Protocol (MSP).\n\n# Current implementation\n\nBased on the project's documentation and implementation, the current flow appears to be:\n\n1. The plugin completes Meta's device-code authentication flow.\n2. It obtains an account-bound inference key through the Meta Model API.\n3. It caches the key locally in `~/.config/opencode/muse-code-sub.json`.\n4. Its authentication loader injects the cached key into OpenCode's built-in `meta` provider.\n5. OpenCode then sends inference requests directly to Meta using that credential, outside the Muse Code CLI's own agent execution path.\n\nRelevant code is available in [`src/`](https://github.com/TheStreamCode/opencode-muse-auth/tree/main/src).\n\nThe concern is not whether the credential works technically or whether it is stored securely. The concern is whether a subscription-linked credential obtained through Muse Code authentication may be used by a different coding client to access the inference API directly.\n\n# Why this raises a subscription-terms concern\n\nMeta's official [Muse Code subscription documentation](https://dev.meta.ai/docs/muse-code/subscriptions) describes the subscription and its associated credentials.\n\nThe [Meta Model API Terms of Service, Section 3.2](https://dev.meta.ai/legal/terms-of-service#subscriptions-and-keys) restricts the subscription-linked key or credential to use with the coding harness under the applicable subscription and prohibits using it to access the services outside that harness or circumvent subscription limits or billing.\n\nThe current implementation appears inconsistent with that restriction because it extracts the subscription-linked credential and uses it directly from OpenCode's provider implementation.\n\nThis is a technical and contractual concern, not a legal determination. Meta may provide additional documentation or specific authorization for third-party integrations that changes this assessment. If such authorization exists, documenting it would help users understand the supported usage.\n\nIn the absence of that clarification, I think the current approach presents an avoidable compliance risk for users.\n\n# Proposed alternative: use `muse serve`\n\nMeta provides an official TypeScript SDK and session protocol for programmatically driving Muse Code:\n\n- Official SDK repository: `meta-models/muse-code-sdk` [https://github.com/meta-models/muse-code-sdk](https://github.com/meta-models/muse-code-sdk)\n- NPM package: `https://www.npmjs.com/package/@muse-code/sdk` [@muse-code/sdk](https://www.npmjs.com/package/@muse-code/sdk)\n- SDK quickstart: [https://github.com/meta-models/muse-code-sdk/blob/main/clients/sdk-quickstart/README.md](https://github.com/meta-models/muse-code-sdk/blob/main/clients/sdk-quickstart/README.md)\n\nThe SDK communicates with a `muse serve` process over the Muse Session Protocol (MSP). This provides a potential integration boundary in which the Muse Code CLI remains responsible for its own authentication and model interactions.\n\nA possible implementation would be:\n\n1. OpenCode launches or connects to a local `muse serve` process for the user's workspace.\n2. The plugin communicates with the process using `@muse-code/sdk` and MSP.\n3. OpenCode sessions and turns are mapped to the corresponding Muse sessions and turns.\n4. The Muse Code process handles inference using its own authenticated session.\n5. The plugin streams responses and events back into OpenCode and handles cancellation, session state and tool approvals according to the supported protocol.\n\nThis approach would avoid extracting, caching or injecting the subscription-linked inference key into OpenCode.\n\n**Important:** the availability of an official SDK and session protocol does not, by itself, establish that third-party clients are authorized to use a Muse Code subscription. The proposed integration should be checked against the current terms or explicitly confirmed with Meta before being presented as a compliant solution.\n\n# Reference implementation: Paseo\n\n[Paseo's Muse Code integration](https://paseo.sh/docs/muse-code) provides a useful technical reference for this architecture.\n\nPaseo's documentation describes launching `muse serve` and communicating with it over MSP. Its integration uses the official [`@muse-code/sdk`](https://github.com/meta-models/muse-code-sdk).\n\nRelevant references:\n\n- [Paseo Muse Code integration documentation](https://paseo.sh/docs/muse-code)\n- [Paseo source repository](https://github.com/getpaseo/paseo)\n- [Official Muse Code SDK](https://github.com/meta-models/muse-code-sdk)\n\nPaseo is not a drop-in replacement for this OpenCode plugin, but it demonstrates an alternative integration pattern worth investigating.\n\nI am citing Paseo as a technical reference, not as proof that its usage or any other third-party integration is contractually authorized. That question should still be confirmed against Meta's applicable terms or directly with Meta.\n\n# Questions\n\n1. Is the current credential-extraction and direct-inference approach explicitly authorized by Meta for use with a Muse Code subscription?\n2. If not, would you consider implementing the integration through `muse serve` and `@muse-code/sdk`, after confirming that this third-party client use is permitted?\n3. Are there any limitations in the current MSP protocol that would prevent OpenCode from supporting the required interactive coding-agent workflow?\n4. If this integration is not supported, could the README document the relevant limitation and direct users to an officially supported integration path?\n\n# Acceptance criteria\n\n- [ ] The authentication and inference flow is documented, including the applicable subscription authorization.\n- [ ] If the current approach is not explicitly authorized, the plugin no longer extracts or injects subscription-linked inference credentials into OpenCode.\n- [ ] An alternative based on the documented Muse Code session interface is investigated, subject to confirmation that the intended use is permitted.\n- [ ] Session lifecycle, streaming, cancellation and tool-approval behavior are tested or documented as limitations.\n- [ ] Users receive accurate information about the authentication path and the subscription terms relevant to it.\n\nThanks for maintaining this project. The goal is to preserve the useful OpenCode integration while reducing the risk that users rely on a technically functional but unsupported subscription-authentication path.","author":{"url":"https://github.com/pgarciaq","@type":"Person","name":"pgarciaq"},"datePublished":"2026-10-20T12:17:34Z","url":"https://github.com/TheStreamCode/opencode-muse-auth/issues/12"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:59a10f76-bfad-0b4d-9fa8-446d835d56c1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDF3A:3DAD59:762BF3:9923C7:6AFFCEEC
html-safe-nonceae02cebab10237e2c33c78d85dff43433e0036509d29933bc1037727ac40fd88
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjNBOjNEQUQ1OTo3NjJCRjM6OTkyM0M3OjZBRkZDRUVDIiwidmlzaXRvcl9pZCI6IjgyNzU5NDkzNTYwNTg2NjA1ODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd4b31234a2e72252154d9efe129e574626982dca105f4a2a75c40adcc914335c
hovercard-subject-tagissue:5941477405
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/TheStreamCode/opencode-muse-auth/12/issue_layout
twitter:imagehttps://opengraph.githubassets.com/709757eaa64090a6ba3f7c599b9a5459e4a2ba6de64bb2f6f0d3177698813301/TheStreamCode/opencode-muse-auth/issues/12
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/709757eaa64090a6ba3f7c599b9a5459e4a2ba6de64bb2f6f0d3177698813301/TheStreamCode/opencode-muse-auth/issues/12
og:image:altSummary The current authentication and inference flow in opencode-muse-auth appears to conflict with the Muse Code subscription terms. The plugin obtains a subscription-linked inference credential ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepgarciaq
hostnamegithub.com
expected-hostnamegithub.com
None0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729
turbo-cache-controlno-preview
go-importgithub.com/TheStreamCode/opencode-muse-auth git https://github.com/TheStreamCode/opencode-muse-auth.git
octolytics-dimension-user_id163041857
octolytics-dimension-user_loginTheStreamCode
octolytics-dimension-repository_id1373560427
octolytics-dimension-repository_nwoTheStreamCode/opencode-muse-auth
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1373560427
octolytics-dimension-repository_network_root_nwoTheStreamCode/opencode-muse-auth
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release16a11879678aaf97e2a42c33ee70830aa084fa37
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/TheStreamCode/opencode-muse-auth/issues/12#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheStreamCode%2Fopencode-muse-auth%2Fissues%2F12
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheStreamCode%2Fopencode-muse-auth%2Fissues%2F12
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=TheStreamCode%2Fopencode-muse-auth
Reloadhttps://github.com/TheStreamCode/opencode-muse-auth/issues/12
Reloadhttps://github.com/TheStreamCode/opencode-muse-auth/issues/12
Reloadhttps://github.com/TheStreamCode/opencode-muse-auth/issues/12
TheStreamCodehttps://github.com/TheStreamCode
opencode-muse-authhttps://github.com/TheStreamCode/opencode-muse-auth
Codehttps://github.com/TheStreamCode/opencode-muse-auth
Issueshttps://github.com/TheStreamCode/opencode-muse-auth/issues
Pull requests1 (1)https://github.com/TheStreamCode/opencode-muse-auth/pulls
Discussionshttps://github.com/TheStreamCode/opencode-muse-auth/discussions
Actionshttps://github.com/TheStreamCode/opencode-muse-auth/actions
Security and qualityhttps://github.com/TheStreamCode/opencode-muse-auth/security
Insightshttps://github.com/TheStreamCode/opencode-muse-auth/pulse
https://github.com/TheStreamCode/opencode-muse-auth
New issuehttps://github.com/login?return_to=https://github.com/TheStreamCode/opencode-muse-auth/issues/12
New issuehttps://github.com/login?return_to=https://github.com/TheStreamCode/opencode-muse-auth/issues/12
[feat] Consider using muse serve / @muse-code/sdk instead of extracting subscription credentialshttps://github.com/TheStreamCode/opencode-muse-auth/issues/12#top
enhancementNew feature or requesthttps://github.com/TheStreamCode/opencode-muse-auth/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/pgarciaq
pgarciaqhttps://github.com/pgarciaq
on Oct 20, 2026https://github.com/TheStreamCode/opencode-muse-auth/issues/12#issue-5941477405
@muse-code/sdkhttps://github.com/meta-models/muse-code-sdk
Paseo's Muse Code integrationhttps://paseo.sh/docs/muse-code
src/https://github.com/TheStreamCode/opencode-muse-auth/tree/main/src
Muse Code subscription documentationhttps://dev.meta.ai/docs/muse-code/subscriptions
Meta Model API Terms of Service, Section 3.2https://dev.meta.ai/legal/terms-of-service#subscriptions-and-keys
https://github.com/meta-models/muse-code-sdkhttps://github.com/meta-models/muse-code-sdk
@muse-code/sdkhttps://www.npmjs.com/package/@muse-code/sdk
https://github.com/meta-models/muse-code-sdk/blob/main/clients/sdk-quickstart/README.mdhttps://github.com/meta-models/muse-code-sdk/blob/main/clients/sdk-quickstart/README.md
Paseo's Muse Code integrationhttps://paseo.sh/docs/muse-code
@muse-code/sdkhttps://github.com/meta-models/muse-code-sdk
Paseo Muse Code integration documentationhttps://paseo.sh/docs/muse-code
Paseo source repositoryhttps://github.com/getpaseo/paseo
Official Muse Code SDKhttps://github.com/meta-models/muse-code-sdk
pgarciaqhttps://github.com/pgarciaq
enhancementNew feature or requesthttps://github.com/TheStreamCode/opencode-muse-auth/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Oct 20, 2026https://github.com/TheStreamCode/opencode-muse-auth/issues/12#event-33740036735
https://github.com/pgarciaq
pgarciaqhttps://github.com/pgarciaq
on Oct 20, 2026https://github.com/TheStreamCode/opencode-muse-auth/issues/12#issuecomment-6295004879
pgarciaqhttps://github.com/pgarciaq
completedhttps://github.com/TheStreamCode/opencode-muse-auth/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 20, 2026https://github.com/TheStreamCode/opencode-muse-auth/issues/12#event-33758984073
TheStreamCodehttps://github.com/TheStreamCode
on Oct 30, 2026https://github.com/TheStreamCode/opencode-muse-auth/issues/12#event-34724325985
TheStreamCodehttps://github.com/TheStreamCode
not plannedhttps://github.com/TheStreamCode/opencode-muse-auth/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Oct 30, 2026https://github.com/TheStreamCode/opencode-muse-auth/issues/12#event-34724447967
https://github.com/TheStreamCode
TheStreamCodehttps://github.com/TheStreamCode
on Oct 30, 2026https://github.com/TheStreamCode/opencode-muse-auth/issues/12#issuecomment-6531545415
muse-code: support Muse Code subscriptions via the official muse serve host (MSP / @muse-code/sdk) can1357/oh-my-pi#17444https://github.com/can1357/oh-my-pi/issues/17444
https://github.com/pgarciaq
pgarciaqhttps://github.com/pgarciaq
on Oct 30, 2026https://github.com/TheStreamCode/opencode-muse-auth/issues/12#issuecomment-6532212552
https://github.com/pgquiles/opencode-musehttps://github.com/pgquiles/opencode-muse
Sign up for freehttps://github.com/signup?return_to=https://github.com/TheStreamCode/opencode-muse-auth/issues/12
Sign in to commenthttps://github.com/login?return_to=https://github.com/TheStreamCode/opencode-muse-auth/issues/12
enhancementNew feature or requesthttps://github.com/TheStreamCode/opencode-muse-auth/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.