Hoshino-Yumetsuki/dsh-onebot ↗★ 3

dsh-onebot

OneBot v11 HTTP and WebSocket adapter for DeepSeek Harness 适合需要将对话系统接入OneBot协议生态进行消息收发的开发者。

패키지
dsh-onebot
호환성
미검증
Harness peer 범위
^0.1.0-rc.6
Cordis peer 범위
^4.0.1
버전
1.3.0
라이선스
MPL-2.0
최근 업데이트
2026. 8. 29.

같은 패키지 이름의 다른 저장소

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Hoshino-Yumetsuki/dsh-onebot

配置

字段默认值说明
transportforward-wsforward-ws、reverse-ws 或 http
urlws://127.0.0.1:3001正向 WS 地址或 HTTP API base URL
listenHost127.0.0.1反向 WS / webhook 监听地址
listenPort3002监听端口
listenPath/onebot监听路径
accessTokenRefONEBOT_ACCESS_TOKEN访问令牌的 DSH credential ref
webhookSecretRefONEBOT_WEBHOOK_SECRETwebhook secret 的 DSH credential ref
reconnectInterval5000重连间隔(毫秒)
requestTimeout30000action 请求超时(毫秒)
heartbeatTimeout120000心跳超时(毫秒),0 禁用
commandPrefix空非空时要求此前缀,并从 prompt 移除
respondToPrivatetrue响应私聊
respondToGrouptrue响应群聊
groupMentionOnlytrue群聊要求提及机器人
userAccessModedisableddisabled、allowlist、blocklist
userIds[]用户 ID 列表
groupAccessModedisableddisabled、allowlist、blocklist
groupIds[]群 ID 列表

数组在设置 UI 中每行一个 ID,保存时去空白并且去重。token/secret 存入 DSH credentials,配置只保存引用名称。

- id: onebot
  name: dsh-onebot
  config:
    transport: forward-ws
    url: ws://127.0.0.1:3001
    listenHost: 127.0.0.1
    listenPort: 3002
    listenPath: /onebot
    accessTokenRef: ONEBOT_ACCESS_TOKEN
    webhookSecretRef: ONEBOT_WEBHOOK_SECRET
    reconnectInterval: 5000
    requestTimeout: 30000
    heartbeatTimeout: 120000
    commandPrefix: ''
    respondToPrivate: true
    respondToGroup: true
    groupMentionOnly: true
    userAccessMode: disabled
    userIds: []
    groupAccessMode: disabled
    groupIds: []