dsh-muse-code

DSH PLUGIN模型与账号接入

仓库 TheStreamCode/dsh-muse-code

模型与账号接入 L4 · 沙盒安装通过 安全审查:低风险 可信度:银 可安装插件
安装这个插件

dsh-muse-code 是 TheStreamCode 维护的 模型与账号接入 类 DSH 可安装插件, 仓库为 TheStreamCode/dsh-muse-code,许可证 MIT。 下面按「装什么、怎么装、验没验过、跑起来要注意什么」逐项列出。

一句话选型结论

按资料字段整理

dsh-muse-code 是模型与账号接入类的 DSH 可安装插件,验证等级 L4 · 沙盒安装通过,安全审查为低风险,有可直接复制的安装命令。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类模型与账号接入 收录类型可安装插件 验证等级L4 · 沙盒安装通过 安全审查低风险
验证等级 L4 L4 · 沙盒安装通过
GitHub 星标 0 复刻 0 · 未关闭 issue 1
最近更新 2026-10-26 创建于 2026-10-21
README 15.6 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add @thestreamcode/dsh-muse-code
  1. 1
    确认版本与运行环境

    仓库没有标注兼容版本与 Node.js 要求,先确认你的 DSH 版本能装,再继续。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本未标注版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名未发布到 npm可用 npm view 查看包信息

能做什么

模型与账号接入
字段来自项目仓库与公开索引,中文说明由本站标注

上游标签

ai-agentdeepseekdeepseek-harnessdevice-codedshdsh-pluginmikesoftmuse-codetypescript

验证等级与安全审查

L4 · 沙盒安装通过
自动化流程结论,不是人工审核
验证等级L4 · 沙盒安装通过安装命令在隔离沙盒内真实执行成功,无依赖错误
安全审查低风险静态分析结论,未标注不代表已通过审查
仓库健康度活跃按仓库活跃度与最近更新时间给出
可信度银综合仓库活跃度与验证结果

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 验证等级 L4:在沙盒里真实装过,依赖能装上,不是纸面声明。
  • 静态安全审查为低风险,没有发现明显可疑行为。
  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有声明 Node.js 版本要求,版本不匹配可能装不上。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在模型与账号接入场景里给 DSH 补能力的人。
  • 想装完就能用、不想自己排依赖的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-muse-code当前 L4 · 沙盒安装通过 低风险 0 未标注 有
archify L4 · 沙盒安装通过 低风险 8.0 万 未标注 有
DeepSeek-Reasonix L4 · 沙盒安装通过 低风险 3.6 万 未标注 有
nocobase L3 · 安装规范通过 低风险 2.5 万 0.1.1-rc.2 无
learn-harness-engineering L4 · 沙盒安装通过 低风险 2.0 万 未标注 有
dsh-our-free-model 未做沙盒验证 未标注 8,064 未标注 无

仓库档案

模型与账号接入
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方TheStreamCode仓库 dsh-muse-code · 默认分支 main
分类模型与账号接入ai
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言未标注仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue0 / 0 / 1收录时的数值,非实时
创建 / 更新2026-10-21 · 2026-10-26最后推送 2026-10-26
本站收录2026-10-30首次进入本站目录的时间

README 全文

15.6 KB
作者原文,中文版优先;只做安全转义,不改内容

dsh-muse-code

Muse Code (Meta subscription) integration for DeepSeek Harness



DeepSeek Harness (DSH) already ships Meta's Muse Code subscription as the pi-ai meta
provider (https://api.meta.ai/v1, OpenAI Responses) together with its device-code sign-in
flow (llm-pi-ai/meta). This bundle connects that provider to the surfaces a user works in:
it declares the route so the provider appears under Settings → Models and in the model
picker, and it adds the /muse-login command that runs the shipped sign-in. No key is copied
by hand and no provider code is duplicated.

> Unofficial and experimental. This plugin uses a Muse Code subscription credential from
> DeepSeek Harness. Meta's terms limit that credential to Muse Code, so this use may not be
> supported and Meta may suspend or revoke accounts or credentials. Use it at your own risk;
> the authors cannot recover an account. Read DISCLAIMER.md before installing.

Install

From the npm registry:

dsh plugin --profile desktop add @thestreamcode/dsh-muse-code

From the public GitHub repository:

dsh plugin --profile desktop add github:TheStreamCode/dsh-muse-code

From a local checkout:

dsh plugin --profile desktop add link:C:\path\to\dsh-muse-code

The bundle inserts one integration row through cordis.patch.yml; no manual profile edit is
required. On the first boot it declares the meta provider route in the llm-pi-ai settings
section — the same write the Models page performs when a provider is added by hand — and adds the
Sign in control and the /muse-login command. Restart DSH after installing or upgrading the
bundle.

Quick start

  1. Install the bundle and restart DSH.
  2. Open Settings → Models: the Muse Code (Meta subscription) card shows the subscription
    status and the models the account catalog serves — Muse Spark 1.1/1.2/1.3 (+ -contributor)
    and the Muse Wonder family, plus any future chat model the account lists.
  3. Press Sign in on that card. The Host starts DSH's Meta device-code flow, opens the
    verification page in your default browser, and shows the code. The card follows the attempt
    and switches to Signed in when Meta confirms. Without the page (CLI, or a page that cannot
    reach the Host), run /muse-login in a chat instead.
  4. Confirm the code on Meta's page and approve. DSH stores the credential and keeps it fresh;
    /muse-login answers with the final state ("Muse Code is signed in") once Meta confirms.
  5. Pick a Muse model in the model picker, for example Muse Spark 1.3.

The credential lives in the DSH credential store as the llm-pi-ai/meta record. It is never
written to cordis.patch.yml, which carries only the route's display name and its model list.

Where the sign-in lives

DSH 0.2.1 exposes no generic Remote method for starting a provider OAuth flow, so the Settings
page cannot call the authorization seam directly. The bundle therefore registers exact local Web
routes on the Host's own HTTP server:

  • POST /muse-code/login starts the sign-in and answers with the code and the Meta URL;
  • GET /muse-code/status reports pending, authorized, failed, or idle, which is what lets
    the card flip to Signed in without a reload.

The /muse-login command runs the same flow and waits for Meta's confirmation before answering,
so the chat shows the final state instead of leaving the prompt waiting. A page whose origin
cannot reach the Host falls back to that command.

Features

  • Declares the shipped meta provider route in the llm-pi-ai settings section, labeled
    Muse Code (Meta subscription), so Settings → Models and the model picker show it. An
    existing meta profile without a model list is left untouched apart from that list.
  • Syncs the account's live chat catalog (GET https://api.meta.ai/v1/models, authenticated with
    the stored subscription key) into the route, so the Muse Wonder family and future chat models
    are selectable without waiting for a DSH catalog update. Non-chat families (muse-image-*,
    muse-voice-*, sam-*) are filtered out; the five Muse Spark rows keep the shipped catalog's
    names, context window, output cap, and reasoning levels. A model list you edited yourself is
    never overwritten.
  • Adds a Sign in card under Settings → Models with the live status, the device code, and a
    direct Meta page link, backed by the routes above, plus the /muse-login chat command. Both
    start DSH's own device-code flow (llm-pi-ai/meta) and open the verification page in the
    default browser.
  • Paints the native credential dot on the Muse Code (Meta subscription) row: the route names
    apiKeyEnv: MUSE_CODE_SUB_TOKEN, and the plugin mirrors the OAuth record's minted key into that
    reference (red without a credential, green with one) and re-mints it before Meta's ~24 h expiry.
  • Leaves credential handling to DSH: the shipped flow stores the sign-in as an OAuth credential
    record and the plugin keeps the route's credential-reference copy fresh, so the route keeps
    working after the key rotates.

Requirements

  • DeepSeek Harness 0.2.1-rc.3 (verified) or newer, with the pi-ai meta provider. A DSH build
    without it cannot serve the subscription.
  • Node.js 20 or newer on the DSH host; CI runs Node.js 20, 22, and 24.
  • A Meta account with an active Muse Code subscription.
  • No separate service, CLI, or key file.

Configuration

Setting Purpose Default
meta provider route Declared by the bundle in the llm-pi-ai settings section; shown under Settings → Models and in the model picker. declared on first boot
Sign in card Starts the shipped Meta device-code flow, opens the browser, shows the code, and follows the live status until Signed in. Backed by POST /muse-code/login and GET /muse-code/status on the local Host. available after install
/muse-login The same sign-in from a chat or CLI surface; waits for Meta's confirmation and reports the final state. available after install
Live model catalog Chat models the account serves (GET /v1/models), written into the declared route when it has no model list of its own. synced after sign-in
META_API_KEY Optional Meta Model API key that DSH's Meta provider accepts instead of the subscription sign-in. unset
Model Any model the route serves; availability depends on the subscription plan. muse-spark-1.3

The MUSE_CODE_SUB_TOKEN reference from the 0.1.x releases is no longer used by this bundle;
see the upgrade note under Troubleshooting.

Privacy and security

  • The bundle talks to one endpoint: GET https://api.meta.ai/v1/models, authenticated with the
    stored subscription key, to sync the account's chat catalog into the route. It stores no
    secret, and the sign-in, the credential record, and the inference requests belong to DSH:
    requests go to https://api.meta.ai/v1, and the verification page is opened on
    https://auth.meta.com.
  • The local POST /muse-code/login, GET /muse-code/login, and GET /muse-code/status routes
    only start the flow and report its state; they transmit no credential and are reachable only
    on the Host's own loopback listener.
  • The stored credential is the llm-pi-ai/meta record in the DSH credential store; the
    MUSE_CODE_SUB_TOKEN reference the row reads is a copy of its minted key and is refreshed by
    the plugin. Neither ever appears in configuration or logs.
  • To remove access, remove the bundle, remove the declared provider from Settings → Models
    (or from the profile's cordis.patch.yml), and delete the llm-pi-ai/meta record while DSH
    is stopped (the file is $DSH_HOME/.credentials.yaml), or run the sign-in again to replace
    it. Removing the bundle alone stops the route but leaves the record and the declaration in
    place.

See SECURITY.md for vulnerability reporting and
AUTH_CONTRACT.md for the pinned login contract that DSH implements.

Prompt caching

The Meta Model API caches the request prefix per prompt_cache_key, and a request without that
key gets no reuse at all. DSH's pi-ai adapter sends the session id as the key for every call, so
turns in the same session reuse the prefix Meta already saw. Measured against the live API with
an identical 1.6k-token prefix: same key → 1521 of 1600 tokens cached on the second call;
different key or no key → 0. After a 12-minute pause the same-key entries still reported 2673 of
2800 cached tokens, with or without prompt_cache_retention, and a fresh key still reported 0 —
so the default retention is enough for normal turn pacing and there is no retention knob to tune.

The ratio you see in the usage panel therefore depends on how the session is used:

  • the cache is per key and per model — switching model or route starts a fresh prefix;
  • a short session, or turns spaced far apart, shows a low ratio, because the first call of every
    cache window pays full price;
  • editing the system prompt or compacting the history invalidates the prefix once.

The plugin does not change the request shape, so this behaves like any other pi-ai route in the
same harness (for example opencode-go). DeepSeek's first-party routes report their own cache
counters and are not directly comparable.

Troubleshooting

Nothing named Muse Code appears under Settings → Models

The bundle was not loaded by the active profile, or the profile lacks the llm-pi-ai adapter.
Re-run the install command for the same profile, restart DSH, and check the startup output for
did not activate warnings. A DSH build without the pi-ai Meta provider cannot serve the
subscription; update DSH.

/muse-login is not offered in the composer

The command needs the DSH command and authorization services, which UI-less compositions do not
mount, or the bundle is inactive. Restart DSH after installing; in a headless profile the
command surface does not exist by design.

The sign-in reports that no Meta sign-in flow is registered

This DSH build does not ship the Meta provider. Update to DeepSeek Harness 0.2.1-rc.3 or newer,
restart, and retry.

The Sign in control reports that it cannot reach the Host

The Settings page's origin cannot reach the local Web route — some Desktop and non-loopback
deployments carry HTTP through a bridge. Use /muse-login in a chat instead; it starts the same
flow.

The browser did not open

The Host opens it best-effort through the platform's URI handler. The card and the command show
the code and the sign-in page link, so open the page manually and enter the code.

The Muse Code card stays on "Waiting for Meta…"

Meta has not confirmed the code yet, or the page could not reach the Host's status route. Approve
the code on Meta's page; if the card never changes, use /muse-login in a chat, which waits for
the confirmation itself.

Muse Wonder (or another catalog model) is missing

The live catalog sync only fills a route that has no model list of its own. If you edited the
provider's models under Settings → Models → Edit, remove that list (or reset it) and restart
DSH so the sync can refill it from the account catalog. The sync also needs the stored credential:
sign in again first if the card is not Signed in.

Meta denies the login, or the subscription is inactive

The account has no active Muse Code subscription, the code expired, or the approval was
declined. Start the sign-in again (Sign in control or /muse-login) and approve the new code
before it expires.

Requests fail with 401 after a while

DSH re-mints the inference key from the stored session. When Meta ends that session, run the
sign-in again (Sign in control or /muse-login) to sign in and replace the record.

The credential dot stays red after signing in

The route's credential reference is a copy of the record's minted key; the plugin mirrors it on
boot and on every record update. If the dot stays red while the card says Signed in, restart
DSH and check that the llm-pi-ai/meta record still exists in the credential store.

Requests fail after about a day without the plugin running

The route authenticates through the mirrored reference, and the plugin re-mints the key before
its ~24 h expiry. If DSH ran with the plugin disabled long enough for the key to lapse, sign in
again (Sign in card or /muse-login).

Edit and Delete on the Muse Code row

Both are DSH's generic provider-row actions and a plugin cannot hide them.

  • Edit writes the route profile into your profile patch: display name, models, and the
    apiKeyEnv reference. The plugin restores the reference on the next boot and refills an
    emptied model list from the account catalog.
  • Delete removes the user-layer route and the plugin treats that removal as a sign-out: it
    deletes the llm-pi-ai/meta OAuth record and clears the mirrored MUSE_CODE_SUB_TOKEN
    reference. The provider leaves Settings → Models and the picker, and a hand-edited model list
    is lost; the plugin re-declares the row on its next refresh (and on restart) with a red dot, so
    sign in again to keep using Muse Code.
  • To remove Muse Code for good, uninstall the bundle and delete the credential record; the
    supported off switch is the plugin itself:
dsh plugin --profile desktop remove @thestreamcode/dsh-muse-code

Upgrading from 0.1.x

0.1.x inserted a second @deepseek-ai/dsh-llm-pi-ai instance, which DSH refuses to activate
(each instance declares the whole provider catalog), so its route never appeared and its
device-code flow had no surface. Reinstall the bundle and restart DSH: the new version declares
the shipped meta route instead. The stale MUSE_CODE_SUB_TOKEN credential and its
dsh-muse-code/subscription record can be deleted from the DSH credential store; nothing reads
them any more.

Development

Requirements: Node.js 20 or newer and npm.

git clone https://github.com/TheStreamCode/dsh-muse-code.git
cd dsh-muse-code
npm install
npm run typecheck
npm test

npm test builds lib/ and runs the node:test suite. lib/ is committed because DSH bundle
installs from Git may not run a build; regenerate it with npm run build after any source
change. The Client half is client/client.js, a hand-written browser classic script kept outside
the TypeScript output on purpose: DSH concatenates client artifacts into plain script bundles, so
an export/import statement there breaks the Web boot. The suite parses that file with classic
script grammar and registers its Models footer contribution. The offline tests cover the sign-in
command, the route declaration, the Client half, and the plugin manifest; no Meta account is
needed.

Support

Usage questions and workflows belong to GitHub Discussions; reproducible defects belong to
GitHub Issues using the bug report form. See SUPPORT.md. The plugin cannot obtain,
restore, or protect a Meta account, subscription, or credential.

Contributing

See CONTRIBUTING.md. Pull requests must pass the required CI checks.

License

MIT — see LICENSE. The software is provided "as is"; see
DISCLAIMER.md for the risk notice and liability terms.


Maintained by Michael Gasperini (Mikesoft).
If this project is useful to you, consider
sponsoring its maintenance.

常见问题

6 问
答案由本站依据条目字段整理,不引用上游原文
dsh-muse-code 怎么安装?

在 DSH 里执行 `dsh plugin --profile web add @thestreamcode/dsh-muse-code` 即可。

dsh-muse-code 的验证等级是什么意思?

L4 · 沙盒安装通过。安装命令在隔离沙盒内真实执行成功,无依赖错误

dsh-muse-code 安全吗?

低风险。

dsh-muse-code 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-muse-code 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

同名或近似条目

2 条
不同作者的仓库分开列,请确认你要装的是哪一个
模型与账号接入
按星标排序,可作替代方案

archify

archify

从仓库或系统描述生成经过校验的自包含交互式架构图、流程图、时序图、数据流图和生命周期图。

L4 · 沙盒安装通过 8.0 万 星

nocobase

nocobase

L3 · 安装规范通过 2.5 万 星

dsh-our-free-model

dsh-our-free-model

为 DeepSeek Harness 挂载免登录、免 API Key 的免费前沿模型通道,装完即用,并附用量看板与 OpenAI 兼容本地转

未标注验证等级 8,064 星

dsh-purge

dsh-purge

dsh-purge 是一款 DeepSeek Harness 设置插件,可修改默认副本、权限策略和工具限制,并添加规则卡片以分组应用补丁,支

L5 · 运行验证通过 4,573 星

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 —。