nodmix 2026.5.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (827) hide show
  1. package/CHANGELOG.md +11573 -0
  2. package/LICENSE +21 -0
  3. package/README.md +486 -0
  4. package/docs/.i18n/README.md +81 -0
  5. package/docs/.i18n/ar-navigation.json +18 -0
  6. package/docs/.i18n/de-navigation.json +18 -0
  7. package/docs/.i18n/es-navigation.json +18 -0
  8. package/docs/.i18n/fr-navigation.json +18 -0
  9. package/docs/.i18n/glossary.ar.json +78 -0
  10. package/docs/.i18n/glossary.de.json +78 -0
  11. package/docs/.i18n/glossary.es.json +78 -0
  12. package/docs/.i18n/glossary.fa.json +78 -0
  13. package/docs/.i18n/glossary.fr.json +78 -0
  14. package/docs/.i18n/glossary.id.json +78 -0
  15. package/docs/.i18n/glossary.it.json +78 -0
  16. package/docs/.i18n/glossary.ja-JP.json +98 -0
  17. package/docs/.i18n/glossary.ko.json +78 -0
  18. package/docs/.i18n/glossary.nl.json +78 -0
  19. package/docs/.i18n/glossary.pl.json +78 -0
  20. package/docs/.i18n/glossary.pt-BR.json +78 -0
  21. package/docs/.i18n/glossary.th.json +78 -0
  22. package/docs/.i18n/glossary.tr.json +78 -0
  23. package/docs/.i18n/glossary.uk.json +78 -0
  24. package/docs/.i18n/glossary.vi.json +78 -0
  25. package/docs/.i18n/glossary.zh-CN.json +1002 -0
  26. package/docs/.i18n/glossary.zh-TW.json +78 -0
  27. package/docs/.i18n/id-navigation.json +18 -0
  28. package/docs/.i18n/it-navigation.json +18 -0
  29. package/docs/.i18n/ja-navigation.json +18 -0
  30. package/docs/.i18n/ko-navigation.json +18 -0
  31. package/docs/.i18n/pl-navigation.json +18 -0
  32. package/docs/.i18n/pt-BR-navigation.json +18 -0
  33. package/docs/.i18n/tr-navigation.json +18 -0
  34. package/docs/.i18n/translation-workflow.md +111 -0
  35. package/docs/.i18n/zh-Hans-navigation.json +542 -0
  36. package/docs/AGENTS.md +36 -0
  37. package/docs/announcements/bluebubbles-imessage.md +79 -0
  38. package/docs/assets/install-script.svg +1 -0
  39. package/docs/assets/macos-onboarding/01-macos-warning.jpeg +0 -0
  40. package/docs/assets/macos-onboarding/02-local-networks.jpeg +0 -0
  41. package/docs/assets/macos-onboarding/03-security-notice.png +0 -0
  42. package/docs/assets/macos-onboarding/04-choose-gateway.png +0 -0
  43. package/docs/assets/macos-onboarding/05-permissions.png +0 -0
  44. package/docs/assets/openclaw-logo-text-dark.png +0 -0
  45. package/docs/assets/openclaw-logo-text-dark.svg +418 -0
  46. package/docs/assets/openclaw-logo-text.png +0 -0
  47. package/docs/assets/openclaw-logo-text.svg +418 -0
  48. package/docs/assets/pixel-lobster.svg +60 -0
  49. package/docs/assets/pr/quick-settings-browser-tools.png +0 -0
  50. package/docs/assets/showcase/agents-ui.jpg +0 -0
  51. package/docs/assets/showcase/bambu-cli.png +0 -0
  52. package/docs/assets/showcase/codexmonitor.png +0 -0
  53. package/docs/assets/showcase/gohome-grafana.png +0 -0
  54. package/docs/assets/showcase/ios-testflight.jpg +0 -0
  55. package/docs/assets/showcase/oura-health.png +0 -0
  56. package/docs/assets/showcase/padel-cli.svg +11 -0
  57. package/docs/assets/showcase/padel-screenshot.jpg +0 -0
  58. package/docs/assets/showcase/papla-tts.jpg +0 -0
  59. package/docs/assets/showcase/pr-review-telegram.jpg +0 -0
  60. package/docs/assets/showcase/roborock-screenshot.jpg +0 -0
  61. package/docs/assets/showcase/roborock-status.svg +13 -0
  62. package/docs/assets/showcase/roof-camera-sky.jpg +0 -0
  63. package/docs/assets/showcase/snag.png +0 -0
  64. package/docs/assets/showcase/tesco-shop.jpg +0 -0
  65. package/docs/assets/showcase/wienerlinien.png +0 -0
  66. package/docs/assets/showcase/wine-cellar-skill.jpg +0 -0
  67. package/docs/assets/showcase/winix-air-purifier.jpg +0 -0
  68. package/docs/assets/showcase/xuezh-pronunciation.jpeg +0 -0
  69. package/docs/assets/sponsors/blacksmith-light.svg +14 -0
  70. package/docs/assets/sponsors/blacksmith.svg +14 -0
  71. package/docs/assets/sponsors/convex-light.svg +16 -0
  72. package/docs/assets/sponsors/convex.svg +16 -0
  73. package/docs/assets/sponsors/github-light.svg +3 -0
  74. package/docs/assets/sponsors/github.svg +3 -0
  75. package/docs/assets/sponsors/nvidia-dark.svg +9 -0
  76. package/docs/assets/sponsors/nvidia.svg +9 -0
  77. package/docs/assets/sponsors/openai-light.svg +3 -0
  78. package/docs/assets/sponsors/openai.svg +3 -0
  79. package/docs/assets/sponsors/vercel-light.svg +5 -0
  80. package/docs/assets/sponsors/vercel.svg +5 -0
  81. package/docs/auth-credential-semantics.md +124 -0
  82. package/docs/automation/auth-monitoring.md +11 -0
  83. package/docs/automation/clawflow.md +12 -0
  84. package/docs/automation/cron-jobs.md +500 -0
  85. package/docs/automation/cron-vs-heartbeat.md +11 -0
  86. package/docs/automation/gmail-pubsub.md +11 -0
  87. package/docs/automation/hooks.md +365 -0
  88. package/docs/automation/index.md +135 -0
  89. package/docs/automation/poll.md +12 -0
  90. package/docs/automation/standing-orders.md +250 -0
  91. package/docs/automation/taskflow.md +155 -0
  92. package/docs/automation/tasks.md +374 -0
  93. package/docs/automation/troubleshooting.md +12 -0
  94. package/docs/automation/webhook.md +12 -0
  95. package/docs/brave-search.md +11 -0
  96. package/docs/channels/access-groups.md +201 -0
  97. package/docs/channels/ambient-room-events.md +214 -0
  98. package/docs/channels/bot-loop-protection.md +131 -0
  99. package/docs/channels/broadcast-groups.md +472 -0
  100. package/docs/channels/channel-routing.md +162 -0
  101. package/docs/channels/clickclack.md +138 -0
  102. package/docs/channels/discord.md +1762 -0
  103. package/docs/channels/feishu.md +502 -0
  104. package/docs/channels/googlechat.md +284 -0
  105. package/docs/channels/group-messages.md +95 -0
  106. package/docs/channels/groups.md +519 -0
  107. package/docs/channels/imessage-from-bluebubbles.md +259 -0
  108. package/docs/channels/imessage.md +813 -0
  109. package/docs/channels/index.md +64 -0
  110. package/docs/channels/irc.md +253 -0
  111. package/docs/channels/line.md +243 -0
  112. package/docs/channels/location.md +71 -0
  113. package/docs/channels/matrix-migration.md +370 -0
  114. package/docs/channels/matrix-presentation.md +77 -0
  115. package/docs/channels/matrix-push-rules.md +150 -0
  116. package/docs/channels/matrix.md +921 -0
  117. package/docs/channels/mattermost.md +542 -0
  118. package/docs/channels/msteams.md +1042 -0
  119. package/docs/channels/nextcloud-talk.md +176 -0
  120. package/docs/channels/nostr.md +253 -0
  121. package/docs/channels/pairing.md +214 -0
  122. package/docs/channels/qqbot.md +309 -0
  123. package/docs/channels/signal.md +400 -0
  124. package/docs/channels/slack.md +1564 -0
  125. package/docs/channels/synology-chat.md +187 -0
  126. package/docs/channels/telegram.md +1107 -0
  127. package/docs/channels/tlon.md +296 -0
  128. package/docs/channels/troubleshooting.md +161 -0
  129. package/docs/channels/twitch.md +431 -0
  130. package/docs/channels/wechat.md +171 -0
  131. package/docs/channels/whatsapp.md +739 -0
  132. package/docs/channels/yuanbao.md +416 -0
  133. package/docs/channels/zalo.md +253 -0
  134. package/docs/channels/zalouser.md +199 -0
  135. package/docs/ci.md +612 -0
  136. package/docs/clawhub/publishing.md +96 -0
  137. package/docs/cli/acp.md +370 -0
  138. package/docs/cli/agent.md +103 -0
  139. package/docs/cli/agents.md +232 -0
  140. package/docs/cli/approvals.md +190 -0
  141. package/docs/cli/backup.md +97 -0
  142. package/docs/cli/browser.md +307 -0
  143. package/docs/cli/channels.md +154 -0
  144. package/docs/cli/clawbot.md +25 -0
  145. package/docs/cli/commitments.md +90 -0
  146. package/docs/cli/completion.md +39 -0
  147. package/docs/cli/config.md +504 -0
  148. package/docs/cli/configure.md +77 -0
  149. package/docs/cli/crestodian.md +332 -0
  150. package/docs/cli/cron.md +281 -0
  151. package/docs/cli/daemon.md +67 -0
  152. package/docs/cli/dashboard.md +33 -0
  153. package/docs/cli/devices.md +204 -0
  154. package/docs/cli/directory.md +68 -0
  155. package/docs/cli/dns.md +53 -0
  156. package/docs/cli/docs.md +73 -0
  157. package/docs/cli/doctor.md +237 -0
  158. package/docs/cli/flows.md +52 -0
  159. package/docs/cli/gateway.md +567 -0
  160. package/docs/cli/health.md +43 -0
  161. package/docs/cli/hooks.md +345 -0
  162. package/docs/cli/index.md +396 -0
  163. package/docs/cli/infer.md +364 -0
  164. package/docs/cli/logs.md +65 -0
  165. package/docs/cli/mcp.md +529 -0
  166. package/docs/cli/memory.md +183 -0
  167. package/docs/cli/message.md +317 -0
  168. package/docs/cli/migrate.md +290 -0
  169. package/docs/cli/models.md +224 -0
  170. package/docs/cli/node.md +177 -0
  171. package/docs/cli/nodes.md +76 -0
  172. package/docs/cli/onboard.md +245 -0
  173. package/docs/cli/pairing.md +77 -0
  174. package/docs/cli/path.md +502 -0
  175. package/docs/cli/plugins.md +454 -0
  176. package/docs/cli/policy.md +418 -0
  177. package/docs/cli/proxy.md +89 -0
  178. package/docs/cli/qr.md +56 -0
  179. package/docs/cli/reset.md +39 -0
  180. package/docs/cli/sandbox.md +208 -0
  181. package/docs/cli/secrets.md +202 -0
  182. package/docs/cli/security.md +124 -0
  183. package/docs/cli/sessions.md +164 -0
  184. package/docs/cli/setup.md +59 -0
  185. package/docs/cli/skills.md +102 -0
  186. package/docs/cli/status.md +45 -0
  187. package/docs/cli/system.md +89 -0
  188. package/docs/cli/tasks.md +111 -0
  189. package/docs/cli/tui.md +89 -0
  190. package/docs/cli/uninstall.md +44 -0
  191. package/docs/cli/update.md +242 -0
  192. package/docs/cli/voicecall.md +204 -0
  193. package/docs/cli/webhooks.md +117 -0
  194. package/docs/cli/wiki.md +256 -0
  195. package/docs/concepts/active-memory.md +856 -0
  196. package/docs/concepts/agent-loop.md +185 -0
  197. package/docs/concepts/agent-runtimes.md +243 -0
  198. package/docs/concepts/agent-workspace.md +230 -0
  199. package/docs/concepts/agent.md +136 -0
  200. package/docs/concepts/architecture.md +154 -0
  201. package/docs/concepts/channel-docking.md +145 -0
  202. package/docs/concepts/commitments.md +150 -0
  203. package/docs/concepts/compaction.md +203 -0
  204. package/docs/concepts/context-engine.md +306 -0
  205. package/docs/concepts/context.md +199 -0
  206. package/docs/concepts/delegate-architecture.md +319 -0
  207. package/docs/concepts/dreaming.md +261 -0
  208. package/docs/concepts/experimental-features.md +108 -0
  209. package/docs/concepts/features.md +91 -0
  210. package/docs/concepts/mantis-slack-desktop-runbook.md +202 -0
  211. package/docs/concepts/mantis.md +740 -0
  212. package/docs/concepts/markdown-formatting.md +139 -0
  213. package/docs/concepts/memory-builtin.md +146 -0
  214. package/docs/concepts/memory-honcho.md +144 -0
  215. package/docs/concepts/memory-qmd.md +271 -0
  216. package/docs/concepts/memory-search.md +166 -0
  217. package/docs/concepts/memory.md +258 -0
  218. package/docs/concepts/message-lifecycle-refactor.md +1128 -0
  219. package/docs/concepts/messages.md +214 -0
  220. package/docs/concepts/model-failover.md +385 -0
  221. package/docs/concepts/model-providers.md +715 -0
  222. package/docs/concepts/models.md +370 -0
  223. package/docs/concepts/multi-agent.md +619 -0
  224. package/docs/concepts/oauth.md +198 -0
  225. package/docs/concepts/openclaw-sdk.md +323 -0
  226. package/docs/concepts/parallel-specialist-lanes.md +127 -0
  227. package/docs/concepts/personal-agent-benchmark-pack.md +74 -0
  228. package/docs/concepts/presence.md +117 -0
  229. package/docs/concepts/progress-drafts.md +362 -0
  230. package/docs/concepts/qa-e2e-automation.md +820 -0
  231. package/docs/concepts/qa-matrix.md +139 -0
  232. package/docs/concepts/queue-steering.md +90 -0
  233. package/docs/concepts/queue.md +122 -0
  234. package/docs/concepts/retry.md +86 -0
  235. package/docs/concepts/session-pruning.md +104 -0
  236. package/docs/concepts/session-tool.md +190 -0
  237. package/docs/concepts/session.md +164 -0
  238. package/docs/concepts/soul.md +116 -0
  239. package/docs/concepts/streaming.md +251 -0
  240. package/docs/concepts/system-prompt.md +310 -0
  241. package/docs/concepts/timezone.md +47 -0
  242. package/docs/concepts/typebox.md +309 -0
  243. package/docs/concepts/typing-indicators.md +88 -0
  244. package/docs/concepts/usage-tracking.md +66 -0
  245. package/docs/date-time.md +126 -0
  246. package/docs/debug/node-issue.md +90 -0
  247. package/docs/diagnostics/flags.md +138 -0
  248. package/docs/docs.json +1832 -0
  249. package/docs/gateway/authentication.md +239 -0
  250. package/docs/gateway/background-process.md +147 -0
  251. package/docs/gateway/bonjour.md +303 -0
  252. package/docs/gateway/bridge-protocol.md +94 -0
  253. package/docs/gateway/cli-backends.md +420 -0
  254. package/docs/gateway/config-agents.md +1514 -0
  255. package/docs/gateway/config-channels.md +945 -0
  256. package/docs/gateway/config-tools.md +769 -0
  257. package/docs/gateway/configuration-examples.md +705 -0
  258. package/docs/gateway/configuration-reference.md +1393 -0
  259. package/docs/gateway/configuration.md +737 -0
  260. package/docs/gateway/diagnostics.md +213 -0
  261. package/docs/gateway/discovery.md +154 -0
  262. package/docs/gateway/doctor.md +574 -0
  263. package/docs/gateway/gateway-lock.md +37 -0
  264. package/docs/gateway/health.md +73 -0
  265. package/docs/gateway/heartbeat.md +493 -0
  266. package/docs/gateway/index.md +383 -0
  267. package/docs/gateway/local-model-services.md +205 -0
  268. package/docs/gateway/local-models.md +355 -0
  269. package/docs/gateway/logging.md +149 -0
  270. package/docs/gateway/multiple-gateways.md +178 -0
  271. package/docs/gateway/network-model.md +15 -0
  272. package/docs/gateway/openai-http-api.md +350 -0
  273. package/docs/gateway/openresponses-http-api.md +347 -0
  274. package/docs/gateway/openshell.md +316 -0
  275. package/docs/gateway/opentelemetry.md +404 -0
  276. package/docs/gateway/operator-scopes.md +111 -0
  277. package/docs/gateway/pairing.md +207 -0
  278. package/docs/gateway/prometheus.md +230 -0
  279. package/docs/gateway/protocol.md +803 -0
  280. package/docs/gateway/remote-gateway-readme.md +169 -0
  281. package/docs/gateway/remote.md +280 -0
  282. package/docs/gateway/sandbox-vs-tool-policy-vs-elevated.md +146 -0
  283. package/docs/gateway/sandboxing.md +545 -0
  284. package/docs/gateway/secrets-plan-contract.md +114 -0
  285. package/docs/gateway/secrets.md +609 -0
  286. package/docs/gateway/security/audit-checks.md +127 -0
  287. package/docs/gateway/security/index.md +1326 -0
  288. package/docs/gateway/security/secure-file-operations.md +76 -0
  289. package/docs/gateway/tailscale.md +156 -0
  290. package/docs/gateway/tools-invoke-http-api.md +169 -0
  291. package/docs/gateway/troubleshooting.md +772 -0
  292. package/docs/gateway/trusted-proxy-auth.md +451 -0
  293. package/docs/help/debugging.md +344 -0
  294. package/docs/help/environment.md +214 -0
  295. package/docs/help/faq-first-run.md +867 -0
  296. package/docs/help/faq-models.md +553 -0
  297. package/docs/help/faq.md +1975 -0
  298. package/docs/help/gpt55-codex-agentic-parity-maintainers.md +196 -0
  299. package/docs/help/gpt55-codex-agentic-parity.md +230 -0
  300. package/docs/help/index.md +39 -0
  301. package/docs/help/scripts.md +56 -0
  302. package/docs/help/testing-live.md +580 -0
  303. package/docs/help/testing-updates-plugins.md +291 -0
  304. package/docs/help/testing.md +928 -0
  305. package/docs/help/troubleshooting.md +424 -0
  306. package/docs/images/configure-model-picker-unsearchable.png +0 -0
  307. package/docs/images/feishu-get-group-id.png +0 -0
  308. package/docs/images/groups-flow.svg +52 -0
  309. package/docs/images/mobile-ui-screenshot.png +0 -0
  310. package/docs/index.md +196 -0
  311. package/docs/install/ansible.md +233 -0
  312. package/docs/install/azure.md +315 -0
  313. package/docs/install/bun.md +59 -0
  314. package/docs/install/clawdock.md +112 -0
  315. package/docs/install/development-channels.md +135 -0
  316. package/docs/install/digitalocean.md +174 -0
  317. package/docs/install/docker-vm-runtime.md +154 -0
  318. package/docs/install/docker.md +562 -0
  319. package/docs/install/exe-dev.md +201 -0
  320. package/docs/install/fly.md +524 -0
  321. package/docs/install/gcp.md +418 -0
  322. package/docs/install/hetzner.md +285 -0
  323. package/docs/install/hostinger.md +98 -0
  324. package/docs/install/index.md +221 -0
  325. package/docs/install/installer.md +455 -0
  326. package/docs/install/kubernetes.md +196 -0
  327. package/docs/install/macos-vm.md +281 -0
  328. package/docs/install/migrating-claude.md +165 -0
  329. package/docs/install/migrating-hermes.md +177 -0
  330. package/docs/install/migrating.md +137 -0
  331. package/docs/install/nix.md +112 -0
  332. package/docs/install/node.md +142 -0
  333. package/docs/install/northflank.mdx +44 -0
  334. package/docs/install/oracle.md +218 -0
  335. package/docs/install/podman.md +210 -0
  336. package/docs/install/railway.mdx +92 -0
  337. package/docs/install/raspberry-pi.md +234 -0
  338. package/docs/install/render.mdx +167 -0
  339. package/docs/install/uninstall.md +131 -0
  340. package/docs/install/updating.md +280 -0
  341. package/docs/logging.md +318 -0
  342. package/docs/nav-tabs-underline.js +100 -0
  343. package/docs/network.md +72 -0
  344. package/docs/nodes/audio.md +215 -0
  345. package/docs/nodes/camera.md +166 -0
  346. package/docs/nodes/images.md +77 -0
  347. package/docs/nodes/index.md +439 -0
  348. package/docs/nodes/location-command.md +102 -0
  349. package/docs/nodes/media-understanding.md +469 -0
  350. package/docs/nodes/talk.md +154 -0
  351. package/docs/nodes/troubleshooting.md +123 -0
  352. package/docs/nodes/voicewake.md +93 -0
  353. package/docs/perplexity.md +11 -0
  354. package/docs/pi-dev.md +82 -0
  355. package/docs/pi.md +573 -0
  356. package/docs/plan/codex-context-engine-harness.md +624 -0
  357. package/docs/plan/ui-channels.md +284 -0
  358. package/docs/platforms/android.md +285 -0
  359. package/docs/platforms/digitalocean.md +12 -0
  360. package/docs/platforms/index.md +60 -0
  361. package/docs/platforms/ios.md +283 -0
  362. package/docs/platforms/linux.md +141 -0
  363. package/docs/platforms/mac/bundled-gateway.md +79 -0
  364. package/docs/platforms/mac/canvas.md +128 -0
  365. package/docs/platforms/mac/child-process.md +72 -0
  366. package/docs/platforms/mac/dev-setup.md +112 -0
  367. package/docs/platforms/mac/health.md +39 -0
  368. package/docs/platforms/mac/icon.md +36 -0
  369. package/docs/platforms/mac/logging.md +62 -0
  370. package/docs/platforms/mac/menu-bar.md +93 -0
  371. package/docs/platforms/mac/peekaboo.md +92 -0
  372. package/docs/platforms/mac/permissions.md +53 -0
  373. package/docs/platforms/mac/remote.md +123 -0
  374. package/docs/platforms/mac/signing.md +52 -0
  375. package/docs/platforms/mac/skills.md +43 -0
  376. package/docs/platforms/mac/voice-overlay.md +66 -0
  377. package/docs/platforms/mac/voicewake.md +73 -0
  378. package/docs/platforms/mac/webchat.md +54 -0
  379. package/docs/platforms/mac/xpc.md +66 -0
  380. package/docs/platforms/macos.md +226 -0
  381. package/docs/platforms/oracle.md +12 -0
  382. package/docs/platforms/raspberry-pi.md +13 -0
  383. package/docs/platforms/windows.md +286 -0
  384. package/docs/plugins/adding-capabilities.md +133 -0
  385. package/docs/plugins/admin-http-rpc.md +216 -0
  386. package/docs/plugins/agent-tools.md +13 -0
  387. package/docs/plugins/architecture-internals.md +1195 -0
  388. package/docs/plugins/architecture.md +481 -0
  389. package/docs/plugins/building-extensions.md +13 -0
  390. package/docs/plugins/building-plugins.md +330 -0
  391. package/docs/plugins/bundles.md +310 -0
  392. package/docs/plugins/cli-backend-plugins.md +310 -0
  393. package/docs/plugins/codex-computer-use.md +293 -0
  394. package/docs/plugins/codex-harness-reference.md +409 -0
  395. package/docs/plugins/codex-harness-runtime.md +247 -0
  396. package/docs/plugins/codex-harness.md +746 -0
  397. package/docs/plugins/codex-native-plugins.md +276 -0
  398. package/docs/plugins/community.md +77 -0
  399. package/docs/plugins/compatibility.md +164 -0
  400. package/docs/plugins/dependency-resolution.md +143 -0
  401. package/docs/plugins/google-meet.md +1737 -0
  402. package/docs/plugins/hooks.md +459 -0
  403. package/docs/plugins/install-overrides.md +80 -0
  404. package/docs/plugins/manage-plugins.md +210 -0
  405. package/docs/plugins/manifest.md +1359 -0
  406. package/docs/plugins/memory-lancedb.md +385 -0
  407. package/docs/plugins/memory-wiki.md +529 -0
  408. package/docs/plugins/message-presentation.md +473 -0
  409. package/docs/plugins/oc-path.md +166 -0
  410. package/docs/plugins/plugin-inventory.md +182 -0
  411. package/docs/plugins/reference/acpx.md +23 -0
  412. package/docs/plugins/reference/admin-http-rpc.md +23 -0
  413. package/docs/plugins/reference/alibaba.md +23 -0
  414. package/docs/plugins/reference/amazon-bedrock-mantle.md +23 -0
  415. package/docs/plugins/reference/amazon-bedrock.md +23 -0
  416. package/docs/plugins/reference/anthropic-vertex.md +19 -0
  417. package/docs/plugins/reference/anthropic.md +23 -0
  418. package/docs/plugins/reference/arcee.md +23 -0
  419. package/docs/plugins/reference/azure-speech.md +23 -0
  420. package/docs/plugins/reference/bonjour.md +19 -0
  421. package/docs/plugins/reference/brave.md +23 -0
  422. package/docs/plugins/reference/browser.md +23 -0
  423. package/docs/plugins/reference/byteplus.md +19 -0
  424. package/docs/plugins/reference/canvas.md +19 -0
  425. package/docs/plugins/reference/cerebras.md +23 -0
  426. package/docs/plugins/reference/chutes.md +23 -0
  427. package/docs/plugins/reference/clickclack.md +23 -0
  428. package/docs/plugins/reference/cloudflare-ai-gateway.md +23 -0
  429. package/docs/plugins/reference/codex.md +23 -0
  430. package/docs/plugins/reference/comfy.md +23 -0
  431. package/docs/plugins/reference/copilot-proxy.md +19 -0
  432. package/docs/plugins/reference/deepgram.md +23 -0
  433. package/docs/plugins/reference/deepinfra.md +23 -0
  434. package/docs/plugins/reference/deepseek.md +23 -0
  435. package/docs/plugins/reference/diagnostics-otel.md +19 -0
  436. package/docs/plugins/reference/diagnostics-prometheus.md +19 -0
  437. package/docs/plugins/reference/diffs.md +19 -0
  438. package/docs/plugins/reference/discord.md +23 -0
  439. package/docs/plugins/reference/document-extract.md +23 -0
  440. package/docs/plugins/reference/duckduckgo.md +23 -0
  441. package/docs/plugins/reference/elevenlabs.md +23 -0
  442. package/docs/plugins/reference/exa.md +23 -0
  443. package/docs/plugins/reference/fal.md +23 -0
  444. package/docs/plugins/reference/feishu.md +23 -0
  445. package/docs/plugins/reference/file-transfer.md +19 -0
  446. package/docs/plugins/reference/firecrawl.md +23 -0
  447. package/docs/plugins/reference/fireworks.md +23 -0
  448. package/docs/plugins/reference/github-copilot.md +23 -0
  449. package/docs/plugins/reference/google-meet.md +23 -0
  450. package/docs/plugins/reference/google.md +23 -0
  451. package/docs/plugins/reference/googlechat.md +23 -0
  452. package/docs/plugins/reference/gradium.md +23 -0
  453. package/docs/plugins/reference/groq.md +23 -0
  454. package/docs/plugins/reference/huggingface.md +23 -0
  455. package/docs/plugins/reference/imessage.md +23 -0
  456. package/docs/plugins/reference/inworld.md +23 -0
  457. package/docs/plugins/reference/irc.md +23 -0
  458. package/docs/plugins/reference/kilocode.md +23 -0
  459. package/docs/plugins/reference/kimi.md +23 -0
  460. package/docs/plugins/reference/line.md +23 -0
  461. package/docs/plugins/reference/litellm.md +23 -0
  462. package/docs/plugins/reference/llm-task.md +19 -0
  463. package/docs/plugins/reference/lmstudio.md +23 -0
  464. package/docs/plugins/reference/lobster.md +19 -0
  465. package/docs/plugins/reference/matrix.md +23 -0
  466. package/docs/plugins/reference/mattermost.md +23 -0
  467. package/docs/plugins/reference/memory-core.md +19 -0
  468. package/docs/plugins/reference/memory-lancedb.md +23 -0
  469. package/docs/plugins/reference/memory-wiki.md +23 -0
  470. package/docs/plugins/reference/microsoft-foundry.md +19 -0
  471. package/docs/plugins/reference/microsoft.md +19 -0
  472. package/docs/plugins/reference/migrate-claude.md +19 -0
  473. package/docs/plugins/reference/migrate-hermes.md +19 -0
  474. package/docs/plugins/reference/minimax.md +23 -0
  475. package/docs/plugins/reference/mistral.md +23 -0
  476. package/docs/plugins/reference/moonshot.md +23 -0
  477. package/docs/plugins/reference/msteams.md +23 -0
  478. package/docs/plugins/reference/nextcloud-talk.md +23 -0
  479. package/docs/plugins/reference/nostr.md +23 -0
  480. package/docs/plugins/reference/nvidia.md +23 -0
  481. package/docs/plugins/reference/oc-path.md +23 -0
  482. package/docs/plugins/reference/ollama.md +23 -0
  483. package/docs/plugins/reference/open-prose.md +19 -0
  484. package/docs/plugins/reference/openai.md +23 -0
  485. package/docs/plugins/reference/opencode-go.md +23 -0
  486. package/docs/plugins/reference/opencode.md +23 -0
  487. package/docs/plugins/reference/openrouter.md +23 -0
  488. package/docs/plugins/reference/openshell.md +19 -0
  489. package/docs/plugins/reference/perplexity.md +23 -0
  490. package/docs/plugins/reference/policy.md +23 -0
  491. package/docs/plugins/reference/qa-channel.md +23 -0
  492. package/docs/plugins/reference/qa-lab.md +19 -0
  493. package/docs/plugins/reference/qa-matrix.md +19 -0
  494. package/docs/plugins/reference/qianfan.md +23 -0
  495. package/docs/plugins/reference/qqbot.md +23 -0
  496. package/docs/plugins/reference/qwen.md +23 -0
  497. package/docs/plugins/reference/runway.md +23 -0
  498. package/docs/plugins/reference/searxng.md +19 -0
  499. package/docs/plugins/reference/senseaudio.md +23 -0
  500. package/docs/plugins/reference/sglang.md +23 -0
  501. package/docs/plugins/reference/signal.md +23 -0
  502. package/docs/plugins/reference/skill-workshop.md +23 -0
  503. package/docs/plugins/reference/slack.md +23 -0
  504. package/docs/plugins/reference/stepfun.md +23 -0
  505. package/docs/plugins/reference/synology-chat.md +23 -0
  506. package/docs/plugins/reference/synthetic.md +23 -0
  507. package/docs/plugins/reference/tavily.md +23 -0
  508. package/docs/plugins/reference/telegram.md +23 -0
  509. package/docs/plugins/reference/tencent.md +23 -0
  510. package/docs/plugins/reference/tlon.md +23 -0
  511. package/docs/plugins/reference/together.md +23 -0
  512. package/docs/plugins/reference/tokenjuice.md +23 -0
  513. package/docs/plugins/reference/tts-local-cli.md +19 -0
  514. package/docs/plugins/reference/twitch.md +23 -0
  515. package/docs/plugins/reference/venice.md +23 -0
  516. package/docs/plugins/reference/vercel-ai-gateway.md +23 -0
  517. package/docs/plugins/reference/vllm.md +23 -0
  518. package/docs/plugins/reference/voice-call.md +23 -0
  519. package/docs/plugins/reference/volcengine.md +23 -0
  520. package/docs/plugins/reference/voyage.md +19 -0
  521. package/docs/plugins/reference/vydra.md +23 -0
  522. package/docs/plugins/reference/web-readability.md +19 -0
  523. package/docs/plugins/reference/webhooks.md +23 -0
  524. package/docs/plugins/reference/whatsapp.md +23 -0
  525. package/docs/plugins/reference/xai.md +23 -0
  526. package/docs/plugins/reference/xiaomi.md +23 -0
  527. package/docs/plugins/reference/zai.md +23 -0
  528. package/docs/plugins/reference/zalo.md +23 -0
  529. package/docs/plugins/reference/zalouser.md +24 -0
  530. package/docs/plugins/reference.md +138 -0
  531. package/docs/plugins/sdk-agent-harness.md +339 -0
  532. package/docs/plugins/sdk-channel-ingress.md +137 -0
  533. package/docs/plugins/sdk-channel-message.md +458 -0
  534. package/docs/plugins/sdk-channel-plugins.md +762 -0
  535. package/docs/plugins/sdk-channel-turn.md +580 -0
  536. package/docs/plugins/sdk-entrypoints.md +333 -0
  537. package/docs/plugins/sdk-migration.md +949 -0
  538. package/docs/plugins/sdk-overview.md +501 -0
  539. package/docs/plugins/sdk-provider-plugins.md +807 -0
  540. package/docs/plugins/sdk-runtime.md +676 -0
  541. package/docs/plugins/sdk-setup.md +550 -0
  542. package/docs/plugins/sdk-subpaths.md +396 -0
  543. package/docs/plugins/sdk-testing.md +401 -0
  544. package/docs/plugins/skill-workshop.md +713 -0
  545. package/docs/plugins/tool-plugins.md +411 -0
  546. package/docs/plugins/voice-call.md +943 -0
  547. package/docs/plugins/webhooks.md +192 -0
  548. package/docs/plugins/zalouser.md +86 -0
  549. package/docs/prose.md +137 -0
  550. package/docs/providers/alibaba.md +158 -0
  551. package/docs/providers/anthropic.md +344 -0
  552. package/docs/providers/arcee.md +144 -0
  553. package/docs/providers/azure-speech.md +119 -0
  554. package/docs/providers/bedrock-mantle.md +211 -0
  555. package/docs/providers/bedrock.md +414 -0
  556. package/docs/providers/cerebras.md +130 -0
  557. package/docs/providers/chutes.md +153 -0
  558. package/docs/providers/claude-max-api-proxy.md +188 -0
  559. package/docs/providers/cloudflare-ai-gateway.md +119 -0
  560. package/docs/providers/comfy.md +362 -0
  561. package/docs/providers/deepgram.md +184 -0
  562. package/docs/providers/deepinfra.md +87 -0
  563. package/docs/providers/deepseek.md +146 -0
  564. package/docs/providers/ds4.md +309 -0
  565. package/docs/providers/elevenlabs.md +130 -0
  566. package/docs/providers/fal.md +204 -0
  567. package/docs/providers/fireworks.md +144 -0
  568. package/docs/providers/github-copilot.md +225 -0
  569. package/docs/providers/glm.md +137 -0
  570. package/docs/providers/google.md +472 -0
  571. package/docs/providers/gradium.md +123 -0
  572. package/docs/providers/groq.md +180 -0
  573. package/docs/providers/huggingface.md +235 -0
  574. package/docs/providers/index.md +102 -0
  575. package/docs/providers/inferrs.md +272 -0
  576. package/docs/providers/inworld.md +120 -0
  577. package/docs/providers/kilocode.md +135 -0
  578. package/docs/providers/litellm.md +234 -0
  579. package/docs/providers/lmstudio.md +224 -0
  580. package/docs/providers/minimax.md +505 -0
  581. package/docs/providers/mistral.md +235 -0
  582. package/docs/providers/models.md +65 -0
  583. package/docs/providers/moonshot.md +413 -0
  584. package/docs/providers/nvidia.md +140 -0
  585. package/docs/providers/ollama.md +1180 -0
  586. package/docs/providers/openai.md +1057 -0
  587. package/docs/providers/opencode-go.md +123 -0
  588. package/docs/providers/opencode.md +149 -0
  589. package/docs/providers/openrouter.md +349 -0
  590. package/docs/providers/perplexity-provider.md +123 -0
  591. package/docs/providers/qianfan.md +132 -0
  592. package/docs/providers/qwen.md +332 -0
  593. package/docs/providers/runway.md +103 -0
  594. package/docs/providers/senseaudio.md +68 -0
  595. package/docs/providers/sglang.md +161 -0
  596. package/docs/providers/stepfun.md +229 -0
  597. package/docs/providers/synthetic.md +154 -0
  598. package/docs/providers/tencent.md +130 -0
  599. package/docs/providers/together.md +141 -0
  600. package/docs/providers/venice.md +315 -0
  601. package/docs/providers/vercel-ai-gateway.md +128 -0
  602. package/docs/providers/vllm.md +383 -0
  603. package/docs/providers/volcengine.md +199 -0
  604. package/docs/providers/vydra.md +180 -0
  605. package/docs/providers/xai.md +560 -0
  606. package/docs/providers/xiaomi.md +188 -0
  607. package/docs/providers/zai.md +203 -0
  608. package/docs/refactor/access.md +9 -0
  609. package/docs/refactor/acp.md +298 -0
  610. package/docs/refactor/canvas.md +131 -0
  611. package/docs/refactor/ingress-core.md +341 -0
  612. package/docs/reference/AGENTS.default.md +129 -0
  613. package/docs/reference/RELEASING.md +767 -0
  614. package/docs/reference/api-usage-costs.md +202 -0
  615. package/docs/reference/application-modernization-plan.md +208 -0
  616. package/docs/reference/code-mode.md +757 -0
  617. package/docs/reference/credits.md +33 -0
  618. package/docs/reference/device-models.md +50 -0
  619. package/docs/reference/full-release-validation.md +202 -0
  620. package/docs/reference/memory-config.md +630 -0
  621. package/docs/reference/openclaw-sdk-api-design.md +390 -0
  622. package/docs/reference/prompt-caching.md +358 -0
  623. package/docs/reference/rich-output-protocol.md +79 -0
  624. package/docs/reference/rpc.md +43 -0
  625. package/docs/reference/secretref-credential-surface.md +159 -0
  626. package/docs/reference/secretref-user-supplied-credentials-matrix.json +663 -0
  627. package/docs/reference/session-management-compaction.md +461 -0
  628. package/docs/reference/templates/AGENTS.dev.md +89 -0
  629. package/docs/reference/templates/AGENTS.md +225 -0
  630. package/docs/reference/templates/BOOT.md +16 -0
  631. package/docs/reference/templates/BOOTSTRAP.md +66 -0
  632. package/docs/reference/templates/HEARTBEAT.md +16 -0
  633. package/docs/reference/templates/IDENTITY.dev.md +52 -0
  634. package/docs/reference/templates/IDENTITY.md +34 -0
  635. package/docs/reference/templates/SOUL.dev.md +82 -0
  636. package/docs/reference/templates/SOUL.md +49 -0
  637. package/docs/reference/templates/TOOLS.dev.md +29 -0
  638. package/docs/reference/templates/TOOLS.md +51 -0
  639. package/docs/reference/templates/USER.dev.md +23 -0
  640. package/docs/reference/templates/USER.md +28 -0
  641. package/docs/reference/test.md +239 -0
  642. package/docs/reference/token-use.md +233 -0
  643. package/docs/reference/transcript-hygiene.md +214 -0
  644. package/docs/reference/wizard.md +252 -0
  645. package/docs/security/CONTRIBUTING-THREAT-MODEL.md +101 -0
  646. package/docs/security/THREAT-MODEL-ATLAS.md +611 -0
  647. package/docs/security/formal-verification.md +170 -0
  648. package/docs/security/incident-response.md +59 -0
  649. package/docs/security/network-proxy.md +268 -0
  650. package/docs/snippets/plugin-publish/minimal-openclaw.plugin.json +12 -0
  651. package/docs/snippets/plugin-publish/minimal-package.json +16 -0
  652. package/docs/start/bootstrapping.md +49 -0
  653. package/docs/start/docs-directory.md +69 -0
  654. package/docs/start/getting-started.md +152 -0
  655. package/docs/start/hubs.md +201 -0
  656. package/docs/start/lore.md +223 -0
  657. package/docs/start/onboarding-overview.md +72 -0
  658. package/docs/start/onboarding.md +95 -0
  659. package/docs/start/openclaw.md +244 -0
  660. package/docs/start/quickstart.md +25 -0
  661. package/docs/start/setup.md +178 -0
  662. package/docs/start/showcase.md +383 -0
  663. package/docs/start/wizard-cli-automation.md +232 -0
  664. package/docs/start/wizard-cli-reference.md +331 -0
  665. package/docs/start/wizard.md +141 -0
  666. package/docs/style.css +184 -0
  667. package/docs/superpowers/specs/2026-04-22-tweakcn-custom-theme-import-design.md +316 -0
  668. package/docs/tools/acp-agents-setup.md +352 -0
  669. package/docs/tools/acp-agents.md +847 -0
  670. package/docs/tools/agent-send.md +112 -0
  671. package/docs/tools/apply-patch.md +64 -0
  672. package/docs/tools/brave-search.md +139 -0
  673. package/docs/tools/browser-control.md +391 -0
  674. package/docs/tools/browser-linux-troubleshooting.md +173 -0
  675. package/docs/tools/browser-login.md +77 -0
  676. package/docs/tools/browser-wsl2-windows-remote-cdp-troubleshooting.md +219 -0
  677. package/docs/tools/browser.md +769 -0
  678. package/docs/tools/btw.md +159 -0
  679. package/docs/tools/capability-cookbook.md +12 -0
  680. package/docs/tools/clawhub.md +5 -0
  681. package/docs/tools/code-execution.md +173 -0
  682. package/docs/tools/creating-skills.md +120 -0
  683. package/docs/tools/diffs.md +506 -0
  684. package/docs/tools/duckduckgo-search.md +109 -0
  685. package/docs/tools/elevated.md +128 -0
  686. package/docs/tools/exa-search.md +152 -0
  687. package/docs/tools/exec-approvals-advanced.md +360 -0
  688. package/docs/tools/exec-approvals.md +474 -0
  689. package/docs/tools/exec.md +282 -0
  690. package/docs/tools/firecrawl.md +155 -0
  691. package/docs/tools/gemini-search.md +114 -0
  692. package/docs/tools/grok-search.md +113 -0
  693. package/docs/tools/image-generation.md +433 -0
  694. package/docs/tools/index.md +178 -0
  695. package/docs/tools/kimi-search.md +105 -0
  696. package/docs/tools/llm-task.md +137 -0
  697. package/docs/tools/lobster.md +365 -0
  698. package/docs/tools/loop-detection.md +154 -0
  699. package/docs/tools/media-overview.md +157 -0
  700. package/docs/tools/minimax-search.md +102 -0
  701. package/docs/tools/multi-agent-sandbox-tools.md +409 -0
  702. package/docs/tools/music-generation.md +371 -0
  703. package/docs/tools/ollama-search.md +153 -0
  704. package/docs/tools/pdf.md +195 -0
  705. package/docs/tools/perplexity-search.md +220 -0
  706. package/docs/tools/plugin.md +327 -0
  707. package/docs/tools/reactions.md +100 -0
  708. package/docs/tools/searxng-search.md +141 -0
  709. package/docs/tools/skills-config.md +195 -0
  710. package/docs/tools/skills.md +535 -0
  711. package/docs/tools/slash-commands.md +488 -0
  712. package/docs/tools/steer.md +84 -0
  713. package/docs/tools/subagents.md +650 -0
  714. package/docs/tools/tavily.md +162 -0
  715. package/docs/tools/thinking.md +140 -0
  716. package/docs/tools/tokenjuice.md +81 -0
  717. package/docs/tools/tool-search.md +269 -0
  718. package/docs/tools/trajectory.md +229 -0
  719. package/docs/tools/tts.md +1004 -0
  720. package/docs/tools/video-generation.md +552 -0
  721. package/docs/tools/web-fetch.md +195 -0
  722. package/docs/tools/web.md +459 -0
  723. package/docs/tts.md +11 -0
  724. package/docs/vps.md +139 -0
  725. package/docs/web/control-ui.md +503 -0
  726. package/docs/web/dashboard.md +107 -0
  727. package/docs/web/index.md +133 -0
  728. package/docs/web/tui.md +246 -0
  729. package/docs/web/webchat.md +99 -0
  730. package/docs/whatsapp-openclaw-ai-zh.jpg +0 -0
  731. package/docs/whatsapp-openclaw.jpg +0 -0
  732. package/nodmix.mjs +487 -0
  733. package/package.json +1852 -0
  734. package/patches/.gitkeep +0 -0
  735. package/patches/@agentclientprotocol__claude-agent-acp@0.36.1.patch +41 -0
  736. package/pnpm-workspace.yaml +63 -0
  737. package/scripts/crabbox-wrapper.mjs +353 -0
  738. package/scripts/lib/official-external-channel-catalog.json +559 -0
  739. package/scripts/lib/official-external-plugin-catalog.json +192 -0
  740. package/scripts/lib/official-external-provider-catalog.json +117 -0
  741. package/scripts/lib/package-dist-imports.mjs +171 -0
  742. package/scripts/npm-runner.mjs +91 -0
  743. package/scripts/postinstall-bundled-plugins.mjs +978 -0
  744. package/scripts/preinstall-package-manager-warning.mjs +64 -0
  745. package/scripts/windows-cmd-helpers.mjs +20 -0
  746. package/skills/1password/SKILL.md +70 -0
  747. package/skills/1password/references/cli-examples.md +29 -0
  748. package/skills/1password/references/get-started.md +17 -0
  749. package/skills/apple-notes/SKILL.md +77 -0
  750. package/skills/apple-reminders/SKILL.md +118 -0
  751. package/skills/bear-notes/SKILL.md +107 -0
  752. package/skills/blogwatcher/SKILL.md +69 -0
  753. package/skills/blucli/SKILL.md +47 -0
  754. package/skills/camsnap/SKILL.md +45 -0
  755. package/skills/canvas/SKILL.md +78 -0
  756. package/skills/clawhub/SKILL.md +77 -0
  757. package/skills/coding-agent/SKILL.md +149 -0
  758. package/skills/diagram-maker/SKILL.md +53 -0
  759. package/skills/diagram-maker/references/excalidraw-patterns.md +85 -0
  760. package/skills/diagram-maker/references/svg-template.md +112 -0
  761. package/skills/discord/SKILL.md +136 -0
  762. package/skills/eightctl/SKILL.md +50 -0
  763. package/skills/gemini/SKILL.md +47 -0
  764. package/skills/gh-issues/SKILL.md +213 -0
  765. package/skills/gifgrep/SKILL.md +85 -0
  766. package/skills/github/SKILL.md +84 -0
  767. package/skills/gog/SKILL.md +116 -0
  768. package/skills/goplaces/SKILL.md +52 -0
  769. package/skills/healthcheck/SKILL.md +105 -0
  770. package/skills/himalaya/SKILL.md +80 -0
  771. package/skills/himalaya/references/configuration.md +184 -0
  772. package/skills/himalaya/references/message-composition.md +199 -0
  773. package/skills/imsg/SKILL.md +122 -0
  774. package/skills/mcporter/SKILL.md +61 -0
  775. package/skills/meme-maker/SKILL.md +42 -0
  776. package/skills/meme-maker/references/templates.json +358 -0
  777. package/skills/meme-maker/scripts/meme.mjs +398 -0
  778. package/skills/model-usage/SKILL.md +69 -0
  779. package/skills/model-usage/references/codexbar-cli.md +33 -0
  780. package/skills/model-usage/scripts/model_usage.py +319 -0
  781. package/skills/model-usage/scripts/test_model_usage.py +40 -0
  782. package/skills/nano-pdf/SKILL.md +38 -0
  783. package/skills/node-connect/SKILL.md +142 -0
  784. package/skills/node-inspect-debugger/SKILL.md +85 -0
  785. package/skills/notion/SKILL.md +150 -0
  786. package/skills/obsidian/SKILL.md +119 -0
  787. package/skills/openai-whisper/SKILL.md +38 -0
  788. package/skills/openai-whisper-api/SKILL.md +71 -0
  789. package/skills/openai-whisper-api/scripts/transcribe.sh +154 -0
  790. package/skills/openhue/SKILL.md +112 -0
  791. package/skills/oracle/SKILL.md +126 -0
  792. package/skills/ordercli/SKILL.md +78 -0
  793. package/skills/peekaboo/SKILL.md +190 -0
  794. package/skills/pyproject.toml +10 -0
  795. package/skills/python-debugpy/SKILL.md +73 -0
  796. package/skills/sag/SKILL.md +87 -0
  797. package/skills/session-logs/SKILL.md +151 -0
  798. package/skills/sherpa-onnx-tts/SKILL.md +109 -0
  799. package/skills/sherpa-onnx-tts/bin/sherpa-onnx-tts +178 -0
  800. package/skills/skill-creator/SKILL.md +78 -0
  801. package/skills/skill-creator/license.txt +202 -0
  802. package/skills/skill-creator/scripts/init_skill.py +378 -0
  803. package/skills/skill-creator/scripts/package_skill.py +139 -0
  804. package/skills/skill-creator/scripts/quick_validate.py +169 -0
  805. package/skills/skill-creator/scripts/test_package_skill.py +161 -0
  806. package/skills/skill-creator/scripts/test_quick_validate.py +116 -0
  807. package/skills/slack/SKILL.md +78 -0
  808. package/skills/songsee/SKILL.md +49 -0
  809. package/skills/sonoscli/SKILL.md +65 -0
  810. package/skills/spike/SKILL.md +51 -0
  811. package/skills/spotify-player/SKILL.md +64 -0
  812. package/skills/summarize/SKILL.md +87 -0
  813. package/skills/taskflow/SKILL.md +149 -0
  814. package/skills/taskflow/examples/inbox-triage.lobster +33 -0
  815. package/skills/taskflow/examples/pr-intake.lobster +32 -0
  816. package/skills/taskflow-inbox-triage/SKILL.md +119 -0
  817. package/skills/things-mac/SKILL.md +86 -0
  818. package/skills/tmux/SKILL.md +91 -0
  819. package/skills/tmux/scripts/find-sessions.sh +112 -0
  820. package/skills/tmux/scripts/wait-for-text.sh +83 -0
  821. package/skills/trello/SKILL.md +108 -0
  822. package/skills/video-frames/SKILL.md +46 -0
  823. package/skills/video-frames/scripts/frame.sh +81 -0
  824. package/skills/voice-call/SKILL.md +45 -0
  825. package/skills/wacli/SKILL.md +72 -0
  826. package/skills/weather/SKILL.md +64 -0
  827. package/skills/xurl/SKILL.md +120 -0
@@ -0,0 +1,1762 @@
1
+ ---
2
+ summary: "Discord bot support status, capabilities, and configuration"
3
+ read_when:
4
+ - Working on Discord channel features
5
+ title: "Discord"
6
+ ---
7
+
8
+ Ready for DMs and guild channels via the official Discord gateway.
9
+
10
+ <CardGroup cols={3}>
11
+ <Card title="Pairing" icon="link" href="/channels/pairing">
12
+ Discord DMs default to pairing mode.
13
+ </Card>
14
+ <Card title="Slash commands" icon="terminal" href="/tools/slash-commands">
15
+ Native command behavior and command catalog.
16
+ </Card>
17
+ <Card title="Channel troubleshooting" icon="wrench" href="/channels/troubleshooting">
18
+ Cross-channel diagnostics and repair flow.
19
+ </Card>
20
+ </CardGroup>
21
+
22
+ ## Quick setup
23
+
24
+ You will need to create a new application with a bot, add the bot to your server, and pair it to Nodmix. We recommend adding your bot to your own private server. If you don't have one yet, [create one first](https://support.discord.com/hc/en-us/articles/204849977-How-do-I-create-a-server) (choose **Create My Own > For me and my friends**).
25
+
26
+ <Steps>
27
+ <Step title="Create a Discord application and bot">
28
+ Go to the [Discord Developer Portal](https://discord.com/developers/applications) and click **New Application**. Name it something like "Nodmix".
29
+
30
+ Click **Bot** on the sidebar. Set the **Username** to whatever you call your Nodmix agent.
31
+
32
+ </Step>
33
+
34
+ <Step title="Enable privileged intents">
35
+ Still on the **Bot** page, scroll down to **Privileged Gateway Intents** and enable:
36
+
37
+ - **Message Content Intent** (required)
38
+ - **Server Members Intent** (recommended; required for role allowlists and name-to-ID matching)
39
+ - **Presence Intent** (optional; only needed for presence updates)
40
+
41
+ </Step>
42
+
43
+ <Step title="Copy your bot token">
44
+ Scroll back up on the **Bot** page and click **Reset Token**.
45
+
46
+ <Note>
47
+ Despite the name, this generates your first token — nothing is being "reset."
48
+ </Note>
49
+
50
+ Copy the token and save it somewhere. This is your **Bot Token** and you will need it shortly.
51
+
52
+ </Step>
53
+
54
+ <Step title="Generate an invite URL and add the bot to your server">
55
+ Click **OAuth2** on the sidebar. You'll generate an invite URL with the right permissions to add the bot to your server.
56
+
57
+ Scroll down to **OAuth2 URL Generator** and enable:
58
+
59
+ - `bot`
60
+ - `applications.commands`
61
+
62
+ A **Bot Permissions** section will appear below. Enable at least:
63
+
64
+ **General Permissions**
65
+ - View Channels
66
+ **Text Permissions**
67
+ - Send Messages
68
+ - Read Message History
69
+ - Embed Links
70
+ - Attach Files
71
+ - Add Reactions (optional)
72
+
73
+ This is the baseline set for normal text channels. If you plan to post in Discord threads, including forum or media channel workflows that create or continue a thread, also enable **Send Messages in Threads**.
74
+ Copy the generated URL at the bottom, paste it into your browser, select your server, and click **Continue** to connect. You should now see your bot in the Discord server.
75
+
76
+ </Step>
77
+
78
+ <Step title="Enable Developer Mode and collect your IDs">
79
+ Back in the Discord app, you need to enable Developer Mode so you can copy internal IDs.
80
+
81
+ 1. Click **User Settings** (gear icon next to your avatar) → **Advanced** → toggle on **Developer Mode**
82
+ 2. Right-click your **server icon** in the sidebar → **Copy Server ID**
83
+ 3. Right-click your **own avatar** → **Copy User ID**
84
+
85
+ Save your **Server ID** and **User ID** alongside your Bot Token — you'll send all three to Nodmix in the next step.
86
+
87
+ </Step>
88
+
89
+ <Step title="Allow DMs from server members">
90
+ For pairing to work, Discord needs to allow your bot to DM you. Right-click your **server icon** → **Privacy Settings** → toggle on **Direct Messages**.
91
+
92
+ This lets server members (including bots) send you DMs. Keep this enabled if you want to use Discord DMs with Nodmix. If you only plan to use guild channels, you can disable DMs after pairing.
93
+
94
+ </Step>
95
+
96
+ <Step title="Set your bot token securely (do not send it in chat)">
97
+ Your Discord bot token is a secret (like a password). Set it on the machine running Nodmix before messaging your agent.
98
+
99
+ ```bash
100
+ export DISCORD_BOT_TOKEN="YOUR_BOT_TOKEN"
101
+ cat > discord.patch.json5 <<'JSON5'
102
+ {
103
+ channels: {
104
+ discord: {
105
+ enabled: true,
106
+ token: { source: "env", provider: "default", id: "DISCORD_BOT_TOKEN" },
107
+ },
108
+ },
109
+ }
110
+ JSON5
111
+ nodmix config patch --file ./discord.patch.json5 --dry-run
112
+ nodmix config patch --file ./discord.patch.json5
113
+ nodmix gateway
114
+ ```
115
+
116
+ If Nodmix is already running as a background service, restart it via the Nodmix Mac app or by stopping and restarting the `nodmix gateway run` process.
117
+ For managed service installs, run `nodmix gateway install` from a shell where `DISCORD_BOT_TOKEN` is present, or store the variable in `~/.nodmix/.env`, so the service can resolve the env SecretRef after restart.
118
+ If your host is blocked or rate-limited by Discord's startup application lookup, set the Discord application/client ID from the Developer Portal so startup can skip that REST call. Use `channels.discord.applicationId` for the default account, or `channels.discord.accounts.<accountId>.applicationId` when you run multiple Discord bots.
119
+
120
+ </Step>
121
+
122
+ <Step title="Configure Nodmix and pair">
123
+
124
+ <Tabs>
125
+ <Tab title="Ask your agent">
126
+ Chat with your Nodmix agent on any existing channel (e.g. Telegram) and tell it. If Discord is your first channel, use the CLI / config tab instead.
127
+
128
+ > "I already set my Discord bot token in config. Please finish Discord setup with User ID `<user_id>` and Server ID `<server_id>`."
129
+ </Tab>
130
+ <Tab title="CLI / config">
131
+ If you prefer file-based config, set:
132
+
133
+ ```json5
134
+ {
135
+ channels: {
136
+ discord: {
137
+ enabled: true,
138
+ token: {
139
+ source: "env",
140
+ provider: "default",
141
+ id: "DISCORD_BOT_TOKEN",
142
+ },
143
+ },
144
+ },
145
+ }
146
+ ```
147
+
148
+ Env fallback for the default account:
149
+
150
+ ```bash
151
+ DISCORD_BOT_TOKEN=...
152
+ ```
153
+
154
+ For scripted or remote setup, write the same JSON5 block with `nodmix config patch --file ./discord.patch.json5 --dry-run` and then rerun without `--dry-run`. Plaintext `token` values are supported. SecretRef values are also supported for `channels.discord.token` across env/file/exec providers. See [Secrets Management](/gateway/secrets).
155
+
156
+ For multiple Discord bots, keep each bot token and application ID under its account. A top-level `channels.discord.applicationId` is inherited by accounts, so only set it there when every account should use the same application ID.
157
+
158
+ ```json5
159
+ {
160
+ channels: {
161
+ discord: {
162
+ enabled: true,
163
+ accounts: {
164
+ personal: {
165
+ token: { source: "env", provider: "default", id: "DISCORD_PERSONAL_TOKEN" },
166
+ applicationId: "111111111111111111",
167
+ },
168
+ work: {
169
+ token: { source: "env", provider: "default", id: "DISCORD_WORK_TOKEN" },
170
+ applicationId: "222222222222222222",
171
+ },
172
+ },
173
+ },
174
+ },
175
+ }
176
+ ```
177
+
178
+ </Tab>
179
+ </Tabs>
180
+
181
+ </Step>
182
+
183
+ <Step title="Approve first DM pairing">
184
+ Wait until the gateway is running, then DM your bot in Discord. It will respond with a pairing code.
185
+
186
+ <Tabs>
187
+ <Tab title="Ask your agent">
188
+ Send the pairing code to your agent on your existing channel:
189
+
190
+ > "Approve this Discord pairing code: `<CODE>`"
191
+ </Tab>
192
+ <Tab title="CLI">
193
+
194
+ ```bash
195
+ nodmix pairing list discord
196
+ nodmix pairing approve discord <CODE>
197
+ ```
198
+
199
+ </Tab>
200
+ </Tabs>
201
+
202
+ Pairing codes expire after 1 hour.
203
+
204
+ You should now be able to chat with your agent in Discord via DM.
205
+
206
+ </Step>
207
+ </Steps>
208
+
209
+ <Note>
210
+ Token resolution is account-aware. Config token values win over env fallback. `DISCORD_BOT_TOKEN` is only used for the default account.
211
+ If two enabled Discord accounts resolve to the same bot token, Nodmix starts only one gateway monitor for that token. A config-sourced token wins over the default env fallback; otherwise the first enabled account wins and the duplicate account is reported disabled.
212
+ For advanced outbound calls (message tool/channel actions), an explicit per-call `token` is used for that call. This applies to send and read/probe-style actions (for example read/search/fetch/thread/pins/permissions). Account policy/retry settings still come from the selected account in the active runtime snapshot.
213
+ </Note>
214
+
215
+ ## Recommended: Set up a guild workspace
216
+
217
+ Once DMs are working, you can set up your Discord server as a full workspace where each channel gets its own agent session with its own context. This is recommended for private servers where it's just you and your bot.
218
+
219
+ <Steps>
220
+ <Step title="Add your server to the guild allowlist">
221
+ This enables your agent to respond in any channel on your server, not just DMs.
222
+
223
+ <Tabs>
224
+ <Tab title="Ask your agent">
225
+ > "Add my Discord Server ID `<server_id>` to the guild allowlist"
226
+ </Tab>
227
+ <Tab title="Config">
228
+
229
+ ```json5
230
+ {
231
+ channels: {
232
+ discord: {
233
+ groupPolicy: "allowlist",
234
+ guilds: {
235
+ YOUR_SERVER_ID: {
236
+ requireMention: true,
237
+ users: ["YOUR_USER_ID"],
238
+ },
239
+ },
240
+ },
241
+ },
242
+ }
243
+ ```
244
+
245
+ </Tab>
246
+ </Tabs>
247
+
248
+ </Step>
249
+
250
+ <Step title="Allow responses without @mention">
251
+ By default, your agent only responds in guild channels when @mentioned. For a private server, you probably want it to respond to every message.
252
+
253
+ In guild channels, normal replies post automatically by default. For shared always-on rooms, opt into `messages.groupChat.visibleReplies: "message_tool"` so the agent can lurk and only post when it decides a channel reply is useful. This works best with latest-generation, tool-reliable models such as GPT 5.5. Ambient room events stay quiet unless the tool sends. See [Ambient room events](/channels/ambient-room-events) for the full lurk-mode config.
254
+
255
+ If Discord shows typing and the logs show token usage but no posted message, check whether the turn was configured as an ambient room event or opted into message-tool visible replies.
256
+
257
+ <Tabs>
258
+ <Tab title="Ask your agent">
259
+ > "Allow my agent to respond on this server without having to be @mentioned"
260
+ </Tab>
261
+ <Tab title="Config">
262
+ Set `requireMention: false` in your guild config:
263
+
264
+ ```json5
265
+ {
266
+ channels: {
267
+ discord: {
268
+ guilds: {
269
+ YOUR_SERVER_ID: {
270
+ requireMention: false,
271
+ },
272
+ },
273
+ },
274
+ },
275
+ }
276
+ ```
277
+
278
+ To require message-tool sends for visible group/channel replies, set `messages.groupChat.visibleReplies: "message_tool"`.
279
+
280
+ </Tab>
281
+ </Tabs>
282
+
283
+ </Step>
284
+
285
+ <Step title="Plan for memory in guild channels">
286
+ By default, long-term memory (MEMORY.md) only loads in DM sessions. Guild channels do not auto-load MEMORY.md.
287
+
288
+ <Tabs>
289
+ <Tab title="Ask your agent">
290
+ > "When I ask questions in Discord channels, use memory_search or memory_get if you need long-term context from MEMORY.md."
291
+ </Tab>
292
+ <Tab title="Manual">
293
+ If you need shared context in every channel, put the stable instructions in `AGENTS.md` or `USER.md` (they are injected for every session). Keep long-term notes in `MEMORY.md` and access them on demand with memory tools.
294
+ </Tab>
295
+ </Tabs>
296
+
297
+ </Step>
298
+ </Steps>
299
+
300
+ Now create some channels on your Discord server and start chatting. Your agent can see the channel name, and each channel gets its own isolated session — so you can set up `#coding`, `#home`, `#research`, or whatever fits your workflow.
301
+
302
+ ## Runtime model
303
+
304
+ - Gateway owns the Discord connection.
305
+ - Reply routing is deterministic: Discord inbound replies back to Discord.
306
+ - Discord guild/channel metadata is added to the model prompt as untrusted
307
+ context, not as a user-visible reply prefix. If a model copies that envelope
308
+ back, Nodmix strips the copied metadata from outbound replies and from
309
+ future replay context.
310
+ - By default (`session.dmScope=main`), direct chats share the agent main session (`agent:main:main`).
311
+ - Guild channels are isolated session keys (`agent:<agentId>:discord:channel:<channelId>`).
312
+ - Group DMs are ignored by default (`channels.discord.dm.groupEnabled=false`).
313
+ - Native slash commands run in isolated command sessions (`agent:<agentId>:discord:slash:<userId>`), while still carrying `CommandTargetSessionKey` to the routed conversation session.
314
+ - Text-only cron/heartbeat announce delivery to Discord uses the final
315
+ assistant-visible answer once. Media and structured component payloads remain
316
+ multi-message when the agent emits multiple deliverable payloads.
317
+
318
+ ## Forum channels
319
+
320
+ Discord forum and media channels only accept thread posts. Nodmix supports two ways to create them:
321
+
322
+ - Send a message to the forum parent (`channel:<forumId>`) to auto-create a thread. The thread title uses the first non-empty line of your message.
323
+ - Use `nodmix message thread create` to create a thread directly. Do not pass `--message-id` for forum channels.
324
+
325
+ Example: send to forum parent to create a thread
326
+
327
+ ```bash
328
+ nodmix message send --channel discord --target channel:<forumId> \
329
+ --message "Topic title\nBody of the post"
330
+ ```
331
+
332
+ Example: create a forum thread explicitly
333
+
334
+ ```bash
335
+ nodmix message thread create --channel discord --target channel:<forumId> \
336
+ --thread-name "Topic title" --message "Body of the post"
337
+ ```
338
+
339
+ Forum parents do not accept Discord components. If you need components, send to the thread itself (`channel:<threadId>`).
340
+
341
+ ## Interactive components
342
+
343
+ Nodmix supports Discord components v2 containers for agent messages. Use the message tool with a `components` payload. Interaction results are routed back to the agent as normal inbound messages and follow the existing Discord `replyToMode` settings.
344
+
345
+ Supported blocks:
346
+
347
+ - `text`, `section`, `separator`, `actions`, `media-gallery`, `file`
348
+ - Action rows allow up to 5 buttons or a single select menu
349
+ - Select types: `string`, `user`, `role`, `mentionable`, `channel`
350
+
351
+ By default, components are single use. Set `components.reusable=true` to allow buttons, selects, and forms to be used multiple times until they expire.
352
+
353
+ To restrict who can click a button, set `allowedUsers` on that button (Discord user IDs, tags, or `*`). When configured, unmatched users receive an ephemeral denial.
354
+
355
+ Component callbacks expire after 30 minutes by default. Set `channels.discord.agentComponents.ttlMs` to change that callback registry lifetime for the default Discord account, or `channels.discord.accounts.<accountId>.agentComponents.ttlMs` to override one account in a multi-account setup. The value is milliseconds, must be a positive integer, and is capped at `86400000` (24 hours). Longer TTLs are useful for review or approval workflows that need buttons to remain usable, but they also extend the window where an old Discord message can still trigger an action. Prefer the shortest TTL that fits the workflow, and keep the default when stale callbacks would be surprising.
356
+
357
+ The `/model` and `/models` slash commands open an interactive model picker with provider, model, and compatible runtime dropdowns plus a Submit step. `/models add` is deprecated and now returns a deprecation message instead of registering models from chat. The picker reply is ephemeral and only the invoking user can use it. Discord select menus are limited to 25 options, so add `provider/*` entries to `agents.defaults.models` when you want the picker to show dynamically discovered models only for selected providers such as `openai-codex` or `vllm`.
358
+
359
+ File attachments:
360
+
361
+ - `file` blocks must point to an attachment reference (`attachment://<filename>`)
362
+ - Provide the attachment via `media`/`path`/`filePath` (single file); use `media-gallery` for multiple files
363
+ - Use `filename` to override the upload name when it should match the attachment reference
364
+
365
+ Modal forms:
366
+
367
+ - Add `components.modal` with up to 5 fields
368
+ - Field types: `text`, `checkbox`, `radio`, `select`, `role-select`, `user-select`
369
+ - Nodmix adds a trigger button automatically
370
+
371
+ Example:
372
+
373
+ ```json5
374
+ {
375
+ channel: "discord",
376
+ action: "send",
377
+ to: "channel:123456789012345678",
378
+ message: "Optional fallback text",
379
+ components: {
380
+ reusable: true,
381
+ text: "Choose a path",
382
+ blocks: [
383
+ {
384
+ type: "actions",
385
+ buttons: [
386
+ {
387
+ label: "Approve",
388
+ style: "success",
389
+ allowedUsers: ["123456789012345678"],
390
+ },
391
+ { label: "Decline", style: "danger" },
392
+ ],
393
+ },
394
+ {
395
+ type: "actions",
396
+ select: {
397
+ type: "string",
398
+ placeholder: "Pick an option",
399
+ options: [
400
+ { label: "Option A", value: "a" },
401
+ { label: "Option B", value: "b" },
402
+ ],
403
+ },
404
+ },
405
+ ],
406
+ modal: {
407
+ title: "Details",
408
+ triggerLabel: "Open form",
409
+ fields: [
410
+ { type: "text", label: "Requester" },
411
+ {
412
+ type: "select",
413
+ label: "Priority",
414
+ options: [
415
+ { label: "Low", value: "low" },
416
+ { label: "High", value: "high" },
417
+ ],
418
+ },
419
+ ],
420
+ },
421
+ },
422
+ }
423
+ ```
424
+
425
+ ## Access control and routing
426
+
427
+ <Tabs>
428
+ <Tab title="DM policy">
429
+ `channels.discord.dmPolicy` controls DM access. `channels.discord.allowFrom` is the canonical DM allowlist.
430
+
431
+ - `pairing` (default)
432
+ - `allowlist`
433
+ - `open` (requires `channels.discord.allowFrom` to include `"*"`)
434
+ - `disabled`
435
+
436
+ If DM policy is not open, unknown users are blocked (or prompted for pairing in `pairing` mode).
437
+
438
+ Multi-account precedence:
439
+
440
+ - `channels.discord.accounts.default.allowFrom` applies only to the `default` account.
441
+ - For one account, `allowFrom` takes precedence over legacy `dm.allowFrom`.
442
+ - Named accounts inherit `channels.discord.allowFrom` when their own `allowFrom` and legacy `dm.allowFrom` are unset.
443
+ - Named accounts do not inherit `channels.discord.accounts.default.allowFrom`.
444
+
445
+ Legacy `channels.discord.dm.policy` and `channels.discord.dm.allowFrom` still read for compatibility. `nodmix doctor --fix` migrates them to `dmPolicy` and `allowFrom` when it can do so without changing access.
446
+
447
+ DM target format for delivery:
448
+
449
+ - `user:<id>`
450
+ - `<@id>` mention
451
+
452
+ Bare numeric IDs normally resolve as channel IDs when a channel default is active, but IDs listed in the account's effective DM `allowFrom` are treated as user DM targets for compatibility.
453
+
454
+ </Tab>
455
+
456
+ <Tab title="Access groups">
457
+ Discord DMs and text command authorization can use dynamic `accessGroup:<name>` entries in `channels.discord.allowFrom`.
458
+
459
+ Access group names are shared across message channels. Use `type: "message.senders"` for a static group whose members are expressed in each channel's normal `allowFrom` syntax, or `type: "discord.channelAudience"` when a Discord channel's current `ViewChannel` audience should define membership dynamically. Shared access-group behavior is documented here: [Access groups](/channels/access-groups).
460
+
461
+ ```json5
462
+ {
463
+ accessGroups: {
464
+ operators: {
465
+ type: "message.senders",
466
+ members: {
467
+ "*": ["global-owner-id"],
468
+ discord: ["discord:123456789012345678"],
469
+ telegram: ["987654321"],
470
+ },
471
+ },
472
+ },
473
+ channels: {
474
+ discord: {
475
+ dmPolicy: "allowlist",
476
+ allowFrom: ["accessGroup:operators"],
477
+ },
478
+ },
479
+ }
480
+ ```
481
+
482
+ A Discord text channel has no separate member list. `type: "discord.channelAudience"` models membership as: the DM sender is a member of the configured guild and currently has effective `ViewChannel` permission on the configured channel after role and channel overwrites are applied.
483
+
484
+ Example: allow anyone who can see `#maintainers` to DM the bot, while keeping DMs closed to everyone else.
485
+
486
+ ```json5
487
+ {
488
+ accessGroups: {
489
+ maintainers: {
490
+ type: "discord.channelAudience",
491
+ guildId: "1456350064065904867",
492
+ channelId: "1456744319972282449",
493
+ membership: "canViewChannel",
494
+ },
495
+ },
496
+ channels: {
497
+ discord: {
498
+ dmPolicy: "allowlist",
499
+ allowFrom: ["accessGroup:maintainers"],
500
+ },
501
+ },
502
+ }
503
+ ```
504
+
505
+ You can mix dynamic and static entries:
506
+
507
+ ```json5
508
+ {
509
+ accessGroups: {
510
+ maintainers: {
511
+ type: "discord.channelAudience",
512
+ guildId: "1456350064065904867",
513
+ channelId: "1456744319972282449",
514
+ },
515
+ },
516
+ channels: {
517
+ discord: {
518
+ dmPolicy: "allowlist",
519
+ allowFrom: ["accessGroup:maintainers", "discord:123456789012345678"],
520
+ },
521
+ },
522
+ }
523
+ ```
524
+
525
+ Lookups fail closed. If Discord returns `Missing Access`, the member lookup fails, or the channel belongs to a different guild, the DM sender is treated as unauthorized.
526
+
527
+ Enable the Discord Developer Portal **Server Members Intent** for the bot when using channel-audience access groups. DMs do not include guild member state, so Nodmix resolves the member through Discord REST at authorization time.
528
+
529
+ </Tab>
530
+
531
+ <Tab title="Guild policy">
532
+ Guild handling is controlled by `channels.discord.groupPolicy`:
533
+
534
+ - `open`
535
+ - `allowlist`
536
+ - `disabled`
537
+
538
+ Secure baseline when `channels.discord` exists is `allowlist`.
539
+
540
+ `allowlist` behavior:
541
+
542
+ - guild must match `channels.discord.guilds` (`id` preferred, slug accepted)
543
+ - optional sender allowlists: `users` (stable IDs recommended) and `roles` (role IDs only); if either is configured, senders are allowed when they match `users` OR `roles`
544
+ - direct name/tag matching is disabled by default; enable `channels.discord.dangerouslyAllowNameMatching: true` only as break-glass compatibility mode
545
+ - names/tags are supported for `users`, but IDs are safer; `nodmix security audit` warns when name/tag entries are used
546
+ - if a guild has `channels` configured, non-listed channels are denied
547
+ - if a guild has no `channels` block, all channels in that allowlisted guild are allowed
548
+
549
+ Example:
550
+
551
+ ```json5
552
+ {
553
+ channels: {
554
+ discord: {
555
+ groupPolicy: "allowlist",
556
+ guilds: {
557
+ "123456789012345678": {
558
+ requireMention: true,
559
+ ignoreOtherMentions: true,
560
+ users: ["987654321098765432"],
561
+ roles: ["123456789012345678"],
562
+ channels: {
563
+ general: { allow: true },
564
+ help: { allow: true, requireMention: true },
565
+ },
566
+ },
567
+ },
568
+ },
569
+ },
570
+ }
571
+ ```
572
+
573
+ If you only set `DISCORD_BOT_TOKEN` and do not create a `channels.discord` block, runtime fallback is `groupPolicy="allowlist"` (with a warning in logs), even if `channels.defaults.groupPolicy` is `open`.
574
+
575
+ </Tab>
576
+
577
+ <Tab title="Mentions and group DMs">
578
+ Guild messages are mention-gated by default.
579
+
580
+ Mention detection includes:
581
+
582
+ - explicit bot mention
583
+ - configured mention patterns (`agents.list[].groupChat.mentionPatterns`, fallback `messages.groupChat.mentionPatterns`)
584
+ - implicit reply-to-bot behavior in supported cases
585
+
586
+ When writing outbound Discord messages, use canonical mention syntax: `<@USER_ID>` for users, `<#CHANNEL_ID>` for channels, and `<@&ROLE_ID>` for roles. Do not use the legacy `<@!USER_ID>` nickname mention form.
587
+
588
+ `requireMention` is configured per guild/channel (`channels.discord.guilds...`).
589
+ `ignoreOtherMentions` optionally drops messages that mention another user/role but not the bot (excluding @everyone/@here).
590
+
591
+ Group DMs:
592
+
593
+ - default: ignored (`dm.groupEnabled=false`)
594
+ - optional allowlist via `dm.groupChannels` (channel IDs or slugs)
595
+
596
+ </Tab>
597
+ </Tabs>
598
+
599
+ ### Role-based agent routing
600
+
601
+ Use `bindings[].match.roles` to route Discord guild members to different agents by role ID. Role-based bindings accept role IDs only and are evaluated after peer or parent-peer bindings and before guild-only bindings. If a binding also sets other match fields (for example `peer` + `guildId` + `roles`), all configured fields must match.
602
+
603
+ ```json5
604
+ {
605
+ bindings: [
606
+ {
607
+ agentId: "opus",
608
+ match: {
609
+ channel: "discord",
610
+ guildId: "123456789012345678",
611
+ roles: ["111111111111111111"],
612
+ },
613
+ },
614
+ {
615
+ agentId: "sonnet",
616
+ match: {
617
+ channel: "discord",
618
+ guildId: "123456789012345678",
619
+ },
620
+ },
621
+ ],
622
+ }
623
+ ```
624
+
625
+ ## Native commands and command auth
626
+
627
+ - `commands.native` defaults to `"auto"` and is enabled for Discord.
628
+ - Per-channel override: `channels.discord.commands.native`.
629
+ - `commands.native=false` skips Discord slash-command registration and cleanup during startup. Previously registered commands may remain visible in Discord until you remove them from the Discord app.
630
+ - Native command auth uses the same Discord allowlists/policies as normal message handling.
631
+ - Commands may still be visible in Discord UI for users who are not authorized; execution still enforces Nodmix auth and returns "not authorized".
632
+
633
+ See [Slash commands](/tools/slash-commands) for command catalog and behavior.
634
+
635
+ Default slash command settings:
636
+
637
+ - `ephemeral: true`
638
+
639
+ ## Feature details
640
+
641
+ <AccordionGroup>
642
+ <Accordion title="Reply tags and native replies">
643
+ Discord supports reply tags in agent output:
644
+
645
+ - `[[reply_to_current]]`
646
+ - `[[reply_to:<id>]]`
647
+
648
+ Controlled by `channels.discord.replyToMode`:
649
+
650
+ - `off` (default)
651
+ - `first`
652
+ - `all`
653
+ - `batched`
654
+
655
+ Note: `off` disables implicit reply threading. Explicit `[[reply_to_*]]` tags are still honored.
656
+ `first` always attaches the implicit native reply reference to the first outbound Discord message for the turn.
657
+ `batched` only attaches Discord's implicit native reply reference when the
658
+ inbound event was a debounced batch of multiple messages. This is useful
659
+ when you want native replies mainly for ambiguous bursty chats, not every
660
+ single-message turn.
661
+
662
+ Message IDs are surfaced in context/history so agents can target specific messages.
663
+
664
+ </Accordion>
665
+
666
+ <Accordion title="Link previews">
667
+ Discord generates rich link embeds for URLs by default. Nodmix suppresses those generated embeds on outbound Discord messages by default, so agent-sent URLs stay as plain links unless you opt in:
668
+
669
+ ```json5
670
+ {
671
+ channels: {
672
+ discord: {
673
+ suppressEmbeds: false,
674
+ },
675
+ },
676
+ }
677
+ ```
678
+
679
+ Set `channels.discord.accounts.<id>.suppressEmbeds` to override one account. Agent message-tool sends can also pass `suppressEmbeds: false` for a single message. Explicit Discord `embeds` payloads are not suppressed by the default link-preview setting.
680
+
681
+ </Accordion>
682
+
683
+ <Accordion title="Live stream preview">
684
+ Nodmix can stream draft replies by sending a temporary message and editing it as text arrives. `channels.discord.streaming` takes `off` | `partial` | `block` | `progress` (default). `progress` keeps one editable status draft and updates it with tool progress until final delivery; the shared starter label is a rolling line, so it scrolls away like the rest once enough work appears. `streamMode` is a legacy runtime alias. Run `nodmix doctor --fix` to rewrite persisted config to the canonical key.
685
+
686
+ Set `channels.discord.streaming.mode` to `off` to disable Discord preview edits. If Discord block streaming is explicitly enabled, Nodmix skips the preview stream to avoid double-streaming.
687
+
688
+ ```json5
689
+ {
690
+ channels: {
691
+ discord: {
692
+ streaming: {
693
+ mode: "progress",
694
+ progress: {
695
+ label: "auto",
696
+ maxLines: 8,
697
+ maxLineChars: 120,
698
+ toolProgress: true,
699
+ },
700
+ },
701
+ },
702
+ },
703
+ }
704
+ ```
705
+
706
+ - `partial` edits a single preview message as tokens arrive.
707
+ - `block` emits draft-sized chunks (use `draftChunk` to tune size and breakpoints, clamped to `textChunkLimit`).
708
+ - Media, error, and explicit-reply finals cancel pending preview edits.
709
+ - `streaming.preview.toolProgress` (default `true`) controls whether tool/progress updates reuse the preview message.
710
+ - Tool/progress rows render as compact emoji + title + detail when available, for example `🛠️ Bash: run tests` or `🔎 Web Search: for "query"`.
711
+ - `streaming.progress.maxLineChars` controls the per-line progress preview budget. Prose is shortened on word boundaries; command and path details keep useful suffixes.
712
+ - `streaming.preview.commandText` / `streaming.progress.commandText` controls command/exec detail in compact progress lines: `raw` (default) or `status` (tool label only).
713
+
714
+ Hide raw command/exec text while keeping compact progress lines:
715
+
716
+ ```json
717
+ {
718
+ "channels": {
719
+ "discord": {
720
+ "streaming": {
721
+ "mode": "progress",
722
+ "progress": {
723
+ "toolProgress": true,
724
+ "commandText": "status"
725
+ }
726
+ }
727
+ }
728
+ }
729
+ }
730
+ ```
731
+
732
+ Preview streaming is text-only; media replies fall back to normal delivery. When `block` streaming is explicitly enabled, Nodmix skips the preview stream to avoid double-streaming.
733
+
734
+ </Accordion>
735
+
736
+ <Accordion title="History, context, and thread behavior">
737
+ Guild history context:
738
+
739
+ - `channels.discord.historyLimit` default `20`
740
+ - fallback: `messages.groupChat.historyLimit`
741
+ - `0` disables
742
+
743
+ DM history controls:
744
+
745
+ - `channels.discord.dmHistoryLimit`
746
+ - `channels.discord.dms["<user_id>"].historyLimit`
747
+
748
+ Thread behavior:
749
+
750
+ - Discord threads route as channel sessions and inherit parent channel config unless overridden.
751
+ - Thread sessions inherit the parent channel's session-level `/model` selection as a model-only fallback; thread-local `/model` selections still take precedence and parent transcript history is not copied unless transcript inheritance is enabled.
752
+ - `channels.discord.thread.inheritParent` (default `false`) opts new auto-threads into seeding from the parent transcript. Per-account overrides live under `channels.discord.accounts.<id>.thread.inheritParent`.
753
+ - Message-tool reactions can resolve `user:<id>` DM targets.
754
+ - `guilds.<guild>.channels.<channel>.requireMention: false` is preserved during reply-stage activation fallback.
755
+
756
+ Channel topics are injected as **untrusted** context. Allowlists gate who can trigger the agent, not a full supplemental-context redaction boundary.
757
+
758
+ </Accordion>
759
+
760
+ <Accordion title="Thread-bound sessions for subagents">
761
+ Discord can bind a thread to a session target so follow-up messages in that thread keep routing to the same session (including subagent sessions).
762
+
763
+ Commands:
764
+
765
+ - `/focus <target>` bind current/new thread to a subagent/session target
766
+ - `/unfocus` remove current thread binding
767
+ - `/agents` show active runs and binding state
768
+ - `/session idle <duration|off>` inspect/update inactivity auto-unfocus for focused bindings
769
+ - `/session max-age <duration|off>` inspect/update hard max age for focused bindings
770
+
771
+ Config:
772
+
773
+ ```json5
774
+ {
775
+ session: {
776
+ threadBindings: {
777
+ enabled: true,
778
+ idleHours: 24,
779
+ maxAgeHours: 0,
780
+ },
781
+ },
782
+ channels: {
783
+ discord: {
784
+ threadBindings: {
785
+ enabled: true,
786
+ idleHours: 24,
787
+ maxAgeHours: 0,
788
+ spawnSessions: true,
789
+ defaultSpawnContext: "fork",
790
+ },
791
+ },
792
+ },
793
+ }
794
+ ```
795
+
796
+ Notes:
797
+
798
+ - `session.threadBindings.*` sets global defaults.
799
+ - `channels.discord.threadBindings.*` overrides Discord behavior.
800
+ - `spawnSessions` controls auto-create/bind threads for `sessions_spawn({ thread: true })` and ACP thread spawns. Default: `true`.
801
+ - `defaultSpawnContext` controls native subagent context for thread-bound spawns. Default: `"fork"`.
802
+ - Deprecated `spawnSubagentSessions`/`spawnAcpSessions` keys are migrated by `nodmix doctor --fix`.
803
+ - If thread bindings are disabled for an account, `/focus` and related thread binding operations are unavailable.
804
+
805
+ See [Sub-agents](/tools/subagents), [ACP Agents](/tools/acp-agents), and [Configuration Reference](/gateway/configuration-reference).
806
+
807
+ </Accordion>
808
+
809
+ <Accordion title="Persistent ACP channel bindings">
810
+ For stable "always-on" ACP workspaces, configure top-level typed ACP bindings targeting Discord conversations.
811
+
812
+ Config path:
813
+
814
+ - `bindings[]` with `type: "acp"` and `match.channel: "discord"`
815
+
816
+ Example:
817
+
818
+ ```json5
819
+ {
820
+ agents: {
821
+ list: [
822
+ {
823
+ id: "codex",
824
+ runtime: {
825
+ type: "acp",
826
+ acp: {
827
+ agent: "codex",
828
+ backend: "acpx",
829
+ mode: "persistent",
830
+ cwd: "/workspace/nodmix",
831
+ },
832
+ },
833
+ },
834
+ ],
835
+ },
836
+ bindings: [
837
+ {
838
+ type: "acp",
839
+ agentId: "codex",
840
+ match: {
841
+ channel: "discord",
842
+ accountId: "default",
843
+ peer: { kind: "channel", id: "222222222222222222" },
844
+ },
845
+ acp: { label: "codex-main" },
846
+ },
847
+ ],
848
+ channels: {
849
+ discord: {
850
+ guilds: {
851
+ "111111111111111111": {
852
+ channels: {
853
+ "222222222222222222": {
854
+ requireMention: false,
855
+ },
856
+ },
857
+ },
858
+ },
859
+ },
860
+ },
861
+ }
862
+ ```
863
+
864
+ Notes:
865
+
866
+ - `/acp spawn codex --bind here` binds the current channel or thread in place and keeps future messages on the same ACP session. Thread messages inherit the parent channel binding.
867
+ - In a bound channel or thread, `/new` and `/reset` reset the same ACP session in place. Temporary thread bindings can override target resolution while active.
868
+ - `spawnSessions` gates child thread creation/binding via `--thread auto|here`.
869
+
870
+ See [ACP Agents](/tools/acp-agents) for binding behavior details.
871
+
872
+ </Accordion>
873
+
874
+ <Accordion title="Reaction notifications">
875
+ Per-guild reaction notification mode:
876
+
877
+ - `off`
878
+ - `own` (default)
879
+ - `all`
880
+ - `allowlist` (uses `guilds.<id>.users`)
881
+
882
+ Reaction events are turned into system events and attached to the routed Discord session.
883
+
884
+ </Accordion>
885
+
886
+ <Accordion title="Ack reactions">
887
+ `ackReaction` sends an acknowledgement emoji while Nodmix is processing an inbound message.
888
+
889
+ Resolution order:
890
+
891
+ - `channels.discord.accounts.<accountId>.ackReaction`
892
+ - `channels.discord.ackReaction`
893
+ - `messages.ackReaction`
894
+ - agent identity emoji fallback (`agents.list[].identity.emoji`, else "👀")
895
+
896
+ Notes:
897
+
898
+ - Discord accepts unicode emoji or custom emoji names.
899
+ - Use `""` to disable the reaction for a channel or account.
900
+
901
+ </Accordion>
902
+
903
+ <Accordion title="Config writes">
904
+ Channel-initiated config writes are enabled by default.
905
+
906
+ This affects `/config set|unset` flows (when command features are enabled).
907
+
908
+ Disable:
909
+
910
+ ```json5
911
+ {
912
+ channels: {
913
+ discord: {
914
+ configWrites: false,
915
+ },
916
+ },
917
+ }
918
+ ```
919
+
920
+ </Accordion>
921
+
922
+ <Accordion title="Gateway proxy">
923
+ Route Discord gateway WebSocket traffic and startup REST lookups (application ID + allowlist resolution) through an HTTP(S) proxy with `channels.discord.proxy`.
924
+
925
+ ```json5
926
+ {
927
+ channels: {
928
+ discord: {
929
+ proxy: "http://proxy.example:8080",
930
+ },
931
+ },
932
+ }
933
+ ```
934
+
935
+ Per-account override:
936
+
937
+ ```json5
938
+ {
939
+ channels: {
940
+ discord: {
941
+ accounts: {
942
+ primary: {
943
+ proxy: "http://proxy.example:8080",
944
+ },
945
+ },
946
+ },
947
+ },
948
+ }
949
+ ```
950
+
951
+ </Accordion>
952
+
953
+ <Accordion title="PluralKit support">
954
+ Enable PluralKit resolution to map proxied messages to system member identity:
955
+
956
+ ```json5
957
+ {
958
+ channels: {
959
+ discord: {
960
+ pluralkit: {
961
+ enabled: true,
962
+ token: "pk_live_...", // optional; needed for private systems
963
+ },
964
+ },
965
+ },
966
+ }
967
+ ```
968
+
969
+ Notes:
970
+
971
+ - allowlists can use `pk:<memberId>`
972
+ - member display names are matched by name/slug only when `channels.discord.dangerouslyAllowNameMatching: true`
973
+ - lookups use original message ID and are time-window constrained
974
+ - if lookup fails, proxied messages are treated as bot messages and dropped unless `allowBots=true`
975
+
976
+ </Accordion>
977
+
978
+ <Accordion title="Outbound mention aliases">
979
+ Use `mentionAliases` when agents need deterministic outbound mentions for known Discord users. Keys are handles without the leading `@`; values are Discord user IDs. Unknown handles, `@everyone`, `@here`, and mentions inside Markdown code spans are left unchanged.
980
+
981
+ ```json5
982
+ {
983
+ channels: {
984
+ discord: {
985
+ mentionAliases: {
986
+ Vladislava: "123456789012345678",
987
+ },
988
+ accounts: {
989
+ ops: {
990
+ mentionAliases: {
991
+ OpsLead: "234567890123456789",
992
+ },
993
+ },
994
+ },
995
+ },
996
+ },
997
+ }
998
+ ```
999
+
1000
+ </Accordion>
1001
+
1002
+ <Accordion title="Presence configuration">
1003
+ Presence updates are applied when you set a status or activity field, or when you enable auto presence.
1004
+
1005
+ Status only example:
1006
+
1007
+ ```json5
1008
+ {
1009
+ channels: {
1010
+ discord: {
1011
+ status: "idle",
1012
+ },
1013
+ },
1014
+ }
1015
+ ```
1016
+
1017
+ Activity example (custom status is the default activity type):
1018
+
1019
+ ```json5
1020
+ {
1021
+ channels: {
1022
+ discord: {
1023
+ activity: "Focus time",
1024
+ activityType: 4,
1025
+ },
1026
+ },
1027
+ }
1028
+ ```
1029
+
1030
+ Streaming example:
1031
+
1032
+ ```json5
1033
+ {
1034
+ channels: {
1035
+ discord: {
1036
+ activity: "Live coding",
1037
+ activityType: 1,
1038
+ activityUrl: "https://twitch.tv/nodmix",
1039
+ },
1040
+ },
1041
+ }
1042
+ ```
1043
+
1044
+ Activity type map:
1045
+
1046
+ - 0: Playing
1047
+ - 1: Streaming (requires `activityUrl`)
1048
+ - 2: Listening
1049
+ - 3: Watching
1050
+ - 4: Custom (uses the activity text as the status state; emoji is optional)
1051
+ - 5: Competing
1052
+
1053
+ Auto presence example (runtime health signal):
1054
+
1055
+ ```json5
1056
+ {
1057
+ channels: {
1058
+ discord: {
1059
+ autoPresence: {
1060
+ enabled: true,
1061
+ intervalMs: 30000,
1062
+ minUpdateIntervalMs: 15000,
1063
+ exhaustedText: "token exhausted",
1064
+ },
1065
+ },
1066
+ },
1067
+ }
1068
+ ```
1069
+
1070
+ Auto presence maps runtime availability to Discord status: healthy => online, degraded or unknown => idle, exhausted or unavailable => dnd. Optional text overrides:
1071
+
1072
+ - `autoPresence.healthyText`
1073
+ - `autoPresence.degradedText`
1074
+ - `autoPresence.exhaustedText` (supports `{reason}` placeholder)
1075
+
1076
+ </Accordion>
1077
+
1078
+ <Accordion title="Approvals in Discord">
1079
+ Discord supports button-based approval handling in DMs and can optionally post approval prompts in the originating channel.
1080
+
1081
+ Config path:
1082
+
1083
+ - `channels.discord.execApprovals.enabled`
1084
+ - `channels.discord.execApprovals.approvers` (optional; falls back to `commands.ownerAllowFrom` when possible)
1085
+ - `channels.discord.execApprovals.target` (`dm` | `channel` | `both`, default: `dm`)
1086
+ - `agentFilter`, `sessionFilter`, `cleanupAfterResolve`
1087
+
1088
+ Discord auto-enables native exec approvals when `enabled` is unset or `"auto"` and at least one approver can be resolved, either from `execApprovals.approvers` or from `commands.ownerAllowFrom`. Discord does not infer exec approvers from channel `allowFrom`, legacy `dm.allowFrom`, or direct-message `defaultTo`. Set `enabled: false` to disable Discord as a native approval client explicitly.
1089
+
1090
+ For sensitive owner-only group commands such as `/diagnostics` and `/export-trajectory`, Nodmix sends approval prompts and final results privately. It tries Discord DM first when the invoking owner has a Discord owner route; if that is not available, it falls back to the first available owner route from `commands.ownerAllowFrom`, such as Telegram.
1091
+
1092
+ When `target` is `channel` or `both`, the approval prompt is visible in the channel. Only resolved approvers can use the buttons; other users receive an ephemeral denial. Approval prompts include the command text, so only enable channel delivery in trusted channels. If the channel ID cannot be derived from the session key, Nodmix falls back to DM delivery.
1093
+
1094
+ Discord also renders the shared approval buttons used by other chat channels. The native Discord adapter mainly adds approver DM routing and channel fanout.
1095
+ When those buttons are present, they are the primary approval UX; Nodmix
1096
+ should only include a manual `/approve` command when the tool result says
1097
+ chat approvals are unavailable or manual approval is the only path.
1098
+ If the Discord native approval runtime is not active, Nodmix keeps the
1099
+ local deterministic `/approve <id> <decision>` prompt visible. If the
1100
+ runtime is active but a native card cannot be delivered to any target,
1101
+ Nodmix sends a same-chat fallback notice with the exact `/approve`
1102
+ command from the pending approval.
1103
+
1104
+ Gateway auth and approval resolution follow the shared Gateway client contract (`plugin:` IDs resolve through `plugin.approval.resolve`; other IDs through `exec.approval.resolve`). Approvals expire after 30 minutes by default.
1105
+
1106
+ See [Exec approvals](/tools/exec-approvals).
1107
+
1108
+ </Accordion>
1109
+ </AccordionGroup>
1110
+
1111
+ ## Tools and action gates
1112
+
1113
+ Discord message actions include messaging, channel admin, moderation, presence, and metadata actions.
1114
+
1115
+ Core examples:
1116
+
1117
+ - messaging: `sendMessage`, `readMessages`, `editMessage`, `deleteMessage`, `threadReply`
1118
+ - reactions: `react`, `reactions`, `emojiList`
1119
+ - moderation: `timeout`, `kick`, `ban`
1120
+ - presence: `setPresence`
1121
+
1122
+ The `event-create` action accepts an optional `image` parameter (URL or local file path) to set the scheduled event cover image.
1123
+
1124
+ Action gates live under `channels.discord.actions.*`.
1125
+
1126
+ Default gate behavior:
1127
+
1128
+ | Action group | Default |
1129
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- |
1130
+ | reactions, messages, threads, pins, polls, search, memberInfo, roleInfo, channelInfo, channels, voiceStatus, events, stickers, emojiUploads, stickerUploads, permissions | enabled |
1131
+ | roles | disabled |
1132
+ | moderation | disabled |
1133
+ | presence | disabled |
1134
+
1135
+ ## Components v2 UI
1136
+
1137
+ Nodmix uses Discord components v2 for exec approvals and cross-context markers. Discord message actions can also accept `components` for custom UI (advanced; requires constructing a component payload via the discord tool), while legacy `embeds` remain available but are not recommended.
1138
+
1139
+ - `channels.discord.ui.components.accentColor` sets the accent color used by Discord component containers (hex).
1140
+ - Set per account with `channels.discord.accounts.<id>.ui.components.accentColor`.
1141
+ - `channels.discord.agentComponents.ttlMs` controls how long sent Discord component callbacks remain registered (default `1800000`, maximum `86400000`). Set per account with `channels.discord.accounts.<id>.agentComponents.ttlMs`.
1142
+ - `embeds` are ignored when components v2 are present.
1143
+ - Plain URL previews are suppressed by default. Set `suppressEmbeds: false` on a message action when a single outbound link should expand.
1144
+
1145
+ Example:
1146
+
1147
+ ```json5
1148
+ {
1149
+ channels: {
1150
+ discord: {
1151
+ ui: {
1152
+ components: {
1153
+ accentColor: "#5865F2",
1154
+ },
1155
+ },
1156
+ },
1157
+ },
1158
+ }
1159
+ ```
1160
+
1161
+ ## Voice
1162
+
1163
+ Discord has two distinct voice surfaces: realtime **voice channels** (continuous conversations) and **voice message attachments** (the waveform preview format). The gateway supports both.
1164
+
1165
+ ### Voice channels
1166
+
1167
+ Setup checklist:
1168
+
1169
+ 1. Enable Message Content Intent in the Discord Developer Portal.
1170
+ 2. Enable Server Members Intent when role/user allowlists are used.
1171
+ 3. Invite the bot with `bot` and `applications.commands` scopes.
1172
+ 4. Grant Connect, Speak, Send Messages, and Read Message History in the target voice channel.
1173
+ 5. Enable native commands (`commands.native` or `channels.discord.commands.native`).
1174
+ 6. Configure `channels.discord.voice`.
1175
+
1176
+ Use `/vc join|leave|status` to control sessions. The command uses the account default agent and follows the same allowlist and group policy rules as other Discord commands.
1177
+
1178
+ ```bash
1179
+ /vc join channel:<voice-channel-id>
1180
+ /vc status
1181
+ /vc leave
1182
+ ```
1183
+
1184
+ To inspect the bot's effective permissions before joining, run:
1185
+
1186
+ ```bash
1187
+ nodmix channels capabilities --channel discord --target channel:<voice-channel-id>
1188
+ ```
1189
+
1190
+ Auto-join example:
1191
+
1192
+ ```json5
1193
+ {
1194
+ channels: {
1195
+ discord: {
1196
+ voice: {
1197
+ enabled: true,
1198
+ model: "openai-codex/gpt-5.5",
1199
+ autoJoin: [
1200
+ {
1201
+ guildId: "123456789012345678",
1202
+ channelId: "234567890123456789",
1203
+ },
1204
+ ],
1205
+ allowedChannels: [
1206
+ {
1207
+ guildId: "123456789012345678",
1208
+ channelId: "234567890123456789",
1209
+ },
1210
+ ],
1211
+ daveEncryption: true,
1212
+ decryptionFailureTolerance: 24,
1213
+ connectTimeoutMs: 30000,
1214
+ reconnectGraceMs: 15000,
1215
+ realtime: {
1216
+ provider: "openai",
1217
+ model: "gpt-realtime-2",
1218
+ voice: "cedar",
1219
+ },
1220
+ },
1221
+ },
1222
+ },
1223
+ }
1224
+ ```
1225
+
1226
+ Notes:
1227
+
1228
+ - `voice.tts` overrides `messages.tts` for `stt-tts` voice playback only. Realtime modes use `voice.realtime.voice`.
1229
+ - `voice.mode` controls the conversation path. The default is `agent-proxy`: a realtime voice front end handles turn timing, interruption, and playback, delegates substantive work to the routed Nodmix agent through `nodmix_agent_consult`, and treats the result like a typed Discord prompt from that speaker. `stt-tts` keeps the older batch STT plus TTS flow. `bidi` lets the realtime model converse directly while exposing `nodmix_agent_consult` for the Nodmix brain.
1230
+ - `voice.agentSession` controls which Nodmix conversation receives voice turns. Leave it unset for the voice channel's own session, or set `{ mode: "target", target: "channel:<text-channel-id>" }` to make the voice channel act as the microphone/speaker extension of an existing Discord text channel session such as `#maintainers`.
1231
+ - `voice.model` overrides the Nodmix agent brain for Discord voice responses and realtime consults. Leave it unset to inherit the routed agent model. It is separate from `voice.realtime.model`.
1232
+ - `voice.followUsers` lets the bot join, move, and leave Discord voice with selected users. See [Follow users in voice](#follow-users-in-voice) for behavior rules and examples.
1233
+ - `agent-proxy` routes speech through `discord-voice`, which preserves normal owner/tool authorization for the speaker and target session but hides the agent `tts` tool because Discord voice owns playback. By default, `agent-proxy` gives the consult full owner-equivalent tool access for owner speakers (`voice.realtime.toolPolicy: "owner"`) and strongly prefers consulting the Nodmix agent before substantive answers (`voice.realtime.consultPolicy: "always"`). In that default `always` mode, the realtime layer does not auto-speak filler before the consult answer; it captures and transcribes speech, then speaks the routed Nodmix answer. If multiple forced consult answers finish while Discord is still playing the first answer, later exact-speech answers are queued until playback idles instead of replacing speech mid-sentence.
1234
+ - In `stt-tts` mode, STT uses `tools.media.audio`; `voice.model` does not affect transcription.
1235
+ - In realtime modes, `voice.realtime.provider`, `voice.realtime.model`, and `voice.realtime.voice` configure the realtime audio session. For OpenAI Realtime 2 plus the Codex brain, use `voice.realtime.model: "gpt-realtime-2"` and `voice.model: "openai-codex/gpt-5.5"`.
1236
+ - Realtime voice modes include small `IDENTITY.md`, `USER.md`, and `SOUL.md` profile files in the realtime provider instructions by default so fast direct turns keep the same identity, user grounding, and persona as the routed Nodmix agent. Set `voice.realtime.bootstrapContextFiles` to a subset to customize this, or `[]` to disable it. The supported realtime bootstrap files are limited to those profile files; `AGENTS.md` stays in the normal agent context. The injected profile context does not replace `nodmix_agent_consult` for workspace work, current facts, memory lookup, or tool-backed actions.
1237
+ - The OpenAI realtime provider accepts current Realtime 2 event names and legacy Codex-compatible aliases for output audio and transcript events, so compatible provider snapshots can drift without dropping assistant audio.
1238
+ - `voice.realtime.bargeIn` controls whether Discord speaker-start events interrupt active realtime playback. If unset, it follows the realtime provider's input-audio interruption setting.
1239
+ - `voice.realtime.minBargeInAudioEndMs` controls the minimum assistant playback duration before an OpenAI realtime barge-in truncates audio. Default: `250`. Set `0` for immediate interruption in low-echo rooms, or raise it for echo-heavy speaker setups.
1240
+ - For an OpenAI voice on Discord playback, set `voice.tts.provider: "openai"` and choose a Text-to-speech voice under `voice.tts.openai.voice` or `voice.tts.providers.openai.voice`. `cedar` is a good masculine-sounding choice on the current OpenAI TTS model.
1241
+ - Per-channel Discord `systemPrompt` overrides apply to voice transcript turns for that voice channel.
1242
+ - Voice transcript turns derive owner status from Discord `allowFrom` (or `dm.allowFrom`) for owner-gated commands and channel actions. Agent tool visibility follows the configured tool policy for the routed session.
1243
+ - Discord voice is opt-in for text-only configs; set `channels.discord.voice.enabled=true` (or keep an existing `channels.discord.voice` block) to enable `/vc` commands, the voice runtime, and the `GuildVoiceStates` gateway intent.
1244
+ - `channels.discord.intents.voiceStates` can explicitly override voice-state intent subscription. Leave it unset for the intent to follow effective voice enablement.
1245
+ - If `voice.autoJoin` has multiple entries for the same guild, Nodmix joins the last configured channel for that guild.
1246
+ - `voice.allowedChannels` is an optional residency allowlist. Leave it unset to allow `/vc join` into any authorized Discord voice channel. When set, `/vc join`, startup auto-join, and bot voice-state moves are restricted to the listed `{ guildId, channelId }` entries. Set it to an empty array to deny all Discord voice joins. If Discord moves the bot outside the allowlist, Nodmix leaves that channel and rejoins the configured auto-join target when one is available.
1247
+ - `voice.daveEncryption` and `voice.decryptionFailureTolerance` pass through to `@discordjs/voice` join options.
1248
+ - `@discordjs/voice` defaults are `daveEncryption=true` and `decryptionFailureTolerance=24` if unset.
1249
+ - Nodmix defaults to the pure-JS `opusscript` decoder for Discord voice receive. The optional native `@discordjs/opus` package is ignored by the repo pnpm install policy so normal installs, Docker lanes, and unrelated tests do not compile a native addon. Dedicated voice-performance hosts can opt in with `NODMIX_DISCORD_OPUS_DECODER=native` after installing the native addon.
1250
+ - `voice.connectTimeoutMs` controls the initial `@discordjs/voice` Ready wait for `/vc join` and auto-join attempts. Default: `30000`.
1251
+ - `voice.reconnectGraceMs` controls how long Nodmix waits for a disconnected voice session to begin reconnecting before destroying it. Default: `15000`.
1252
+ - In `stt-tts` mode, voice playback does not stop just because another user starts speaking. To avoid feedback loops, Nodmix ignores new voice capture while TTS is playing; speak after playback finishes for the next turn. Realtime modes forward speaker starts as barge-in signals to the realtime provider.
1253
+ - In realtime modes, echo from speakers into an open mic can look like barge-in and interrupt playback. For echo-heavy Discord rooms, set `voice.realtime.providers.openai.interruptResponseOnInputAudio: false` to keep OpenAI from auto-interrupting on input audio. Add `voice.realtime.bargeIn: true` if you still want Discord speaker-start events to interrupt active playback. The OpenAI realtime bridge ignores playback truncations shorter than `voice.realtime.minBargeInAudioEndMs` as likely echo/noise and logs them as skipped instead of clearing Discord playback.
1254
+ - `voice.captureSilenceGraceMs` controls how long Nodmix waits after Discord reports a speaker has stopped before finalizing that audio segment for STT. Default: `2500`; raise this if Discord splits normal pauses into choppy partial transcripts.
1255
+ - When ElevenLabs is the selected TTS provider, Discord voice playback uses streaming TTS and starts from the provider response stream. Providers without streaming support fall back to the synthesized temp-file path.
1256
+ - Nodmix also watches receive decrypt failures and auto-recovers by leaving/rejoining the voice channel after repeated failures in a short window.
1257
+ - If receive logs repeatedly show `DecryptionFailed(UnencryptedWhenPassthroughDisabled)` after updating, collect a dependency report and logs. The bundled `@discordjs/voice` line includes the upstream padding fix from discord.js PR #11449, which closed discord.js issue #11419.
1258
+ - `The operation was aborted` receive events are expected when Nodmix finalizes a captured speaker segment; they are verbose diagnostics, not warnings.
1259
+ - Verbose Discord voice logs include a bounded one-line STT transcript preview for each accepted speaker segment, so debugging shows both the user side and the agent reply side without dumping unbounded transcript text.
1260
+ - In `agent-proxy` mode, forced consult fallback skips likely incomplete transcript fragments such as text ending in `...` or a trailing connector like `and`, plus obvious non-actionable closings like “be right back” or “bye”. Logs show `forced agent consult skipped reason=...` when this prevents a stale queued answer.
1261
+
1262
+ ### Follow users in voice
1263
+
1264
+ Use `voice.followUsers` when you want the Discord voice bot to stay with one or more known Discord users instead of joining a fixed channel at startup or waiting for `/vc join`.
1265
+
1266
+ ```json5
1267
+ {
1268
+ channels: {
1269
+ discord: {
1270
+ voice: {
1271
+ enabled: true,
1272
+ followUsersEnabled: true,
1273
+ followUsers: ["discord:123456789012345678"],
1274
+ allowedChannels: [
1275
+ {
1276
+ guildId: "123456789012345678",
1277
+ channelId: "234567890123456789",
1278
+ },
1279
+ ],
1280
+ },
1281
+ },
1282
+ },
1283
+ }
1284
+ ```
1285
+
1286
+ Behavior:
1287
+
1288
+ - `followUsers` accepts raw Discord user IDs and `discord:<id>` values. Nodmix normalizes both forms before matching voice-state events.
1289
+ - `followUsersEnabled` defaults to `true` when `followUsers` is configured. Set it to `false` to keep the saved list but stop automatic voice following.
1290
+ - When a followed user joins an allowed voice channel, Nodmix joins that channel. When the user moves, Nodmix moves with them. When the active followed user disconnects, Nodmix leaves.
1291
+ - If multiple followed users are in the same guild and the active followed user leaves, Nodmix moves to another tracked followed user's channel before leaving the guild. If several followed users move at once, the latest observed voice-state event wins.
1292
+ - `allowedChannels` still applies. A followed user in a disallowed channel is ignored, and a follow-owned session moves to another followed user or leaves.
1293
+ - Nodmix reconciles missed voice-state events on startup and at a bounded interval. Reconciliation samples configured guilds and caps REST lookups per run, so very large `followUsers` lists may take more than one interval to converge.
1294
+ - If Discord or an admin moves the bot while it is following a user, Nodmix rebuilds the voice session and preserves follow ownership when the destination is allowed. If the bot is moved outside `allowedChannels`, Nodmix leaves and rejoins the configured target when one exists.
1295
+ - DAVE receive recovery may leave and rejoin the same channel after repeated decrypt failures. Follow-owned sessions keep their follow ownership through that recovery path, so a later followed-user disconnect still leaves the channel.
1296
+
1297
+ Choose between the join modes:
1298
+
1299
+ - Use `followUsers` for personal or operator setups where the bot should automatically be in voice when you are.
1300
+ - Use `autoJoin` for fixed-room bots that should be present even when no tracked user is in voice.
1301
+ - Use `/vc join` for one-off joins or rooms where automatic voice presence would be surprising.
1302
+
1303
+ Native opus setup for source checkouts:
1304
+
1305
+ ```bash
1306
+ pnpm install
1307
+ mise exec node@22 -- pnpm discord:opus:install
1308
+ ```
1309
+
1310
+ Use Node 22 for the gateway when you want the upstream macOS arm64 prebuilt native addon. If you use another Node runtime, the opt-in installer may need a local `node-gyp` source-build toolchain.
1311
+
1312
+ After installing the native addon, start the Gateway with:
1313
+
1314
+ ```bash
1315
+ NODMIX_DISCORD_OPUS_DECODER=native pnpm gateway:watch
1316
+ ```
1317
+
1318
+ Verbose voice logs should show `discord voice: opus decoder: @discordjs/opus`. Without the env opt-in, or if the native addon is missing or cannot load on the host, Nodmix logs `discord voice: opus decoder: opusscript` and keeps receiving voice through the pure-JS fallback.
1319
+
1320
+ STT plus TTS pipeline:
1321
+
1322
+ - Discord PCM capture is converted to a WAV temp file.
1323
+ - `tools.media.audio` handles STT, for example `openai/gpt-4o-mini-transcribe`.
1324
+ - The transcript is sent through Discord ingress and routing while the response LLM runs with a voice-output policy that hides the agent `tts` tool and asks for returned text, because Discord voice owns final TTS playback.
1325
+ - `voice.model`, when set, overrides only the response LLM for this voice-channel turn.
1326
+ - `voice.tts` is merged over `messages.tts`; streaming-capable providers feed the player directly, otherwise the resulting audio file is played in the joined channel.
1327
+
1328
+ Default agent-proxy voice-channel session example:
1329
+
1330
+ ```json5
1331
+ {
1332
+ channels: {
1333
+ discord: {
1334
+ voice: {
1335
+ enabled: true,
1336
+ model: "openai-codex/gpt-5.5",
1337
+ followUsersEnabled: true,
1338
+ followUsers: ["123456789012345678"],
1339
+ realtime: {
1340
+ provider: "openai",
1341
+ model: "gpt-realtime-2",
1342
+ voice: "cedar",
1343
+ },
1344
+ },
1345
+ },
1346
+ },
1347
+ }
1348
+ ```
1349
+
1350
+ With no `voice.agentSession` block, each voice channel gets its own routed Nodmix session. For example, `/vc join channel:234567890123456789` talks to the session for that Discord voice channel. The realtime model is only the voice front end; substantive requests are handed to the configured Nodmix agent. If the realtime model produces a final transcript without calling the consult tool, Nodmix forces the consult as a fallback so the default still behaves like talking to the agent.
1351
+
1352
+ Legacy STT plus TTS example:
1353
+
1354
+ ```json5
1355
+ {
1356
+ channels: {
1357
+ discord: {
1358
+ voice: {
1359
+ enabled: true,
1360
+ mode: "stt-tts",
1361
+ model: "openai/gpt-5.4-mini",
1362
+ tts: {
1363
+ provider: "openai",
1364
+ openai: {
1365
+ model: "gpt-4o-mini-tts",
1366
+ voice: "cedar",
1367
+ },
1368
+ },
1369
+ },
1370
+ },
1371
+ },
1372
+ }
1373
+ ```
1374
+
1375
+ Realtime bidi example:
1376
+
1377
+ ```json5
1378
+ {
1379
+ channels: {
1380
+ discord: {
1381
+ voice: {
1382
+ enabled: true,
1383
+ mode: "bidi",
1384
+ model: "openai-codex/gpt-5.5",
1385
+ realtime: {
1386
+ provider: "openai",
1387
+ model: "gpt-realtime-2",
1388
+ voice: "cedar",
1389
+ toolPolicy: "safe-read-only",
1390
+ consultPolicy: "always",
1391
+ },
1392
+ },
1393
+ },
1394
+ },
1395
+ }
1396
+ ```
1397
+
1398
+ Voice as an extension of an existing Discord channel session:
1399
+
1400
+ ```json5
1401
+ {
1402
+ channels: {
1403
+ discord: {
1404
+ voice: {
1405
+ enabled: true,
1406
+ mode: "agent-proxy",
1407
+ model: "openai-codex/gpt-5.5",
1408
+ agentSession: {
1409
+ mode: "target",
1410
+ target: "channel:123456789012345678",
1411
+ },
1412
+ realtime: {
1413
+ provider: "openai",
1414
+ model: "gpt-realtime-2",
1415
+ voice: "cedar",
1416
+ },
1417
+ },
1418
+ },
1419
+ },
1420
+ }
1421
+ ```
1422
+
1423
+ In `agent-proxy` mode the bot joins the configured voice channel, but Nodmix agent turns use the target channel's normal routed session and agent. The realtime voice session speaks the returned result back into the voice channel. The supervisor agent can still use normal message tools according to its tool policy, including sending a separate Discord message if that is the right action.
1424
+
1425
+ Useful target forms:
1426
+
1427
+ - `target: "channel:123456789012345678"` routes through a Discord text channel session.
1428
+ - `target: "123456789012345678"` is treated as a channel target.
1429
+ - `target: "dm:123456789012345678"` or `target: "user:123456789012345678"` routes through that direct-message session.
1430
+
1431
+ Echo-heavy OpenAI Realtime example:
1432
+
1433
+ ```json5
1434
+ {
1435
+ channels: {
1436
+ discord: {
1437
+ voice: {
1438
+ enabled: true,
1439
+ mode: "bidi",
1440
+ model: "openai-codex/gpt-5.5",
1441
+ realtime: {
1442
+ provider: "openai",
1443
+ model: "gpt-realtime-2",
1444
+ voice: "cedar",
1445
+ bargeIn: true,
1446
+ minBargeInAudioEndMs: 500,
1447
+ consultPolicy: "always",
1448
+ providers: {
1449
+ openai: {
1450
+ interruptResponseOnInputAudio: false,
1451
+ },
1452
+ },
1453
+ },
1454
+ },
1455
+ },
1456
+ },
1457
+ }
1458
+ ```
1459
+
1460
+ Use this when the model hears its own Discord playback through an open mic, but you still want to interrupt it by speaking. Nodmix keeps OpenAI from auto-interrupting on raw input audio, while `bargeIn: true` lets Discord speaker-start events and already-active speaker audio cancel active realtime responses before the next captured turn reaches OpenAI. Very early barge-in signals with `audioEndMs` below `minBargeInAudioEndMs` are treated as likely echo/noise and ignored so the model does not cut off at the first playback frame.
1461
+
1462
+ Expected voice logs:
1463
+
1464
+ - On join: `discord voice: joining ... voiceSession=... supervisorSession=... agentSessionMode=... voiceModel=... realtimeModel=...`
1465
+ - On realtime start: `discord voice: realtime bridge starting ... autoRespond=false interruptResponse=false bargeIn=false minBargeInAudioEndMs=...`
1466
+ - On speaker audio: `discord voice: realtime speaker turn opened ...`, `discord voice: realtime input audio started ... outputAudioMs=... outputActive=...`, and `discord voice: realtime speaker turn closed ... chunks=... discordBytes=... realtimeBytes=... interruptedPlayback=...`
1467
+ - On skipped stale speech: `discord voice: realtime forced agent consult skipped reason=incomplete-transcript ...` or `reason=non-actionable-closing ...`
1468
+ - On realtime response completion: `discord voice: realtime audio playback finishing reason=response.done ... audioMs=... chunks=...`
1469
+ - On playback stop/reset: `discord voice: realtime audio playback stopped reason=... audioMs=... elapsedMs=... chunks=...`
1470
+ - On realtime consult: `discord voice: realtime consult requested ... voiceSession=... supervisorSession=... question=...`
1471
+ - On agent answer: `discord voice: agent turn answer ...`
1472
+ - On queued exact speech: `discord voice: realtime exact speech queued ... queued=... outputAudioMs=... outputActive=...`, followed by `discord voice: realtime exact speech dequeued reason=player-idle ...`
1473
+ - On barge-in detection: `discord voice: realtime barge-in detected source=speaker-start ...` or `discord voice: realtime barge-in detected source=active-speaker-audio ...`, followed by `discord voice: realtime barge-in requested reason=... outputAudioMs=... outputActive=...`
1474
+ - On realtime interruption: `discord voice: realtime model interrupt requested client:response.cancel reason=barge-in`, followed by either `discord voice: realtime model audio truncated client:conversation.item.truncate reason=barge-in audioEndMs=...` or `discord voice: realtime model interrupt confirmed server:response.done status=cancelled ...`
1475
+ - On ignored echo/noise: `discord voice: realtime model interrupt ignored client:conversation.item.truncate.skipped reason=barge-in audioEndMs=0 minAudioEndMs=250`
1476
+ - On disabled barge-in: `discord voice: realtime capture ignored during playback (barge-in disabled) ...`
1477
+ - On idle playback: `discord voice: realtime barge-in ignored reason=... outputActive=false ... playbackChunks=0`
1478
+
1479
+ To debug cut-off audio, read the realtime voice logs as a timeline:
1480
+
1481
+ 1. `realtime audio playback started` means Discord has begun playing assistant audio. The bridge starts counting assistant output chunks, Discord PCM bytes, provider realtime bytes, and synthesized audio duration from this point.
1482
+ 2. `realtime speaker turn opened` marks a Discord speaker becoming active. If playback is already active and `bargeIn` is enabled, this can be followed by `barge-in detected source=speaker-start`.
1483
+ 3. `realtime input audio started` marks the first actual audio frame received for that speaker turn. `outputActive=true` or a nonzero `outputAudioMs` here means the mic is sending input while assistant playback is still active.
1484
+ 4. `barge-in detected source=active-speaker-audio` means Nodmix saw live speaker audio while assistant playback was active. This is useful for distinguishing a real interruption from a Discord speaker-start event with no useful audio.
1485
+ 5. `barge-in requested reason=...` means Nodmix asked the realtime provider to cancel or truncate the active response. It includes `outputAudioMs`, `outputActive`, and `playbackChunks` so you can see how much assistant audio had actually played before the interruption.
1486
+ 6. `realtime audio playback stopped reason=...` is the local Discord playback reset point. The reason says who stopped playback: `barge-in`, `player-idle`, `provider-clear-audio`, `forced-agent-consult`, `stream-close`, or `session-close`.
1487
+ 7. `realtime speaker turn closed` summarizes the captured input turn. `chunks=0` or `hasAudio=false` means the speaker turn opened but no usable audio reached the realtime bridge. `interruptedPlayback=true` means that input turn overlapped assistant output and triggered barge-in logic.
1488
+
1489
+ Useful fields:
1490
+
1491
+ - `outputAudioMs`: assistant audio duration generated by the realtime provider before the log line.
1492
+ - `audioMs`: assistant audio duration that Nodmix counted before playback stopped.
1493
+ - `elapsedMs`: wall-clock time between opening and closing the playback stream or speaker turn.
1494
+ - `discordBytes`: 48 kHz stereo PCM bytes sent to or received from Discord voice.
1495
+ - `realtimeBytes`: provider-format PCM bytes sent to or received from the realtime provider.
1496
+ - `playbackChunks`: assistant audio chunks forwarded to Discord for the active response.
1497
+ - `sinceLastAudioMs`: gap between the last captured speaker audio frame and the speaker turn closing.
1498
+
1499
+ Common patterns:
1500
+
1501
+ - Immediate cut-off with `source=active-speaker-audio`, small `outputAudioMs`, and the same user nearby usually points to speaker echo entering the mic. Raise `voice.realtime.minBargeInAudioEndMs`, lower speaker volume, use headphones, or set `voice.realtime.providers.openai.interruptResponseOnInputAudio: false`.
1502
+ - `source=speaker-start` followed by `speaker turn closed ... hasAudio=false` means Discord reported a speaker start but no audio reached Nodmix. That can be a transient Discord voice event, noise gate behavior, or a client briefly keying the mic.
1503
+ - `audio playback stopped reason=stream-close` without a nearby barge-in or `provider-clear-audio` means the local Discord playback stream ended unexpectedly. Check the preceding provider and Discord player logs.
1504
+ - `capture ignored during playback (barge-in disabled)` means Nodmix intentionally dropped input while assistant audio was active. Enable `voice.realtime.bargeIn` if you want speech to interrupt playback.
1505
+ - `barge-in ignored ... outputActive=false` means Discord or provider VAD reported speech, but Nodmix had no active playback to interrupt. This should not cut off audio.
1506
+
1507
+ Credentials are resolved per component: LLM route auth for `voice.model`, STT auth for `tools.media.audio`, TTS auth for `messages.tts`/`voice.tts`, and realtime provider auth for `voice.realtime.providers` or the provider's normal auth config.
1508
+
1509
+ ### Voice messages
1510
+
1511
+ Discord voice messages show a waveform preview and require OGG/Opus audio. Nodmix generates the waveform automatically, but needs `ffmpeg` and `ffprobe` on the gateway host to inspect and convert.
1512
+
1513
+ - Provide a **local file path** (URLs are rejected).
1514
+ - Omit text content (Discord rejects text + voice message in the same payload).
1515
+ - Any audio format is accepted; Nodmix converts to OGG/Opus as needed.
1516
+
1517
+ ```bash
1518
+ message(action="send", channel="discord", target="channel:123", path="/path/to/audio.mp3", asVoice=true)
1519
+ ```
1520
+
1521
+ ## Troubleshooting
1522
+
1523
+ <AccordionGroup>
1524
+ <Accordion title="Used disallowed intents or bot sees no guild messages">
1525
+
1526
+ - enable Message Content Intent
1527
+ - enable Server Members Intent when you depend on user/member resolution
1528
+ - restart gateway after changing intents
1529
+
1530
+ </Accordion>
1531
+
1532
+ <Accordion title="Guild messages blocked unexpectedly">
1533
+
1534
+ - verify `groupPolicy`
1535
+ - verify guild allowlist under `channels.discord.guilds`
1536
+ - if guild `channels` map exists, only listed channels are allowed
1537
+ - verify `requireMention` behavior and mention patterns
1538
+
1539
+ Useful checks:
1540
+
1541
+ ```bash
1542
+ nodmix doctor
1543
+ nodmix channels status --probe
1544
+ nodmix logs --follow
1545
+ ```
1546
+
1547
+ </Accordion>
1548
+
1549
+ <Accordion title="Require mention false but still blocked">
1550
+ Common causes:
1551
+
1552
+ - `groupPolicy="allowlist"` without matching guild/channel allowlist
1553
+ - `requireMention` configured in the wrong place (must be under `channels.discord.guilds` or channel entry)
1554
+ - sender blocked by guild/channel `users` allowlist
1555
+
1556
+ </Accordion>
1557
+
1558
+ <Accordion title="Long-running Discord turns or duplicate replies">
1559
+
1560
+ Typical logs:
1561
+
1562
+ - `Slow listener detected ...`
1563
+ - `stuck session: sessionKey=agent:...:discord:... state=processing ...`
1564
+
1565
+ Discord gateway queue knobs:
1566
+
1567
+ - single-account: `channels.discord.eventQueue.listenerTimeout`
1568
+ - multi-account: `channels.discord.accounts.<accountId>.eventQueue.listenerTimeout`
1569
+ - this only controls Discord gateway listener work, not agent turn lifetime
1570
+
1571
+ Discord does not apply a channel-owned timeout to queued agent turns. Message listeners hand off immediately, and queued Discord runs preserve per-session ordering until the session/tool/runtime lifecycle completes or aborts the work.
1572
+
1573
+ ```json5
1574
+ {
1575
+ channels: {
1576
+ discord: {
1577
+ accounts: {
1578
+ default: {
1579
+ eventQueue: {
1580
+ listenerTimeout: 120000,
1581
+ },
1582
+ },
1583
+ },
1584
+ },
1585
+ },
1586
+ }
1587
+ ```
1588
+
1589
+ </Accordion>
1590
+
1591
+ <Accordion title="Gateway metadata lookup timeout warnings">
1592
+ Nodmix fetches Discord `/gateway/bot` metadata before connecting. Transient failures fall back to Discord's default gateway URL and are rate-limited in logs.
1593
+
1594
+ Metadata timeout knobs:
1595
+
1596
+ - single-account: `channels.discord.gatewayInfoTimeoutMs`
1597
+ - multi-account: `channels.discord.accounts.<accountId>.gatewayInfoTimeoutMs`
1598
+ - env fallback when config is unset: `NODMIX_DISCORD_GATEWAY_INFO_TIMEOUT_MS`
1599
+ - default: `30000` (30 seconds), max: `120000`
1600
+
1601
+ </Accordion>
1602
+
1603
+ <Accordion title="Gateway READY timeout restarts">
1604
+ Nodmix waits for Discord's gateway `READY` event during startup and after runtime reconnects. Multi-account setups with startup staggering can need a longer startup READY window than the default.
1605
+
1606
+ READY timeout knobs:
1607
+
1608
+ - startup single-account: `channels.discord.gatewayReadyTimeoutMs`
1609
+ - startup multi-account: `channels.discord.accounts.<accountId>.gatewayReadyTimeoutMs`
1610
+ - startup env fallback when config is unset: `NODMIX_DISCORD_READY_TIMEOUT_MS`
1611
+ - startup default: `15000` (15 seconds), max: `120000`
1612
+ - runtime single-account: `channels.discord.gatewayRuntimeReadyTimeoutMs`
1613
+ - runtime multi-account: `channels.discord.accounts.<accountId>.gatewayRuntimeReadyTimeoutMs`
1614
+ - runtime env fallback when config is unset: `NODMIX_DISCORD_RUNTIME_READY_TIMEOUT_MS`
1615
+ - runtime default: `30000` (30 seconds), max: `120000`
1616
+
1617
+ </Accordion>
1618
+
1619
+ <Accordion title="Permissions audit mismatches">
1620
+ `channels status --probe` permission checks only work for numeric channel IDs.
1621
+
1622
+ If you use slug keys, runtime matching can still work, but probe cannot fully verify permissions.
1623
+
1624
+ </Accordion>
1625
+
1626
+ <Accordion title="DM and pairing issues">
1627
+
1628
+ - DM disabled: `channels.discord.dm.enabled=false`
1629
+ - DM policy disabled: `channels.discord.dmPolicy="disabled"` (legacy: `channels.discord.dm.policy`)
1630
+ - awaiting pairing approval in `pairing` mode
1631
+
1632
+ </Accordion>
1633
+
1634
+ <Accordion title="Bot to bot loops">
1635
+ By default bot-authored messages are ignored.
1636
+
1637
+ If you set `channels.discord.allowBots=true`, use strict mention and allowlist rules to avoid loop behavior.
1638
+ Prefer `channels.discord.allowBots="mentions"` to only accept bot messages that mention the bot.
1639
+
1640
+ Nodmix also ships shared [bot loop protection](/channels/bot-loop-protection). Whenever `allowBots` lets bot-authored messages reach dispatch, Discord maps the inbound event to `(account, channel, bot pair)` facts and the generic pair guard suppresses the pair after it crosses the configured event budget. The guard prevents runaway two-bot loops that previously had to be stopped by Discord rate limits; it does not affect single-bot deployments or one-shot bot replies that stay under the budget.
1641
+
1642
+ Default settings (active when `allowBots` is set):
1643
+
1644
+ - `maxEventsPerWindow: 20` -- bot pair can exchange 20 messages within the sliding window
1645
+ - `windowSeconds: 60` -- sliding window length
1646
+ - `cooldownSeconds: 60` -- once the budget trips, every additional bot-to-bot message in either direction is dropped for one minute
1647
+
1648
+ Configure the shared default once under `channels.defaults.botLoopProtection`, then override Discord when a legitimate workflow needs more headroom. Precedence is:
1649
+
1650
+ - `channels.discord.accounts.<account>.botLoopProtection`
1651
+ - `channels.discord.botLoopProtection`
1652
+ - `channels.defaults.botLoopProtection`
1653
+ - built-in defaults
1654
+
1655
+ Discord uses the generic `maxEventsPerWindow`, `windowSeconds`, and `cooldownSeconds` keys.
1656
+
1657
+ ```json5
1658
+ {
1659
+ channels: {
1660
+ defaults: {
1661
+ botLoopProtection: {
1662
+ maxEventsPerWindow: 20,
1663
+ windowSeconds: 60,
1664
+ cooldownSeconds: 60,
1665
+ },
1666
+ },
1667
+ discord: {
1668
+ // Optional Discord-wide override. Account blocks override individual
1669
+ // fields and inherit omitted fields from here.
1670
+ botLoopProtection: {
1671
+ maxEventsPerWindow: 4,
1672
+ },
1673
+ accounts: {
1674
+ mantis: {
1675
+ // Mantis listens to other bots only when they mention her.
1676
+ allowBots: "mentions",
1677
+ },
1678
+ molty: {
1679
+ // Molty listens to all bot-authored Discord messages.
1680
+ allowBots: true,
1681
+ mentionAliases: {
1682
+ // Lets Molty write a Mantis Discord mention with the configured user id.
1683
+ Mantis: "MANTIS_DISCORD_USER_ID",
1684
+ },
1685
+ botLoopProtection: {
1686
+ // Allow up to five messages per minute before suppressing the pair.
1687
+ maxEventsPerWindow: 5,
1688
+ windowSeconds: 60,
1689
+ cooldownSeconds: 90,
1690
+ },
1691
+ },
1692
+ },
1693
+ },
1694
+ },
1695
+ }
1696
+ ```
1697
+
1698
+ </Accordion>
1699
+
1700
+ <Accordion title="Voice STT drops with DecryptionFailed(...)">
1701
+
1702
+ - keep Nodmix current (`nodmix update`) so the Discord voice receive recovery logic is present
1703
+ - confirm `channels.discord.voice.daveEncryption=true` (default)
1704
+ - start from `channels.discord.voice.decryptionFailureTolerance=24` (upstream default) and tune only if needed
1705
+ - watch logs for:
1706
+ - `discord voice: DAVE decrypt failures detected`
1707
+ - `discord voice: repeated decrypt failures; attempting rejoin`
1708
+ - if failures continue after automatic rejoin, collect logs and compare against the upstream DAVE receive history in [discord.js #11419](https://github.com/discordjs/discord.js/issues/11419) and [discord.js #11449](https://github.com/discordjs/discord.js/pull/11449)
1709
+
1710
+ </Accordion>
1711
+ </AccordionGroup>
1712
+
1713
+ ## Configuration reference
1714
+
1715
+ Primary reference: [Configuration reference - Discord](/gateway/config-channels#discord).
1716
+
1717
+ <Accordion title="High-signal Discord fields">
1718
+
1719
+ - startup/auth: `enabled`, `token`, `accounts.*`, `allowBots`
1720
+ - policy: `groupPolicy`, `dm.*`, `guilds.*`, `guilds.*.channels.*`
1721
+ - command: `commands.native`, `commands.useAccessGroups`, `configWrites`, `slashCommand.*`
1722
+ - event queue: `eventQueue.listenerTimeout` (listener budget), `eventQueue.maxQueueSize`, `eventQueue.maxConcurrency`
1723
+ - gateway: `gatewayInfoTimeoutMs`, `gatewayReadyTimeoutMs`, `gatewayRuntimeReadyTimeoutMs`
1724
+ - reply/history: `replyToMode`, `historyLimit`, `dmHistoryLimit`, `dms.*.historyLimit`
1725
+ - delivery: `textChunkLimit`, `chunkMode`, `maxLinesPerMessage`
1726
+ - streaming: `streaming` (legacy alias: `streamMode`), `streaming.preview.toolProgress`, `draftChunk`, `blockStreaming`, `blockStreamingCoalesce`
1727
+ - media/retry: `mediaMaxMb` (caps outbound Discord uploads, default `100MB`), `retry`
1728
+ - actions: `actions.*`
1729
+ - presence: `activity`, `status`, `activityType`, `activityUrl`
1730
+ - UI: `ui.components.accentColor`
1731
+ - features: `threadBindings`, top-level `bindings[]` (`type: "acp"`), `pluralkit`, `execApprovals`, `intents`, `agentComponents.enabled`, `agentComponents.ttlMs`, `heartbeat`, `responsePrefix`
1732
+
1733
+ </Accordion>
1734
+
1735
+ ## Safety and operations
1736
+
1737
+ - Treat bot tokens as secrets (`DISCORD_BOT_TOKEN` preferred in supervised environments).
1738
+ - Grant least-privilege Discord permissions.
1739
+ - If command deploy/state is stale, restart gateway and re-check with `nodmix channels status --probe`.
1740
+
1741
+ ## Related
1742
+
1743
+ <CardGroup cols={2}>
1744
+ <Card title="Pairing" icon="link" href="/channels/pairing">
1745
+ Pair a Discord user to the gateway.
1746
+ </Card>
1747
+ <Card title="Groups" icon="users" href="/channels/groups">
1748
+ Group chat and allowlist behavior.
1749
+ </Card>
1750
+ <Card title="Channel routing" icon="route" href="/channels/channel-routing">
1751
+ Route inbound messages to agents.
1752
+ </Card>
1753
+ <Card title="Security" icon="shield" href="/gateway/security">
1754
+ Threat model and hardening.
1755
+ </Card>
1756
+ <Card title="Multi-agent routing" icon="sitemap" href="/concepts/multi-agent">
1757
+ Map guilds and channels to agents.
1758
+ </Card>
1759
+ <Card title="Slash commands" icon="terminal" href="/tools/slash-commands">
1760
+ Native command behavior.
1761
+ </Card>
1762
+ </CardGroup>