moltbot-termux 2026.1.27-1

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 (2608) hide show
  1. package/CHANGELOG.md +1200 -0
  2. package/LICENSE +21 -0
  3. package/README-header.png +0 -0
  4. package/README.md +520 -0
  5. package/assets/avatar-placeholder.svg +19 -0
  6. package/assets/chrome-extension/README.md +22 -0
  7. package/assets/chrome-extension/background.js +438 -0
  8. package/assets/chrome-extension/icons/icon128.png +0 -0
  9. package/assets/chrome-extension/icons/icon16.png +0 -0
  10. package/assets/chrome-extension/icons/icon32.png +0 -0
  11. package/assets/chrome-extension/icons/icon48.png +0 -0
  12. package/assets/chrome-extension/manifest.json +25 -0
  13. package/assets/chrome-extension/options.html +196 -0
  14. package/assets/chrome-extension/options.js +59 -0
  15. package/assets/dmg-background-small.png +0 -0
  16. package/assets/dmg-background.png +0 -0
  17. package/dist/acp/client.js +144 -0
  18. package/dist/acp/commands.js +38 -0
  19. package/dist/acp/event-mapper.js +70 -0
  20. package/dist/acp/index.js +2 -0
  21. package/dist/acp/meta.js +30 -0
  22. package/dist/acp/server.js +131 -0
  23. package/dist/acp/session-mapper.js +65 -0
  24. package/dist/acp/session.js +68 -0
  25. package/dist/acp/translator.js +344 -0
  26. package/dist/acp/types.js +6 -0
  27. package/dist/agents/agent-paths.js +19 -0
  28. package/dist/agents/agent-scope.js +118 -0
  29. package/dist/agents/anthropic-payload-log.js +160 -0
  30. package/dist/agents/apply-patch-update.js +145 -0
  31. package/dist/agents/apply-patch.js +355 -0
  32. package/dist/agents/auth-health.js +165 -0
  33. package/dist/agents/auth-profiles/constants.js +20 -0
  34. package/dist/agents/auth-profiles/display.js +10 -0
  35. package/dist/agents/auth-profiles/doctor.js +31 -0
  36. package/dist/agents/auth-profiles/external-cli-sync.js +62 -0
  37. package/dist/agents/auth-profiles/oauth.js +218 -0
  38. package/dist/agents/auth-profiles/order.js +166 -0
  39. package/dist/agents/auth-profiles/paths.js +27 -0
  40. package/dist/agents/auth-profiles/profiles.js +63 -0
  41. package/dist/agents/auth-profiles/repair.js +120 -0
  42. package/dist/agents/auth-profiles/session-override.js +97 -0
  43. package/dist/agents/auth-profiles/store.js +323 -0
  44. package/dist/agents/auth-profiles/types.js +1 -0
  45. package/dist/agents/auth-profiles/usage.js +235 -0
  46. package/dist/agents/auth-profiles.js +10 -0
  47. package/dist/agents/bash-process-registry.js +177 -0
  48. package/dist/agents/bash-tools.exec.js +1176 -0
  49. package/dist/agents/bash-tools.js +2 -0
  50. package/dist/agents/bash-tools.process.js +569 -0
  51. package/dist/agents/bash-tools.shared.js +198 -0
  52. package/dist/agents/bedrock-discovery.js +157 -0
  53. package/dist/agents/bootstrap-files.js +28 -0
  54. package/dist/agents/bootstrap-hooks.js +19 -0
  55. package/dist/agents/cache-trace.js +185 -0
  56. package/dist/agents/channel-tools.js +58 -0
  57. package/dist/agents/chutes-oauth.js +133 -0
  58. package/dist/agents/claude-cli-runner.js +3 -0
  59. package/dist/agents/cli-backends.js +126 -0
  60. package/dist/agents/cli-credentials.js +360 -0
  61. package/dist/agents/cli-runner/helpers.js +409 -0
  62. package/dist/agents/cli-runner.js +265 -0
  63. package/dist/agents/cli-session.js +27 -0
  64. package/dist/agents/compaction.js +229 -0
  65. package/dist/agents/context-window-guard.js +37 -0
  66. package/dist/agents/context.js +34 -0
  67. package/dist/agents/date-time.js +158 -0
  68. package/dist/agents/defaults.js +6 -0
  69. package/dist/agents/docs-path.js +20 -0
  70. package/dist/agents/failover-error.js +164 -0
  71. package/dist/agents/identity-avatar.js +82 -0
  72. package/dist/agents/identity-file.js +80 -0
  73. package/dist/agents/identity.js +61 -0
  74. package/dist/agents/lanes.js +2 -0
  75. package/dist/agents/live-auth-keys.js +70 -0
  76. package/dist/agents/live-model-filter.js +70 -0
  77. package/dist/agents/memory-search.js +189 -0
  78. package/dist/agents/minimax-vlm.js +81 -0
  79. package/dist/agents/model-auth.js +273 -0
  80. package/dist/agents/model-catalog.js +95 -0
  81. package/dist/agents/model-compat.js +17 -0
  82. package/dist/agents/model-fallback.js +268 -0
  83. package/dist/agents/model-scan.js +350 -0
  84. package/dist/agents/model-selection.js +284 -0
  85. package/dist/agents/models-config.js +111 -0
  86. package/dist/agents/models-config.providers.js +423 -0
  87. package/dist/agents/moltbot-tools.js +121 -0
  88. package/dist/agents/opencode-zen-models.js +254 -0
  89. package/dist/agents/pi-embedded-block-chunker.js +209 -0
  90. package/dist/agents/pi-embedded-helpers/bootstrap.js +159 -0
  91. package/dist/agents/pi-embedded-helpers/errors.js +456 -0
  92. package/dist/agents/pi-embedded-helpers/google.js +12 -0
  93. package/dist/agents/pi-embedded-helpers/images.js +92 -0
  94. package/dist/agents/pi-embedded-helpers/messaging-dedupe.js +35 -0
  95. package/dist/agents/pi-embedded-helpers/openai.js +98 -0
  96. package/dist/agents/pi-embedded-helpers/thinking.js +32 -0
  97. package/dist/agents/pi-embedded-helpers/turns.js +95 -0
  98. package/dist/agents/pi-embedded-helpers/types.js +1 -0
  99. package/dist/agents/pi-embedded-helpers.js +9 -0
  100. package/dist/agents/pi-embedded-messaging.js +24 -0
  101. package/dist/agents/pi-embedded-runner/abort.js +9 -0
  102. package/dist/agents/pi-embedded-runner/cache-ttl.js +45 -0
  103. package/dist/agents/pi-embedded-runner/compact.js +405 -0
  104. package/dist/agents/pi-embedded-runner/extensions.js +64 -0
  105. package/dist/agents/pi-embedded-runner/extra-params.js +70 -0
  106. package/dist/agents/pi-embedded-runner/google.js +302 -0
  107. package/dist/agents/pi-embedded-runner/history.js +61 -0
  108. package/dist/agents/pi-embedded-runner/lanes.js +11 -0
  109. package/dist/agents/pi-embedded-runner/logger.js +2 -0
  110. package/dist/agents/pi-embedded-runner/model.js +76 -0
  111. package/dist/agents/pi-embedded-runner/run/attempt.js +752 -0
  112. package/dist/agents/pi-embedded-runner/run/images.js +344 -0
  113. package/dist/agents/pi-embedded-runner/run/params.js +1 -0
  114. package/dist/agents/pi-embedded-runner/run/payloads.js +162 -0
  115. package/dist/agents/pi-embedded-runner/run/types.js +1 -0
  116. package/dist/agents/pi-embedded-runner/run.js +561 -0
  117. package/dist/agents/pi-embedded-runner/runs.js +107 -0
  118. package/dist/agents/pi-embedded-runner/sandbox-info.js +22 -0
  119. package/dist/agents/pi-embedded-runner/session-manager-cache.js +54 -0
  120. package/dist/agents/pi-embedded-runner/session-manager-init.js +31 -0
  121. package/dist/agents/pi-embedded-runner/system-prompt.js +33 -0
  122. package/dist/agents/pi-embedded-runner/tool-split.js +8 -0
  123. package/dist/agents/pi-embedded-runner/types.js +1 -0
  124. package/dist/agents/pi-embedded-runner/utils.js +25 -0
  125. package/dist/agents/pi-embedded-runner.js +10 -0
  126. package/dist/agents/pi-embedded-subscribe.handlers.js +45 -0
  127. package/dist/agents/pi-embedded-subscribe.handlers.lifecycle.js +86 -0
  128. package/dist/agents/pi-embedded-subscribe.handlers.messages.js +230 -0
  129. package/dist/agents/pi-embedded-subscribe.handlers.tools.js +176 -0
  130. package/dist/agents/pi-embedded-subscribe.handlers.types.js +1 -0
  131. package/dist/agents/pi-embedded-subscribe.js +454 -0
  132. package/dist/agents/pi-embedded-subscribe.raw-stream.js +27 -0
  133. package/dist/agents/pi-embedded-subscribe.tools.js +166 -0
  134. package/dist/agents/pi-embedded-subscribe.types.js +1 -0
  135. package/dist/agents/pi-embedded-utils.js +341 -0
  136. package/dist/agents/pi-embedded.js +1 -0
  137. package/dist/agents/pi-extensions/compaction-safeguard-runtime.js +20 -0
  138. package/dist/agents/pi-extensions/compaction-safeguard.js +252 -0
  139. package/dist/agents/pi-extensions/context-pruning/extension.js +32 -0
  140. package/dist/agents/pi-extensions/context-pruning/pruner.js +263 -0
  141. package/dist/agents/pi-extensions/context-pruning/runtime.js +21 -0
  142. package/dist/agents/pi-extensions/context-pruning/settings.js +71 -0
  143. package/dist/agents/pi-extensions/context-pruning/tools.js +44 -0
  144. package/dist/agents/pi-extensions/context-pruning.js +9 -0
  145. package/dist/agents/pi-settings.js +19 -0
  146. package/dist/agents/pi-tool-definition-adapter.js +74 -0
  147. package/dist/agents/pi-tools.abort.js +41 -0
  148. package/dist/agents/pi-tools.js +297 -0
  149. package/dist/agents/pi-tools.policy.js +245 -0
  150. package/dist/agents/pi-tools.read.js +227 -0
  151. package/dist/agents/pi-tools.schema.js +147 -0
  152. package/dist/agents/pi-tools.types.js +1 -0
  153. package/dist/agents/pty-dsr.js +13 -0
  154. package/dist/agents/pty-keys.js +235 -0
  155. package/dist/agents/sandbox/browser-bridges.js +1 -0
  156. package/dist/agents/sandbox/browser.js +176 -0
  157. package/dist/agents/sandbox/config-hash.js +45 -0
  158. package/dist/agents/sandbox/config.js +114 -0
  159. package/dist/agents/sandbox/constants.js +45 -0
  160. package/dist/agents/sandbox/context.js +117 -0
  161. package/dist/agents/sandbox/docker.js +272 -0
  162. package/dist/agents/sandbox/manage.js +91 -0
  163. package/dist/agents/sandbox/prune.js +87 -0
  164. package/dist/agents/sandbox/registry.js +71 -0
  165. package/dist/agents/sandbox/runtime-status.js +90 -0
  166. package/dist/agents/sandbox/shared.js +38 -0
  167. package/dist/agents/sandbox/tool-policy.js +106 -0
  168. package/dist/agents/sandbox/types.docker.js +1 -0
  169. package/dist/agents/sandbox/types.js +1 -0
  170. package/dist/agents/sandbox/workspace.js +39 -0
  171. package/dist/agents/sandbox-paths.js +68 -0
  172. package/dist/agents/sandbox.js +7 -0
  173. package/dist/agents/schema/clean-for-gemini.js +295 -0
  174. package/dist/agents/schema/typebox.js +22 -0
  175. package/dist/agents/session-slug.js +134 -0
  176. package/dist/agents/session-tool-result-guard-wrapper.js +34 -0
  177. package/dist/agents/session-tool-result-guard.js +99 -0
  178. package/dist/agents/session-transcript-repair.js +174 -0
  179. package/dist/agents/session-write-lock.js +170 -0
  180. package/dist/agents/shell-utils.js +99 -0
  181. package/dist/agents/skills/bundled-dir.js +30 -0
  182. package/dist/agents/skills/config.js +142 -0
  183. package/dist/agents/skills/env-overrides.js +67 -0
  184. package/dist/agents/skills/frontmatter.js +120 -0
  185. package/dist/agents/skills/plugin-skills.js +55 -0
  186. package/dist/agents/skills/refresh.js +135 -0
  187. package/dist/agents/skills/serialize.js +13 -0
  188. package/dist/agents/skills/types.js +1 -0
  189. package/dist/agents/skills/workspace.js +272 -0
  190. package/dist/agents/skills-install.js +390 -0
  191. package/dist/agents/skills-status.js +183 -0
  192. package/dist/agents/skills.js +13 -0
  193. package/dist/agents/subagent-announce-queue.js +129 -0
  194. package/dist/agents/subagent-announce.js +391 -0
  195. package/dist/agents/subagent-registry.js +343 -0
  196. package/dist/agents/subagent-registry.store.js +73 -0
  197. package/dist/agents/synthetic-models.js +174 -0
  198. package/dist/agents/system-prompt-params.js +70 -0
  199. package/dist/agents/system-prompt-report.js +113 -0
  200. package/dist/agents/system-prompt.js +456 -0
  201. package/dist/agents/test-helpers/fast-coding-tools.js +18 -0
  202. package/dist/agents/test-helpers/fast-core-tools.js +24 -0
  203. package/dist/agents/timeout.js +24 -0
  204. package/dist/agents/tool-call-id.js +164 -0
  205. package/dist/agents/tool-display.js +209 -0
  206. package/dist/agents/tool-display.json +308 -0
  207. package/dist/agents/tool-images.js +166 -0
  208. package/dist/agents/tool-policy.js +199 -0
  209. package/dist/agents/tool-summaries.js +10 -0
  210. package/dist/agents/tools/agent-step.js +44 -0
  211. package/dist/agents/tools/agents-list-tool.js +66 -0
  212. package/dist/agents/tools/browser-tool.js +596 -0
  213. package/dist/agents/tools/browser-tool.schema.js +105 -0
  214. package/dist/agents/tools/canvas-tool.js +158 -0
  215. package/dist/agents/tools/common.js +146 -0
  216. package/dist/agents/tools/cron-tool.js +261 -0
  217. package/dist/agents/tools/discord-actions-guild.js +453 -0
  218. package/dist/agents/tools/discord-actions-messaging.js +383 -0
  219. package/dist/agents/tools/discord-actions-moderation.js +92 -0
  220. package/dist/agents/tools/discord-actions.js +61 -0
  221. package/dist/agents/tools/gateway-tool.js +214 -0
  222. package/dist/agents/tools/gateway.js +30 -0
  223. package/dist/agents/tools/image-tool.helpers.js +55 -0
  224. package/dist/agents/tools/image-tool.js +370 -0
  225. package/dist/agents/tools/memory-tool.js +103 -0
  226. package/dist/agents/tools/message-tool.js +321 -0
  227. package/dist/agents/tools/nodes-tool.js +399 -0
  228. package/dist/agents/tools/nodes-utils.js +92 -0
  229. package/dist/agents/tools/session-status-tool.js +357 -0
  230. package/dist/agents/tools/sessions-announce-target.js +43 -0
  231. package/dist/agents/tools/sessions-helpers.js +261 -0
  232. package/dist/agents/tools/sessions-history-tool.js +118 -0
  233. package/dist/agents/tools/sessions-list-tool.js +161 -0
  234. package/dist/agents/tools/sessions-send-helpers.js +116 -0
  235. package/dist/agents/tools/sessions-send-tool.a2a.js +119 -0
  236. package/dist/agents/tools/sessions-send-tool.js +345 -0
  237. package/dist/agents/tools/sessions-spawn-tool.js +232 -0
  238. package/dist/agents/tools/slack-actions.js +243 -0
  239. package/dist/agents/tools/telegram-actions.js +256 -0
  240. package/dist/agents/tools/tts-tool.js +47 -0
  241. package/dist/agents/tools/web-fetch-utils.js +104 -0
  242. package/dist/agents/tools/web-fetch.js +477 -0
  243. package/dist/agents/tools/web-search.js +437 -0
  244. package/dist/agents/tools/web-shared.js +62 -0
  245. package/dist/agents/tools/web-tools.js +2 -0
  246. package/dist/agents/tools/whatsapp-actions.js +32 -0
  247. package/dist/agents/transcript-policy.js +83 -0
  248. package/dist/agents/usage.js +48 -0
  249. package/dist/agents/venice-models.js +342 -0
  250. package/dist/agents/workspace.js +234 -0
  251. package/dist/auto-reply/chunk.js +358 -0
  252. package/dist/auto-reply/command-auth.js +132 -0
  253. package/dist/auto-reply/command-detection.js +56 -0
  254. package/dist/auto-reply/commands-args.js +85 -0
  255. package/dist/auto-reply/commands-registry.data.js +574 -0
  256. package/dist/auto-reply/commands-registry.js +354 -0
  257. package/dist/auto-reply/commands-registry.types.js +1 -0
  258. package/dist/auto-reply/dispatch.js +40 -0
  259. package/dist/auto-reply/envelope.js +173 -0
  260. package/dist/auto-reply/group-activation.js +22 -0
  261. package/dist/auto-reply/heartbeat.js +120 -0
  262. package/dist/auto-reply/inbound-debounce.js +74 -0
  263. package/dist/auto-reply/media-note.js +72 -0
  264. package/dist/auto-reply/model.js +28 -0
  265. package/dist/auto-reply/reply/abort.js +151 -0
  266. package/dist/auto-reply/reply/agent-runner-execution.js +467 -0
  267. package/dist/auto-reply/reply/agent-runner-helpers.js +65 -0
  268. package/dist/auto-reply/reply/agent-runner-memory.js +160 -0
  269. package/dist/auto-reply/reply/agent-runner-payloads.js +85 -0
  270. package/dist/auto-reply/reply/agent-runner-utils.js +101 -0
  271. package/dist/auto-reply/reply/agent-runner.js +379 -0
  272. package/dist/auto-reply/reply/audio-tags.js +1 -0
  273. package/dist/auto-reply/reply/bash-command.js +336 -0
  274. package/dist/auto-reply/reply/block-reply-coalescer.js +101 -0
  275. package/dist/auto-reply/reply/block-reply-pipeline.js +179 -0
  276. package/dist/auto-reply/reply/block-streaming.js +91 -0
  277. package/dist/auto-reply/reply/body.js +37 -0
  278. package/dist/auto-reply/reply/commands-allowlist.js +570 -0
  279. package/dist/auto-reply/reply/commands-approve.js +88 -0
  280. package/dist/auto-reply/reply/commands-bash.js +25 -0
  281. package/dist/auto-reply/reply/commands-compact.js +106 -0
  282. package/dist/auto-reply/reply/commands-config.js +239 -0
  283. package/dist/auto-reply/reply/commands-context-report.js +294 -0
  284. package/dist/auto-reply/reply/commands-context.js +29 -0
  285. package/dist/auto-reply/reply/commands-core.js +101 -0
  286. package/dist/auto-reply/reply/commands-info.js +154 -0
  287. package/dist/auto-reply/reply/commands-models.js +201 -0
  288. package/dist/auto-reply/reply/commands-plugin.js +35 -0
  289. package/dist/auto-reply/reply/commands-session.js +311 -0
  290. package/dist/auto-reply/reply/commands-status.js +178 -0
  291. package/dist/auto-reply/reply/commands-subagents.js +357 -0
  292. package/dist/auto-reply/reply/commands-tts.js +226 -0
  293. package/dist/auto-reply/reply/commands-types.js +1 -0
  294. package/dist/auto-reply/reply/commands.js +3 -0
  295. package/dist/auto-reply/reply/config-commands.js +58 -0
  296. package/dist/auto-reply/reply/config-value.js +35 -0
  297. package/dist/auto-reply/reply/debug-commands.js +58 -0
  298. package/dist/auto-reply/reply/directive-handling.auth.js +191 -0
  299. package/dist/auto-reply/reply/directive-handling.fast-lane.js +60 -0
  300. package/dist/auto-reply/reply/directive-handling.impl.js +380 -0
  301. package/dist/auto-reply/reply/directive-handling.js +5 -0
  302. package/dist/auto-reply/reply/directive-handling.model-picker.js +64 -0
  303. package/dist/auto-reply/reply/directive-handling.model.js +279 -0
  304. package/dist/auto-reply/reply/directive-handling.parse.js +84 -0
  305. package/dist/auto-reply/reply/directive-handling.persist.js +181 -0
  306. package/dist/auto-reply/reply/directive-handling.queue-validation.js +48 -0
  307. package/dist/auto-reply/reply/directive-handling.shared.js +43 -0
  308. package/dist/auto-reply/reply/directives.js +114 -0
  309. package/dist/auto-reply/reply/dispatch-from-config.js +353 -0
  310. package/dist/auto-reply/reply/exec/directive.js +183 -0
  311. package/dist/auto-reply/reply/exec.js +1 -0
  312. package/dist/auto-reply/reply/followup-runner.js +226 -0
  313. package/dist/auto-reply/reply/get-reply-directives-apply.js +201 -0
  314. package/dist/auto-reply/reply/get-reply-directives-utils.js +45 -0
  315. package/dist/auto-reply/reply/get-reply-directives.js +343 -0
  316. package/dist/auto-reply/reply/get-reply-inline-actions.js +257 -0
  317. package/dist/auto-reply/reply/get-reply-run.js +286 -0
  318. package/dist/auto-reply/reply/get-reply.js +234 -0
  319. package/dist/auto-reply/reply/groups.js +102 -0
  320. package/dist/auto-reply/reply/history.js +110 -0
  321. package/dist/auto-reply/reply/inbound-context.js +51 -0
  322. package/dist/auto-reply/reply/inbound-dedupe.js +39 -0
  323. package/dist/auto-reply/reply/inbound-sender-meta.js +45 -0
  324. package/dist/auto-reply/reply/inbound-text.js +3 -0
  325. package/dist/auto-reply/reply/line-directives.js +294 -0
  326. package/dist/auto-reply/reply/memory-flush.js +66 -0
  327. package/dist/auto-reply/reply/mentions.js +122 -0
  328. package/dist/auto-reply/reply/model-selection.js +398 -0
  329. package/dist/auto-reply/reply/normalize-reply.js +54 -0
  330. package/dist/auto-reply/reply/provider-dispatcher.js +19 -0
  331. package/dist/auto-reply/reply/queue/cleanup.js +19 -0
  332. package/dist/auto-reply/reply/queue/directive.js +155 -0
  333. package/dist/auto-reply/reply/queue/drain.js +111 -0
  334. package/dist/auto-reply/reply/queue/enqueue.js +43 -0
  335. package/dist/auto-reply/reply/queue/normalize.js +30 -0
  336. package/dist/auto-reply/reply/queue/settings.js +52 -0
  337. package/dist/auto-reply/reply/queue/state.js +53 -0
  338. package/dist/auto-reply/reply/queue/types.js +1 -0
  339. package/dist/auto-reply/reply/queue.js +6 -0
  340. package/dist/auto-reply/reply/reply-directives.js +30 -0
  341. package/dist/auto-reply/reply/reply-dispatcher.js +100 -0
  342. package/dist/auto-reply/reply/reply-elevated.js +166 -0
  343. package/dist/auto-reply/reply/reply-inline.js +28 -0
  344. package/dist/auto-reply/reply/reply-payloads.js +83 -0
  345. package/dist/auto-reply/reply/reply-reference.js +35 -0
  346. package/dist/auto-reply/reply/reply-tags.js +13 -0
  347. package/dist/auto-reply/reply/reply-threading.js +41 -0
  348. package/dist/auto-reply/reply/response-prefix-template.js +76 -0
  349. package/dist/auto-reply/reply/route-reply.js +108 -0
  350. package/dist/auto-reply/reply/session-reset-model.js +133 -0
  351. package/dist/auto-reply/reply/session-updates.js +233 -0
  352. package/dist/auto-reply/reply/session-usage.js +79 -0
  353. package/dist/auto-reply/reply/session.js +303 -0
  354. package/dist/auto-reply/reply/stage-sandbox-media.js +146 -0
  355. package/dist/auto-reply/reply/streaming-directives.js +92 -0
  356. package/dist/auto-reply/reply/subagents-utils.js +52 -0
  357. package/dist/auto-reply/reply/test-ctx.js +15 -0
  358. package/dist/auto-reply/reply/typing-mode.js +91 -0
  359. package/dist/auto-reply/reply/typing.js +132 -0
  360. package/dist/auto-reply/reply.js +5 -0
  361. package/dist/auto-reply/send-policy.js +30 -0
  362. package/dist/auto-reply/skill-commands.js +97 -0
  363. package/dist/auto-reply/status.js +491 -0
  364. package/dist/auto-reply/templating.js +39 -0
  365. package/dist/auto-reply/thinking.js +154 -0
  366. package/dist/auto-reply/tokens.js +15 -0
  367. package/dist/auto-reply/tool-meta.js +112 -0
  368. package/dist/auto-reply/types.js +1 -0
  369. package/dist/browser/bridge-server.js +45 -0
  370. package/dist/browser/cdp.helpers.js +136 -0
  371. package/dist/browser/cdp.js +293 -0
  372. package/dist/browser/chrome.executables.js +509 -0
  373. package/dist/browser/chrome.js +253 -0
  374. package/dist/browser/chrome.profile-decoration.js +144 -0
  375. package/dist/browser/client-actions-core.js +100 -0
  376. package/dist/browser/client-actions-observe.js +100 -0
  377. package/dist/browser/client-actions-state.js +169 -0
  378. package/dist/browser/client-actions-types.js +1 -0
  379. package/dist/browser/client-actions.js +4 -0
  380. package/dist/browser/client-fetch.js +91 -0
  381. package/dist/browser/client.js +137 -0
  382. package/dist/browser/config.js +180 -0
  383. package/dist/browser/constants.js +8 -0
  384. package/dist/browser/control-service.js +72 -0
  385. package/dist/browser/extension-relay.js +541 -0
  386. package/dist/browser/profiles-service.js +132 -0
  387. package/dist/browser/profiles.js +93 -0
  388. package/dist/browser/pw-ai-module.js +37 -0
  389. package/dist/browser/pw-ai.js +2 -0
  390. package/dist/browser/pw-role-snapshot.js +310 -0
  391. package/dist/browser/pw-session.js +431 -0
  392. package/dist/browser/pw-tools-core.activity.js +44 -0
  393. package/dist/browser/pw-tools-core.downloads.js +177 -0
  394. package/dist/browser/pw-tools-core.interactions.js +420 -0
  395. package/dist/browser/pw-tools-core.js +8 -0
  396. package/dist/browser/pw-tools-core.responses.js +83 -0
  397. package/dist/browser/pw-tools-core.shared.js +48 -0
  398. package/dist/browser/pw-tools-core.snapshot.js +142 -0
  399. package/dist/browser/pw-tools-core.state.js +147 -0
  400. package/dist/browser/pw-tools-core.storage.js +72 -0
  401. package/dist/browser/pw-tools-core.trace.js +25 -0
  402. package/dist/browser/routes/agent.act.js +466 -0
  403. package/dist/browser/routes/agent.act.shared.js +38 -0
  404. package/dist/browser/routes/agent.debug.js +134 -0
  405. package/dist/browser/routes/agent.js +10 -0
  406. package/dist/browser/routes/agent.shared.js +45 -0
  407. package/dist/browser/routes/agent.snapshot.js +269 -0
  408. package/dist/browser/routes/agent.storage.js +386 -0
  409. package/dist/browser/routes/basic.js +173 -0
  410. package/dist/browser/routes/dispatcher.js +86 -0
  411. package/dist/browser/routes/index.js +8 -0
  412. package/dist/browser/routes/tabs.js +120 -0
  413. package/dist/browser/routes/types.js +1 -0
  414. package/dist/browser/routes/utils.js +57 -0
  415. package/dist/browser/screenshot.js +39 -0
  416. package/dist/browser/server-context.js +533 -0
  417. package/dist/browser/server-context.types.js +1 -0
  418. package/dist/browser/server.js +90 -0
  419. package/dist/browser/target-id.js +16 -0
  420. package/dist/browser/trash.js +21 -0
  421. package/dist/build-info.json +5 -0
  422. package/dist/canvas-host/a2ui/.bundle.hash +1 -0
  423. package/dist/canvas-host/a2ui/a2ui.bundle.js +17770 -0
  424. package/dist/canvas-host/a2ui/index.html +307 -0
  425. package/dist/canvas-host/a2ui.js +191 -0
  426. package/dist/canvas-host/server.js +414 -0
  427. package/dist/channel-web.js +8 -0
  428. package/dist/channels/ack-reactions.js +56 -0
  429. package/dist/channels/allowlist-match.js +3 -0
  430. package/dist/channels/allowlists/resolve-utils.js +37 -0
  431. package/dist/channels/channel-config.js +131 -0
  432. package/dist/channels/chat-type.js +12 -0
  433. package/dist/channels/command-gating.js +24 -0
  434. package/dist/channels/conversation-label.js +48 -0
  435. package/dist/channels/dock.js +344 -0
  436. package/dist/channels/location.js +44 -0
  437. package/dist/channels/logging.js +13 -0
  438. package/dist/channels/mention-gating.js +26 -0
  439. package/dist/channels/plugins/actions/discord/handle-action.guild-admin.js +332 -0
  440. package/dist/channels/plugins/actions/discord/handle-action.js +165 -0
  441. package/dist/channels/plugins/actions/discord.js +93 -0
  442. package/dist/channels/plugins/actions/signal.js +115 -0
  443. package/dist/channels/plugins/actions/telegram.js +151 -0
  444. package/dist/channels/plugins/agent-tools/whatsapp-login.js +63 -0
  445. package/dist/channels/plugins/allowlist-match.js +1 -0
  446. package/dist/channels/plugins/bluebubbles-actions.js +16 -0
  447. package/dist/channels/plugins/catalog.js +218 -0
  448. package/dist/channels/plugins/channel-config.js +1 -0
  449. package/dist/channels/plugins/config-helpers.js +87 -0
  450. package/dist/channels/plugins/config-schema.js +8 -0
  451. package/dist/channels/plugins/config-writes.js +21 -0
  452. package/dist/channels/plugins/directory-config.js +185 -0
  453. package/dist/channels/plugins/group-mentions.js +314 -0
  454. package/dist/channels/plugins/helpers.js +12 -0
  455. package/dist/channels/plugins/index.js +51 -0
  456. package/dist/channels/plugins/load.js +22 -0
  457. package/dist/channels/plugins/media-limits.js +15 -0
  458. package/dist/channels/plugins/message-action-names.js +51 -0
  459. package/dist/channels/plugins/message-actions.js +35 -0
  460. package/dist/channels/plugins/normalize/discord.js +18 -0
  461. package/dist/channels/plugins/normalize/imessage.js +36 -0
  462. package/dist/channels/plugins/normalize/signal.js +52 -0
  463. package/dist/channels/plugins/normalize/slack.js +19 -0
  464. package/dist/channels/plugins/normalize/telegram.js +31 -0
  465. package/dist/channels/plugins/normalize/whatsapp.js +17 -0
  466. package/dist/channels/plugins/onboarding/channel-access.js +68 -0
  467. package/dist/channels/plugins/onboarding/discord.js +413 -0
  468. package/dist/channels/plugins/onboarding/helpers.js +33 -0
  469. package/dist/channels/plugins/onboarding/imessage.js +231 -0
  470. package/dist/channels/plugins/onboarding/signal.js +262 -0
  471. package/dist/channels/plugins/onboarding/slack.js +470 -0
  472. package/dist/channels/plugins/onboarding/telegram.js +289 -0
  473. package/dist/channels/plugins/onboarding/whatsapp.js +286 -0
  474. package/dist/channels/plugins/onboarding-types.js +1 -0
  475. package/dist/channels/plugins/outbound/discord.js +29 -0
  476. package/dist/channels/plugins/outbound/imessage.js +38 -0
  477. package/dist/channels/plugins/outbound/load.js +28 -0
  478. package/dist/channels/plugins/outbound/signal.js +36 -0
  479. package/dist/channels/plugins/outbound/slack.js +27 -0
  480. package/dist/channels/plugins/outbound/telegram.js +93 -0
  481. package/dist/channels/plugins/outbound/whatsapp.js +76 -0
  482. package/dist/channels/plugins/pairing-message.js +1 -0
  483. package/dist/channels/plugins/pairing.js +44 -0
  484. package/dist/channels/plugins/setup-helpers.js +89 -0
  485. package/dist/channels/plugins/slack.actions.js +158 -0
  486. package/dist/channels/plugins/status-issues/bluebubbles.js +76 -0
  487. package/dist/channels/plugins/status-issues/discord.js +115 -0
  488. package/dist/channels/plugins/status-issues/shared.js +23 -0
  489. package/dist/channels/plugins/status-issues/telegram.js +100 -0
  490. package/dist/channels/plugins/status-issues/whatsapp.js +52 -0
  491. package/dist/channels/plugins/status.js +26 -0
  492. package/dist/channels/plugins/types.adapters.js +1 -0
  493. package/dist/channels/plugins/types.core.js +1 -0
  494. package/dist/channels/plugins/types.js +1 -0
  495. package/dist/channels/plugins/types.plugin.js +1 -0
  496. package/dist/channels/plugins/whatsapp-heartbeat.js +56 -0
  497. package/dist/channels/registry.js +153 -0
  498. package/dist/channels/reply-prefix.js +21 -0
  499. package/dist/channels/sender-identity.js +30 -0
  500. package/dist/channels/sender-label.js +38 -0
  501. package/dist/channels/session.js +26 -0
  502. package/dist/channels/targets.js +27 -0
  503. package/dist/channels/typing.js +17 -0
  504. package/dist/channels/web/index.js +2 -0
  505. package/dist/cli/acp-cli.js +61 -0
  506. package/dist/cli/argv.js +126 -0
  507. package/dist/cli/banner.js +96 -0
  508. package/dist/cli/browser-cli-actions-input/register.element.js +228 -0
  509. package/dist/cli/browser-cli-actions-input/register.files-downloads.js +148 -0
  510. package/dist/cli/browser-cli-actions-input/register.form-wait-eval.js +121 -0
  511. package/dist/cli/browser-cli-actions-input/register.js +10 -0
  512. package/dist/cli/browser-cli-actions-input/register.navigation.js +72 -0
  513. package/dist/cli/browser-cli-actions-input/shared.js +57 -0
  514. package/dist/cli/browser-cli-actions-input.js +1 -0
  515. package/dist/cli/browser-cli-actions-observe.js +90 -0
  516. package/dist/cli/browser-cli-debug.js +162 -0
  517. package/dist/cli/browser-cli-examples.js +33 -0
  518. package/dist/cli/browser-cli-extension.js +98 -0
  519. package/dist/cli/browser-cli-inspect.js +136 -0
  520. package/dist/cli/browser-cli-manage.js +401 -0
  521. package/dist/cli/browser-cli-shared.js +34 -0
  522. package/dist/cli/browser-cli-state.cookies-storage.js +182 -0
  523. package/dist/cli/browser-cli-state.js +287 -0
  524. package/dist/cli/browser-cli.js +37 -0
  525. package/dist/cli/channel-auth.js +49 -0
  526. package/dist/cli/channel-options.js +29 -0
  527. package/dist/cli/channels-cli.js +208 -0
  528. package/dist/cli/cli-name.js +26 -0
  529. package/dist/cli/cli-utils.js +34 -0
  530. package/dist/cli/command-format.js +18 -0
  531. package/dist/cli/command-options.js +6 -0
  532. package/dist/cli/config-cli.js +295 -0
  533. package/dist/cli/cron-cli/register.cron-add.js +188 -0
  534. package/dist/cli/cron-cli/register.cron-edit.js +160 -0
  535. package/dist/cli/cron-cli/register.cron-simple.js +98 -0
  536. package/dist/cli/cron-cli/register.js +16 -0
  537. package/dist/cli/cron-cli/shared.js +178 -0
  538. package/dist/cli/cron-cli.js +1 -0
  539. package/dist/cli/daemon-cli/install.js +112 -0
  540. package/dist/cli/daemon-cli/lifecycle.js +265 -0
  541. package/dist/cli/daemon-cli/probe.js +28 -0
  542. package/dist/cli/daemon-cli/register.js +69 -0
  543. package/dist/cli/daemon-cli/response.js +20 -0
  544. package/dist/cli/daemon-cli/runners.js +3 -0
  545. package/dist/cli/daemon-cli/shared.js +164 -0
  546. package/dist/cli/daemon-cli/status.gather.js +170 -0
  547. package/dist/cli/daemon-cli/status.js +19 -0
  548. package/dist/cli/daemon-cli/status.print.js +241 -0
  549. package/dist/cli/daemon-cli/types.js +1 -0
  550. package/dist/cli/daemon-cli.js +2 -0
  551. package/dist/cli/deps.js +28 -0
  552. package/dist/cli/devices-cli.js +181 -0
  553. package/dist/cli/directory-cli.js +227 -0
  554. package/dist/cli/dns-cli.js +199 -0
  555. package/dist/cli/docs-cli.js +17 -0
  556. package/dist/cli/exec-approvals-cli.js +378 -0
  557. package/dist/cli/gateway-cli/call.js +25 -0
  558. package/dist/cli/gateway-cli/dev.js +101 -0
  559. package/dist/cli/gateway-cli/discover.js +88 -0
  560. package/dist/cli/gateway-cli/register.js +255 -0
  561. package/dist/cli/gateway-cli/run-loop.js +87 -0
  562. package/dist/cli/gateway-cli/run.js +265 -0
  563. package/dist/cli/gateway-cli/shared.js +101 -0
  564. package/dist/cli/gateway-cli.js +1 -0
  565. package/dist/cli/gateway-rpc.js +27 -0
  566. package/dist/cli/help-format.js +16 -0
  567. package/dist/cli/hooks-cli.js +709 -0
  568. package/dist/cli/logs-cli.js +222 -0
  569. package/dist/cli/memory-cli.js +527 -0
  570. package/dist/cli/models-cli.js +321 -0
  571. package/dist/cli/node-cli/daemon.js +481 -0
  572. package/dist/cli/node-cli/register.js +81 -0
  573. package/dist/cli/node-cli.js +1 -0
  574. package/dist/cli/nodes-camera.js +52 -0
  575. package/dist/cli/nodes-canvas.js +26 -0
  576. package/dist/cli/nodes-cli/a2ui-jsonl.js +81 -0
  577. package/dist/cli/nodes-cli/cli-utils.js +27 -0
  578. package/dist/cli/nodes-cli/format.js +35 -0
  579. package/dist/cli/nodes-cli/register.camera.js +193 -0
  580. package/dist/cli/nodes-cli/register.canvas.js +215 -0
  581. package/dist/cli/nodes-cli/register.invoke.js +303 -0
  582. package/dist/cli/nodes-cli/register.js +24 -0
  583. package/dist/cli/nodes-cli/register.location.js +64 -0
  584. package/dist/cli/nodes-cli/register.notify.js +51 -0
  585. package/dist/cli/nodes-cli/register.pairing.js +99 -0
  586. package/dist/cli/nodes-cli/register.screen.js +66 -0
  587. package/dist/cli/nodes-cli/register.status.js +328 -0
  588. package/dist/cli/nodes-cli/rpc.js +88 -0
  589. package/dist/cli/nodes-cli/types.js +1 -0
  590. package/dist/cli/nodes-cli.js +1 -0
  591. package/dist/cli/nodes-run.js +19 -0
  592. package/dist/cli/nodes-screen.js +35 -0
  593. package/dist/cli/outbound-send-deps.js +11 -0
  594. package/dist/cli/pairing-cli.js +115 -0
  595. package/dist/cli/parse-duration.js +28 -0
  596. package/dist/cli/parse-timeout.js +18 -0
  597. package/dist/cli/plugin-registry.js +24 -0
  598. package/dist/cli/plugins-cli.js +469 -0
  599. package/dist/cli/ports.js +101 -0
  600. package/dist/cli/profile-utils.js +17 -0
  601. package/dist/cli/profile.js +86 -0
  602. package/dist/cli/program/build-program.js +14 -0
  603. package/dist/cli/program/command-registry.js +148 -0
  604. package/dist/cli/program/config-guard.js +67 -0
  605. package/dist/cli/program/context.js +11 -0
  606. package/dist/cli/program/help.js +68 -0
  607. package/dist/cli/program/helpers.js +26 -0
  608. package/dist/cli/program/message/helpers.js +46 -0
  609. package/dist/cli/program/message/register.broadcast.js +11 -0
  610. package/dist/cli/program/message/register.discord-admin.js +119 -0
  611. package/dist/cli/program/message/register.emoji-sticker.js +43 -0
  612. package/dist/cli/program/message/register.permissions-search.js +22 -0
  613. package/dist/cli/program/message/register.pins.js +23 -0
  614. package/dist/cli/program/message/register.poll.js +13 -0
  615. package/dist/cli/program/message/register.reactions.js +21 -0
  616. package/dist/cli/program/message/register.read-edit-delete.js +30 -0
  617. package/dist/cli/program/message/register.send.js +18 -0
  618. package/dist/cli/program/message/register.thread.js +35 -0
  619. package/dist/cli/program/preaction.js +48 -0
  620. package/dist/cli/program/register.agent.js +162 -0
  621. package/dist/cli/program/register.configure.js +32 -0
  622. package/dist/cli/program/register.maintenance.js +91 -0
  623. package/dist/cli/program/register.message.js +54 -0
  624. package/dist/cli/program/register.onboard.js +120 -0
  625. package/dist/cli/program/register.setup.js +41 -0
  626. package/dist/cli/program/register.status-health-sessions.js +109 -0
  627. package/dist/cli/program/register.subclis.js +271 -0
  628. package/dist/cli/program.js +2 -0
  629. package/dist/cli/progress.js +165 -0
  630. package/dist/cli/prompt.js +17 -0
  631. package/dist/cli/route.js +29 -0
  632. package/dist/cli/run-main.js +107 -0
  633. package/dist/cli/sandbox-cli.js +98 -0
  634. package/dist/cli/security-cli.js +123 -0
  635. package/dist/cli/skills-cli.js +341 -0
  636. package/dist/cli/system-cli.js +98 -0
  637. package/dist/cli/tagline.js +208 -0
  638. package/dist/cli/tui-cli.js +44 -0
  639. package/dist/cli/update-cli.js +1013 -0
  640. package/dist/cli/wait.js +8 -0
  641. package/dist/cli/webhooks-cli.js +140 -0
  642. package/dist/commands/agent/delivery.js +140 -0
  643. package/dist/commands/agent/run-context.js +27 -0
  644. package/dist/commands/agent/session-store.js +43 -0
  645. package/dist/commands/agent/session.js +74 -0
  646. package/dist/commands/agent/types.js +1 -0
  647. package/dist/commands/agent-via-gateway.js +119 -0
  648. package/dist/commands/agent.js +439 -0
  649. package/dist/commands/agents.bindings.js +126 -0
  650. package/dist/commands/agents.command-shared.js +18 -0
  651. package/dist/commands/agents.commands.add.js +293 -0
  652. package/dist/commands/agents.commands.delete.js +75 -0
  653. package/dist/commands/agents.commands.identity.js +168 -0
  654. package/dist/commands/agents.commands.list.js +98 -0
  655. package/dist/commands/agents.config.js +145 -0
  656. package/dist/commands/agents.js +6 -0
  657. package/dist/commands/agents.providers.js +140 -0
  658. package/dist/commands/auth-choice-options.js +165 -0
  659. package/dist/commands/auth-choice-prompt.js +36 -0
  660. package/dist/commands/auth-choice.api-key.js +34 -0
  661. package/dist/commands/auth-choice.apply.anthropic.js +77 -0
  662. package/dist/commands/auth-choice.apply.api-providers.js +502 -0
  663. package/dist/commands/auth-choice.apply.copilot-proxy.js +10 -0
  664. package/dist/commands/auth-choice.apply.github-copilot.js +47 -0
  665. package/dist/commands/auth-choice.apply.google-antigravity.js +10 -0
  666. package/dist/commands/auth-choice.apply.google-gemini-cli.js +10 -0
  667. package/dist/commands/auth-choice.apply.js +30 -0
  668. package/dist/commands/auth-choice.apply.minimax.js +72 -0
  669. package/dist/commands/auth-choice.apply.oauth.js +78 -0
  670. package/dist/commands/auth-choice.apply.openai.js +117 -0
  671. package/dist/commands/auth-choice.apply.plugin-provider.js +140 -0
  672. package/dist/commands/auth-choice.apply.qwen-portal.js +10 -0
  673. package/dist/commands/auth-choice.default-model.js +12 -0
  674. package/dist/commands/auth-choice.js +3 -0
  675. package/dist/commands/auth-choice.model-check.js +61 -0
  676. package/dist/commands/auth-choice.preferred-provider.js +32 -0
  677. package/dist/commands/auth-token.js +32 -0
  678. package/dist/commands/channels/add-mutators.js +49 -0
  679. package/dist/commands/channels/add.js +210 -0
  680. package/dist/commands/channels/capabilities.js +439 -0
  681. package/dist/commands/channels/list.js +145 -0
  682. package/dist/commands/channels/logs.js +85 -0
  683. package/dist/commands/channels/remove.js +114 -0
  684. package/dist/commands/channels/resolve.js +107 -0
  685. package/dist/commands/channels/shared.js +41 -0
  686. package/dist/commands/channels/status.js +238 -0
  687. package/dist/commands/channels.js +7 -0
  688. package/dist/commands/chutes-oauth.js +144 -0
  689. package/dist/commands/cleanup-utils.js +74 -0
  690. package/dist/commands/configure.channels.js +52 -0
  691. package/dist/commands/configure.commands.js +8 -0
  692. package/dist/commands/configure.daemon.js +106 -0
  693. package/dist/commands/configure.gateway-auth.js +64 -0
  694. package/dist/commands/configure.gateway.js +159 -0
  695. package/dist/commands/configure.js +4 -0
  696. package/dist/commands/configure.shared.js +49 -0
  697. package/dist/commands/configure.wizard.js +471 -0
  698. package/dist/commands/daemon-install-helpers.js +54 -0
  699. package/dist/commands/daemon-runtime.js +11 -0
  700. package/dist/commands/dashboard.js +47 -0
  701. package/dist/commands/docs.js +148 -0
  702. package/dist/commands/doctor-auth.js +236 -0
  703. package/dist/commands/doctor-config-flow.js +228 -0
  704. package/dist/commands/doctor-format.js +85 -0
  705. package/dist/commands/doctor-gateway-daemon-flow.js +201 -0
  706. package/dist/commands/doctor-gateway-health.js +43 -0
  707. package/dist/commands/doctor-gateway-services.js +209 -0
  708. package/dist/commands/doctor-install.js +27 -0
  709. package/dist/commands/doctor-legacy-config.js +42 -0
  710. package/dist/commands/doctor-platform-notes.js +86 -0
  711. package/dist/commands/doctor-prompter.js +64 -0
  712. package/dist/commands/doctor-sandbox.js +207 -0
  713. package/dist/commands/doctor-security.js +141 -0
  714. package/dist/commands/doctor-state-integrity.js +332 -0
  715. package/dist/commands/doctor-state-migrations.js +1 -0
  716. package/dist/commands/doctor-ui.js +119 -0
  717. package/dist/commands/doctor-update.js +65 -0
  718. package/dist/commands/doctor-workspace-status.js +56 -0
  719. package/dist/commands/doctor-workspace.js +69 -0
  720. package/dist/commands/doctor.js +253 -0
  721. package/dist/commands/gateway-status/helpers.js +200 -0
  722. package/dist/commands/gateway-status.js +300 -0
  723. package/dist/commands/google-gemini-model-default.js +33 -0
  724. package/dist/commands/health-format.js +37 -0
  725. package/dist/commands/health.js +595 -0
  726. package/dist/commands/message-format.js +345 -0
  727. package/dist/commands/message.js +45 -0
  728. package/dist/commands/model-picker.js +420 -0
  729. package/dist/commands/models/aliases.js +92 -0
  730. package/dist/commands/models/auth-order.js +95 -0
  731. package/dist/commands/models/auth.js +334 -0
  732. package/dist/commands/models/fallbacks.js +126 -0
  733. package/dist/commands/models/image-fallbacks.js +126 -0
  734. package/dist/commands/models/list.auth-overview.js +93 -0
  735. package/dist/commands/models/list.configured.js +80 -0
  736. package/dist/commands/models/list.format.js +41 -0
  737. package/dist/commands/models/list.js +2 -0
  738. package/dist/commands/models/list.list-command.js +99 -0
  739. package/dist/commands/models/list.probe.js +348 -0
  740. package/dist/commands/models/list.registry.js +81 -0
  741. package/dist/commands/models/list.status-command.js +420 -0
  742. package/dist/commands/models/list.table.js +58 -0
  743. package/dist/commands/models/list.types.js +1 -0
  744. package/dist/commands/models/scan.js +293 -0
  745. package/dist/commands/models/set-image.js +28 -0
  746. package/dist/commands/models/set.js +28 -0
  747. package/dist/commands/models/shared.js +80 -0
  748. package/dist/commands/models.js +10 -0
  749. package/dist/commands/node-daemon-install-helpers.js +35 -0
  750. package/dist/commands/node-daemon-runtime.js +6 -0
  751. package/dist/commands/oauth-env.js +16 -0
  752. package/dist/commands/oauth-flow.js +33 -0
  753. package/dist/commands/onboard-auth.config-core.js +386 -0
  754. package/dist/commands/onboard-auth.config-minimax.js +176 -0
  755. package/dist/commands/onboard-auth.config-opencode.js +40 -0
  756. package/dist/commands/onboard-auth.credentials.js +147 -0
  757. package/dist/commands/onboard-auth.js +7 -0
  758. package/dist/commands/onboard-auth.models.js +100 -0
  759. package/dist/commands/onboard-channels.js +527 -0
  760. package/dist/commands/onboard-helpers.js +360 -0
  761. package/dist/commands/onboard-hooks.js +59 -0
  762. package/dist/commands/onboard-interactive.js +17 -0
  763. package/dist/commands/onboard-non-interactive/api-keys.js +45 -0
  764. package/dist/commands/onboard-non-interactive/local/auth-choice.js +333 -0
  765. package/dist/commands/onboard-non-interactive/local/daemon-install.js +45 -0
  766. package/dist/commands/onboard-non-interactive/local/gateway-config.js +86 -0
  767. package/dist/commands/onboard-non-interactive/local/output.js +14 -0
  768. package/dist/commands/onboard-non-interactive/local/skills-config.js +21 -0
  769. package/dist/commands/onboard-non-interactive/local/workspace.js +7 -0
  770. package/dist/commands/onboard-non-interactive/local.js +105 -0
  771. package/dist/commands/onboard-non-interactive/remote.js +41 -0
  772. package/dist/commands/onboard-non-interactive.js +25 -0
  773. package/dist/commands/onboard-remote.js +121 -0
  774. package/dist/commands/onboard-skills.js +146 -0
  775. package/dist/commands/onboard-types.js +1 -0
  776. package/dist/commands/onboard.js +62 -0
  777. package/dist/commands/onboarding/__tests__/test-utils.js +20 -0
  778. package/dist/commands/onboarding/plugin-install.js +162 -0
  779. package/dist/commands/onboarding/registry.js +13 -0
  780. package/dist/commands/onboarding/types.js +1 -0
  781. package/dist/commands/openai-codex-model-default.js +44 -0
  782. package/dist/commands/opencode-zen-model-default.js +35 -0
  783. package/dist/commands/reset.js +134 -0
  784. package/dist/commands/sandbox-display.js +82 -0
  785. package/dist/commands/sandbox-explain.js +226 -0
  786. package/dist/commands/sandbox-formatters.js +31 -0
  787. package/dist/commands/sandbox.js +119 -0
  788. package/dist/commands/sessions.js +211 -0
  789. package/dist/commands/setup.js +62 -0
  790. package/dist/commands/signal-install.js +132 -0
  791. package/dist/commands/status-all/agents.js +62 -0
  792. package/dist/commands/status-all/channels.js +354 -0
  793. package/dist/commands/status-all/diagnosis.js +156 -0
  794. package/dist/commands/status-all/format.js +41 -0
  795. package/dist/commands/status-all/gateway.js +158 -0
  796. package/dist/commands/status-all/report-lines.js +135 -0
  797. package/dist/commands/status-all.js +409 -0
  798. package/dist/commands/status.agent-local.js +68 -0
  799. package/dist/commands/status.command.js +476 -0
  800. package/dist/commands/status.daemon.js +30 -0
  801. package/dist/commands/status.format.js +52 -0
  802. package/dist/commands/status.gateway-probe.js +35 -0
  803. package/dist/commands/status.js +2 -0
  804. package/dist/commands/status.link-channel.js +39 -0
  805. package/dist/commands/status.scan.js +140 -0
  806. package/dist/commands/status.summary.js +172 -0
  807. package/dist/commands/status.types.js +1 -0
  808. package/dist/commands/status.update.js +112 -0
  809. package/dist/commands/systemd-linger.js +77 -0
  810. package/dist/commands/uninstall.js +161 -0
  811. package/dist/compat/legacy-names.js +6 -0
  812. package/dist/config/agent-dirs.js +79 -0
  813. package/dist/config/agent-limits.js +16 -0
  814. package/dist/config/cache-utils.js +22 -0
  815. package/dist/config/channel-capabilities.js +42 -0
  816. package/dist/config/commands.js +38 -0
  817. package/dist/config/config-paths.js +75 -0
  818. package/dist/config/config.js +7 -0
  819. package/dist/config/defaults.js +350 -0
  820. package/dist/config/env-substitution.js +117 -0
  821. package/dist/config/env-vars.js +21 -0
  822. package/dist/config/group-policy.js +123 -0
  823. package/dist/config/includes.js +183 -0
  824. package/dist/config/io.js +491 -0
  825. package/dist/config/legacy-migrate.js +13 -0
  826. package/dist/config/legacy.js +34 -0
  827. package/dist/config/legacy.migrations.js +8 -0
  828. package/dist/config/legacy.migrations.part-1.js +308 -0
  829. package/dist/config/legacy.migrations.part-2.js +343 -0
  830. package/dist/config/legacy.migrations.part-3.js +164 -0
  831. package/dist/config/legacy.rules.js +116 -0
  832. package/dist/config/legacy.shared.js +76 -0
  833. package/dist/config/logging.js +10 -0
  834. package/dist/config/markdown-tables.js +36 -0
  835. package/dist/config/merge-config.js +22 -0
  836. package/dist/config/merge-patch.js +22 -0
  837. package/dist/config/normalize-paths.js +54 -0
  838. package/dist/config/paths.js +196 -0
  839. package/dist/config/plugin-auto-enable.js +338 -0
  840. package/dist/config/port-defaults.js +30 -0
  841. package/dist/config/runtime-overrides.js +50 -0
  842. package/dist/config/schema.js +793 -0
  843. package/dist/config/sessions/group.js +83 -0
  844. package/dist/config/sessions/main-session.js +43 -0
  845. package/dist/config/sessions/metadata.js +114 -0
  846. package/dist/config/sessions/paths.js +46 -0
  847. package/dist/config/sessions/reset.js +103 -0
  848. package/dist/config/sessions/session-key.js +34 -0
  849. package/dist/config/sessions/store.js +346 -0
  850. package/dist/config/sessions/transcript.js +113 -0
  851. package/dist/config/sessions/types.js +11 -0
  852. package/dist/config/sessions.js +9 -0
  853. package/dist/config/talk.js +31 -0
  854. package/dist/config/telegram-custom-commands.js +70 -0
  855. package/dist/config/types.agent-defaults.js +1 -0
  856. package/dist/config/types.agents.js +1 -0
  857. package/dist/config/types.approvals.js +1 -0
  858. package/dist/config/types.auth.js +1 -0
  859. package/dist/config/types.base.js +1 -0
  860. package/dist/config/types.browser.js +1 -0
  861. package/dist/config/types.channels.js +1 -0
  862. package/dist/config/types.clawdbot.js +1 -0
  863. package/dist/config/types.cron.js +1 -0
  864. package/dist/config/types.discord.js +1 -0
  865. package/dist/config/types.gateway.js +1 -0
  866. package/dist/config/types.googlechat.js +1 -0
  867. package/dist/config/types.hooks.js +1 -0
  868. package/dist/config/types.imessage.js +1 -0
  869. package/dist/config/types.js +29 -0
  870. package/dist/config/types.messages.js +1 -0
  871. package/dist/config/types.models.js +1 -0
  872. package/dist/config/types.msteams.js +1 -0
  873. package/dist/config/types.node-host.js +1 -0
  874. package/dist/config/types.plugins.js +1 -0
  875. package/dist/config/types.queue.js +1 -0
  876. package/dist/config/types.sandbox.js +1 -0
  877. package/dist/config/types.signal.js +1 -0
  878. package/dist/config/types.skills.js +1 -0
  879. package/dist/config/types.slack.js +1 -0
  880. package/dist/config/types.telegram.js +1 -0
  881. package/dist/config/types.tools.js +1 -0
  882. package/dist/config/types.tts.js +1 -0
  883. package/dist/config/types.whatsapp.js +1 -0
  884. package/dist/config/validation.js +297 -0
  885. package/dist/config/version.js +30 -0
  886. package/dist/config/zod-schema.agent-defaults.js +157 -0
  887. package/dist/config/zod-schema.agent-runtime.js +519 -0
  888. package/dist/config/zod-schema.agents.js +46 -0
  889. package/dist/config/zod-schema.approvals.js +25 -0
  890. package/dist/config/zod-schema.channels.js +9 -0
  891. package/dist/config/zod-schema.core.js +452 -0
  892. package/dist/config/zod-schema.hooks.js +124 -0
  893. package/dist/config/zod-schema.js +538 -0
  894. package/dist/config/zod-schema.providers-core.js +703 -0
  895. package/dist/config/zod-schema.providers-whatsapp.js +126 -0
  896. package/dist/config/zod-schema.providers.js +29 -0
  897. package/dist/config/zod-schema.session.js +100 -0
  898. package/dist/control-ui/assets/index-BAFzd9IE.css +1 -0
  899. package/dist/control-ui/assets/index-CxUFDXFX.js +3162 -0
  900. package/dist/control-ui/assets/index-CxUFDXFX.js.map +1 -0
  901. package/dist/control-ui/favicon.ico +0 -0
  902. package/dist/control-ui/index.html +15 -0
  903. package/dist/cron/isolated-agent/delivery-target.js +59 -0
  904. package/dist/cron/isolated-agent/helpers.js +49 -0
  905. package/dist/cron/isolated-agent/run.js +376 -0
  906. package/dist/cron/isolated-agent/session.js +27 -0
  907. package/dist/cron/isolated-agent.js +1 -0
  908. package/dist/cron/normalize.js +111 -0
  909. package/dist/cron/parse.js +24 -0
  910. package/dist/cron/payload-migration.js +29 -0
  911. package/dist/cron/run-log.js +70 -0
  912. package/dist/cron/schedule.js +24 -0
  913. package/dist/cron/service/jobs.js +174 -0
  914. package/dist/cron/service/locked.js +12 -0
  915. package/dist/cron/service/normalize.js +55 -0
  916. package/dist/cron/service/ops.js +118 -0
  917. package/dist/cron/service/state.js +10 -0
  918. package/dist/cron/service/store.js +57 -0
  919. package/dist/cron/service/timer.js +217 -0
  920. package/dist/cron/service.js +35 -0
  921. package/dist/cron/store.js +43 -0
  922. package/dist/cron/types.js +1 -0
  923. package/dist/daemon/constants.js +81 -0
  924. package/dist/daemon/diagnostics.js +38 -0
  925. package/dist/daemon/inspect.js +314 -0
  926. package/dist/daemon/launchd-plist.js +68 -0
  927. package/dist/daemon/launchd.js +316 -0
  928. package/dist/daemon/legacy.js +44 -0
  929. package/dist/daemon/node-service.js +53 -0
  930. package/dist/daemon/paths.js +35 -0
  931. package/dist/daemon/program-args.js +220 -0
  932. package/dist/daemon/runtime-parse.js +17 -0
  933. package/dist/daemon/runtime-paths.js +113 -0
  934. package/dist/daemon/schtasks.js +303 -0
  935. package/dist/daemon/service-audit.js +270 -0
  936. package/dist/daemon/service-env.js +128 -0
  937. package/dist/daemon/service-runtime.js +1 -0
  938. package/dist/daemon/service.js +108 -0
  939. package/dist/daemon/systemd-hints.js +31 -0
  940. package/dist/daemon/systemd-linger.js +59 -0
  941. package/dist/daemon/systemd-unit.js +108 -0
  942. package/dist/daemon/systemd.js +318 -0
  943. package/dist/daemon/termux.js +178 -0
  944. package/dist/discord/accounts.js +52 -0
  945. package/dist/discord/api.js +93 -0
  946. package/dist/discord/audit.js +94 -0
  947. package/dist/discord/chunk.js +200 -0
  948. package/dist/discord/directory-live.js +76 -0
  949. package/dist/discord/gateway-logging.js +48 -0
  950. package/dist/discord/index.js +2 -0
  951. package/dist/discord/monitor/allow-list.js +230 -0
  952. package/dist/discord/monitor/exec-approvals.js +406 -0
  953. package/dist/discord/monitor/format.js +27 -0
  954. package/dist/discord/monitor/listeners.js +240 -0
  955. package/dist/discord/monitor/message-handler.js +101 -0
  956. package/dist/discord/monitor/message-handler.preflight.js +438 -0
  957. package/dist/discord/monitor/message-handler.preflight.types.js +1 -0
  958. package/dist/discord/monitor/message-handler.process.js +344 -0
  959. package/dist/discord/monitor/message-utils.js +189 -0
  960. package/dist/discord/monitor/native-command.js +707 -0
  961. package/dist/discord/monitor/presence-cache.js +38 -0
  962. package/dist/discord/monitor/provider.js +551 -0
  963. package/dist/discord/monitor/reply-context.js +29 -0
  964. package/dist/discord/monitor/reply-delivery.js +57 -0
  965. package/dist/discord/monitor/system-events.js +53 -0
  966. package/dist/discord/monitor/threading.js +201 -0
  967. package/dist/discord/monitor/typing.js +8 -0
  968. package/dist/discord/monitor.gateway.js +54 -0
  969. package/dist/discord/monitor.js +7 -0
  970. package/dist/discord/probe.js +124 -0
  971. package/dist/discord/resolve-channels.js +239 -0
  972. package/dist/discord/resolve-users.js +114 -0
  973. package/dist/discord/send.channels.js +74 -0
  974. package/dist/discord/send.emojis-stickers.js +48 -0
  975. package/dist/discord/send.guild.js +79 -0
  976. package/dist/discord/send.js +7 -0
  977. package/dist/discord/send.messages.js +91 -0
  978. package/dist/discord/send.outbound.js +87 -0
  979. package/dist/discord/send.permissions.js +116 -0
  980. package/dist/discord/send.reactions.js +71 -0
  981. package/dist/discord/send.shared.js +249 -0
  982. package/dist/discord/send.types.js +16 -0
  983. package/dist/discord/targets.js +43 -0
  984. package/dist/discord/token.js +29 -0
  985. package/dist/entry.js +138 -0
  986. package/dist/gateway/assistant-identity.js +64 -0
  987. package/dist/gateway/auth.js +194 -0
  988. package/dist/gateway/boot.js +72 -0
  989. package/dist/gateway/call.js +182 -0
  990. package/dist/gateway/chat-abort.js +55 -0
  991. package/dist/gateway/chat-attachments.js +133 -0
  992. package/dist/gateway/chat-sanitize.js +103 -0
  993. package/dist/gateway/client.js +339 -0
  994. package/dist/gateway/config-reload.js +295 -0
  995. package/dist/gateway/control-ui-shared.js +48 -0
  996. package/dist/gateway/control-ui.js +258 -0
  997. package/dist/gateway/device-auth.js +19 -0
  998. package/dist/gateway/exec-approval-manager.js +40 -0
  999. package/dist/gateway/hooks-mapping.js +287 -0
  1000. package/dist/gateway/hooks.js +167 -0
  1001. package/dist/gateway/http-common.js +43 -0
  1002. package/dist/gateway/http-utils.js +49 -0
  1003. package/dist/gateway/live-image-probe.js +156 -0
  1004. package/dist/gateway/net.js +176 -0
  1005. package/dist/gateway/node-command-policy.js +106 -0
  1006. package/dist/gateway/node-registry.js +142 -0
  1007. package/dist/gateway/open-responses.schema.js +285 -0
  1008. package/dist/gateway/openai-http.js +327 -0
  1009. package/dist/gateway/openresponses-http.js +693 -0
  1010. package/dist/gateway/probe.js +87 -0
  1011. package/dist/gateway/protocol/client-info.js +46 -0
  1012. package/dist/gateway/protocol/index.js +109 -0
  1013. package/dist/gateway/protocol/schema/agent.js +73 -0
  1014. package/dist/gateway/protocol/schema/agents-models-skills.js +47 -0
  1015. package/dist/gateway/protocol/schema/channels.js +74 -0
  1016. package/dist/gateway/protocol/schema/config.js +44 -0
  1017. package/dist/gateway/protocol/schema/cron.js +159 -0
  1018. package/dist/gateway/protocol/schema/devices.js +36 -0
  1019. package/dist/gateway/protocol/schema/error-codes.js +14 -0
  1020. package/dist/gateway/protocol/schema/exec-approvals.js +66 -0
  1021. package/dist/gateway/protocol/schema/frames.js +101 -0
  1022. package/dist/gateway/protocol/schema/logs-chat.js +53 -0
  1023. package/dist/gateway/protocol/schema/nodes.js +54 -0
  1024. package/dist/gateway/protocol/schema/primitives.js +10 -0
  1025. package/dist/gateway/protocol/schema/protocol-schemas.js +117 -0
  1026. package/dist/gateway/protocol/schema/sessions.js +69 -0
  1027. package/dist/gateway/protocol/schema/snapshot.js +40 -0
  1028. package/dist/gateway/protocol/schema/types.js +1 -0
  1029. package/dist/gateway/protocol/schema/wizard.js +76 -0
  1030. package/dist/gateway/protocol/schema.js +16 -0
  1031. package/dist/gateway/server/__tests__/test-utils.js +24 -0
  1032. package/dist/gateway/server/close-reason.js +10 -0
  1033. package/dist/gateway/server/health-state.js +69 -0
  1034. package/dist/gateway/server/hooks.js +85 -0
  1035. package/dist/gateway/server/http-listen.js +26 -0
  1036. package/dist/gateway/server/plugins-http.js +45 -0
  1037. package/dist/gateway/server/tls.js +4 -0
  1038. package/dist/gateway/server/ws-connection/message-handler.js +771 -0
  1039. package/dist/gateway/server/ws-connection.js +191 -0
  1040. package/dist/gateway/server/ws-types.js +1 -0
  1041. package/dist/gateway/server-broadcast.js +73 -0
  1042. package/dist/gateway/server-browser.js +22 -0
  1043. package/dist/gateway/server-channels.js +242 -0
  1044. package/dist/gateway/server-chat.js +221 -0
  1045. package/dist/gateway/server-close.js +99 -0
  1046. package/dist/gateway/server-constants.js +29 -0
  1047. package/dist/gateway/server-cron.js +84 -0
  1048. package/dist/gateway/server-discovery-runtime.js +69 -0
  1049. package/dist/gateway/server-discovery.js +62 -0
  1050. package/dist/gateway/server-http.js +224 -0
  1051. package/dist/gateway/server-lanes.js +7 -0
  1052. package/dist/gateway/server-maintenance.js +68 -0
  1053. package/dist/gateway/server-methods/agent-job.js +104 -0
  1054. package/dist/gateway/server-methods/agent.js +360 -0
  1055. package/dist/gateway/server-methods/agents.js +14 -0
  1056. package/dist/gateway/server-methods/browser.js +204 -0
  1057. package/dist/gateway/server-methods/channels.js +218 -0
  1058. package/dist/gateway/server-methods/chat.js +520 -0
  1059. package/dist/gateway/server-methods/config.js +269 -0
  1060. package/dist/gateway/server-methods/connect.js +6 -0
  1061. package/dist/gateway/server-methods/cron.js +109 -0
  1062. package/dist/gateway/server-methods/devices.js +95 -0
  1063. package/dist/gateway/server-methods/exec-approval.js +78 -0
  1064. package/dist/gateway/server-methods/exec-approvals.js +141 -0
  1065. package/dist/gateway/server-methods/health.js +29 -0
  1066. package/dist/gateway/server-methods/logs.js +143 -0
  1067. package/dist/gateway/server-methods/models.js +16 -0
  1068. package/dist/gateway/server-methods/nodes.helpers.js +32 -0
  1069. package/dist/gateway/server-methods/nodes.js +426 -0
  1070. package/dist/gateway/server-methods/send.js +280 -0
  1071. package/dist/gateway/server-methods/sessions.js +322 -0
  1072. package/dist/gateway/server-methods/skills.js +137 -0
  1073. package/dist/gateway/server-methods/system.js +122 -0
  1074. package/dist/gateway/server-methods/talk.js +20 -0
  1075. package/dist/gateway/server-methods/tts.js +132 -0
  1076. package/dist/gateway/server-methods/types.js +1 -0
  1077. package/dist/gateway/server-methods/update.js +96 -0
  1078. package/dist/gateway/server-methods/usage.js +63 -0
  1079. package/dist/gateway/server-methods/voicewake.js +30 -0
  1080. package/dist/gateway/server-methods/web.js +73 -0
  1081. package/dist/gateway/server-methods/wizard.js +100 -0
  1082. package/dist/gateway/server-methods-list.js +108 -0
  1083. package/dist/gateway/server-methods.js +195 -0
  1084. package/dist/gateway/server-mobile-nodes.js +10 -0
  1085. package/dist/gateway/server-model-catalog.js +11 -0
  1086. package/dist/gateway/server-node-events-types.js +1 -0
  1087. package/dist/gateway/server-node-events.js +206 -0
  1088. package/dist/gateway/server-node-subscriptions.js +93 -0
  1089. package/dist/gateway/server-plugins.js +36 -0
  1090. package/dist/gateway/server-reload-handlers.js +112 -0
  1091. package/dist/gateway/server-restart-sentinel.js +84 -0
  1092. package/dist/gateway/server-runtime-config.js +66 -0
  1093. package/dist/gateway/server-runtime-state.js +113 -0
  1094. package/dist/gateway/server-session-key.js +20 -0
  1095. package/dist/gateway/server-shared.js +1 -0
  1096. package/dist/gateway/server-startup-log.js +27 -0
  1097. package/dist/gateway/server-startup.js +119 -0
  1098. package/dist/gateway/server-tailscale.js +41 -0
  1099. package/dist/gateway/server-utils.js +35 -0
  1100. package/dist/gateway/server-wizard-sessions.js +19 -0
  1101. package/dist/gateway/server-ws-runtime.js +20 -0
  1102. package/dist/gateway/server.impl.js +453 -0
  1103. package/dist/gateway/server.js +2 -0
  1104. package/dist/gateway/session-utils.fs.js +343 -0
  1105. package/dist/gateway/session-utils.js +534 -0
  1106. package/dist/gateway/session-utils.types.js +1 -0
  1107. package/dist/gateway/sessions-patch.js +298 -0
  1108. package/dist/gateway/sessions-resolve.js +103 -0
  1109. package/dist/gateway/test-helpers.e2e.js +101 -0
  1110. package/dist/gateway/test-helpers.mocks.js +502 -0
  1111. package/dist/gateway/test-helpers.openai-mock.js +163 -0
  1112. package/dist/gateway/test-helpers.server.js +369 -0
  1113. package/dist/gateway/tools-invoke-http.js +185 -0
  1114. package/dist/gateway/ws-log.js +336 -0
  1115. package/dist/gateway/ws-logging.js +8 -0
  1116. package/dist/globals.js +41 -0
  1117. package/dist/hooks/bundled/boot-md/HOOK.md +19 -0
  1118. package/dist/hooks/bundled/boot-md/handler.js +14 -0
  1119. package/dist/hooks/bundled/command-logger/HOOK.md +122 -0
  1120. package/dist/hooks/bundled/command-logger/handler.js +55 -0
  1121. package/dist/hooks/bundled/session-memory/HOOK.md +86 -0
  1122. package/dist/hooks/bundled/session-memory/handler.js +140 -0
  1123. package/dist/hooks/bundled/soul-evil/HOOK.md +71 -0
  1124. package/dist/hooks/bundled/soul-evil/handler.js +36 -0
  1125. package/dist/hooks/bundled-dir.js +42 -0
  1126. package/dist/hooks/config.js +123 -0
  1127. package/dist/hooks/frontmatter.js +106 -0
  1128. package/dist/hooks/gmail-ops.js +243 -0
  1129. package/dist/hooks/gmail-setup-utils.js +310 -0
  1130. package/dist/hooks/gmail-watcher.js +191 -0
  1131. package/dist/hooks/gmail.js +179 -0
  1132. package/dist/hooks/hooks-status.js +135 -0
  1133. package/dist/hooks/hooks.js +2 -0
  1134. package/dist/hooks/install.js +328 -0
  1135. package/dist/hooks/installs.js +24 -0
  1136. package/dist/hooks/internal-hooks.js +121 -0
  1137. package/dist/hooks/llm-slug-generator.js +70 -0
  1138. package/dist/hooks/loader.js +110 -0
  1139. package/dist/hooks/plugin-hooks.js +91 -0
  1140. package/dist/hooks/soul-evil.js +186 -0
  1141. package/dist/hooks/types.js +1 -0
  1142. package/dist/hooks/workspace.js +207 -0
  1143. package/dist/imessage/accounts.js +61 -0
  1144. package/dist/imessage/client.js +174 -0
  1145. package/dist/imessage/index.js +3 -0
  1146. package/dist/imessage/monitor/deliver.js +45 -0
  1147. package/dist/imessage/monitor/monitor-provider.js +592 -0
  1148. package/dist/imessage/monitor/runtime.js +12 -0
  1149. package/dist/imessage/monitor/types.js +1 -0
  1150. package/dist/imessage/monitor.js +1 -0
  1151. package/dist/imessage/probe.js +68 -0
  1152. package/dist/imessage/send.js +101 -0
  1153. package/dist/imessage/targets.js +172 -0
  1154. package/dist/index.js +49 -0
  1155. package/dist/infra/agent-events.js +57 -0
  1156. package/dist/infra/archive.js +97 -0
  1157. package/dist/infra/backoff.js +19 -0
  1158. package/dist/infra/binaries.js +9 -0
  1159. package/dist/infra/bonjour-ciao.js +10 -0
  1160. package/dist/infra/bonjour-discovery.js +445 -0
  1161. package/dist/infra/bonjour-errors.js +7 -0
  1162. package/dist/infra/bonjour.js +209 -0
  1163. package/dist/infra/brew.js +55 -0
  1164. package/dist/infra/canvas-host-url.js +52 -0
  1165. package/dist/infra/channel-activity.js +32 -0
  1166. package/dist/infra/channel-summary.js +183 -0
  1167. package/dist/infra/channels-status-issues.js +15 -0
  1168. package/dist/infra/clipboard.js +38 -0
  1169. package/dist/infra/control-ui-assets.js +98 -0
  1170. package/dist/infra/dedupe.js +47 -0
  1171. package/dist/infra/device-auth-store.js +97 -0
  1172. package/dist/infra/device-identity.js +149 -0
  1173. package/dist/infra/device-pairing.js +401 -0
  1174. package/dist/infra/diagnostic-events.js +28 -0
  1175. package/dist/infra/diagnostic-flags.js +66 -0
  1176. package/dist/infra/dotenv.js +15 -0
  1177. package/dist/infra/env-file.js +43 -0
  1178. package/dist/infra/env.js +34 -0
  1179. package/dist/infra/errors.js +35 -0
  1180. package/dist/infra/exec-approval-forwarder.js +212 -0
  1181. package/dist/infra/exec-approvals.js +1040 -0
  1182. package/dist/infra/exec-host.js +75 -0
  1183. package/dist/infra/exec-safety.js +31 -0
  1184. package/dist/infra/fetch.js +58 -0
  1185. package/dist/infra/format-duration.js +20 -0
  1186. package/dist/infra/fs-safe.js +76 -0
  1187. package/dist/infra/gateway-lock.js +203 -0
  1188. package/dist/infra/git-commit.js +106 -0
  1189. package/dist/infra/heartbeat-events.js +34 -0
  1190. package/dist/infra/heartbeat-runner.js +743 -0
  1191. package/dist/infra/heartbeat-visibility.js +45 -0
  1192. package/dist/infra/heartbeat-wake.js +61 -0
  1193. package/dist/infra/is-main.js +33 -0
  1194. package/dist/infra/json-file.js +21 -0
  1195. package/dist/infra/machine-name.js +43 -0
  1196. package/dist/infra/moltbot-root.js +57 -0
  1197. package/dist/infra/net/ssrf.js +199 -0
  1198. package/dist/infra/node-pairing.js +228 -0
  1199. package/dist/infra/node-shell.js +9 -0
  1200. package/dist/infra/os-summary.js +23 -0
  1201. package/dist/infra/outbound/agent-delivery.js +86 -0
  1202. package/dist/infra/outbound/channel-adapters.js +16 -0
  1203. package/dist/infra/outbound/channel-selection.js +62 -0
  1204. package/dist/infra/outbound/channel-target.js +28 -0
  1205. package/dist/infra/outbound/deliver.js +253 -0
  1206. package/dist/infra/outbound/directory-cache.js +44 -0
  1207. package/dist/infra/outbound/envelope.js +20 -0
  1208. package/dist/infra/outbound/format.js +66 -0
  1209. package/dist/infra/outbound/message-action-runner.js +766 -0
  1210. package/dist/infra/outbound/message-action-spec.js +83 -0
  1211. package/dist/infra/outbound/message.js +189 -0
  1212. package/dist/infra/outbound/outbound-policy.js +122 -0
  1213. package/dist/infra/outbound/outbound-send-service.js +123 -0
  1214. package/dist/infra/outbound/outbound-session.js +744 -0
  1215. package/dist/infra/outbound/payloads.js +78 -0
  1216. package/dist/infra/outbound/target-errors.js +23 -0
  1217. package/dist/infra/outbound/target-normalization.js +27 -0
  1218. package/dist/infra/outbound/target-resolver.js +348 -0
  1219. package/dist/infra/outbound/targets.js +213 -0
  1220. package/dist/infra/path-env.js +93 -0
  1221. package/dist/infra/ports-format.js +53 -0
  1222. package/dist/infra/ports-inspect.js +240 -0
  1223. package/dist/infra/ports-lsof.js +33 -0
  1224. package/dist/infra/ports-types.js +1 -0
  1225. package/dist/infra/ports.js +75 -0
  1226. package/dist/infra/provider-usage.auth.js +188 -0
  1227. package/dist/infra/provider-usage.fetch.antigravity.js +212 -0
  1228. package/dist/infra/provider-usage.fetch.claude.js +129 -0
  1229. package/dist/infra/provider-usage.fetch.codex.js +62 -0
  1230. package/dist/infra/provider-usage.fetch.copilot.js +42 -0
  1231. package/dist/infra/provider-usage.fetch.gemini.js +57 -0
  1232. package/dist/infra/provider-usage.fetch.js +7 -0
  1233. package/dist/infra/provider-usage.fetch.minimax.js +332 -0
  1234. package/dist/infra/provider-usage.fetch.shared.js +10 -0
  1235. package/dist/infra/provider-usage.fetch.zai.js +62 -0
  1236. package/dist/infra/provider-usage.format.js +96 -0
  1237. package/dist/infra/provider-usage.js +3 -0
  1238. package/dist/infra/provider-usage.load.js +59 -0
  1239. package/dist/infra/provider-usage.shared.js +51 -0
  1240. package/dist/infra/provider-usage.types.js +1 -0
  1241. package/dist/infra/restart-sentinel.js +65 -0
  1242. package/dist/infra/restart.js +171 -0
  1243. package/dist/infra/retry-policy.js +71 -0
  1244. package/dist/infra/retry.js +85 -0
  1245. package/dist/infra/runtime-guard.js +60 -0
  1246. package/dist/infra/session-cost-usage.js +190 -0
  1247. package/dist/infra/shell-env.js +125 -0
  1248. package/dist/infra/skills-remote.js +282 -0
  1249. package/dist/infra/ssh-config.js +83 -0
  1250. package/dist/infra/ssh-tunnel.js +166 -0
  1251. package/dist/infra/state-migrations.fs.js +49 -0
  1252. package/dist/infra/state-migrations.js +613 -0
  1253. package/dist/infra/system-events.js +75 -0
  1254. package/dist/infra/system-presence.js +231 -0
  1255. package/dist/infra/tailnet.js +46 -0
  1256. package/dist/infra/tailscale.js +368 -0
  1257. package/dist/infra/termux-api.js +71 -0
  1258. package/dist/infra/tls/fingerprint.js +5 -0
  1259. package/dist/infra/tls/gateway.js +119 -0
  1260. package/dist/infra/transport-ready.js +38 -0
  1261. package/dist/infra/unhandled-rejections.js +139 -0
  1262. package/dist/infra/update-channels.js +57 -0
  1263. package/dist/infra/update-check.js +293 -0
  1264. package/dist/infra/update-global.js +85 -0
  1265. package/dist/infra/update-runner.js +577 -0
  1266. package/dist/infra/update-startup.js +86 -0
  1267. package/dist/infra/voicewake.js +74 -0
  1268. package/dist/infra/warnings.js +25 -0
  1269. package/dist/infra/widearea-dns.js +131 -0
  1270. package/dist/infra/ws.js +13 -0
  1271. package/dist/infra/wsl.js +25 -0
  1272. package/dist/line/accounts.js +130 -0
  1273. package/dist/line/auto-reply-delivery.js +102 -0
  1274. package/dist/line/bot-access.js +38 -0
  1275. package/dist/line/bot-handlers.js +258 -0
  1276. package/dist/line/bot-message-context.js +374 -0
  1277. package/dist/line/bot.js +48 -0
  1278. package/dist/line/config-schema.js +47 -0
  1279. package/dist/line/download.js +95 -0
  1280. package/dist/line/flex-templates.js +1264 -0
  1281. package/dist/line/http-registry.js +27 -0
  1282. package/dist/line/index.js +19 -0
  1283. package/dist/line/markdown-to-line.js +346 -0
  1284. package/dist/line/monitor.js +266 -0
  1285. package/dist/line/probe.js +37 -0
  1286. package/dist/line/reply-chunks.js +53 -0
  1287. package/dist/line/rich-menu.js +320 -0
  1288. package/dist/line/send.js +451 -0
  1289. package/dist/line/signature.js +11 -0
  1290. package/dist/line/template-messages.js +258 -0
  1291. package/dist/line/types.js +1 -0
  1292. package/dist/line/webhook.js +71 -0
  1293. package/dist/link-understanding/apply.js +22 -0
  1294. package/dist/link-understanding/defaults.js +2 -0
  1295. package/dist/link-understanding/detect.js +49 -0
  1296. package/dist/link-understanding/format.js +10 -0
  1297. package/dist/link-understanding/index.js +4 -0
  1298. package/dist/link-understanding/runner.js +99 -0
  1299. package/dist/logger.js +53 -0
  1300. package/dist/logging/config.js +19 -0
  1301. package/dist/logging/console.js +237 -0
  1302. package/dist/logging/diagnostic.js +236 -0
  1303. package/dist/logging/levels.js +26 -0
  1304. package/dist/logging/logger.js +185 -0
  1305. package/dist/logging/parse-log-line.js +52 -0
  1306. package/dist/logging/redact.js +115 -0
  1307. package/dist/logging/state.js +12 -0
  1308. package/dist/logging/subsystem.js +234 -0
  1309. package/dist/logging.js +5 -0
  1310. package/dist/macos/gateway-daemon.js +178 -0
  1311. package/dist/macos/relay-smoke.js +29 -0
  1312. package/dist/macos/relay.js +60 -0
  1313. package/dist/markdown/code-spans.js +67 -0
  1314. package/dist/markdown/fences.js +57 -0
  1315. package/dist/markdown/frontmatter.js +124 -0
  1316. package/dist/markdown/ir.js +687 -0
  1317. package/dist/markdown/render.js +113 -0
  1318. package/dist/markdown/tables.js +35 -0
  1319. package/dist/media/audio-tags.js +14 -0
  1320. package/dist/media/audio.js +15 -0
  1321. package/dist/media/constants.js +33 -0
  1322. package/dist/media/fetch.js +151 -0
  1323. package/dist/media/host.js +43 -0
  1324. package/dist/media/image-ops.js +385 -0
  1325. package/dist/media/input-files.js +276 -0
  1326. package/dist/media/mime.js +147 -0
  1327. package/dist/media/parse.js +175 -0
  1328. package/dist/media/server.js +88 -0
  1329. package/dist/media/store.js +200 -0
  1330. package/dist/media-understanding/apply.js +78 -0
  1331. package/dist/media-understanding/attachments.js +320 -0
  1332. package/dist/media-understanding/concurrency.js +26 -0
  1333. package/dist/media-understanding/defaults.js +30 -0
  1334. package/dist/media-understanding/errors.js +11 -0
  1335. package/dist/media-understanding/format.js +56 -0
  1336. package/dist/media-understanding/index.js +3 -0
  1337. package/dist/media-understanding/providers/anthropic/index.js +6 -0
  1338. package/dist/media-understanding/providers/deepgram/audio.js +47 -0
  1339. package/dist/media-understanding/providers/deepgram/index.js +6 -0
  1340. package/dist/media-understanding/providers/google/audio.js +64 -0
  1341. package/dist/media-understanding/providers/google/index.js +10 -0
  1342. package/dist/media-understanding/providers/google/video.js +64 -0
  1343. package/dist/media-understanding/providers/groq/index.js +10 -0
  1344. package/dist/media-understanding/providers/image.js +59 -0
  1345. package/dist/media-understanding/providers/index.js +45 -0
  1346. package/dist/media-understanding/providers/minimax/index.js +6 -0
  1347. package/dist/media-understanding/providers/openai/audio.js +46 -0
  1348. package/dist/media-understanding/providers/openai/index.js +8 -0
  1349. package/dist/media-understanding/providers/shared.js +29 -0
  1350. package/dist/media-understanding/resolve.js +113 -0
  1351. package/dist/media-understanding/runner.js +1008 -0
  1352. package/dist/media-understanding/scope.js +41 -0
  1353. package/dist/media-understanding/types.js +1 -0
  1354. package/dist/media-understanding/video.js +8 -0
  1355. package/dist/memory/batch-gemini.js +320 -0
  1356. package/dist/memory/batch-openai.js +290 -0
  1357. package/dist/memory/embeddings-gemini.js +129 -0
  1358. package/dist/memory/embeddings-openai.js +65 -0
  1359. package/dist/memory/embeddings.js +170 -0
  1360. package/dist/memory/headers-fingerprint.js +16 -0
  1361. package/dist/memory/hybrid.js +61 -0
  1362. package/dist/memory/index.js +1 -0
  1363. package/dist/memory/internal.js +189 -0
  1364. package/dist/memory/manager-cache-key.js +45 -0
  1365. package/dist/memory/manager-search.js +95 -0
  1366. package/dist/memory/manager.js +1815 -0
  1367. package/dist/memory/memory-schema.js +79 -0
  1368. package/dist/memory/node-llama.js +3 -0
  1369. package/dist/memory/openai-batch.js +2 -0
  1370. package/dist/memory/provider-key.js +23 -0
  1371. package/dist/memory/search-manager.js +11 -0
  1372. package/dist/memory/session-files.js +98 -0
  1373. package/dist/memory/sqlite-vec.js +19 -0
  1374. package/dist/memory/sqlite.js +7 -0
  1375. package/dist/memory/status-format.js +23 -0
  1376. package/dist/memory/sync-memory-files.js +69 -0
  1377. package/dist/memory/sync-session-files.js +95 -0
  1378. package/dist/node-host/config.js +53 -0
  1379. package/dist/node-host/runner.js +955 -0
  1380. package/dist/pairing/pairing-labels.js +4 -0
  1381. package/dist/pairing/pairing-messages.js +14 -0
  1382. package/dist/pairing/pairing-store.js +357 -0
  1383. package/dist/plugin-sdk/index.js +85 -0
  1384. package/dist/plugins/bundled-dir.js +35 -0
  1385. package/dist/plugins/cli.js +49 -0
  1386. package/dist/plugins/commands.js +228 -0
  1387. package/dist/plugins/config-schema.js +23 -0
  1388. package/dist/plugins/config-state.js +101 -0
  1389. package/dist/plugins/discovery.js +274 -0
  1390. package/dist/plugins/enable.js +36 -0
  1391. package/dist/plugins/hook-runner-global.js +57 -0
  1392. package/dist/plugins/hooks.js +283 -0
  1393. package/dist/plugins/http-path.js +10 -0
  1394. package/dist/plugins/http-registry.js +31 -0
  1395. package/dist/plugins/install.js +324 -0
  1396. package/dist/plugins/installs.js +21 -0
  1397. package/dist/plugins/loader.js +371 -0
  1398. package/dist/plugins/manifest-registry.js +136 -0
  1399. package/dist/plugins/manifest.js +84 -0
  1400. package/dist/plugins/providers.js +16 -0
  1401. package/dist/plugins/registry.js +312 -0
  1402. package/dist/plugins/runtime/index.js +290 -0
  1403. package/dist/plugins/runtime/native-deps.js +16 -0
  1404. package/dist/plugins/runtime/types.js +1 -0
  1405. package/dist/plugins/runtime.js +42 -0
  1406. package/dist/plugins/schema-validator.js +28 -0
  1407. package/dist/plugins/services.js +55 -0
  1408. package/dist/plugins/slots.js +68 -0
  1409. package/dist/plugins/status.js +27 -0
  1410. package/dist/plugins/tools.js +98 -0
  1411. package/dist/plugins/types.js +1 -0
  1412. package/dist/plugins/update.js +324 -0
  1413. package/dist/polls.js +41 -0
  1414. package/dist/process/child-process-bridge.js +34 -0
  1415. package/dist/process/command-queue.js +104 -0
  1416. package/dist/process/exec.js +98 -0
  1417. package/dist/process/lanes.js +1 -0
  1418. package/dist/process/spawn-utils.js +95 -0
  1419. package/dist/providers/github-copilot-auth.js +124 -0
  1420. package/dist/providers/github-copilot-models.js +35 -0
  1421. package/dist/providers/github-copilot-token.js +95 -0
  1422. package/dist/providers/qwen-portal-oauth.js +38 -0
  1423. package/dist/routing/bindings.js +87 -0
  1424. package/dist/routing/resolve-route.js +140 -0
  1425. package/dist/routing/session-key.js +169 -0
  1426. package/dist/runtime.js +15 -0
  1427. package/dist/security/audit-extra.js +833 -0
  1428. package/dist/security/audit-fs.js +133 -0
  1429. package/dist/security/audit.js +759 -0
  1430. package/dist/security/external-content.js +143 -0
  1431. package/dist/security/fix.js +402 -0
  1432. package/dist/security/windows-acl.js +162 -0
  1433. package/dist/sessions/level-overrides.js +24 -0
  1434. package/dist/sessions/model-overrides.js +57 -0
  1435. package/dist/sessions/send-policy.js +69 -0
  1436. package/dist/sessions/session-key-utils.js +51 -0
  1437. package/dist/sessions/session-label.js +16 -0
  1438. package/dist/sessions/transcript-events.js +16 -0
  1439. package/dist/shared/text/reasoning-tags.js +48 -0
  1440. package/dist/signal/accounts.js +59 -0
  1441. package/dist/signal/client.js +141 -0
  1442. package/dist/signal/daemon.js +69 -0
  1443. package/dist/signal/format.js +165 -0
  1444. package/dist/signal/identity.js +95 -0
  1445. package/dist/signal/index.js +5 -0
  1446. package/dist/signal/monitor/event-handler.js +492 -0
  1447. package/dist/signal/monitor/event-handler.types.js +1 -0
  1448. package/dist/signal/monitor.js +269 -0
  1449. package/dist/signal/probe.js +46 -0
  1450. package/dist/signal/reaction-level.js +53 -0
  1451. package/dist/signal/send-reactions.js +155 -0
  1452. package/dist/signal/send.js +192 -0
  1453. package/dist/signal/sse-reconnect.js +56 -0
  1454. package/dist/slack/accounts.js +84 -0
  1455. package/dist/slack/actions.js +156 -0
  1456. package/dist/slack/channel-migration.js +53 -0
  1457. package/dist/slack/client.js +17 -0
  1458. package/dist/slack/directory-live.js +122 -0
  1459. package/dist/slack/format.js +111 -0
  1460. package/dist/slack/http/index.js +1 -0
  1461. package/dist/slack/http/registry.js +27 -0
  1462. package/dist/slack/index.js +6 -0
  1463. package/dist/slack/monitor/allow-list.js +58 -0
  1464. package/dist/slack/monitor/auth.js +17 -0
  1465. package/dist/slack/monitor/channel-config.js +79 -0
  1466. package/dist/slack/monitor/commands.js +17 -0
  1467. package/dist/slack/monitor/context.js +242 -0
  1468. package/dist/slack/monitor/events/channels.js +116 -0
  1469. package/dist/slack/monitor/events/members.js +74 -0
  1470. package/dist/slack/monitor/events/messages.js +111 -0
  1471. package/dist/slack/monitor/events/pins.js +76 -0
  1472. package/dist/slack/monitor/events/reactions.js +54 -0
  1473. package/dist/slack/monitor/events.js +15 -0
  1474. package/dist/slack/monitor/media.js +93 -0
  1475. package/dist/slack/monitor/message-handler/dispatch.js +170 -0
  1476. package/dist/slack/monitor/message-handler/prepare.js +477 -0
  1477. package/dist/slack/monitor/message-handler/types.js +1 -0
  1478. package/dist/slack/monitor/message-handler.js +87 -0
  1479. package/dist/slack/monitor/policy.js +10 -0
  1480. package/dist/slack/monitor/provider.js +324 -0
  1481. package/dist/slack/monitor/replies.js +107 -0
  1482. package/dist/slack/monitor/slash.js +504 -0
  1483. package/dist/slack/monitor/thread-resolution.js +102 -0
  1484. package/dist/slack/monitor/types.js +1 -0
  1485. package/dist/slack/monitor.js +4 -0
  1486. package/dist/slack/monitor.test-helpers.js +119 -0
  1487. package/dist/slack/probe.js +47 -0
  1488. package/dist/slack/resolve-channels.js +88 -0
  1489. package/dist/slack/resolve-users.js +133 -0
  1490. package/dist/slack/scopes.js +87 -0
  1491. package/dist/slack/send.js +132 -0
  1492. package/dist/slack/targets.js +48 -0
  1493. package/dist/slack/threading-tool-context.js +18 -0
  1494. package/dist/slack/threading.js +26 -0
  1495. package/dist/slack/token.js +10 -0
  1496. package/dist/slack/types.js +1 -0
  1497. package/dist/telegram/accounts.js +98 -0
  1498. package/dist/telegram/allowed-updates.js +8 -0
  1499. package/dist/telegram/api-logging.js +24 -0
  1500. package/dist/telegram/audit.js +116 -0
  1501. package/dist/telegram/bot/delivery.js +424 -0
  1502. package/dist/telegram/bot/helpers.js +313 -0
  1503. package/dist/telegram/bot/types.js +1 -0
  1504. package/dist/telegram/bot-access.js +59 -0
  1505. package/dist/telegram/bot-handlers.js +578 -0
  1506. package/dist/telegram/bot-message-context.js +496 -0
  1507. package/dist/telegram/bot-message-dispatch.js +251 -0
  1508. package/dist/telegram/bot-message.js +41 -0
  1509. package/dist/telegram/bot-native-commands.js +436 -0
  1510. package/dist/telegram/bot-updates.js +25 -0
  1511. package/dist/telegram/bot.js +399 -0
  1512. package/dist/telegram/caption.js +11 -0
  1513. package/dist/telegram/download.js +34 -0
  1514. package/dist/telegram/draft-chunking.js +22 -0
  1515. package/dist/telegram/draft-stream.js +101 -0
  1516. package/dist/telegram/fetch.js +35 -0
  1517. package/dist/telegram/format.js +66 -0
  1518. package/dist/telegram/group-migration.js +53 -0
  1519. package/dist/telegram/index.js +4 -0
  1520. package/dist/telegram/inline-buttons.js +55 -0
  1521. package/dist/telegram/monitor.js +150 -0
  1522. package/dist/telegram/network-config.js +23 -0
  1523. package/dist/telegram/network-errors.js +103 -0
  1524. package/dist/telegram/pairing-store.js +77 -0
  1525. package/dist/telegram/probe.js +70 -0
  1526. package/dist/telegram/proxy.js +10 -0
  1527. package/dist/telegram/reaction-level.js +46 -0
  1528. package/dist/telegram/send.js +535 -0
  1529. package/dist/telegram/sent-message-cache.js +53 -0
  1530. package/dist/telegram/sticker-cache.js +202 -0
  1531. package/dist/telegram/targets.js +46 -0
  1532. package/dist/telegram/token.js +58 -0
  1533. package/dist/telegram/update-offset-store.js +60 -0
  1534. package/dist/telegram/voice.js +23 -0
  1535. package/dist/telegram/webhook-set.js +28 -0
  1536. package/dist/telegram/webhook.js +95 -0
  1537. package/dist/terminal/ansi.js +11 -0
  1538. package/dist/terminal/links.js +17 -0
  1539. package/dist/terminal/note.js +79 -0
  1540. package/dist/terminal/palette.js +12 -0
  1541. package/dist/terminal/progress-line.js +18 -0
  1542. package/dist/terminal/prompt-style.js +4 -0
  1543. package/dist/terminal/stream-writer.js +49 -0
  1544. package/dist/terminal/table.js +327 -0
  1545. package/dist/terminal/theme.js +22 -0
  1546. package/dist/tts/tts.js +1164 -0
  1547. package/dist/tui/commands.js +134 -0
  1548. package/dist/tui/components/assistant-message.js +16 -0
  1549. package/dist/tui/components/chat-log.js +86 -0
  1550. package/dist/tui/components/custom-editor.js +61 -0
  1551. package/dist/tui/components/filterable-select-list.js +102 -0
  1552. package/dist/tui/components/fuzzy-filter.js +113 -0
  1553. package/dist/tui/components/searchable-select-list.js +231 -0
  1554. package/dist/tui/components/selectors.js +16 -0
  1555. package/dist/tui/components/tool-execution.js +109 -0
  1556. package/dist/tui/components/user-message.js +17 -0
  1557. package/dist/tui/gateway-chat.js +146 -0
  1558. package/dist/tui/theme/syntax-theme.js +49 -0
  1559. package/dist/tui/theme/theme.js +119 -0
  1560. package/dist/tui/tui-command-handlers.js +418 -0
  1561. package/dist/tui/tui-event-handlers.js +160 -0
  1562. package/dist/tui/tui-formatters.js +158 -0
  1563. package/dist/tui/tui-local-shell.js +99 -0
  1564. package/dist/tui/tui-overlays.js +13 -0
  1565. package/dist/tui/tui-session-actions.js +205 -0
  1566. package/dist/tui/tui-status-summary.js +74 -0
  1567. package/dist/tui/tui-stream-assembler.js +54 -0
  1568. package/dist/tui/tui-types.js +1 -0
  1569. package/dist/tui/tui-waiting.js +34 -0
  1570. package/dist/tui/tui.js +551 -0
  1571. package/dist/utils/account-id.js +6 -0
  1572. package/dist/utils/boolean.js +22 -0
  1573. package/dist/utils/delivery-context.js +84 -0
  1574. package/dist/utils/directive-tags.js +54 -0
  1575. package/dist/utils/message-channel.js +84 -0
  1576. package/dist/utils/provider-utils.js +28 -0
  1577. package/dist/utils/queue-helpers.js +95 -0
  1578. package/dist/utils/time-format.js +19 -0
  1579. package/dist/utils/usage-format.js +46 -0
  1580. package/dist/utils.js +258 -0
  1581. package/dist/version.js +18 -0
  1582. package/dist/web/accounts.js +122 -0
  1583. package/dist/web/active-listener.js +37 -0
  1584. package/dist/web/auth-store.js +168 -0
  1585. package/dist/web/auto-reply/constants.js +1 -0
  1586. package/dist/web/auto-reply/deliver-reply.js +140 -0
  1587. package/dist/web/auto-reply/heartbeat-runner.js +264 -0
  1588. package/dist/web/auto-reply/loggers.js +5 -0
  1589. package/dist/web/auto-reply/mentions.js +79 -0
  1590. package/dist/web/auto-reply/monitor/ack-reaction.js +47 -0
  1591. package/dist/web/auto-reply/monitor/broadcast.js +64 -0
  1592. package/dist/web/auto-reply/monitor/commands.js +21 -0
  1593. package/dist/web/auto-reply/monitor/echo.js +36 -0
  1594. package/dist/web/auto-reply/monitor/group-activation.js +37 -0
  1595. package/dist/web/auto-reply/monitor/group-gating.js +98 -0
  1596. package/dist/web/auto-reply/monitor/group-members.js +53 -0
  1597. package/dist/web/auto-reply/monitor/last-route.js +38 -0
  1598. package/dist/web/auto-reply/monitor/message-line.js +35 -0
  1599. package/dist/web/auto-reply/monitor/on-message.js +128 -0
  1600. package/dist/web/auto-reply/monitor/peer.js +10 -0
  1601. package/dist/web/auto-reply/monitor/process-message.js +316 -0
  1602. package/dist/web/auto-reply/monitor.js +355 -0
  1603. package/dist/web/auto-reply/session-snapshot.js +40 -0
  1604. package/dist/web/auto-reply/types.js +1 -0
  1605. package/dist/web/auto-reply/util.js +47 -0
  1606. package/dist/web/auto-reply.impl.js +5 -0
  1607. package/dist/web/auto-reply.js +1 -0
  1608. package/dist/web/inbound/access-control.js +147 -0
  1609. package/dist/web/inbound/dedupe.js +13 -0
  1610. package/dist/web/inbound/extract.js +254 -0
  1611. package/dist/web/inbound/media.js +35 -0
  1612. package/dist/web/inbound/monitor.js +332 -0
  1613. package/dist/web/inbound/send-api.js +90 -0
  1614. package/dist/web/inbound/types.js +1 -0
  1615. package/dist/web/inbound.js +3 -0
  1616. package/dist/web/login-qr.js +227 -0
  1617. package/dist/web/login.js +68 -0
  1618. package/dist/web/media.js +221 -0
  1619. package/dist/web/outbound.js +132 -0
  1620. package/dist/web/qr-image.js +95 -0
  1621. package/dist/web/reconnect.js +36 -0
  1622. package/dist/web/session.js +243 -0
  1623. package/dist/web/vcard.js +63 -0
  1624. package/dist/whatsapp/normalize.js +66 -0
  1625. package/dist/wizard/clack-prompter.js +72 -0
  1626. package/dist/wizard/onboarding.finalize.js +351 -0
  1627. package/dist/wizard/onboarding.gateway-config.js +188 -0
  1628. package/dist/wizard/onboarding.js +372 -0
  1629. package/dist/wizard/onboarding.types.js +1 -0
  1630. package/dist/wizard/prompts.js +6 -0
  1631. package/dist/wizard/session.js +201 -0
  1632. package/docs/CNAME +1 -0
  1633. package/docs/_config.yml +53 -0
  1634. package/docs/_layouts/default.html +145 -0
  1635. package/docs/assets/markdown.css +179 -0
  1636. package/docs/assets/pixel-lobster.svg +60 -0
  1637. package/docs/assets/showcase/agents-ui.jpg +0 -0
  1638. package/docs/assets/showcase/bambu-cli.png +0 -0
  1639. package/docs/assets/showcase/codexmonitor.png +0 -0
  1640. package/docs/assets/showcase/gohome-grafana.png +0 -0
  1641. package/docs/assets/showcase/ios-testflight.jpg +0 -0
  1642. package/docs/assets/showcase/oura-health.png +0 -0
  1643. package/docs/assets/showcase/padel-cli.svg +11 -0
  1644. package/docs/assets/showcase/padel-screenshot.jpg +0 -0
  1645. package/docs/assets/showcase/papla-tts.jpg +0 -0
  1646. package/docs/assets/showcase/pr-review-telegram.jpg +0 -0
  1647. package/docs/assets/showcase/roborock-screenshot.jpg +0 -0
  1648. package/docs/assets/showcase/roborock-status.svg +13 -0
  1649. package/docs/assets/showcase/roof-camera-sky.jpg +0 -0
  1650. package/docs/assets/showcase/snag.png +0 -0
  1651. package/docs/assets/showcase/tesco-shop.jpg +0 -0
  1652. package/docs/assets/showcase/wienerlinien.png +0 -0
  1653. package/docs/assets/showcase/wine-cellar-skill.jpg +0 -0
  1654. package/docs/assets/showcase/winix-air-purifier.jpg +0 -0
  1655. package/docs/assets/showcase/xuezh-pronunciation.jpeg +0 -0
  1656. package/docs/assets/terminal.css +473 -0
  1657. package/docs/assets/theme.js +55 -0
  1658. package/docs/automation/auth-monitoring.md +41 -0
  1659. package/docs/automation/cron-jobs.md +286 -0
  1660. package/docs/automation/cron-vs-heartbeat.md +274 -0
  1661. package/docs/automation/gmail-pubsub.md +252 -0
  1662. package/docs/automation/poll.md +63 -0
  1663. package/docs/automation/webhook.md +155 -0
  1664. package/docs/bedrock.md +172 -0
  1665. package/docs/brave-search.md +40 -0
  1666. package/docs/broadcast-groups.md +407 -0
  1667. package/docs/channels/bluebubbles.md +233 -0
  1668. package/docs/channels/discord.md +404 -0
  1669. package/docs/channels/googlechat.md +220 -0
  1670. package/docs/channels/grammy.md +27 -0
  1671. package/docs/channels/imessage.md +261 -0
  1672. package/docs/channels/index.md +43 -0
  1673. package/docs/channels/line.md +183 -0
  1674. package/docs/channels/location.md +48 -0
  1675. package/docs/channels/matrix.md +230 -0
  1676. package/docs/channels/mattermost.md +123 -0
  1677. package/docs/channels/msteams.md +707 -0
  1678. package/docs/channels/nextcloud-talk.md +120 -0
  1679. package/docs/channels/nostr.md +235 -0
  1680. package/docs/channels/signal.md +179 -0
  1681. package/docs/channels/slack.md +509 -0
  1682. package/docs/channels/telegram.md +675 -0
  1683. package/docs/channels/tlon.md +133 -0
  1684. package/docs/channels/troubleshooting.md +25 -0
  1685. package/docs/channels/twitch.md +366 -0
  1686. package/docs/channels/whatsapp.md +362 -0
  1687. package/docs/channels/zalo.md +167 -0
  1688. package/docs/channels/zalouser.md +123 -0
  1689. package/docs/cli/acp.md +166 -0
  1690. package/docs/cli/agent.md +22 -0
  1691. package/docs/cli/agents.md +71 -0
  1692. package/docs/cli/approvals.md +48 -0
  1693. package/docs/cli/browser.md +104 -0
  1694. package/docs/cli/channels.md +75 -0
  1695. package/docs/cli/config.md +49 -0
  1696. package/docs/cli/configure.md +30 -0
  1697. package/docs/cli/cron.md +29 -0
  1698. package/docs/cli/dashboard.md +16 -0
  1699. package/docs/cli/devices.md +66 -0
  1700. package/docs/cli/directory.md +60 -0
  1701. package/docs/cli/dns.md +22 -0
  1702. package/docs/cli/docs.md +15 -0
  1703. package/docs/cli/doctor.md +38 -0
  1704. package/docs/cli/gateway.md +187 -0
  1705. package/docs/cli/health.md +19 -0
  1706. package/docs/cli/hooks.md +290 -0
  1707. package/docs/cli/index.md +918 -0
  1708. package/docs/cli/logs.md +23 -0
  1709. package/docs/cli/memory.md +41 -0
  1710. package/docs/cli/message.md +228 -0
  1711. package/docs/cli/models.md +68 -0
  1712. package/docs/cli/node.md +108 -0
  1713. package/docs/cli/nodes.md +68 -0
  1714. package/docs/cli/onboard.md +26 -0
  1715. package/docs/cli/pairing.md +20 -0
  1716. package/docs/cli/plugins.md +60 -0
  1717. package/docs/cli/reset.md +17 -0
  1718. package/docs/cli/sandbox.md +150 -0
  1719. package/docs/cli/security.md +24 -0
  1720. package/docs/cli/sessions.md +16 -0
  1721. package/docs/cli/setup.md +28 -0
  1722. package/docs/cli/skills.md +25 -0
  1723. package/docs/cli/status.md +24 -0
  1724. package/docs/cli/system.md +55 -0
  1725. package/docs/cli/tui.md +22 -0
  1726. package/docs/cli/uninstall.md +17 -0
  1727. package/docs/cli/update.md +96 -0
  1728. package/docs/cli/voicecall.md +33 -0
  1729. package/docs/cli/webhooks.md +23 -0
  1730. package/docs/concepts/agent-loop.md +126 -0
  1731. package/docs/concepts/agent-workspace.md +231 -0
  1732. package/docs/concepts/agent.md +117 -0
  1733. package/docs/concepts/architecture.md +122 -0
  1734. package/docs/concepts/channel-routing.md +114 -0
  1735. package/docs/concepts/compaction.md +49 -0
  1736. package/docs/concepts/context.md +151 -0
  1737. package/docs/concepts/group-messages.md +78 -0
  1738. package/docs/concepts/groups.md +344 -0
  1739. package/docs/concepts/markdown-formatting.md +132 -0
  1740. package/docs/concepts/memory.md +388 -0
  1741. package/docs/concepts/messages.md +143 -0
  1742. package/docs/concepts/model-failover.md +139 -0
  1743. package/docs/concepts/model-providers.md +318 -0
  1744. package/docs/concepts/models.md +202 -0
  1745. package/docs/concepts/multi-agent.md +354 -0
  1746. package/docs/concepts/oauth.md +135 -0
  1747. package/docs/concepts/presence.md +98 -0
  1748. package/docs/concepts/queue.md +77 -0
  1749. package/docs/concepts/retry.md +60 -0
  1750. package/docs/concepts/session-pruning.md +104 -0
  1751. package/docs/concepts/session-tool.md +171 -0
  1752. package/docs/concepts/session.md +150 -0
  1753. package/docs/concepts/sessions.md +8 -0
  1754. package/docs/concepts/streaming.md +123 -0
  1755. package/docs/concepts/system-prompt.md +110 -0
  1756. package/docs/concepts/timezone.md +89 -0
  1757. package/docs/concepts/typebox.md +281 -0
  1758. package/docs/concepts/typing-indicators.md +59 -0
  1759. package/docs/concepts/usage-tracking.md +30 -0
  1760. package/docs/date-time.md +127 -0
  1761. package/docs/debug/node-issue.md +72 -0
  1762. package/docs/debugging.md +161 -0
  1763. package/docs/diagnostics/flags.md +89 -0
  1764. package/docs/docs.json +1137 -0
  1765. package/docs/environment.md +78 -0
  1766. package/docs/experiments/onboarding-config-protocol.md +34 -0
  1767. package/docs/experiments/plans/cron-add-hardening.md +57 -0
  1768. package/docs/experiments/plans/group-policy-hardening.md +38 -0
  1769. package/docs/experiments/plans/openresponses-gateway.md +122 -0
  1770. package/docs/experiments/proposals/model-config.md +32 -0
  1771. package/docs/experiments/research/memory.md +210 -0
  1772. package/docs/gateway/authentication.md +143 -0
  1773. package/docs/gateway/background-process.md +82 -0
  1774. package/docs/gateway/bonjour.md +162 -0
  1775. package/docs/gateway/bridge-protocol.md +85 -0
  1776. package/docs/gateway/cli-backends.md +221 -0
  1777. package/docs/gateway/configuration-examples.md +572 -0
  1778. package/docs/gateway/configuration.md +3252 -0
  1779. package/docs/gateway/discovery.md +110 -0
  1780. package/docs/gateway/doctor.md +252 -0
  1781. package/docs/gateway/gateway-lock.md +28 -0
  1782. package/docs/gateway/health.md +29 -0
  1783. package/docs/gateway/heartbeat.md +297 -0
  1784. package/docs/gateway/index.md +292 -0
  1785. package/docs/gateway/local-models.md +146 -0
  1786. package/docs/gateway/logging.md +112 -0
  1787. package/docs/gateway/multiple-gateways.md +107 -0
  1788. package/docs/gateway/openai-http-api.md +112 -0
  1789. package/docs/gateway/openresponses-http-api.md +298 -0
  1790. package/docs/gateway/pairing.md +92 -0
  1791. package/docs/gateway/protocol.md +215 -0
  1792. package/docs/gateway/remote-gateway-readme.md +155 -0
  1793. package/docs/gateway/remote.md +122 -0
  1794. package/docs/gateway/sandbox-vs-tool-policy-vs-elevated.md +120 -0
  1795. package/docs/gateway/sandboxing.md +176 -0
  1796. package/docs/gateway/security/formal-verification.md +160 -0
  1797. package/docs/gateway/security/index.md +760 -0
  1798. package/docs/gateway/tailscale.md +124 -0
  1799. package/docs/gateway/tools-invoke-http-api.md +79 -0
  1800. package/docs/gateway/troubleshooting.md +714 -0
  1801. package/docs/help/faq.md +2726 -0
  1802. package/docs/help/index.md +20 -0
  1803. package/docs/help/troubleshooting.md +97 -0
  1804. package/docs/hooks/soul-evil.md +68 -0
  1805. package/docs/hooks.md +896 -0
  1806. package/docs/images/groups-flow.svg +52 -0
  1807. package/docs/images/mobile-ui-screenshot.png +0 -0
  1808. package/docs/index.md +240 -0
  1809. package/docs/install/ansible.md +205 -0
  1810. package/docs/install/bun.md +58 -0
  1811. package/docs/install/development-channels.md +74 -0
  1812. package/docs/install/docker.md +447 -0
  1813. package/docs/install/index.md +181 -0
  1814. package/docs/install/installer.md +122 -0
  1815. package/docs/install/migrating.md +190 -0
  1816. package/docs/install/nix.md +95 -0
  1817. package/docs/install/node.md +78 -0
  1818. package/docs/install/uninstall.md +125 -0
  1819. package/docs/install/updating.md +219 -0
  1820. package/docs/logging.md +343 -0
  1821. package/docs/multi-agent-sandbox-tools.md +374 -0
  1822. package/docs/network.md +51 -0
  1823. package/docs/nodes/audio.md +109 -0
  1824. package/docs/nodes/camera.md +152 -0
  1825. package/docs/nodes/images.md +61 -0
  1826. package/docs/nodes/index.md +305 -0
  1827. package/docs/nodes/location-command.md +95 -0
  1828. package/docs/nodes/media-understanding.md +313 -0
  1829. package/docs/nodes/talk.md +79 -0
  1830. package/docs/nodes/voicewake.md +61 -0
  1831. package/docs/northflank.mdx +53 -0
  1832. package/docs/perplexity.md +79 -0
  1833. package/docs/platforms/android.md +141 -0
  1834. package/docs/platforms/digitalocean.md +243 -0
  1835. package/docs/platforms/exe-dev.md +125 -0
  1836. package/docs/platforms/fly.md +465 -0
  1837. package/docs/platforms/gcp.md +498 -0
  1838. package/docs/platforms/hetzner.md +325 -0
  1839. package/docs/platforms/index.md +50 -0
  1840. package/docs/platforms/ios.md +104 -0
  1841. package/docs/platforms/linux.md +89 -0
  1842. package/docs/platforms/mac/bundled-gateway.md +67 -0
  1843. package/docs/platforms/mac/canvas.md +121 -0
  1844. package/docs/platforms/mac/child-process.md +67 -0
  1845. package/docs/platforms/mac/dev-setup.md +91 -0
  1846. package/docs/platforms/mac/health.md +28 -0
  1847. package/docs/platforms/mac/icon.md +26 -0
  1848. package/docs/platforms/mac/logging.md +51 -0
  1849. package/docs/platforms/mac/menu-bar.md +70 -0
  1850. package/docs/platforms/mac/peekaboo.md +62 -0
  1851. package/docs/platforms/mac/permissions.md +40 -0
  1852. package/docs/platforms/mac/release.md +77 -0
  1853. package/docs/platforms/mac/remote.md +71 -0
  1854. package/docs/platforms/mac/signing.md +43 -0
  1855. package/docs/platforms/mac/skills.md +27 -0
  1856. package/docs/platforms/mac/voice-overlay.md +52 -0
  1857. package/docs/platforms/mac/voicewake.md +56 -0
  1858. package/docs/platforms/mac/webchat.md +39 -0
  1859. package/docs/platforms/mac/xpc.md +51 -0
  1860. package/docs/platforms/macos-vm.md +275 -0
  1861. package/docs/platforms/macos.md +195 -0
  1862. package/docs/platforms/oracle.md +291 -0
  1863. package/docs/platforms/raspberry-pi.md +354 -0
  1864. package/docs/platforms/windows.md +153 -0
  1865. package/docs/plugin.md +638 -0
  1866. package/docs/plugins/agent-tools.md +96 -0
  1867. package/docs/plugins/manifest.md +67 -0
  1868. package/docs/plugins/voice-call.md +239 -0
  1869. package/docs/plugins/zalouser.md +75 -0
  1870. package/docs/prose.md +131 -0
  1871. package/docs/providers/anthropic.md +126 -0
  1872. package/docs/providers/claude-max-api-proxy.md +145 -0
  1873. package/docs/providers/deepgram.md +89 -0
  1874. package/docs/providers/github-copilot.md +70 -0
  1875. package/docs/providers/glm.md +31 -0
  1876. package/docs/providers/index.md +59 -0
  1877. package/docs/providers/minimax.md +183 -0
  1878. package/docs/providers/models.md +48 -0
  1879. package/docs/providers/moonshot.md +151 -0
  1880. package/docs/providers/ollama.md +219 -0
  1881. package/docs/providers/openai.md +60 -0
  1882. package/docs/providers/opencode.md +34 -0
  1883. package/docs/providers/openrouter.md +35 -0
  1884. package/docs/providers/qwen.md +51 -0
  1885. package/docs/providers/synthetic.md +97 -0
  1886. package/docs/providers/venice.md +264 -0
  1887. package/docs/providers/vercel-ai-gateway.md +50 -0
  1888. package/docs/providers/zai.md +34 -0
  1889. package/docs/railway.mdx +96 -0
  1890. package/docs/refactor/clawnet.md +360 -0
  1891. package/docs/refactor/exec-host.md +265 -0
  1892. package/docs/refactor/outbound-session-mirroring.md +75 -0
  1893. package/docs/refactor/plugin-sdk.md +187 -0
  1894. package/docs/refactor/strict-config.md +81 -0
  1895. package/docs/reference/AGENTS.default.md +113 -0
  1896. package/docs/reference/RELEASING.md +107 -0
  1897. package/docs/reference/api-usage-costs.md +116 -0
  1898. package/docs/reference/device-models.md +46 -0
  1899. package/docs/reference/rpc.md +35 -0
  1900. package/docs/reference/session-management-compaction.md +273 -0
  1901. package/docs/reference/templates/AGENTS.dev.md +78 -0
  1902. package/docs/reference/templates/AGENTS.md +196 -0
  1903. package/docs/reference/templates/BOOT.md +9 -0
  1904. package/docs/reference/templates/BOOTSTRAP.md +55 -0
  1905. package/docs/reference/templates/HEARTBEAT.md +9 -0
  1906. package/docs/reference/templates/IDENTITY.dev.md +40 -0
  1907. package/docs/reference/templates/IDENTITY.md +27 -0
  1908. package/docs/reference/templates/SOUL.dev.md +74 -0
  1909. package/docs/reference/templates/SOUL.md +41 -0
  1910. package/docs/reference/templates/TOOLS.dev.md +21 -0
  1911. package/docs/reference/templates/TOOLS.md +41 -0
  1912. package/docs/reference/templates/USER.dev.md +17 -0
  1913. package/docs/reference/templates/USER.md +22 -0
  1914. package/docs/reference/test.md +46 -0
  1915. package/docs/reference/transcript-hygiene.md +95 -0
  1916. package/docs/render.mdx +158 -0
  1917. package/docs/scripts.md +31 -0
  1918. package/docs/security/formal-verification.md +160 -0
  1919. package/docs/start/clawd.md +235 -0
  1920. package/docs/start/getting-started.md +204 -0
  1921. package/docs/start/hubs.md +182 -0
  1922. package/docs/start/lore.md +169 -0
  1923. package/docs/start/onboarding.md +103 -0
  1924. package/docs/start/pairing.md +83 -0
  1925. package/docs/start/setup.md +144 -0
  1926. package/docs/start/showcase.md +416 -0
  1927. package/docs/start/wizard.md +321 -0
  1928. package/docs/testing.md +349 -0
  1929. package/docs/token-use.md +110 -0
  1930. package/docs/tools/agent-send.md +51 -0
  1931. package/docs/tools/apply-patch.md +49 -0
  1932. package/docs/tools/browser-linux-troubleshooting.md +129 -0
  1933. package/docs/tools/browser-login.md +67 -0
  1934. package/docs/tools/browser.md +536 -0
  1935. package/docs/tools/chrome-extension.md +168 -0
  1936. package/docs/tools/clawdhub.md +201 -0
  1937. package/docs/tools/creating-skills.md +41 -0
  1938. package/docs/tools/elevated.md +49 -0
  1939. package/docs/tools/exec-approvals.md +226 -0
  1940. package/docs/tools/exec.md +167 -0
  1941. package/docs/tools/firecrawl.md +58 -0
  1942. package/docs/tools/index.md +450 -0
  1943. package/docs/tools/llm-task.md +114 -0
  1944. package/docs/tools/lobster.md +338 -0
  1945. package/docs/tools/reactions.md +20 -0
  1946. package/docs/tools/skills-config.md +75 -0
  1947. package/docs/tools/skills.md +267 -0
  1948. package/docs/tools/slash-commands.md +190 -0
  1949. package/docs/tools/subagents.md +137 -0
  1950. package/docs/tools/thinking.md +62 -0
  1951. package/docs/tools/web.md +257 -0
  1952. package/docs/tts.md +389 -0
  1953. package/docs/tui.md +134 -0
  1954. package/docs/vps.md +41 -0
  1955. package/docs/web/control-ui.md +163 -0
  1956. package/docs/web/dashboard.md +42 -0
  1957. package/docs/web/index.md +110 -0
  1958. package/docs/web/webchat.md +41 -0
  1959. package/docs/whatsapp-clawd.jpg +0 -0
  1960. package/extensions/bluebubbles/clawdbot.plugin.json +11 -0
  1961. package/extensions/bluebubbles/index.ts +20 -0
  1962. package/extensions/bluebubbles/package.json +33 -0
  1963. package/extensions/bluebubbles/src/accounts.ts +80 -0
  1964. package/extensions/bluebubbles/src/actions.test.ts +651 -0
  1965. package/extensions/bluebubbles/src/actions.ts +403 -0
  1966. package/extensions/bluebubbles/src/attachments.test.ts +346 -0
  1967. package/extensions/bluebubbles/src/attachments.ts +282 -0
  1968. package/extensions/bluebubbles/src/channel.ts +399 -0
  1969. package/extensions/bluebubbles/src/chat.test.ts +462 -0
  1970. package/extensions/bluebubbles/src/chat.ts +354 -0
  1971. package/extensions/bluebubbles/src/config-schema.ts +51 -0
  1972. package/extensions/bluebubbles/src/media-send.ts +168 -0
  1973. package/extensions/bluebubbles/src/monitor.test.ts +2146 -0
  1974. package/extensions/bluebubbles/src/monitor.ts +2276 -0
  1975. package/extensions/bluebubbles/src/onboarding.ts +340 -0
  1976. package/extensions/bluebubbles/src/probe.ts +127 -0
  1977. package/extensions/bluebubbles/src/reactions.test.ts +393 -0
  1978. package/extensions/bluebubbles/src/reactions.ts +183 -0
  1979. package/extensions/bluebubbles/src/runtime.ts +14 -0
  1980. package/extensions/bluebubbles/src/send.test.ts +809 -0
  1981. package/extensions/bluebubbles/src/send.ts +418 -0
  1982. package/extensions/bluebubbles/src/targets.test.ts +184 -0
  1983. package/extensions/bluebubbles/src/targets.ts +323 -0
  1984. package/extensions/bluebubbles/src/types.ts +127 -0
  1985. package/extensions/copilot-proxy/README.md +24 -0
  1986. package/extensions/copilot-proxy/clawdbot.plugin.json +11 -0
  1987. package/extensions/copilot-proxy/index.ts +142 -0
  1988. package/extensions/copilot-proxy/package.json +11 -0
  1989. package/extensions/diagnostics-otel/clawdbot.plugin.json +8 -0
  1990. package/extensions/diagnostics-otel/index.ts +16 -0
  1991. package/extensions/diagnostics-otel/node_modules/.bin/acorn +21 -0
  1992. package/extensions/diagnostics-otel/package.json +24 -0
  1993. package/extensions/diagnostics-otel/src/service.test.ts +220 -0
  1994. package/extensions/diagnostics-otel/src/service.ts +566 -0
  1995. package/extensions/discord/clawdbot.plugin.json +11 -0
  1996. package/extensions/discord/index.ts +18 -0
  1997. package/extensions/discord/package.json +11 -0
  1998. package/extensions/discord/src/channel.ts +422 -0
  1999. package/extensions/discord/src/runtime.ts +14 -0
  2000. package/extensions/google-antigravity-auth/README.md +24 -0
  2001. package/extensions/google-antigravity-auth/clawdbot.plugin.json +11 -0
  2002. package/extensions/google-antigravity-auth/index.ts +437 -0
  2003. package/extensions/google-antigravity-auth/package.json +11 -0
  2004. package/extensions/google-gemini-cli-auth/README.md +35 -0
  2005. package/extensions/google-gemini-cli-auth/clawdbot.plugin.json +11 -0
  2006. package/extensions/google-gemini-cli-auth/index.ts +91 -0
  2007. package/extensions/google-gemini-cli-auth/oauth.test.ts +228 -0
  2008. package/extensions/google-gemini-cli-auth/oauth.ts +580 -0
  2009. package/extensions/google-gemini-cli-auth/package.json +11 -0
  2010. package/extensions/googlechat/clawdbot.plugin.json +11 -0
  2011. package/extensions/googlechat/index.ts +20 -0
  2012. package/extensions/googlechat/node_modules/.bin/clawdbot +21 -0
  2013. package/extensions/googlechat/node_modules/.bin/moltbot +21 -0
  2014. package/extensions/googlechat/package.json +39 -0
  2015. package/extensions/googlechat/src/accounts.ts +133 -0
  2016. package/extensions/googlechat/src/actions.ts +162 -0
  2017. package/extensions/googlechat/src/api.test.ts +62 -0
  2018. package/extensions/googlechat/src/api.ts +259 -0
  2019. package/extensions/googlechat/src/auth.ts +113 -0
  2020. package/extensions/googlechat/src/channel.ts +580 -0
  2021. package/extensions/googlechat/src/monitor.test.ts +27 -0
  2022. package/extensions/googlechat/src/monitor.ts +900 -0
  2023. package/extensions/googlechat/src/onboarding.ts +278 -0
  2024. package/extensions/googlechat/src/runtime.ts +14 -0
  2025. package/extensions/googlechat/src/targets.test.ts +35 -0
  2026. package/extensions/googlechat/src/targets.ts +55 -0
  2027. package/extensions/googlechat/src/types.config.ts +3 -0
  2028. package/extensions/googlechat/src/types.ts +73 -0
  2029. package/extensions/imessage/clawdbot.plugin.json +11 -0
  2030. package/extensions/imessage/index.ts +18 -0
  2031. package/extensions/imessage/package.json +11 -0
  2032. package/extensions/imessage/src/channel.ts +294 -0
  2033. package/extensions/imessage/src/runtime.ts +14 -0
  2034. package/extensions/line/clawdbot.plugin.json +11 -0
  2035. package/extensions/line/index.ts +20 -0
  2036. package/extensions/line/node_modules/.bin/clawdbot +21 -0
  2037. package/extensions/line/node_modules/.bin/moltbot +21 -0
  2038. package/extensions/line/package.json +29 -0
  2039. package/extensions/line/src/card-command.ts +338 -0
  2040. package/extensions/line/src/channel.logout.test.ts +96 -0
  2041. package/extensions/line/src/channel.sendPayload.test.ts +308 -0
  2042. package/extensions/line/src/channel.ts +773 -0
  2043. package/extensions/line/src/runtime.ts +14 -0
  2044. package/extensions/llm-task/README.md +97 -0
  2045. package/extensions/llm-task/clawdbot.plugin.json +21 -0
  2046. package/extensions/llm-task/index.ts +7 -0
  2047. package/extensions/llm-task/package.json +11 -0
  2048. package/extensions/llm-task/src/llm-task-tool.test.ts +117 -0
  2049. package/extensions/llm-task/src/llm-task-tool.ts +218 -0
  2050. package/extensions/lobster/README.md +80 -0
  2051. package/extensions/lobster/SKILL.md +90 -0
  2052. package/extensions/lobster/clawdbot.plugin.json +10 -0
  2053. package/extensions/lobster/index.ts +13 -0
  2054. package/extensions/lobster/package.json +11 -0
  2055. package/extensions/lobster/src/lobster-tool.test.ts +143 -0
  2056. package/extensions/lobster/src/lobster-tool.ts +240 -0
  2057. package/extensions/matrix/CHANGELOG.md +59 -0
  2058. package/extensions/matrix/clawdbot.plugin.json +11 -0
  2059. package/extensions/matrix/index.ts +18 -0
  2060. package/extensions/matrix/package.json +36 -0
  2061. package/extensions/matrix/src/actions.ts +185 -0
  2062. package/extensions/matrix/src/channel.directory.test.ts +56 -0
  2063. package/extensions/matrix/src/channel.ts +417 -0
  2064. package/extensions/matrix/src/config-schema.ts +62 -0
  2065. package/extensions/matrix/src/directory-live.ts +175 -0
  2066. package/extensions/matrix/src/group-mentions.ts +61 -0
  2067. package/extensions/matrix/src/matrix/accounts.test.ts +83 -0
  2068. package/extensions/matrix/src/matrix/accounts.ts +63 -0
  2069. package/extensions/matrix/src/matrix/actions/client.ts +53 -0
  2070. package/extensions/matrix/src/matrix/actions/messages.ts +120 -0
  2071. package/extensions/matrix/src/matrix/actions/pins.ts +70 -0
  2072. package/extensions/matrix/src/matrix/actions/reactions.ts +84 -0
  2073. package/extensions/matrix/src/matrix/actions/room.ts +88 -0
  2074. package/extensions/matrix/src/matrix/actions/summary.ts +77 -0
  2075. package/extensions/matrix/src/matrix/actions/types.ts +84 -0
  2076. package/extensions/matrix/src/matrix/actions.ts +15 -0
  2077. package/extensions/matrix/src/matrix/active-client.ts +11 -0
  2078. package/extensions/matrix/src/matrix/client/config.ts +165 -0
  2079. package/extensions/matrix/src/matrix/client/create-client.ts +127 -0
  2080. package/extensions/matrix/src/matrix/client/logging.ts +35 -0
  2081. package/extensions/matrix/src/matrix/client/runtime.ts +4 -0
  2082. package/extensions/matrix/src/matrix/client/shared.ts +169 -0
  2083. package/extensions/matrix/src/matrix/client/storage.ts +131 -0
  2084. package/extensions/matrix/src/matrix/client/types.ts +34 -0
  2085. package/extensions/matrix/src/matrix/client.test.ts +57 -0
  2086. package/extensions/matrix/src/matrix/client.ts +9 -0
  2087. package/extensions/matrix/src/matrix/credentials.ts +103 -0
  2088. package/extensions/matrix/src/matrix/deps.ts +57 -0
  2089. package/extensions/matrix/src/matrix/format.test.ts +34 -0
  2090. package/extensions/matrix/src/matrix/format.ts +22 -0
  2091. package/extensions/matrix/src/matrix/index.ts +11 -0
  2092. package/extensions/matrix/src/matrix/monitor/allowlist.ts +58 -0
  2093. package/extensions/matrix/src/matrix/monitor/auto-join.ts +68 -0
  2094. package/extensions/matrix/src/matrix/monitor/direct.ts +105 -0
  2095. package/extensions/matrix/src/matrix/monitor/events.ts +103 -0
  2096. package/extensions/matrix/src/matrix/monitor/handler.ts +645 -0
  2097. package/extensions/matrix/src/matrix/monitor/index.ts +279 -0
  2098. package/extensions/matrix/src/matrix/monitor/location.ts +83 -0
  2099. package/extensions/matrix/src/matrix/monitor/media.test.ts +103 -0
  2100. package/extensions/matrix/src/matrix/monitor/media.ts +113 -0
  2101. package/extensions/matrix/src/matrix/monitor/mentions.ts +31 -0
  2102. package/extensions/matrix/src/matrix/monitor/replies.ts +96 -0
  2103. package/extensions/matrix/src/matrix/monitor/room-info.ts +58 -0
  2104. package/extensions/matrix/src/matrix/monitor/rooms.ts +43 -0
  2105. package/extensions/matrix/src/matrix/monitor/threads.ts +64 -0
  2106. package/extensions/matrix/src/matrix/monitor/types.ts +39 -0
  2107. package/extensions/matrix/src/matrix/poll-types.test.ts +22 -0
  2108. package/extensions/matrix/src/matrix/poll-types.ts +157 -0
  2109. package/extensions/matrix/src/matrix/probe.ts +70 -0
  2110. package/extensions/matrix/src/matrix/send/client.ts +63 -0
  2111. package/extensions/matrix/src/matrix/send/formatting.ts +92 -0
  2112. package/extensions/matrix/src/matrix/send/media.ts +220 -0
  2113. package/extensions/matrix/src/matrix/send/targets.test.ts +102 -0
  2114. package/extensions/matrix/src/matrix/send/targets.ts +144 -0
  2115. package/extensions/matrix/src/matrix/send/types.ts +109 -0
  2116. package/extensions/matrix/src/matrix/send.test.ts +172 -0
  2117. package/extensions/matrix/src/matrix/send.ts +255 -0
  2118. package/extensions/matrix/src/onboarding.ts +432 -0
  2119. package/extensions/matrix/src/outbound.ts +53 -0
  2120. package/extensions/matrix/src/resolve-targets.ts +89 -0
  2121. package/extensions/matrix/src/runtime.ts +14 -0
  2122. package/extensions/matrix/src/tool-actions.ts +160 -0
  2123. package/extensions/matrix/src/types.ts +95 -0
  2124. package/extensions/mattermost/clawdbot.plugin.json +11 -0
  2125. package/extensions/mattermost/index.ts +18 -0
  2126. package/extensions/mattermost/package.json +25 -0
  2127. package/extensions/mattermost/src/channel.test.ts +43 -0
  2128. package/extensions/mattermost/src/channel.ts +339 -0
  2129. package/extensions/mattermost/src/config-schema.ts +56 -0
  2130. package/extensions/mattermost/src/group-mentions.ts +14 -0
  2131. package/extensions/mattermost/src/mattermost/accounts.ts +115 -0
  2132. package/extensions/mattermost/src/mattermost/client.ts +208 -0
  2133. package/extensions/mattermost/src/mattermost/index.ts +9 -0
  2134. package/extensions/mattermost/src/mattermost/monitor-helpers.ts +150 -0
  2135. package/extensions/mattermost/src/mattermost/monitor.ts +921 -0
  2136. package/extensions/mattermost/src/mattermost/probe.ts +70 -0
  2137. package/extensions/mattermost/src/mattermost/send.ts +217 -0
  2138. package/extensions/mattermost/src/normalize.ts +38 -0
  2139. package/extensions/mattermost/src/onboarding-helpers.ts +42 -0
  2140. package/extensions/mattermost/src/onboarding.ts +187 -0
  2141. package/extensions/mattermost/src/runtime.ts +14 -0
  2142. package/extensions/mattermost/src/types.ts +50 -0
  2143. package/extensions/memory-core/clawdbot.plugin.json +9 -0
  2144. package/extensions/memory-core/index.ts +36 -0
  2145. package/extensions/memory-core/node_modules/.bin/clawdbot +21 -0
  2146. package/extensions/memory-core/node_modules/.bin/moltbot +21 -0
  2147. package/extensions/memory-core/package.json +17 -0
  2148. package/extensions/memory-lancedb/clawdbot.plugin.json +67 -0
  2149. package/extensions/memory-lancedb/config.ts +114 -0
  2150. package/extensions/memory-lancedb/index.test.ts +284 -0
  2151. package/extensions/memory-lancedb/index.ts +590 -0
  2152. package/extensions/memory-lancedb/node_modules/.bin/arrow2csv +21 -0
  2153. package/extensions/memory-lancedb/node_modules/.bin/openai +21 -0
  2154. package/extensions/memory-lancedb/package.json +16 -0
  2155. package/extensions/msteams/CHANGELOG.md +56 -0
  2156. package/extensions/msteams/clawdbot.plugin.json +11 -0
  2157. package/extensions/msteams/index.ts +18 -0
  2158. package/extensions/msteams/node_modules/.bin/clawdbot +21 -0
  2159. package/extensions/msteams/node_modules/.bin/moltbot +21 -0
  2160. package/extensions/msteams/package.json +36 -0
  2161. package/extensions/msteams/src/attachments/download.ts +206 -0
  2162. package/extensions/msteams/src/attachments/graph.ts +319 -0
  2163. package/extensions/msteams/src/attachments/html.ts +76 -0
  2164. package/extensions/msteams/src/attachments/payload.ts +22 -0
  2165. package/extensions/msteams/src/attachments/shared.ts +235 -0
  2166. package/extensions/msteams/src/attachments/types.ts +37 -0
  2167. package/extensions/msteams/src/attachments.test.ts +424 -0
  2168. package/extensions/msteams/src/attachments.ts +18 -0
  2169. package/extensions/msteams/src/channel.directory.test.ts +46 -0
  2170. package/extensions/msteams/src/channel.ts +436 -0
  2171. package/extensions/msteams/src/conversation-store-fs.test.ts +88 -0
  2172. package/extensions/msteams/src/conversation-store-fs.ts +155 -0
  2173. package/extensions/msteams/src/conversation-store-memory.ts +45 -0
  2174. package/extensions/msteams/src/conversation-store.ts +41 -0
  2175. package/extensions/msteams/src/directory-live.ts +179 -0
  2176. package/extensions/msteams/src/errors.test.ts +46 -0
  2177. package/extensions/msteams/src/errors.ts +158 -0
  2178. package/extensions/msteams/src/file-consent-helpers.test.ts +234 -0
  2179. package/extensions/msteams/src/file-consent-helpers.ts +73 -0
  2180. package/extensions/msteams/src/file-consent.ts +122 -0
  2181. package/extensions/msteams/src/graph-chat.ts +52 -0
  2182. package/extensions/msteams/src/graph-upload.ts +445 -0
  2183. package/extensions/msteams/src/inbound.test.ts +67 -0
  2184. package/extensions/msteams/src/inbound.ts +38 -0
  2185. package/extensions/msteams/src/index.ts +4 -0
  2186. package/extensions/msteams/src/media-helpers.test.ts +186 -0
  2187. package/extensions/msteams/src/media-helpers.ts +77 -0
  2188. package/extensions/msteams/src/messenger.test.ts +245 -0
  2189. package/extensions/msteams/src/messenger.ts +460 -0
  2190. package/extensions/msteams/src/monitor-handler/inbound-media.ts +123 -0
  2191. package/extensions/msteams/src/monitor-handler/message-handler.ts +629 -0
  2192. package/extensions/msteams/src/monitor-handler.ts +166 -0
  2193. package/extensions/msteams/src/monitor-types.ts +5 -0
  2194. package/extensions/msteams/src/monitor.ts +290 -0
  2195. package/extensions/msteams/src/onboarding.ts +432 -0
  2196. package/extensions/msteams/src/outbound.ts +47 -0
  2197. package/extensions/msteams/src/pending-uploads.ts +87 -0
  2198. package/extensions/msteams/src/policy.test.ts +210 -0
  2199. package/extensions/msteams/src/policy.ts +247 -0
  2200. package/extensions/msteams/src/polls-store-memory.ts +30 -0
  2201. package/extensions/msteams/src/polls-store.test.ts +40 -0
  2202. package/extensions/msteams/src/polls.test.ts +72 -0
  2203. package/extensions/msteams/src/polls.ts +299 -0
  2204. package/extensions/msteams/src/probe.test.ts +57 -0
  2205. package/extensions/msteams/src/probe.ts +99 -0
  2206. package/extensions/msteams/src/reply-dispatcher.ts +128 -0
  2207. package/extensions/msteams/src/resolve-allowlist.ts +277 -0
  2208. package/extensions/msteams/src/runtime.ts +14 -0
  2209. package/extensions/msteams/src/sdk-types.ts +19 -0
  2210. package/extensions/msteams/src/sdk.ts +33 -0
  2211. package/extensions/msteams/src/send-context.ts +156 -0
  2212. package/extensions/msteams/src/send.ts +489 -0
  2213. package/extensions/msteams/src/sent-message-cache.test.ts +16 -0
  2214. package/extensions/msteams/src/sent-message-cache.ts +41 -0
  2215. package/extensions/msteams/src/storage.ts +22 -0
  2216. package/extensions/msteams/src/store-fs.ts +80 -0
  2217. package/extensions/msteams/src/token.ts +19 -0
  2218. package/extensions/nextcloud-talk/clawdbot.plugin.json +11 -0
  2219. package/extensions/nextcloud-talk/index.ts +18 -0
  2220. package/extensions/nextcloud-talk/package.json +30 -0
  2221. package/extensions/nextcloud-talk/src/accounts.ts +154 -0
  2222. package/extensions/nextcloud-talk/src/channel.ts +404 -0
  2223. package/extensions/nextcloud-talk/src/config-schema.ts +78 -0
  2224. package/extensions/nextcloud-talk/src/format.ts +79 -0
  2225. package/extensions/nextcloud-talk/src/inbound.ts +336 -0
  2226. package/extensions/nextcloud-talk/src/monitor.ts +246 -0
  2227. package/extensions/nextcloud-talk/src/normalize.ts +31 -0
  2228. package/extensions/nextcloud-talk/src/onboarding.ts +341 -0
  2229. package/extensions/nextcloud-talk/src/policy.ts +175 -0
  2230. package/extensions/nextcloud-talk/src/room-info.ts +111 -0
  2231. package/extensions/nextcloud-talk/src/runtime.ts +14 -0
  2232. package/extensions/nextcloud-talk/src/send.ts +206 -0
  2233. package/extensions/nextcloud-talk/src/signature.ts +67 -0
  2234. package/extensions/nextcloud-talk/src/types.ts +179 -0
  2235. package/extensions/nostr/CHANGELOG.md +51 -0
  2236. package/extensions/nostr/README.md +136 -0
  2237. package/extensions/nostr/clawdbot.plugin.json +11 -0
  2238. package/extensions/nostr/index.ts +69 -0
  2239. package/extensions/nostr/node_modules/.bin/clawdbot +21 -0
  2240. package/extensions/nostr/node_modules/.bin/moltbot +21 -0
  2241. package/extensions/nostr/node_modules/.bin/tsc +21 -0
  2242. package/extensions/nostr/node_modules/.bin/tsserver +21 -0
  2243. package/extensions/nostr/package.json +31 -0
  2244. package/extensions/nostr/src/channel.test.ts +141 -0
  2245. package/extensions/nostr/src/channel.ts +342 -0
  2246. package/extensions/nostr/src/config-schema.ts +90 -0
  2247. package/extensions/nostr/src/metrics.ts +464 -0
  2248. package/extensions/nostr/src/nostr-bus.fuzz.test.ts +544 -0
  2249. package/extensions/nostr/src/nostr-bus.integration.test.ts +452 -0
  2250. package/extensions/nostr/src/nostr-bus.test.ts +199 -0
  2251. package/extensions/nostr/src/nostr-bus.ts +741 -0
  2252. package/extensions/nostr/src/nostr-profile-http.test.ts +378 -0
  2253. package/extensions/nostr/src/nostr-profile-http.ts +500 -0
  2254. package/extensions/nostr/src/nostr-profile-import.test.ts +120 -0
  2255. package/extensions/nostr/src/nostr-profile-import.ts +259 -0
  2256. package/extensions/nostr/src/nostr-profile.fuzz.test.ts +479 -0
  2257. package/extensions/nostr/src/nostr-profile.test.ts +410 -0
  2258. package/extensions/nostr/src/nostr-profile.ts +242 -0
  2259. package/extensions/nostr/src/nostr-state-store.test.ts +128 -0
  2260. package/extensions/nostr/src/nostr-state-store.ts +226 -0
  2261. package/extensions/nostr/src/runtime.ts +14 -0
  2262. package/extensions/nostr/src/seen-tracker.ts +271 -0
  2263. package/extensions/nostr/src/types.test.ts +161 -0
  2264. package/extensions/nostr/src/types.ts +99 -0
  2265. package/extensions/nostr/test/setup.ts +5 -0
  2266. package/extensions/open-prose/README.md +25 -0
  2267. package/extensions/open-prose/clawdbot.plugin.json +11 -0
  2268. package/extensions/open-prose/index.ts +5 -0
  2269. package/extensions/open-prose/package.json +11 -0
  2270. package/extensions/open-prose/skills/prose/LICENSE +21 -0
  2271. package/extensions/open-prose/skills/prose/SKILL.md +318 -0
  2272. package/extensions/open-prose/skills/prose/alt-borges.md +141 -0
  2273. package/extensions/open-prose/skills/prose/alts/arabian-nights.md +358 -0
  2274. package/extensions/open-prose/skills/prose/alts/borges.md +360 -0
  2275. package/extensions/open-prose/skills/prose/alts/folk.md +322 -0
  2276. package/extensions/open-prose/skills/prose/alts/homer.md +346 -0
  2277. package/extensions/open-prose/skills/prose/alts/kafka.md +373 -0
  2278. package/extensions/open-prose/skills/prose/compiler.md +2967 -0
  2279. package/extensions/open-prose/skills/prose/examples/01-hello-world.prose +4 -0
  2280. package/extensions/open-prose/skills/prose/examples/02-research-and-summarize.prose +6 -0
  2281. package/extensions/open-prose/skills/prose/examples/03-code-review.prose +17 -0
  2282. package/extensions/open-prose/skills/prose/examples/04-write-and-refine.prose +14 -0
  2283. package/extensions/open-prose/skills/prose/examples/05-debug-issue.prose +20 -0
  2284. package/extensions/open-prose/skills/prose/examples/06-explain-codebase.prose +17 -0
  2285. package/extensions/open-prose/skills/prose/examples/07-refactor.prose +20 -0
  2286. package/extensions/open-prose/skills/prose/examples/08-blog-post.prose +20 -0
  2287. package/extensions/open-prose/skills/prose/examples/09-research-with-agents.prose +25 -0
  2288. package/extensions/open-prose/skills/prose/examples/10-code-review-agents.prose +32 -0
  2289. package/extensions/open-prose/skills/prose/examples/11-skills-and-imports.prose +27 -0
  2290. package/extensions/open-prose/skills/prose/examples/12-secure-agent-permissions.prose +43 -0
  2291. package/extensions/open-prose/skills/prose/examples/13-variables-and-context.prose +51 -0
  2292. package/extensions/open-prose/skills/prose/examples/14-composition-blocks.prose +48 -0
  2293. package/extensions/open-prose/skills/prose/examples/15-inline-sequences.prose +23 -0
  2294. package/extensions/open-prose/skills/prose/examples/16-parallel-reviews.prose +19 -0
  2295. package/extensions/open-prose/skills/prose/examples/17-parallel-research.prose +19 -0
  2296. package/extensions/open-prose/skills/prose/examples/18-mixed-parallel-sequential.prose +36 -0
  2297. package/extensions/open-prose/skills/prose/examples/19-advanced-parallel.prose +71 -0
  2298. package/extensions/open-prose/skills/prose/examples/20-fixed-loops.prose +20 -0
  2299. package/extensions/open-prose/skills/prose/examples/21-pipeline-operations.prose +35 -0
  2300. package/extensions/open-prose/skills/prose/examples/22-error-handling.prose +51 -0
  2301. package/extensions/open-prose/skills/prose/examples/23-retry-with-backoff.prose +63 -0
  2302. package/extensions/open-prose/skills/prose/examples/24-choice-blocks.prose +86 -0
  2303. package/extensions/open-prose/skills/prose/examples/25-conditionals.prose +114 -0
  2304. package/extensions/open-prose/skills/prose/examples/26-parameterized-blocks.prose +100 -0
  2305. package/extensions/open-prose/skills/prose/examples/27-string-interpolation.prose +105 -0
  2306. package/extensions/open-prose/skills/prose/examples/28-automated-pr-review.prose +37 -0
  2307. package/extensions/open-prose/skills/prose/examples/28-gas-town.prose +1572 -0
  2308. package/extensions/open-prose/skills/prose/examples/29-captains-chair.prose +218 -0
  2309. package/extensions/open-prose/skills/prose/examples/30-captains-chair-simple.prose +42 -0
  2310. package/extensions/open-prose/skills/prose/examples/31-captains-chair-with-memory.prose +145 -0
  2311. package/extensions/open-prose/skills/prose/examples/33-pr-review-autofix.prose +168 -0
  2312. package/extensions/open-prose/skills/prose/examples/34-content-pipeline.prose +204 -0
  2313. package/extensions/open-prose/skills/prose/examples/35-feature-factory.prose +296 -0
  2314. package/extensions/open-prose/skills/prose/examples/36-bug-hunter.prose +237 -0
  2315. package/extensions/open-prose/skills/prose/examples/37-the-forge.prose +1474 -0
  2316. package/extensions/open-prose/skills/prose/examples/38-skill-scan.prose +455 -0
  2317. package/extensions/open-prose/skills/prose/examples/39-architect-by-simulation.prose +277 -0
  2318. package/extensions/open-prose/skills/prose/examples/40-rlm-self-refine.prose +32 -0
  2319. package/extensions/open-prose/skills/prose/examples/41-rlm-divide-conquer.prose +38 -0
  2320. package/extensions/open-prose/skills/prose/examples/42-rlm-filter-recurse.prose +46 -0
  2321. package/extensions/open-prose/skills/prose/examples/43-rlm-pairwise.prose +50 -0
  2322. package/extensions/open-prose/skills/prose/examples/44-run-endpoint-ux-test.prose +261 -0
  2323. package/extensions/open-prose/skills/prose/examples/45-plugin-release.prose +159 -0
  2324. package/extensions/open-prose/skills/prose/examples/45-run-endpoint-ux-test-with-remediation.prose +637 -0
  2325. package/extensions/open-prose/skills/prose/examples/46-run-endpoint-ux-test-fast.prose +148 -0
  2326. package/extensions/open-prose/skills/prose/examples/46-workflow-crystallizer.prose +225 -0
  2327. package/extensions/open-prose/skills/prose/examples/47-language-self-improvement.prose +356 -0
  2328. package/extensions/open-prose/skills/prose/examples/48-habit-miner.prose +445 -0
  2329. package/extensions/open-prose/skills/prose/examples/49-prose-run-retrospective.prose +210 -0
  2330. package/extensions/open-prose/skills/prose/examples/README.md +391 -0
  2331. package/extensions/open-prose/skills/prose/examples/roadmap/README.md +22 -0
  2332. package/extensions/open-prose/skills/prose/examples/roadmap/iterative-refinement.prose +20 -0
  2333. package/extensions/open-prose/skills/prose/examples/roadmap/parallel-review.prose +18 -0
  2334. package/extensions/open-prose/skills/prose/examples/roadmap/simple-pipeline.prose +17 -0
  2335. package/extensions/open-prose/skills/prose/examples/roadmap/syntax/open-prose-syntax.prose +223 -0
  2336. package/extensions/open-prose/skills/prose/guidance/antipatterns.md +951 -0
  2337. package/extensions/open-prose/skills/prose/guidance/patterns.md +700 -0
  2338. package/extensions/open-prose/skills/prose/guidance/system-prompt.md +180 -0
  2339. package/extensions/open-prose/skills/prose/help.md +143 -0
  2340. package/extensions/open-prose/skills/prose/lib/README.md +105 -0
  2341. package/extensions/open-prose/skills/prose/lib/calibrator.prose +215 -0
  2342. package/extensions/open-prose/skills/prose/lib/cost-analyzer.prose +174 -0
  2343. package/extensions/open-prose/skills/prose/lib/error-forensics.prose +250 -0
  2344. package/extensions/open-prose/skills/prose/lib/inspector.prose +196 -0
  2345. package/extensions/open-prose/skills/prose/lib/profiler.prose +460 -0
  2346. package/extensions/open-prose/skills/prose/lib/program-improver.prose +275 -0
  2347. package/extensions/open-prose/skills/prose/lib/project-memory.prose +118 -0
  2348. package/extensions/open-prose/skills/prose/lib/user-memory.prose +93 -0
  2349. package/extensions/open-prose/skills/prose/lib/vm-improver.prose +243 -0
  2350. package/extensions/open-prose/skills/prose/primitives/session.md +587 -0
  2351. package/extensions/open-prose/skills/prose/prose.md +1235 -0
  2352. package/extensions/open-prose/skills/prose/state/filesystem.md +478 -0
  2353. package/extensions/open-prose/skills/prose/state/in-context.md +380 -0
  2354. package/extensions/open-prose/skills/prose/state/postgres.md +875 -0
  2355. package/extensions/open-prose/skills/prose/state/sqlite.md +572 -0
  2356. package/extensions/qwen-portal-auth/README.md +24 -0
  2357. package/extensions/qwen-portal-auth/clawdbot.plugin.json +11 -0
  2358. package/extensions/qwen-portal-auth/index.ts +127 -0
  2359. package/extensions/qwen-portal-auth/oauth.ts +190 -0
  2360. package/extensions/signal/clawdbot.plugin.json +11 -0
  2361. package/extensions/signal/index.ts +18 -0
  2362. package/extensions/signal/package.json +11 -0
  2363. package/extensions/signal/src/channel.ts +312 -0
  2364. package/extensions/signal/src/runtime.ts +14 -0
  2365. package/extensions/slack/clawdbot.plugin.json +11 -0
  2366. package/extensions/slack/index.ts +18 -0
  2367. package/extensions/slack/package.json +11 -0
  2368. package/extensions/slack/src/channel.ts +577 -0
  2369. package/extensions/slack/src/runtime.ts +14 -0
  2370. package/extensions/telegram/clawdbot.plugin.json +11 -0
  2371. package/extensions/telegram/index.ts +18 -0
  2372. package/extensions/telegram/package.json +11 -0
  2373. package/extensions/telegram/src/channel.ts +478 -0
  2374. package/extensions/telegram/src/runtime.ts +14 -0
  2375. package/extensions/tlon/README.md +5 -0
  2376. package/extensions/tlon/clawdbot.plugin.json +11 -0
  2377. package/extensions/tlon/index.ts +18 -0
  2378. package/extensions/tlon/package.json +30 -0
  2379. package/extensions/tlon/src/channel.ts +379 -0
  2380. package/extensions/tlon/src/config-schema.test.ts +32 -0
  2381. package/extensions/tlon/src/config-schema.ts +43 -0
  2382. package/extensions/tlon/src/monitor/discovery.ts +71 -0
  2383. package/extensions/tlon/src/monitor/history.ts +87 -0
  2384. package/extensions/tlon/src/monitor/index.ts +501 -0
  2385. package/extensions/tlon/src/monitor/processed-messages.test.ts +24 -0
  2386. package/extensions/tlon/src/monitor/processed-messages.ts +38 -0
  2387. package/extensions/tlon/src/monitor/utils.ts +83 -0
  2388. package/extensions/tlon/src/onboarding.ts +213 -0
  2389. package/extensions/tlon/src/runtime.ts +14 -0
  2390. package/extensions/tlon/src/targets.ts +79 -0
  2391. package/extensions/tlon/src/types.ts +85 -0
  2392. package/extensions/tlon/src/urbit/auth.ts +18 -0
  2393. package/extensions/tlon/src/urbit/http-api.ts +36 -0
  2394. package/extensions/tlon/src/urbit/send.test.ts +38 -0
  2395. package/extensions/tlon/src/urbit/send.ts +127 -0
  2396. package/extensions/tlon/src/urbit/sse-client.test.ts +41 -0
  2397. package/extensions/tlon/src/urbit/sse-client.ts +367 -0
  2398. package/extensions/twitch/CHANGELOG.md +26 -0
  2399. package/extensions/twitch/README.md +89 -0
  2400. package/extensions/twitch/clawdbot.plugin.json +9 -0
  2401. package/extensions/twitch/index.ts +20 -0
  2402. package/extensions/twitch/node_modules/.bin/clawdbot +21 -0
  2403. package/extensions/twitch/node_modules/.bin/moltbot +21 -0
  2404. package/extensions/twitch/package.json +20 -0
  2405. package/extensions/twitch/src/access-control.test.ts +489 -0
  2406. package/extensions/twitch/src/access-control.ts +154 -0
  2407. package/extensions/twitch/src/actions.ts +173 -0
  2408. package/extensions/twitch/src/client-manager-registry.ts +115 -0
  2409. package/extensions/twitch/src/config-schema.ts +82 -0
  2410. package/extensions/twitch/src/config.test.ts +88 -0
  2411. package/extensions/twitch/src/config.ts +116 -0
  2412. package/extensions/twitch/src/monitor.ts +257 -0
  2413. package/extensions/twitch/src/onboarding.test.ts +311 -0
  2414. package/extensions/twitch/src/onboarding.ts +411 -0
  2415. package/extensions/twitch/src/outbound.test.ts +373 -0
  2416. package/extensions/twitch/src/outbound.ts +186 -0
  2417. package/extensions/twitch/src/plugin.test.ts +39 -0
  2418. package/extensions/twitch/src/plugin.ts +274 -0
  2419. package/extensions/twitch/src/probe.test.ts +198 -0
  2420. package/extensions/twitch/src/probe.ts +118 -0
  2421. package/extensions/twitch/src/resolver.ts +137 -0
  2422. package/extensions/twitch/src/runtime.ts +14 -0
  2423. package/extensions/twitch/src/send.test.ts +289 -0
  2424. package/extensions/twitch/src/send.ts +136 -0
  2425. package/extensions/twitch/src/status.test.ts +270 -0
  2426. package/extensions/twitch/src/status.ts +176 -0
  2427. package/extensions/twitch/src/token.test.ts +171 -0
  2428. package/extensions/twitch/src/token.ts +87 -0
  2429. package/extensions/twitch/src/twitch-client.test.ts +574 -0
  2430. package/extensions/twitch/src/twitch-client.ts +277 -0
  2431. package/extensions/twitch/src/types.ts +141 -0
  2432. package/extensions/twitch/src/utils/markdown.ts +92 -0
  2433. package/extensions/twitch/src/utils/twitch.ts +78 -0
  2434. package/extensions/twitch/test/setup.ts +7 -0
  2435. package/extensions/voice-call/CHANGELOG.md +78 -0
  2436. package/extensions/voice-call/README.md +135 -0
  2437. package/extensions/voice-call/clawdbot.plugin.json +601 -0
  2438. package/extensions/voice-call/index.ts +497 -0
  2439. package/extensions/voice-call/package.json +16 -0
  2440. package/extensions/voice-call/src/cli.ts +300 -0
  2441. package/extensions/voice-call/src/config.test.ts +204 -0
  2442. package/extensions/voice-call/src/config.ts +502 -0
  2443. package/extensions/voice-call/src/core-bridge.ts +198 -0
  2444. package/extensions/voice-call/src/manager/context.ts +21 -0
  2445. package/extensions/voice-call/src/manager/events.ts +177 -0
  2446. package/extensions/voice-call/src/manager/lookup.ts +33 -0
  2447. package/extensions/voice-call/src/manager/outbound.ts +248 -0
  2448. package/extensions/voice-call/src/manager/state.ts +50 -0
  2449. package/extensions/voice-call/src/manager/store.ts +88 -0
  2450. package/extensions/voice-call/src/manager/timers.ts +86 -0
  2451. package/extensions/voice-call/src/manager/twiml.ts +9 -0
  2452. package/extensions/voice-call/src/manager.test.ts +108 -0
  2453. package/extensions/voice-call/src/manager.ts +876 -0
  2454. package/extensions/voice-call/src/media-stream.test.ts +97 -0
  2455. package/extensions/voice-call/src/media-stream.ts +393 -0
  2456. package/extensions/voice-call/src/providers/base.ts +67 -0
  2457. package/extensions/voice-call/src/providers/index.ts +10 -0
  2458. package/extensions/voice-call/src/providers/mock.ts +168 -0
  2459. package/extensions/voice-call/src/providers/plivo.test.ts +28 -0
  2460. package/extensions/voice-call/src/providers/plivo.ts +504 -0
  2461. package/extensions/voice-call/src/providers/stt-openai-realtime.ts +311 -0
  2462. package/extensions/voice-call/src/providers/telnyx.ts +364 -0
  2463. package/extensions/voice-call/src/providers/tts-openai.ts +264 -0
  2464. package/extensions/voice-call/src/providers/twilio/api.ts +45 -0
  2465. package/extensions/voice-call/src/providers/twilio/webhook.ts +30 -0
  2466. package/extensions/voice-call/src/providers/twilio.test.ts +64 -0
  2467. package/extensions/voice-call/src/providers/twilio.ts +595 -0
  2468. package/extensions/voice-call/src/response-generator.ts +171 -0
  2469. package/extensions/voice-call/src/runtime.ts +217 -0
  2470. package/extensions/voice-call/src/telephony-audio.ts +88 -0
  2471. package/extensions/voice-call/src/telephony-tts.ts +95 -0
  2472. package/extensions/voice-call/src/tunnel.ts +331 -0
  2473. package/extensions/voice-call/src/types.ts +273 -0
  2474. package/extensions/voice-call/src/utils.ts +12 -0
  2475. package/extensions/voice-call/src/voice-mapping.ts +65 -0
  2476. package/extensions/voice-call/src/webhook-security.test.ts +260 -0
  2477. package/extensions/voice-call/src/webhook-security.ts +469 -0
  2478. package/extensions/voice-call/src/webhook.ts +491 -0
  2479. package/extensions/whatsapp/clawdbot.plugin.json +11 -0
  2480. package/extensions/whatsapp/index.ts +18 -0
  2481. package/extensions/whatsapp/package.json +11 -0
  2482. package/extensions/whatsapp/src/channel.ts +500 -0
  2483. package/extensions/whatsapp/src/runtime.ts +14 -0
  2484. package/extensions/zalo/CHANGELOG.md +60 -0
  2485. package/extensions/zalo/README.md +50 -0
  2486. package/extensions/zalo/clawdbot.plugin.json +11 -0
  2487. package/extensions/zalo/index.ts +20 -0
  2488. package/extensions/zalo/node_modules/.bin/clawdbot +21 -0
  2489. package/extensions/zalo/node_modules/.bin/moltbot +21 -0
  2490. package/extensions/zalo/package.json +33 -0
  2491. package/extensions/zalo/src/accounts.ts +71 -0
  2492. package/extensions/zalo/src/actions.ts +62 -0
  2493. package/extensions/zalo/src/api.ts +206 -0
  2494. package/extensions/zalo/src/channel.directory.test.ts +35 -0
  2495. package/extensions/zalo/src/channel.ts +394 -0
  2496. package/extensions/zalo/src/config-schema.ts +24 -0
  2497. package/extensions/zalo/src/monitor.ts +760 -0
  2498. package/extensions/zalo/src/monitor.webhook.test.ts +70 -0
  2499. package/extensions/zalo/src/onboarding.ts +405 -0
  2500. package/extensions/zalo/src/probe.ts +46 -0
  2501. package/extensions/zalo/src/proxy.ts +18 -0
  2502. package/extensions/zalo/src/runtime.ts +14 -0
  2503. package/extensions/zalo/src/send.ts +117 -0
  2504. package/extensions/zalo/src/status-issues.ts +50 -0
  2505. package/extensions/zalo/src/token.ts +55 -0
  2506. package/extensions/zalo/src/types.ts +42 -0
  2507. package/extensions/zalouser/CHANGELOG.md +38 -0
  2508. package/extensions/zalouser/README.md +221 -0
  2509. package/extensions/zalouser/clawdbot.plugin.json +11 -0
  2510. package/extensions/zalouser/index.ts +32 -0
  2511. package/extensions/zalouser/node_modules/.bin/clawdbot +21 -0
  2512. package/extensions/zalouser/node_modules/.bin/moltbot +21 -0
  2513. package/extensions/zalouser/package.json +33 -0
  2514. package/extensions/zalouser/src/accounts.ts +117 -0
  2515. package/extensions/zalouser/src/channel.test.ts +17 -0
  2516. package/extensions/zalouser/src/channel.ts +641 -0
  2517. package/extensions/zalouser/src/config-schema.ts +27 -0
  2518. package/extensions/zalouser/src/monitor.ts +574 -0
  2519. package/extensions/zalouser/src/onboarding.ts +488 -0
  2520. package/extensions/zalouser/src/probe.ts +28 -0
  2521. package/extensions/zalouser/src/runtime.ts +14 -0
  2522. package/extensions/zalouser/src/send.ts +150 -0
  2523. package/extensions/zalouser/src/status-issues.test.ts +58 -0
  2524. package/extensions/zalouser/src/status-issues.ts +81 -0
  2525. package/extensions/zalouser/src/tool.ts +156 -0
  2526. package/extensions/zalouser/src/types.ts +102 -0
  2527. package/extensions/zalouser/src/zca.ts +208 -0
  2528. package/git-hooks/pre-commit +4 -0
  2529. package/moltbot.mjs +14 -0
  2530. package/package.json +288 -0
  2531. package/scripts/format-staged.js +157 -0
  2532. package/scripts/postinstall.js +300 -0
  2533. package/scripts/setup-git-hooks.js +96 -0
  2534. package/skills/1password/SKILL.md +53 -0
  2535. package/skills/1password/references/cli-examples.md +29 -0
  2536. package/skills/1password/references/get-started.md +17 -0
  2537. package/skills/apple-notes/SKILL.md +50 -0
  2538. package/skills/apple-reminders/SKILL.md +67 -0
  2539. package/skills/bear-notes/SKILL.md +79 -0
  2540. package/skills/bird/SKILL.md +197 -0
  2541. package/skills/blogwatcher/SKILL.md +46 -0
  2542. package/skills/blucli/SKILL.md +27 -0
  2543. package/skills/bluebubbles/SKILL.md +39 -0
  2544. package/skills/camsnap/SKILL.md +25 -0
  2545. package/skills/canvas/SKILL.md +189 -0
  2546. package/skills/clawdhub/SKILL.md +53 -0
  2547. package/skills/coding-agent/SKILL.md +278 -0
  2548. package/skills/discord/SKILL.md +475 -0
  2549. package/skills/eightctl/SKILL.md +29 -0
  2550. package/skills/food-order/SKILL.md +41 -0
  2551. package/skills/gemini/SKILL.md +23 -0
  2552. package/skills/gifgrep/SKILL.md +47 -0
  2553. package/skills/github/SKILL.md +48 -0
  2554. package/skills/gog/SKILL.md +92 -0
  2555. package/skills/goplaces/SKILL.md +30 -0
  2556. package/skills/himalaya/SKILL.md +217 -0
  2557. package/skills/himalaya/references/configuration.md +174 -0
  2558. package/skills/himalaya/references/message-composition.md +182 -0
  2559. package/skills/imsg/SKILL.md +25 -0
  2560. package/skills/local-places/SERVER_README.md +101 -0
  2561. package/skills/local-places/SKILL.md +91 -0
  2562. package/skills/local-places/pyproject.toml +27 -0
  2563. package/skills/local-places/src/local_places/__init__.py +2 -0
  2564. package/skills/local-places/src/local_places/google_places.py +314 -0
  2565. package/skills/local-places/src/local_places/main.py +65 -0
  2566. package/skills/local-places/src/local_places/schemas.py +107 -0
  2567. package/skills/mcporter/SKILL.md +38 -0
  2568. package/skills/model-usage/SKILL.md +45 -0
  2569. package/skills/model-usage/references/codexbar-cli.md +28 -0
  2570. package/skills/model-usage/scripts/model_usage.py +310 -0
  2571. package/skills/nano-banana-pro/SKILL.md +35 -0
  2572. package/skills/nano-banana-pro/scripts/generate_image.py +184 -0
  2573. package/skills/nano-pdf/SKILL.md +20 -0
  2574. package/skills/notion/SKILL.md +156 -0
  2575. package/skills/obsidian/SKILL.md +55 -0
  2576. package/skills/openai-image-gen/SKILL.md +71 -0
  2577. package/skills/openai-image-gen/scripts/gen.py +240 -0
  2578. package/skills/openai-whisper/SKILL.md +19 -0
  2579. package/skills/openai-whisper-api/SKILL.md +43 -0
  2580. package/skills/openai-whisper-api/scripts/transcribe.sh +85 -0
  2581. package/skills/openhue/SKILL.md +30 -0
  2582. package/skills/oracle/SKILL.md +105 -0
  2583. package/skills/ordercli/SKILL.md +47 -0
  2584. package/skills/peekaboo/SKILL.md +153 -0
  2585. package/skills/sag/SKILL.md +62 -0
  2586. package/skills/session-logs/SKILL.md +105 -0
  2587. package/skills/sherpa-onnx-tts/SKILL.md +49 -0
  2588. package/skills/sherpa-onnx-tts/bin/sherpa-onnx-tts +178 -0
  2589. package/skills/skill-creator/SKILL.md +371 -0
  2590. package/skills/skill-creator/license.txt +202 -0
  2591. package/skills/skill-creator/scripts/init_skill.py +378 -0
  2592. package/skills/skill-creator/scripts/package_skill.py +111 -0
  2593. package/skills/skill-creator/scripts/quick_validate.py +101 -0
  2594. package/skills/slack/SKILL.md +144 -0
  2595. package/skills/songsee/SKILL.md +29 -0
  2596. package/skills/sonoscli/SKILL.md +26 -0
  2597. package/skills/spotify-player/SKILL.md +34 -0
  2598. package/skills/summarize/SKILL.md +67 -0
  2599. package/skills/things-mac/SKILL.md +61 -0
  2600. package/skills/tmux/SKILL.md +121 -0
  2601. package/skills/tmux/scripts/find-sessions.sh +112 -0
  2602. package/skills/tmux/scripts/wait-for-text.sh +83 -0
  2603. package/skills/trello/SKILL.md +84 -0
  2604. package/skills/video-frames/SKILL.md +29 -0
  2605. package/skills/video-frames/scripts/frame.sh +81 -0
  2606. package/skills/voice-call/SKILL.md +35 -0
  2607. package/skills/wacli/SKILL.md +42 -0
  2608. package/skills/weather/SKILL.md +49 -0
@@ -0,0 +1,2726 @@
1
+ ---
2
+ summary: "Frequently asked questions about Moltbot setup, configuration, and usage"
3
+ ---
4
+ # FAQ
5
+
6
+ Quick answers plus deeper troubleshooting for real-world setups (local dev, VPS, multi-agent, OAuth/API keys, model failover). For runtime diagnostics, see [Troubleshooting](/gateway/troubleshooting). For the full config reference, see [Configuration](/gateway/configuration).
7
+
8
+ ## Table of contents
9
+
10
+ - [Quick start and first-run setup](#quick-start-and-firstrun-setup)
11
+ - [Im stuck whats the fastest way to get unstuck?](#im-stuck-whats-the-fastest-way-to-get-unstuck)
12
+ - [What’s the recommended way to install and set up Moltbot?](#whats-the-recommended-way-to-install-and-set-up-moltbot)
13
+ - [How do I open the dashboard after onboarding?](#how-do-i-open-the-dashboard-after-onboarding)
14
+ - [How do I authenticate the dashboard (token) on localhost vs remote?](#how-do-i-authenticate-the-dashboard-token-on-localhost-vs-remote)
15
+ - [What runtime do I need?](#what-runtime-do-i-need)
16
+ - [Does it run on Raspberry Pi?](#does-it-run-on-raspberry-pi)
17
+ - [Any tips for Raspberry Pi installs?](#any-tips-for-raspberry-pi-installs)
18
+ - [It is stuck on "wake up my friend" / onboarding will not hatch. What now?](#it-is-stuck-on-wake-up-my-friend-onboarding-will-not-hatch-what-now)
19
+ - [Can I migrate my setup to a new machine (Mac mini) without redoing onboarding?](#can-i-migrate-my-setup-to-a-new-machine-mac-mini-without-redoing-onboarding)
20
+ - [Where do I see what’s new in the latest version?](#where-do-i-see-whats-new-in-the-latest-version)
21
+ - [I can't access docs.molt.bot (SSL error). What now?](#i-cant-access-docsmoltbot-ssl-error-what-now)
22
+ - [What’s the difference between stable and beta?](#whats-the-difference-between-stable-and-beta)
23
+ - [How do I install the beta version, and what’s the difference between beta and dev?](#how-do-i-install-the-beta-version-and-whats-the-difference-between-beta-and-dev)
24
+ - [How do I try the latest bits?](#how-do-i-try-the-latest-bits)
25
+ - [How long does install and onboarding usually take?](#how-long-does-install-and-onboarding-usually-take)
26
+ - [Installer stuck? How do I get more feedback?](#installer-stuck-how-do-i-get-more-feedback)
27
+ - [Windows install says git not found or moltbot not recognized](#windows-install-says-git-not-found-or-moltbot-not-recognized)
28
+ - [The docs didn’t answer my question - how do I get a better answer?](#the-docs-didnt-answer-my-question-how-do-i-get-a-better-answer)
29
+ - [How do I install Moltbot on Linux?](#how-do-i-install-moltbot-on-linux)
30
+ - [How do I install Moltbot on a VPS?](#how-do-i-install-moltbot-on-a-vps)
31
+ - [Where are the cloud/VPS install guides?](#where-are-the-cloudvps-install-guides)
32
+ - [Can I ask Clawd to update itself?](#can-i-ask-clawd-to-update-itself)
33
+ - [What does the onboarding wizard actually do?](#what-does-the-onboarding-wizard-actually-do)
34
+ - [Do I need a Claude or OpenAI subscription to run this?](#do-i-need-a-claude-or-openai-subscription-to-run-this)
35
+ - [Can I use Claude Max subscription without an API key](#can-i-use-claude-max-subscription-without-an-api-key)
36
+ - [How does Anthropic "setup-token" auth work?](#how-does-anthropic-setuptoken-auth-work)
37
+ - [Where do I find an Anthropic setup-token?](#where-do-i-find-an-anthropic-setuptoken)
38
+ - [Do you support Claude subscription auth (Claude Code OAuth)?](#do-you-support-claude-subscription-auth-claude-code-oauth)
39
+ - [Why am I seeing `HTTP 429: rate_limit_error` from Anthropic?](#why-am-i-seeing-http-429-ratelimiterror-from-anthropic)
40
+ - [Is AWS Bedrock supported?](#is-aws-bedrock-supported)
41
+ - [How does Codex auth work?](#how-does-codex-auth-work)
42
+ - [Do you support OpenAI subscription auth (Codex OAuth)?](#do-you-support-openai-subscription-auth-codex-oauth)
43
+ - [How do I set up Gemini CLI OAuth](#how-do-i-set-up-gemini-cli-oauth)
44
+ - [Is a local model OK for casual chats?](#is-a-local-model-ok-for-casual-chats)
45
+ - [How do I keep hosted model traffic in a specific region?](#how-do-i-keep-hosted-model-traffic-in-a-specific-region)
46
+ - [Do I have to buy a Mac Mini to install this?](#do-i-have-to-buy-a-mac-mini-to-install-this)
47
+ - [Do I need a Mac mini for iMessage support?](#do-i-need-a-mac-mini-for-imessage-support)
48
+ - [If I buy a Mac mini to run Moltbot, can I connect it to my MacBook Pro?](#if-i-buy-a-mac-mini-to-run-moltbot-can-i-connect-it-to-my-macbook-pro)
49
+ - [Can I use Bun?](#can-i-use-bun)
50
+ - [Telegram: what goes in `allowFrom`?](#telegram-what-goes-in-allowfrom)
51
+ - [Can multiple people use one WhatsApp number with different Moltbots?](#can-multiple-people-use-one-whatsapp-number-with-different-moltbots)
52
+ - [Can I run a "fast chat" agent and an "Opus for coding" agent?](#can-i-run-a-fast-chat-agent-and-an-opus-for-coding-agent)
53
+ - [Does Homebrew work on Linux?](#does-homebrew-work-on-linux)
54
+ - [What’s the difference between the hackable (git) install and npm install?](#whats-the-difference-between-the-hackable-git-install-and-npm-install)
55
+ - [Can I switch between npm and git installs later?](#can-i-switch-between-npm-and-git-installs-later)
56
+ - [Should I run the Gateway on my laptop or a VPS?](#should-i-run-the-gateway-on-my-laptop-or-a-vps)
57
+ - [How important is it to run Moltbot on a dedicated machine?](#how-important-is-it-to-run-moltbot-on-a-dedicated-machine)
58
+ - [What are the minimum VPS requirements and recommended OS?](#what-are-the-minimum-vps-requirements-and-recommended-os)
59
+ - [Can I run Moltbot in a VM and what are the requirements](#can-i-run-moltbot-in-a-vm-and-what-are-the-requirements)
60
+ - [What is Moltbot?](#what-is-moltbot)
61
+ - [What is Moltbot, in one paragraph?](#what-is-moltbot-in-one-paragraph)
62
+ - [What’s the value proposition?](#whats-the-value-proposition)
63
+ - [I just set it up what should I do first](#i-just-set-it-up-what-should-i-do-first)
64
+ - [What are the top five everyday use cases for Moltbot](#what-are-the-top-five-everyday-use-cases-for-moltbot)
65
+ - [Can Moltbot help with lead gen outreach ads and blogs for a SaaS](#can-moltbot-help-with-lead-gen-outreach-ads-and-blogs-for-a-saas)
66
+ - [What are the advantages vs Claude Code for web development?](#what-are-the-advantages-vs-claude-code-for-web-development)
67
+ - [Skills and automation](#skills-and-automation)
68
+ - [How do I customize skills without keeping the repo dirty?](#how-do-i-customize-skills-without-keeping-the-repo-dirty)
69
+ - [Can I load skills from a custom folder?](#can-i-load-skills-from-a-custom-folder)
70
+ - [How can I use different models for different tasks?](#how-can-i-use-different-models-for-different-tasks)
71
+ - [The bot freezes while doing heavy work. How do I offload that?](#the-bot-freezes-while-doing-heavy-work-how-do-i-offload-that)
72
+ - [Cron or reminders do not fire. What should I check?](#cron-or-reminders-do-not-fire-what-should-i-check)
73
+ - [How do I install skills on Linux?](#how-do-i-install-skills-on-linux)
74
+ - [Can Moltbot run tasks on a schedule or continuously in the background?](#can-moltbot-run-tasks-on-a-schedule-or-continuously-in-the-background)
75
+ - [Can I run Apple/macOS-only skills from Linux?](#can-i-run-applemacosonly-skills-from-linux)
76
+ - [Do you have a Notion or HeyGen integration?](#do-you-have-a-notion-or-heygen-integration)
77
+ - [How do I install the Chrome extension for browser takeover?](#how-do-i-install-the-chrome-extension-for-browser-takeover)
78
+ - [Sandboxing and memory](#sandboxing-and-memory)
79
+ - [Is there a dedicated sandboxing doc?](#is-there-a-dedicated-sandboxing-doc)
80
+ - [How do I bind a host folder into the sandbox?](#how-do-i-bind-a-host-folder-into-the-sandbox)
81
+ - [How does memory work?](#how-does-memory-work)
82
+ - [Memory keeps forgetting things. How do I make it stick?](#memory-keeps-forgetting-things-how-do-i-make-it-stick)
83
+ - [Does memory persist forever? What are the limits?](#does-memory-persist-forever-what-are-the-limits)
84
+ - [Does semantic memory search require an OpenAI API key?](#does-semantic-memory-search-require-an-openai-api-key)
85
+ - [Where things live on disk](#where-things-live-on-disk)
86
+ - [Is all data used with Moltbot saved locally?](#is-all-data-used-with-moltbot-saved-locally)
87
+ - [Where does Moltbot store its data?](#where-does-moltbot-store-its-data)
88
+ - [Where should AGENTS.md / SOUL.md / USER.md / MEMORY.md live?](#where-should-agentsmd-soulmd-usermd-memorymd-live)
89
+ - [What’s the recommended backup strategy?](#whats-the-recommended-backup-strategy)
90
+ - [How do I completely uninstall Moltbot?](#how-do-i-completely-uninstall-moltbot)
91
+ - [Can agents work outside the workspace?](#can-agents-work-outside-the-workspace)
92
+ - [I’m in remote mode - where is the session store?](#im-in-remote-mode-where-is-the-session-store)
93
+ - [Config basics](#config-basics)
94
+ - [What format is the config? Where is it?](#what-format-is-the-config-where-is-it)
95
+ - [I set `gateway.bind: "lan"` (or `"tailnet"`) and now nothing listens / the UI says unauthorized](#i-set-gatewaybind-lan-or-tailnet-and-now-nothing-listens-the-ui-says-unauthorized)
96
+ - [Why do I need a token on localhost now?](#why-do-i-need-a-token-on-localhost-now)
97
+ - [Do I have to restart after changing config?](#do-i-have-to-restart-after-changing-config)
98
+ - [How do I enable web search (and web fetch)?](#how-do-i-enable-web-search-and-web-fetch)
99
+ - [config.apply wiped my config. How do I recover and avoid this?](#configapply-wiped-my-config-how-do-i-recover-and-avoid-this)
100
+ - [How do I run a central Gateway with specialized workers across devices?](#how-do-i-run-a-central-gateway-with-specialized-workers-across-devices)
101
+ - [Can the Moltbot browser run headless?](#can-the-moltbot-browser-run-headless)
102
+ - [How do I use Brave for browser control?](#how-do-i-use-brave-for-browser-control)
103
+ - [Remote gateways + nodes](#remote-gateways-nodes)
104
+ - [How do commands propagate between Telegram, the gateway, and nodes?](#how-do-commands-propagate-between-telegram-the-gateway-and-nodes)
105
+ - [How can my agent access my computer if the Gateway is hosted remotely?](#how-can-my-agent-access-my-computer-if-the-gateway-is-hosted-remotely)
106
+ - [Tailscale is connected but I get no replies. What now?](#tailscale-is-connected-but-i-get-no-replies-what-now)
107
+ - [Can two Moltbots talk to each other (local + VPS)?](#can-two-moltbots-talk-to-each-other-local-vps)
108
+ - [Do I need separate VPSes for multiple agents](#do-i-need-separate-vpses-for-multiple-agents)
109
+ - [Is there a benefit to using a node on my personal laptop instead of SSH from a VPS?](#is-there-a-benefit-to-using-a-node-on-my-personal-laptop-instead-of-ssh-from-a-vps)
110
+ - [Do nodes run a gateway service?](#do-nodes-run-a-gateway-service)
111
+ - [Is there an API / RPC way to apply config?](#is-there-an-api-rpc-way-to-apply-config)
112
+ - [What’s a minimal “sane” config for a first install?](#whats-a-minimal-sane-config-for-a-first-install)
113
+ - [How do I set up Tailscale on a VPS and connect from my Mac?](#how-do-i-set-up-tailscale-on-a-vps-and-connect-from-my-mac)
114
+ - [How do I connect a Mac node to a remote Gateway (Tailscale Serve)?](#how-do-i-connect-a-mac-node-to-a-remote-gateway-tailscale-serve)
115
+ - [Should I install on a second laptop or just add a node?](#should-i-install-on-a-second-laptop-or-just-add-a-node)
116
+ - [Env vars and .env loading](#env-vars-and-env-loading)
117
+ - [How does Moltbot load environment variables?](#how-does-moltbot-load-environment-variables)
118
+ - [“I started the Gateway via the service and my env vars disappeared.” What now?](#i-started-the-gateway-via-the-service-and-my-env-vars-disappeared-what-now)
119
+ - [I set `COPILOT_GITHUB_TOKEN`, but models status shows “Shell env: off.” Why?](#i-set-copilotgithubtoken-but-models-status-shows-shell-env-off-why)
120
+ - [Sessions & multiple chats](#sessions-multiple-chats)
121
+ - [How do I start a fresh conversation?](#how-do-i-start-a-fresh-conversation)
122
+ - [Do sessions reset automatically if I never send `/new`?](#do-sessions-reset-automatically-if-i-never-send-new)
123
+ - [Is there a way to make a team of Moltbots one CEO and many agents](#is-there-a-way-to-make-a-team-of-moltbots-one-ceo-and-many-agents)
124
+ - [Why did context get truncated mid-task? How do I prevent it?](#why-did-context-get-truncated-midtask-how-do-i-prevent-it)
125
+ - [How do I completely reset Moltbot but keep it installed?](#how-do-i-completely-reset-moltbot-but-keep-it-installed)
126
+ - [I’m getting “context too large” errors - how do I reset or compact?](#im-getting-context-too-large-errors-how-do-i-reset-or-compact)
127
+ - [Why am I seeing “LLM request rejected: messages.N.content.X.tool_use.input: Field required”?](#why-am-i-seeing-llm-request-rejected-messagesncontentxtooluseinput-field-required)
128
+ - [Why am I getting heartbeat messages every 30 minutes?](#why-am-i-getting-heartbeat-messages-every-30-minutes)
129
+ - [Do I need to add a “bot account” to a WhatsApp group?](#do-i-need-to-add-a-bot-account-to-a-whatsapp-group)
130
+ - [How do I get the JID of a WhatsApp group?](#how-do-i-get-the-jid-of-a-whatsapp-group)
131
+ - [Why doesn’t Moltbot reply in a group?](#why-doesnt-moltbot-reply-in-a-group)
132
+ - [Do groups/threads share context with DMs?](#do-groupsthreads-share-context-with-dms)
133
+ - [How many workspaces and agents can I create?](#how-many-workspaces-and-agents-can-i-create)
134
+ - [Can I run multiple bots or chats at the same time (Slack), and how should I set that up?](#can-i-run-multiple-bots-or-chats-at-the-same-time-slack-and-how-should-i-set-that-up)
135
+ - [Models: defaults, selection, aliases, switching](#models-defaults-selection-aliases-switching)
136
+ - [What is the “default model”?](#what-is-the-default-model)
137
+ - [What model do you recommend?](#what-model-do-you-recommend)
138
+ - [How do I switch models without wiping my config?](#how-do-i-switch-models-without-wiping-my-config)
139
+ - [Can I use self-hosted models (llama.cpp, vLLM, Ollama)?](#can-i-use-selfhosted-models-llamacpp-vllm-ollama)
140
+ - [What do Clawd, Flawd, and Krill use for models?](#what-do-clawd-flawd-and-krill-use-for-models)
141
+ - [How do I switch models on the fly (without restarting)?](#how-do-i-switch-models-on-the-fly-without-restarting)
142
+ - [Can I use GPT 5.2 for daily tasks and Codex 5.2 for coding](#can-i-use-gpt-52-for-daily-tasks-and-codex-52-for-coding)
143
+ - [Why do I see “Model … is not allowed” and then no reply?](#why-do-i-see-model-is-not-allowed-and-then-no-reply)
144
+ - [Why do I see “Unknown model: minimax/MiniMax-M2.1”?](#why-do-i-see-unknown-model-minimaxminimaxm21)
145
+ - [Can I use MiniMax as my default and OpenAI for complex tasks?](#can-i-use-minimax-as-my-default-and-openai-for-complex-tasks)
146
+ - [Are opus / sonnet / gpt built‑in shortcuts?](#are-opus-sonnet-gpt-builtin-shortcuts)
147
+ - [How do I define/override model shortcuts (aliases)?](#how-do-i-defineoverride-model-shortcuts-aliases)
148
+ - [How do I add models from other providers like OpenRouter or Z.AI?](#how-do-i-add-models-from-other-providers-like-openrouter-or-zai)
149
+ - [Model failover and “All models failed”](#model-failover-and-all-models-failed)
150
+ - [How does failover work?](#how-does-failover-work)
151
+ - [What does this error mean?](#what-does-this-error-mean)
152
+ - [Fix checklist for `No credentials found for profile "anthropic:default"`](#fix-checklist-for-no-credentials-found-for-profile-anthropicdefault)
153
+ - [Why did it also try Google Gemini and fail?](#why-did-it-also-try-google-gemini-and-fail)
154
+ - [Auth profiles: what they are and how to manage them](#auth-profiles-what-they-are-and-how-to-manage-them)
155
+ - [What is an auth profile?](#what-is-an-auth-profile)
156
+ - [What are typical profile IDs?](#what-are-typical-profile-ids)
157
+ - [Can I control which auth profile is tried first?](#can-i-control-which-auth-profile-is-tried-first)
158
+ - [OAuth vs API key: what’s the difference?](#oauth-vs-api-key-whats-the-difference)
159
+ - [Gateway: ports, “already running”, and remote mode](#gateway-ports-already-running-and-remote-mode)
160
+ - [What port does the Gateway use?](#what-port-does-the-gateway-use)
161
+ - [Why does `moltbot gateway status` say `Runtime: running` but `RPC probe: failed`?](#why-does-moltbot-gateway-status-say-runtime-running-but-rpc-probe-failed)
162
+ - [Why does `moltbot gateway status` show `Config (cli)` and `Config (service)` different?](#why-does-moltbot-gateway-status-show-config-cli-and-config-service-different)
163
+ - [What does “another gateway instance is already listening” mean?](#what-does-another-gateway-instance-is-already-listening-mean)
164
+ - [How do I run Moltbot in remote mode (client connects to a Gateway elsewhere)?](#how-do-i-run-moltbot-in-remote-mode-client-connects-to-a-gateway-elsewhere)
165
+ - [The Control UI says “unauthorized” (or keeps reconnecting). What now?](#the-control-ui-says-unauthorized-or-keeps-reconnecting-what-now)
166
+ - [I set `gateway.bind: "tailnet"` but it can’t bind / nothing listens](#i-set-gatewaybind-tailnet-but-it-cant-bind-nothing-listens)
167
+ - [Can I run multiple Gateways on the same host?](#can-i-run-multiple-gateways-on-the-same-host)
168
+ - [What does “invalid handshake” / code 1008 mean?](#what-does-invalid-handshake-code-1008-mean)
169
+ - [Logging and debugging](#logging-and-debugging)
170
+ - [Where are logs?](#where-are-logs)
171
+ - [How do I start/stop/restart the Gateway service?](#how-do-i-startstoprestart-the-gateway-service)
172
+ - [I closed my terminal on Windows - how do I restart Moltbot?](#i-closed-my-terminal-on-windows-how-do-i-restart-moltbot)
173
+ - [The Gateway is up but replies never arrive. What should I check?](#the-gateway-is-up-but-replies-never-arrive-what-should-i-check)
174
+ - ["Disconnected from gateway: no reason" - what now?](#disconnected-from-gateway-no-reason-what-now)
175
+ - [Telegram setMyCommands fails with network errors. What should I check?](#telegram-setmycommands-fails-with-network-errors-what-should-i-check)
176
+ - [TUI shows no output. What should I check?](#tui-shows-no-output-what-should-i-check)
177
+ - [How do I completely stop then start the Gateway?](#how-do-i-completely-stop-then-start-the-gateway)
178
+ - [ELI5: `moltbot gateway restart` vs `moltbot gateway`](#eli5-moltbot-gateway-restart-vs-moltbot-gateway)
179
+ - [What’s the fastest way to get more details when something fails?](#whats-the-fastest-way-to-get-more-details-when-something-fails)
180
+ - [Media & attachments](#media-attachments)
181
+ - [My skill generated an image/PDF, but nothing was sent](#my-skill-generated-an-imagepdf-but-nothing-was-sent)
182
+ - [Security and access control](#security-and-access-control)
183
+ - [Is it safe to expose Moltbot to inbound DMs?](#is-it-safe-to-expose-moltbot-to-inbound-dms)
184
+ - [Is prompt injection only a concern for public bots?](#is-prompt-injection-only-a-concern-for-public-bots)
185
+ - [Should my bot have its own email GitHub account or phone number](#should-my-bot-have-its-own-email-github-account-or-phone-number)
186
+ - [Can I give it autonomy over my text messages and is that safe](#can-i-give-it-autonomy-over-my-text-messages-and-is-that-safe)
187
+ - [Can I use cheaper models for personal assistant tasks?](#can-i-use-cheaper-models-for-personal-assistant-tasks)
188
+ - [I ran `/start` in Telegram but didn’t get a pairing code](#i-ran-start-in-telegram-but-didnt-get-a-pairing-code)
189
+ - [WhatsApp: will it message my contacts? How does pairing work?](#whatsapp-will-it-message-my-contacts-how-does-pairing-work)
190
+ - [Chat commands, aborting tasks, and “it won’t stop”](#chat-commands-aborting-tasks-and-it-wont-stop)
191
+ - [How do I stop internal system messages from showing in chat](#how-do-i-stop-internal-system-messages-from-showing-in-chat)
192
+ - [How do I stop/cancel a running task?](#how-do-i-stopcancel-a-running-task)
193
+ - [How do I send a Discord message from Telegram? (“Cross-context messaging denied”)](#how-do-i-send-a-discord-message-from-telegram-crosscontext-messaging-denied)
194
+ - [Why does it feel like the bot “ignores” rapid‑fire messages?](#why-does-it-feel-like-the-bot-ignores-rapidfire-messages)
195
+
196
+ ## First 60 seconds if something's broken
197
+
198
+ 1) **Quick status (first check)**
199
+ ```bash
200
+ moltbot status
201
+ ```
202
+ Fast local summary: OS + update, gateway/service reachability, agents/sessions, provider config + runtime issues (when gateway is reachable).
203
+
204
+ 2) **Pasteable report (safe to share)**
205
+ ```bash
206
+ moltbot status --all
207
+ ```
208
+ Read-only diagnosis with log tail (tokens redacted).
209
+
210
+ 3) **Daemon + port state**
211
+ ```bash
212
+ moltbot gateway status
213
+ ```
214
+ Shows supervisor runtime vs RPC reachability, the probe target URL, and which config the service likely used.
215
+
216
+ 4) **Deep probes**
217
+ ```bash
218
+ moltbot status --deep
219
+ ```
220
+ Runs gateway health checks + provider probes (requires a reachable gateway). See [Health](/gateway/health).
221
+
222
+ 5) **Tail the latest log**
223
+ ```bash
224
+ moltbot logs --follow
225
+ ```
226
+ If RPC is down, fall back to:
227
+ ```bash
228
+ tail -f "$(ls -t /tmp/moltbot/moltbot-*.log | head -1)"
229
+ ```
230
+ File logs are separate from service logs; see [Logging](/logging) and [Troubleshooting](/gateway/troubleshooting).
231
+
232
+ 6) **Run the doctor (repairs)**
233
+ ```bash
234
+ moltbot doctor
235
+ ```
236
+ Repairs/migrates config/state + runs health checks. See [Doctor](/gateway/doctor).
237
+
238
+ 7) **Gateway snapshot**
239
+ ```bash
240
+ moltbot health --json
241
+ moltbot health --verbose # shows the target URL + config path on errors
242
+ ```
243
+ Asks the running gateway for a full snapshot (WS-only). See [Health](/gateway/health).
244
+
245
+ ## Quick start and first-run setup
246
+
247
+ ### Im stuck whats the fastest way to get unstuck
248
+
249
+ Use a local AI agent that can **see your machine**. That is far more effective than asking
250
+ in Discord, because most "I'm stuck" cases are **local config or environment issues** that
251
+ remote helpers cannot inspect.
252
+
253
+ - **Claude Code**: https://www.anthropic.com/claude-code/
254
+ - **OpenAI Codex**: https://openai.com/codex/
255
+
256
+ These tools can read the repo, run commands, inspect logs, and help fix your machine-level
257
+ setup (PATH, services, permissions, auth files). Give them the **full source checkout** via
258
+ the hackable (git) install:
259
+
260
+ ```bash
261
+ curl -fsSL https://molt.bot/install.sh | bash -s -- --install-method git
262
+ ```
263
+
264
+ This installs Moltbot **from a git checkout**, so the agent can read the code + docs and
265
+ reason about the exact version you are running. You can always switch back to stable later
266
+ by re-running the installer without `--install-method git`.
267
+
268
+ Tip: ask the agent to **plan and supervise** the fix (step-by-step), then execute only the
269
+ necessary commands. That keeps changes small and easier to audit.
270
+
271
+ If you discover a real bug or fix, please file a GitHub issue or send a PR:
272
+ https://github.com/moltbot/moltbot/issues
273
+ https://github.com/moltbot/moltbot/pulls
274
+
275
+ Start with these commands (share outputs when asking for help):
276
+
277
+ ```bash
278
+ moltbot status
279
+ moltbot models status
280
+ moltbot doctor
281
+ ```
282
+
283
+ What they do:
284
+ - `moltbot status`: quick snapshot of gateway/agent health + basic config.
285
+ - `moltbot models status`: checks provider auth + model availability.
286
+ - `moltbot doctor`: validates and repairs common config/state issues.
287
+
288
+ Other useful CLI checks: `moltbot status --all`, `moltbot logs --follow`,
289
+ `moltbot gateway status`, `moltbot health --verbose`.
290
+
291
+ Quick debug loop: [First 60 seconds if something's broken](#first-60-seconds-if-somethings-broken).
292
+ Install docs: [Install](/install), [Installer flags](/install/installer), [Updating](/install/updating).
293
+
294
+ ### Whats the recommended way to install and set up Moltbot
295
+
296
+ The repo recommends running from source and using the onboarding wizard:
297
+
298
+ ```bash
299
+ curl -fsSL https://molt.bot/install.sh | bash
300
+ moltbot onboard --install-daemon
301
+ ```
302
+
303
+ The wizard can also build UI assets automatically. After onboarding, you typically run the Gateway on port **18789**.
304
+
305
+ From source (contributors/dev):
306
+
307
+ ```bash
308
+ git clone https://github.com/moltbot/moltbot.git
309
+ cd moltbot
310
+ pnpm install
311
+ pnpm build
312
+ pnpm ui:build # auto-installs UI deps on first run
313
+ moltbot onboard
314
+ ```
315
+
316
+ If you don’t have a global install yet, run it via `pnpm moltbot onboard`.
317
+
318
+ ### How do I open the dashboard after onboarding
319
+
320
+ The wizard now opens your browser with a tokenized dashboard URL right after onboarding and also prints the full link (with token) in the summary. Keep that tab open; if it didn’t launch, copy/paste the printed URL on the same machine. Tokens stay local to your host-nothing is fetched from the browser.
321
+
322
+ ### How do I authenticate the dashboard token on localhost vs remote
323
+
324
+ **Localhost (same machine):**
325
+ - Open `http://127.0.0.1:18789/`.
326
+ - If it asks for auth, run `moltbot dashboard` and use the tokenized link (`?token=...`).
327
+ - The token is the same value as `gateway.auth.token` (or `CLAWDBOT_GATEWAY_TOKEN`) and is stored by the UI after first load.
328
+
329
+ **Not on localhost:**
330
+ - **Tailscale Serve** (recommended): keep bind loopback, run `moltbot gateway --tailscale serve`, open `https://<magicdns>/`. If `gateway.auth.allowTailscale` is `true`, identity headers satisfy auth (no token).
331
+ - **Tailnet bind**: run `moltbot gateway --bind tailnet --token "<token>"`, open `http://<tailscale-ip>:18789/`, paste token in dashboard settings.
332
+ - **SSH tunnel**: `ssh -N -L 18789:127.0.0.1:18789 user@host` then open `http://127.0.0.1:18789/?token=...` from `moltbot dashboard`.
333
+
334
+ See [Dashboard](/web/dashboard) and [Web surfaces](/web) for bind modes and auth details.
335
+
336
+ ### What runtime do I need
337
+
338
+ Node **>= 22** is required. `pnpm` is recommended. Bun is **not recommended** for the Gateway.
339
+
340
+ ### Does it run on Raspberry Pi
341
+
342
+ Yes. The Gateway is lightweight - docs list **512MB-1GB RAM**, **1 core**, and about **500MB**
343
+ disk as enough for personal use, and note that a **Raspberry Pi 4 can run it**.
344
+
345
+ If you want extra headroom (logs, media, other services), **2GB is recommended**, but it’s
346
+ not a hard minimum.
347
+
348
+ Tip: a small Pi/VPS can host the Gateway, and you can pair **nodes** on your laptop/phone for
349
+ local screen/camera/canvas or command execution. See [Nodes](/nodes).
350
+
351
+ ### Any tips for Raspberry Pi installs
352
+
353
+ Short version: it works, but expect rough edges.
354
+
355
+ - Use a **64-bit** OS and keep Node >= 22.
356
+ - Prefer the **hackable (git) install** so you can see logs and update fast.
357
+ - Start without channels/skills, then add them one by one.
358
+ - If you hit weird binary issues, it is usually an **ARM compatibility** problem.
359
+
360
+ Docs: [Linux](/platforms/linux), [Install](/install).
361
+
362
+ ### It is stuck on wake up my friend onboarding will not hatch What now
363
+
364
+ That screen depends on the Gateway being reachable and authenticated. The TUI also sends
365
+ "Wake up, my friend!" automatically on first hatch. If you see that line with **no reply**
366
+ and tokens stay at 0, the agent never ran.
367
+
368
+ 1) Restart the Gateway:
369
+ ```bash
370
+ moltbot gateway restart
371
+ ```
372
+ 2) Check status + auth:
373
+ ```bash
374
+ moltbot status
375
+ moltbot models status
376
+ moltbot logs --follow
377
+ ```
378
+ 3) If it still hangs, run:
379
+ ```bash
380
+ moltbot doctor
381
+ ```
382
+
383
+ If the Gateway is remote, ensure the tunnel/Tailscale connection is up and that the UI
384
+ is pointed at the right Gateway. See [Remote access](/gateway/remote).
385
+
386
+ ### Can I migrate my setup to a new machine Mac mini without redoing onboarding
387
+
388
+ Yes. Copy the **state directory** and **workspace**, then run Doctor once. This
389
+ keeps your bot “exactly the same” (memory, session history, auth, and channel
390
+ state) as long as you copy **both** locations:
391
+
392
+ 1) Install Moltbot on the new machine.
393
+ 2) Copy `$CLAWDBOT_STATE_DIR` (default: `~/.clawdbot`) from the old machine.
394
+ 3) Copy your workspace (default: `~/clawd`).
395
+ 4) Run `moltbot doctor` and restart the Gateway service.
396
+
397
+ That preserves config, auth profiles, WhatsApp creds, sessions, and memory. If you’re in
398
+ remote mode, remember the gateway host owns the session store and workspace.
399
+
400
+ **Important:** if you only commit/push your workspace to GitHub, you’re backing
401
+ up **memory + bootstrap files**, but **not** session history or auth. Those live
402
+ under `~/.clawdbot/` (for example `~/.clawdbot/agents/<agentId>/sessions/`).
403
+
404
+ Related: [Migrating](/install/migrating), [Where things live on disk](/help/faq#where-does-moltbot-store-its-data),
405
+ [Agent workspace](/concepts/agent-workspace), [Doctor](/gateway/doctor),
406
+ [Remote mode](/gateway/remote).
407
+
408
+ ### Where do I see whats new in the latest version
409
+
410
+ Check the GitHub changelog:
411
+ https://github.com/moltbot/moltbot/blob/main/CHANGELOG.md
412
+
413
+ Newest entries are at the top. If the top section is marked **Unreleased**, the next dated
414
+ section is the latest shipped version. Entries are grouped by **Highlights**, **Changes**, and
415
+ **Fixes** (plus docs/other sections when needed).
416
+
417
+ ### I cant access docsmoltbot SSL error What now
418
+
419
+ Some Comcast/Xfinity connections incorrectly block `docs.molt.bot` via Xfinity
420
+ Advanced Security. Disable it or allowlist `docs.molt.bot`, then retry. More
421
+ detail: [Troubleshooting](/help/troubleshooting#docsmoltbot-shows-an-ssl-error-comcastxfinity).
422
+ Please help us unblock it by reporting here: https://spa.xfinity.com/check_url_status.
423
+
424
+ If you still can't reach the site, the docs are mirrored on GitHub:
425
+ https://github.com/moltbot/moltbot/tree/main/docs
426
+
427
+ ### Whats the difference between stable and beta
428
+
429
+ **Stable** and **beta** are **npm dist‑tags**, not separate code lines:
430
+ - `latest` = stable
431
+ - `beta` = early build for testing
432
+
433
+ We ship builds to **beta**, test them, and once a build is solid we **promote
434
+ that same version to `latest`**. That’s why beta and stable can point at the
435
+ **same version**.
436
+
437
+ See what changed:
438
+ https://github.com/moltbot/moltbot/blob/main/CHANGELOG.md
439
+
440
+ ### How do I install the beta version and whats the difference between beta and dev
441
+
442
+ **Beta** is the npm dist‑tag `beta` (may match `latest`).
443
+ **Dev** is the moving head of `main` (git); when published, it uses the npm dist‑tag `dev`.
444
+
445
+ One‑liners (macOS/Linux):
446
+
447
+ ```bash
448
+ curl -fsSL --proto '=https' --tlsv1.2 https://molt.bot/install.sh | bash -s -- --beta
449
+ ```
450
+
451
+ ```bash
452
+ curl -fsSL --proto '=https' --tlsv1.2 https://molt.bot/install.sh | bash -s -- --install-method git
453
+ ```
454
+
455
+ Windows installer (PowerShell):
456
+ https://molt.bot/install.ps1
457
+
458
+ More detail: [Development channels](/install/development-channels) and [Installer flags](/install/installer).
459
+
460
+ ### How long does install and onboarding usually take
461
+
462
+ Rough guide:
463
+ - **Install:** 2-5 minutes
464
+ - **Onboarding:** 5-15 minutes depending on how many channels/models you configure
465
+
466
+ If it hangs, use [Installer stuck](/help/faq#installer-stuck-how-do-i-get-more-feedback)
467
+ and the fast debug loop in [Im stuck](/help/faq#im-stuck--whats-the-fastest-way-to-get-unstuck).
468
+
469
+ ### How do I try the latest bits
470
+
471
+ Two options:
472
+
473
+ 1) **Dev channel (git checkout):**
474
+ ```bash
475
+ moltbot update --channel dev
476
+ ```
477
+ This switches to the `main` branch and updates from source.
478
+
479
+ 2) **Hackable install (from the installer site):**
480
+ ```bash
481
+ curl -fsSL https://molt.bot/install.sh | bash -s -- --install-method git
482
+ ```
483
+ That gives you a local repo you can edit, then update via git.
484
+
485
+ If you prefer a clean clone manually, use:
486
+ ```bash
487
+ git clone https://github.com/moltbot/moltbot.git
488
+ cd moltbot
489
+ pnpm install
490
+ pnpm build
491
+ ```
492
+
493
+ Docs: [Update](/cli/update), [Development channels](/install/development-channels),
494
+ [Install](/install).
495
+
496
+ ### Installer stuck How do I get more feedback
497
+
498
+ Re-run the installer with **verbose output**:
499
+
500
+ ```bash
501
+ curl -fsSL https://molt.bot/install.sh | bash -s -- --verbose
502
+ ```
503
+
504
+ Beta install with verbose:
505
+
506
+ ```bash
507
+ curl -fsSL https://molt.bot/install.sh | bash -s -- --beta --verbose
508
+ ```
509
+
510
+ For a hackable (git) install:
511
+
512
+ ```bash
513
+ curl -fsSL https://molt.bot/install.sh | bash -s -- --install-method git --verbose
514
+ ```
515
+
516
+ More options: [Installer flags](/install/installer).
517
+
518
+ ### Windows install says git not found or moltbot not recognized
519
+
520
+ Two common Windows issues:
521
+
522
+ **1) npm error spawn git / git not found**
523
+ - Install **Git for Windows** and make sure `git` is on your PATH.
524
+ - Close and reopen PowerShell, then re-run the installer.
525
+
526
+ **2) moltbot is not recognized after install**
527
+ - Your npm global bin folder is not on PATH.
528
+ - Check the path:
529
+ ```powershell
530
+ npm config get prefix
531
+ ```
532
+ - Ensure `<prefix>\\bin` is on PATH (on most systems it is `%AppData%\\npm`).
533
+ - Close and reopen PowerShell after updating PATH.
534
+
535
+ If you want the smoothest Windows setup, use **WSL2** instead of native Windows.
536
+ Docs: [Windows](/platforms/windows).
537
+
538
+ ### The docs didnt answer my question how do I get a better answer
539
+
540
+ Use the **hackable (git) install** so you have the full source and docs locally, then ask
541
+ your bot (or Claude/Codex) *from that folder* so it can read the repo and answer precisely.
542
+
543
+ ```bash
544
+ curl -fsSL https://molt.bot/install.sh | bash -s -- --install-method git
545
+ ```
546
+
547
+ More detail: [Install](/install) and [Installer flags](/install/installer).
548
+
549
+ ### How do I install Moltbot on Linux
550
+
551
+ Short answer: follow the Linux guide, then run the onboarding wizard.
552
+
553
+ - Linux quick path + service install: [Linux](/platforms/linux).
554
+ - Full walkthrough: [Getting Started](/start/getting-started).
555
+ - Installer + updates: [Install & updates](/install/updating).
556
+
557
+ ### How do I install Moltbot on a VPS
558
+
559
+ Any Linux VPS works. Install on the server, then use SSH/Tailscale to reach the Gateway.
560
+
561
+ Guides: [exe.dev](/platforms/exe-dev), [Hetzner](/platforms/hetzner), [Fly.io](/platforms/fly).
562
+ Remote access: [Gateway remote](/gateway/remote).
563
+
564
+ ### Where are the cloudVPS install guides
565
+
566
+ We keep a **hosting hub** with the common providers. Pick one and follow the guide:
567
+
568
+ - [VPS hosting](/vps) (all providers in one place)
569
+ - [Fly.io](/platforms/fly)
570
+ - [Hetzner](/platforms/hetzner)
571
+ - [exe.dev](/platforms/exe-dev)
572
+
573
+ How it works in the cloud: the **Gateway runs on the server**, and you access it
574
+ from your laptop/phone via the Control UI (or Tailscale/SSH). Your state + workspace
575
+ live on the server, so treat the host as the source of truth and back it up.
576
+
577
+ You can pair **nodes** (Mac/iOS/Android/headless) to that cloud Gateway to access
578
+ local screen/camera/canvas or run commands on your laptop while keeping the
579
+ Gateway in the cloud.
580
+
581
+ Hub: [Platforms](/platforms). Remote access: [Gateway remote](/gateway/remote).
582
+ Nodes: [Nodes](/nodes), [Nodes CLI](/cli/nodes).
583
+
584
+ ### Can I ask Clawd to update itself
585
+
586
+ Short answer: **possible, not recommended**. The update flow can restart the
587
+ Gateway (which drops the active session), may need a clean git checkout, and
588
+ can prompt for confirmation. Safer: run updates from a shell as the operator.
589
+
590
+ Use the CLI:
591
+
592
+ ```bash
593
+ moltbot update
594
+ moltbot update status
595
+ moltbot update --channel stable|beta|dev
596
+ moltbot update --tag <dist-tag|version>
597
+ moltbot update --no-restart
598
+ ```
599
+
600
+ If you must automate from an agent:
601
+
602
+ ```bash
603
+ moltbot update --yes --no-restart
604
+ moltbot gateway restart
605
+ ```
606
+
607
+ Docs: [Update](/cli/update), [Updating](/install/updating).
608
+
609
+ ### What does the onboarding wizard actually do
610
+
611
+ `moltbot onboard` is the recommended setup path. In **local mode** it walks you through:
612
+
613
+ - **Model/auth setup** (Anthropic **setup-token** recommended for Claude subscriptions, OpenAI Codex OAuth supported, API keys optional, LM Studio local models supported)
614
+ - **Workspace** location + bootstrap files
615
+ - **Gateway settings** (bind/port/auth/tailscale)
616
+ - **Providers** (WhatsApp, Telegram, Discord, Mattermost (plugin), Signal, iMessage)
617
+ - **Daemon install** (LaunchAgent on macOS; systemd user unit on Linux/WSL2)
618
+ - **Health checks** and **skills** selection
619
+
620
+ It also warns if your configured model is unknown or missing auth.
621
+
622
+ ### Do I need a Claude or OpenAI subscription to run this
623
+
624
+ No. You can run Moltbot with **API keys** (Anthropic/OpenAI/others) or with
625
+ **local‑only models** so your data stays on your device. Subscriptions (Claude
626
+ Pro/Max or OpenAI Codex) are optional ways to authenticate those providers.
627
+
628
+ Docs: [Anthropic](/providers/anthropic), [OpenAI](/providers/openai),
629
+ [Local models](/gateway/local-models), [Models](/concepts/models).
630
+
631
+ ### Can I use Claude Max subscription without an API key
632
+
633
+ Yes. You can authenticate with a **setup-token**
634
+ instead of an API key. This is the subscription path.
635
+
636
+ Claude Pro/Max subscriptions **do not include an API key**, so this is the
637
+ correct approach for subscription accounts. Important: you must verify with
638
+ Anthropic that this usage is allowed under their subscription policy and terms.
639
+ If you want the most explicit, supported path, use an Anthropic API key.
640
+
641
+ ### How does Anthropic setuptoken auth work
642
+
643
+ `claude setup-token` generates a **token string** via the Claude Code CLI (it is not available in the web console). You can run it on **any machine**. Choose **Anthropic token (paste setup-token)** in the wizard or paste it with `moltbot models auth paste-token --provider anthropic`. The token is stored as an auth profile for the **anthropic** provider and used like an API key (no auto-refresh). More detail: [OAuth](/concepts/oauth).
644
+
645
+ ### Where do I find an Anthropic setuptoken
646
+
647
+ It is **not** in the Anthropic Console. The setup-token is generated by the **Claude Code CLI** on **any machine**:
648
+
649
+ ```bash
650
+ claude setup-token
651
+ ```
652
+
653
+ Copy the token it prints, then choose **Anthropic token (paste setup-token)** in the wizard. If you want to run it on the gateway host, use `moltbot models auth setup-token --provider anthropic`. If you ran `claude setup-token` elsewhere, paste it on the gateway host with `moltbot models auth paste-token --provider anthropic`. See [Anthropic](/providers/anthropic).
654
+
655
+ ### Do you support Claude subscription auth (Claude Pro/Max)
656
+
657
+ Yes — via **setup-token**. Moltbot no longer reuses Claude Code CLI OAuth tokens; use a setup-token or an Anthropic API key. Generate the token anywhere and paste it on the gateway host. See [Anthropic](/providers/anthropic) and [OAuth](/concepts/oauth).
658
+
659
+ Note: Claude subscription access is governed by Anthropic’s terms. For production or multi‑user workloads, API keys are usually the safer choice.
660
+
661
+ ### Why am I seeing HTTP 429 ratelimiterror from Anthropic
662
+
663
+ That means your **Anthropic quota/rate limit** is exhausted for the current window. If you
664
+ use a **Claude subscription** (setup‑token or Claude Code OAuth), wait for the window to
665
+ reset or upgrade your plan. If you use an **Anthropic API key**, check the Anthropic Console
666
+ for usage/billing and raise limits as needed.
667
+
668
+ Tip: set a **fallback model** so Moltbot can keep replying while a provider is rate‑limited.
669
+ See [Models](/cli/models) and [OAuth](/concepts/oauth).
670
+
671
+ ### Is AWS Bedrock supported
672
+
673
+ Yes - via pi‑ai’s **Amazon Bedrock (Converse)** provider with **manual config**. You must supply AWS credentials/region on the gateway host and add a Bedrock provider entry in your models config. See [Amazon Bedrock](/bedrock) and [Model providers](/providers/models). If you prefer a managed key flow, an OpenAI‑compatible proxy in front of Bedrock is still a valid option.
674
+
675
+ ### How does Codex auth work
676
+
677
+ Moltbot supports **OpenAI Code (Codex)** via OAuth (ChatGPT sign-in). The wizard can run the OAuth flow and will set the default model to `openai-codex/gpt-5.2` when appropriate. See [Model providers](/concepts/model-providers) and [Wizard](/start/wizard).
678
+
679
+ ### Do you support OpenAI subscription auth Codex OAuth
680
+
681
+ Yes. Moltbot fully supports **OpenAI Code (Codex) subscription OAuth**. The onboarding wizard
682
+ can run the OAuth flow for you.
683
+
684
+ See [OAuth](/concepts/oauth), [Model providers](/concepts/model-providers), and [Wizard](/start/wizard).
685
+
686
+ ### How do I set up Gemini CLI OAuth
687
+
688
+ Gemini CLI uses a **plugin auth flow**, not a client id or secret in `moltbot.json`.
689
+
690
+ Steps:
691
+ 1) Enable the plugin: `moltbot plugins enable google-gemini-cli-auth`
692
+ 2) Login: `moltbot models auth login --provider google-gemini-cli --set-default`
693
+
694
+ This stores OAuth tokens in auth profiles on the gateway host. Details: [Model providers](/concepts/model-providers).
695
+
696
+ ### Is a local model OK for casual chats
697
+
698
+ Usually no. Moltbot needs large context + strong safety; small cards truncate and leak. If you must, run the **largest** MiniMax M2.1 build you can locally (LM Studio) and see [/gateway/local-models](/gateway/local-models). Smaller/quantized models increase prompt-injection risk - see [Security](/gateway/security).
699
+
700
+ ### How do I keep hosted model traffic in a specific region
701
+
702
+ Pick region-pinned endpoints. OpenRouter exposes US-hosted options for MiniMax, Kimi, and GLM; choose the US-hosted variant to keep data in-region. You can still list Anthropic/OpenAI alongside these by using `models.mode: "merge"` so fallbacks stay available while respecting the regioned provider you select.
703
+
704
+ ### Do I have to buy a Mac Mini to install this
705
+
706
+ No. Moltbot runs on macOS or Linux (Windows via WSL2). A Mac mini is optional - some people
707
+ buy one as an always‑on host, but a small VPS, home server, or Raspberry Pi‑class box works too.
708
+
709
+ You only need a Mac **for macOS‑only tools**. For iMessage, you can keep the Gateway on Linux
710
+ and run `imsg` on any Mac over SSH by pointing `channels.imessage.cliPath` at an SSH wrapper.
711
+ If you want other macOS‑only tools, run the Gateway on a Mac or pair a macOS node.
712
+
713
+ Docs: [iMessage](/channels/imessage), [Nodes](/nodes), [Mac remote mode](/platforms/mac/remote).
714
+
715
+ ### Do I need a Mac mini for iMessage support
716
+
717
+ You need **some macOS device** signed into Messages. It does **not** have to be a Mac mini -
718
+ any Mac works. Moltbot’s iMessage integrations run on macOS (BlueBubbles or `imsg`), while
719
+ the Gateway can run elsewhere.
720
+
721
+ Common setups:
722
+ - Run the Gateway on Linux/VPS, and point `channels.imessage.cliPath` at an SSH wrapper that
723
+ runs `imsg` on the Mac.
724
+ - Run everything on the Mac if you want the simplest single‑machine setup.
725
+
726
+ Docs: [iMessage](/channels/imessage), [BlueBubbles](/channels/bluebubbles),
727
+ [Mac remote mode](/platforms/mac/remote).
728
+
729
+ ### If I buy a Mac mini to run Moltbot can I connect it to my MacBook Pro
730
+
731
+ Yes. The **Mac mini can run the Gateway**, and your MacBook Pro can connect as a
732
+ **node** (companion device). Nodes don’t run the Gateway - they provide extra
733
+ capabilities like screen/camera/canvas and `system.run` on that device.
734
+
735
+ Common pattern:
736
+ - Gateway on the Mac mini (always‑on).
737
+ - MacBook Pro runs the macOS app or a node host and pairs to the Gateway.
738
+ - Use `moltbot nodes status` / `moltbot nodes list` to see it.
739
+
740
+ Docs: [Nodes](/nodes), [Nodes CLI](/cli/nodes).
741
+
742
+ ### Can I use Bun
743
+
744
+ Bun is **not recommended**. We see runtime bugs, especially with WhatsApp and Telegram.
745
+ Use **Node** for stable gateways.
746
+
747
+ If you still want to experiment with Bun, do it on a non‑production gateway
748
+ without WhatsApp/Telegram.
749
+
750
+ ### Telegram what goes in allowFrom
751
+
752
+ `channels.telegram.allowFrom` is **the human sender’s Telegram user ID** (numeric, recommended) or `@username`. It is not the bot username.
753
+
754
+ Safer (no third-party bot):
755
+ - DM your bot, then run `moltbot logs --follow` and read `from.id`.
756
+
757
+ Official Bot API:
758
+ - DM your bot, then call `https://api.telegram.org/bot<bot_token>/getUpdates` and read `message.from.id`.
759
+
760
+ Third-party (less private):
761
+ - DM `@userinfobot` or `@getidsbot`.
762
+
763
+ See [/channels/telegram](/channels/telegram#access-control-dms--groups).
764
+
765
+ ### Can multiple people use one WhatsApp number with different Moltbots
766
+
767
+ Yes, via **multi‑agent routing**. Bind each sender’s WhatsApp **DM** (peer `kind: "dm"`, sender E.164 like `+15551234567`) to a different `agentId`, so each person gets their own workspace and session store. Replies still come from the **same WhatsApp account**, and DM access control (`channels.whatsapp.dmPolicy` / `channels.whatsapp.allowFrom`) is global per WhatsApp account. See [Multi-Agent Routing](/concepts/multi-agent) and [WhatsApp](/channels/whatsapp).
768
+
769
+ ### Can I run a fast chat agent and an Opus for coding agent
770
+
771
+ Yes. Use multi‑agent routing: give each agent its own default model, then bind inbound routes (provider account or specific peers) to each agent. Example config lives in [Multi-Agent Routing](/concepts/multi-agent). See also [Models](/concepts/models) and [Configuration](/gateway/configuration).
772
+
773
+ ### Does Homebrew work on Linux
774
+
775
+ Yes. Homebrew supports Linux (Linuxbrew). Quick setup:
776
+
777
+ ```bash
778
+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
779
+ echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> ~/.profile
780
+ eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
781
+ brew install <formula>
782
+ ```
783
+
784
+ If you run Moltbot via systemd, ensure the service PATH includes `/home/linuxbrew/.linuxbrew/bin` (or your brew prefix) so `brew`-installed tools resolve in non‑login shells.
785
+ Recent builds also prepend common user bin dirs on Linux systemd services (for example `~/.local/bin`, `~/.npm-global/bin`, `~/.local/share/pnpm`, `~/.bun/bin`) and honor `PNPM_HOME`, `NPM_CONFIG_PREFIX`, `BUN_INSTALL`, `VOLTA_HOME`, `ASDF_DATA_DIR`, `NVM_DIR`, and `FNM_DIR` when set.
786
+
787
+ ### Whats the difference between the hackable git install and npm install
788
+
789
+ - **Hackable (git) install:** full source checkout, editable, best for contributors.
790
+ You run builds locally and can patch code/docs.
791
+ - **npm install:** global CLI install, no repo, best for “just run it.”
792
+ Updates come from npm dist‑tags.
793
+
794
+ Docs: [Getting started](/start/getting-started), [Updating](/install/updating).
795
+
796
+ ### Can I switch between npm and git installs later
797
+
798
+ Yes. Install the other flavor, then run Doctor so the gateway service points at the new entrypoint.
799
+ This **does not delete your data** - it only changes the Moltbot code install. Your state
800
+ (`~/.clawdbot`) and workspace (`~/clawd`) stay untouched.
801
+
802
+ From npm → git:
803
+
804
+ ```bash
805
+ git clone https://github.com/moltbot/moltbot.git
806
+ cd moltbot
807
+ pnpm install
808
+ pnpm build
809
+ moltbot doctor
810
+ moltbot gateway restart
811
+ ```
812
+
813
+ From git → npm:
814
+
815
+ ```bash
816
+ npm install -g moltbot@latest
817
+ moltbot doctor
818
+ moltbot gateway restart
819
+ ```
820
+
821
+ Doctor detects a gateway service entrypoint mismatch and offers to rewrite the service config to match the current install (use `--repair` in automation).
822
+
823
+ Backup tips: see [Backup strategy](/help/faq#whats-the-recommended-backup-strategy).
824
+
825
+ ### Should I run the Gateway on my laptop or a VPS
826
+
827
+ Short answer: **if you want 24/7 reliability, use a VPS**. If you want the
828
+ lowest friction and you’re okay with sleep/restarts, run it locally.
829
+
830
+ **Laptop (local Gateway)**
831
+ - **Pros:** no server cost, direct access to local files, live browser window.
832
+ - **Cons:** sleep/network drops = disconnects, OS updates/reboots interrupt, must stay awake.
833
+
834
+ **VPS / cloud**
835
+ - **Pros:** always‑on, stable network, no laptop sleep issues, easier to keep running.
836
+ - **Cons:** often run headless (use screenshots), remote file access only, you must SSH for updates.
837
+
838
+ **Moltbot-specific note:** WhatsApp/Telegram/Slack/Mattermost (plugin)/Discord all work fine from a VPS. The only real trade-off is **headless browser** vs a visible window. See [Browser](/tools/browser).
839
+
840
+ **Recommended default:** VPS if you had gateway disconnects before. Local is great when you’re actively using the Mac and want local file access or UI automation with a visible browser.
841
+
842
+ ### How important is it to run Moltbot on a dedicated machine
843
+
844
+ Not required, but **recommended for reliability and isolation**.
845
+
846
+ - **Dedicated host (VPS/Mac mini/Pi):** always‑on, fewer sleep/reboot interruptions, cleaner permissions, easier to keep running.
847
+ - **Shared laptop/desktop:** totally fine for testing and active use, but expect pauses when the machine sleeps or updates.
848
+
849
+ If you want the best of both worlds, keep the Gateway on a dedicated host and pair your laptop as a **node** for local screen/camera/exec tools. See [Nodes](/nodes).
850
+ For security guidance, read [Security](/gateway/security).
851
+
852
+ ### What are the minimum VPS requirements and recommended OS
853
+
854
+ Moltbot is lightweight. For a basic Gateway + one chat channel:
855
+
856
+ - **Absolute minimum:** 1 vCPU, 1GB RAM, ~500MB disk.
857
+ - **Recommended:** 1-2 vCPU, 2GB RAM or more for headroom (logs, media, multiple channels). Node tools and browser automation can be resource hungry.
858
+
859
+ OS: use **Ubuntu LTS** (or any modern Debian/Ubuntu). The Linux install path is best tested there.
860
+
861
+ Docs: [Linux](/platforms/linux), [VPS hosting](/vps).
862
+
863
+ ### Can I run Moltbot in a VM and what are the requirements
864
+
865
+ Yes. Treat a VM the same as a VPS: it needs to be always on, reachable, and have enough
866
+ RAM for the Gateway and any channels you enable.
867
+
868
+ Baseline guidance:
869
+ - **Absolute minimum:** 1 vCPU, 1GB RAM.
870
+ - **Recommended:** 2GB RAM or more if you run multiple channels, browser automation, or media tools.
871
+ - **OS:** Ubuntu LTS or another modern Debian/Ubuntu.
872
+
873
+ If you are on Windows, **WSL2 is the easiest VM style setup** and has the best tooling
874
+ compatibility. See [Windows](/platforms/windows), [VPS hosting](/vps).
875
+ If you are running macOS in a VM, see [macOS VM](/platforms/macos-vm).
876
+
877
+ ## What is Moltbot?
878
+
879
+ ### What is Moltbot in one paragraph
880
+
881
+ Moltbot is a personal AI assistant you run on your own devices. It replies on the messaging surfaces you already use (WhatsApp, Telegram, Slack, Mattermost (plugin), Discord, Google Chat, Signal, iMessage, WebChat) and can also do voice + a live Canvas on supported platforms. The **Gateway** is the always-on control plane; the assistant is the product.
882
+
883
+ ### Whats the value proposition
884
+
885
+ Moltbot is not “just a Claude wrapper.” It’s a **local-first control plane** that lets you run a
886
+ capable assistant on **your own hardware**, reachable from the chat apps you already use, with
887
+ stateful sessions, memory, and tools - without handing control of your workflows to a hosted
888
+ SaaS.
889
+
890
+ Highlights:
891
+ - **Your devices, your data:** run the Gateway wherever you want (Mac, Linux, VPS) and keep the
892
+ workspace + session history local.
893
+ - **Real channels, not a web sandbox:** WhatsApp/Telegram/Slack/Discord/Signal/iMessage/etc,
894
+ plus mobile voice and Canvas on supported platforms.
895
+ - **Model-agnostic:** use Anthropic, OpenAI, MiniMax, OpenRouter, etc., with per‑agent routing
896
+ and failover.
897
+ - **Local-only option:** run local models so **all data can stay on your device** if you want.
898
+ - **Multi-agent routing:** separate agents per channel, account, or task, each with its own
899
+ workspace and defaults.
900
+ - **Open source and hackable:** inspect, extend, and self-host without vendor lock‑in.
901
+
902
+ Docs: [Gateway](/gateway), [Channels](/channels), [Multi‑agent](/concepts/multi-agent),
903
+ [Memory](/concepts/memory).
904
+
905
+ ### I just set it up what should I do first
906
+
907
+ Good first projects:
908
+ - Build a website (WordPress, Shopify, or a simple static site).
909
+ - Prototype a mobile app (outline, screens, API plan).
910
+ - Organize files and folders (cleanup, naming, tagging).
911
+ - Connect Gmail and automate summaries or follow ups.
912
+
913
+ It can handle large tasks, but it works best when you split them into phases and
914
+ use sub agents for parallel work.
915
+
916
+ ### What are the top five everyday use cases for Moltbot
917
+
918
+ Everyday wins usually look like:
919
+ - **Personal briefings:** summaries of inbox, calendar, and news you care about.
920
+ - **Research and drafting:** quick research, summaries, and first drafts for emails or docs.
921
+ - **Reminders and follow ups:** cron or heartbeat driven nudges and checklists.
922
+ - **Browser automation:** filling forms, collecting data, and repeating web tasks.
923
+ - **Cross device coordination:** send a task from your phone, let the Gateway run it on a server, and get the result back in chat.
924
+
925
+ ### Can Moltbot help with lead gen outreach ads and blogs for a SaaS
926
+
927
+ Yes for **research, qualification, and drafting**. It can scan sites, build shortlists,
928
+ summarize prospects, and write outreach or ad copy drafts.
929
+
930
+ For **outreach or ad runs**, keep a human in the loop. Avoid spam, follow local laws and
931
+ platform policies, and review anything before it is sent. The safest pattern is to let
932
+ Moltbot draft and you approve.
933
+
934
+ Docs: [Security](/gateway/security).
935
+
936
+ ### What are the advantages vs Claude Code for web development
937
+
938
+ Moltbot is a **personal assistant** and coordination layer, not an IDE replacement. Use
939
+ Claude Code or Codex for the fastest direct coding loop inside a repo. Use Moltbot when you
940
+ want durable memory, cross-device access, and tool orchestration.
941
+
942
+ Advantages:
943
+ - **Persistent memory + workspace** across sessions
944
+ - **Multi-platform access** (WhatsApp, Telegram, TUI, WebChat)
945
+ - **Tool orchestration** (browser, files, scheduling, hooks)
946
+ - **Always-on Gateway** (run on a VPS, interact from anywhere)
947
+ - **Nodes** for local browser/screen/camera/exec
948
+
949
+ Showcase: https://molt.bot/showcase
950
+
951
+ ## Skills and automation
952
+
953
+ ### How do I customize skills without keeping the repo dirty
954
+
955
+ Use managed overrides instead of editing the repo copy. Put your changes in `~/.clawdbot/skills/<name>/SKILL.md` (or add a folder via `skills.load.extraDirs` in `~/.clawdbot/moltbot.json`). Precedence is `<workspace>/skills` > `~/.clawdbot/skills` > bundled, so managed overrides win without touching git. Only upstream-worthy edits should live in the repo and go out as PRs.
956
+
957
+ ### Can I load skills from a custom folder
958
+
959
+ Yes. Add extra directories via `skills.load.extraDirs` in `~/.clawdbot/moltbot.json` (lowest precedence). Default precedence remains: `<workspace>/skills` → `~/.clawdbot/skills` → bundled → `skills.load.extraDirs`. `clawdhub` installs into `./skills` by default, which Moltbot treats as `<workspace>/skills`.
960
+
961
+ ### How can I use different models for different tasks
962
+
963
+ Today the supported patterns are:
964
+ - **Cron jobs**: isolated jobs can set a `model` override per job.
965
+ - **Sub-agents**: route tasks to separate agents with different default models.
966
+ - **On-demand switch**: use `/model` to switch the current session model at any time.
967
+
968
+ See [Cron jobs](/automation/cron-jobs), [Multi-Agent Routing](/concepts/multi-agent), and [Slash commands](/tools/slash-commands).
969
+
970
+ ### The bot freezes while doing heavy work How do I offload that
971
+
972
+ Use **sub-agents** for long or parallel tasks. Sub-agents run in their own session,
973
+ return a summary, and keep your main chat responsive.
974
+
975
+ Ask your bot to "spawn a sub-agent for this task" or use `/subagents`.
976
+ Use `/status` in chat to see what the Gateway is doing right now (and whether it is busy).
977
+
978
+ Token tip: long tasks and sub-agents both consume tokens. If cost is a concern, set a
979
+ cheaper model for sub-agents via `agents.defaults.subagents.model`.
980
+
981
+ Docs: [Sub-agents](/tools/subagents).
982
+
983
+ ### Cron or reminders do not fire What should I check
984
+
985
+ Cron runs inside the Gateway process. If the Gateway is not running continuously,
986
+ scheduled jobs will not run.
987
+
988
+ Checklist:
989
+ - Confirm cron is enabled (`cron.enabled`) and `CLAWDBOT_SKIP_CRON` is not set.
990
+ - Check the Gateway is running 24/7 (no sleep/restarts).
991
+ - Verify timezone settings for the job (`--tz` vs host timezone).
992
+
993
+ Debug:
994
+ ```bash
995
+ moltbot cron run <jobId> --force
996
+ moltbot cron runs --id <jobId> --limit 50
997
+ ```
998
+
999
+ Docs: [Cron jobs](/automation/cron-jobs), [Cron vs Heartbeat](/automation/cron-vs-heartbeat).
1000
+
1001
+ ### How do I install skills on Linux
1002
+
1003
+ Use **ClawdHub** (CLI) or drop skills into your workspace. The macOS Skills UI isn’t available on Linux.
1004
+ Browse skills at https://clawdhub.com.
1005
+
1006
+ Install the ClawdHub CLI (pick one package manager):
1007
+
1008
+ ```bash
1009
+ npm i -g clawdhub
1010
+ ```
1011
+
1012
+ ```bash
1013
+ pnpm add -g clawdhub
1014
+ ```
1015
+
1016
+ ### Can Moltbot run tasks on a schedule or continuously in the background
1017
+
1018
+ Yes. Use the Gateway scheduler:
1019
+
1020
+ - **Cron jobs** for scheduled or recurring tasks (persist across restarts).
1021
+ - **Heartbeat** for “main session” periodic checks.
1022
+ - **Isolated jobs** for autonomous agents that post summaries or deliver to chats.
1023
+
1024
+ Docs: [Cron jobs](/automation/cron-jobs), [Cron vs Heartbeat](/automation/cron-vs-heartbeat),
1025
+ [Heartbeat](/gateway/heartbeat).
1026
+
1027
+ **Can I run Apple macOS only skills from Linux**
1028
+
1029
+ Not directly. macOS skills are gated by `metadata.moltbot.os` plus required binaries, and skills only appear in the system prompt when they are eligible on the **Gateway host**. On Linux, `darwin`-only skills (like `imsg`, `apple-notes`, `apple-reminders`) will not load unless you override the gating.
1030
+
1031
+ You have three supported patterns:
1032
+
1033
+ **Option A - run the Gateway on a Mac (simplest).**
1034
+ Run the Gateway where the macOS binaries exist, then connect from Linux in [remote mode](#how-do-i-run-moltbot-in-remote-mode-client-connects-to-a-gateway-elsewhere) or over Tailscale. The skills load normally because the Gateway host is macOS.
1035
+
1036
+ **Option B - use a macOS node (no SSH).**
1037
+ Run the Gateway on Linux, pair a macOS node (menubar app), and set **Node Run Commands** to "Always Ask" or "Always Allow" on the Mac. Moltbot can treat macOS-only skills as eligible when the required binaries exist on the node. The agent runs those skills via the `nodes` tool. If you choose "Always Ask", approving "Always Allow" in the prompt adds that command to the allowlist.
1038
+
1039
+ **Option C - proxy macOS binaries over SSH (advanced).**
1040
+ Keep the Gateway on Linux, but make the required CLI binaries resolve to SSH wrappers that run on a Mac. Then override the skill to allow Linux so it stays eligible.
1041
+
1042
+ 1) Create an SSH wrapper for the binary (example: `imsg`):
1043
+ ```bash
1044
+ #!/usr/bin/env bash
1045
+ set -euo pipefail
1046
+ exec ssh -T user@mac-host /opt/homebrew/bin/imsg "$@"
1047
+ ```
1048
+ 2) Put the wrapper on `PATH` on the Linux host (for example `~/bin/imsg`).
1049
+ 3) Override the skill metadata (workspace or `~/.clawdbot/skills`) to allow Linux:
1050
+ ```markdown
1051
+ ---
1052
+ name: imsg
1053
+ description: iMessage/SMS CLI for listing chats, history, watch, and sending.
1054
+ metadata: {"moltbot":{"os":["darwin","linux"],"requires":{"bins":["imsg"]}}}
1055
+ ---
1056
+ ```
1057
+ 4) Start a new session so the skills snapshot refreshes.
1058
+
1059
+ For iMessage specifically, you can also point `channels.imessage.cliPath` at an SSH wrapper (Moltbot only needs stdio). See [iMessage](/channels/imessage).
1060
+
1061
+ ### Do you have a Notion or HeyGen integration
1062
+
1063
+ Not built‑in today.
1064
+
1065
+ Options:
1066
+ - **Custom skill / plugin:** best for reliable API access (Notion/HeyGen both have APIs).
1067
+ - **Browser automation:** works without code but is slower and more fragile.
1068
+
1069
+ If you want to keep context per client (agency workflows), a simple pattern is:
1070
+ - One Notion page per client (context + preferences + active work).
1071
+ - Ask the agent to fetch that page at the start of a session.
1072
+
1073
+ If you want a native integration, open a feature request or build a skill
1074
+ targeting those APIs.
1075
+
1076
+ Install skills:
1077
+
1078
+ ```bash
1079
+ clawdhub install <skill-slug>
1080
+ clawdhub update --all
1081
+ ```
1082
+
1083
+ ClawdHub installs into `./skills` under your current directory (or falls back to your configured Moltbot workspace); Moltbot treats that as `<workspace>/skills` on the next session. For shared skills across agents, place them in `~/.clawdbot/skills/<name>/SKILL.md`. Some skills expect binaries installed via Homebrew; on Linux that means Linuxbrew (see the Homebrew Linux FAQ entry above). See [Skills](/tools/skills) and [ClawdHub](/tools/clawdhub).
1084
+
1085
+ ### How do I install the Chrome extension for browser takeover
1086
+
1087
+ Use the built-in installer, then load the unpacked extension in Chrome:
1088
+
1089
+ ```bash
1090
+ moltbot browser extension install
1091
+ moltbot browser extension path
1092
+ ```
1093
+
1094
+ Then Chrome → `chrome://extensions` → enable “Developer mode” → “Load unpacked” → pick that folder.
1095
+
1096
+ Full guide (including remote Gateway + security notes): [Chrome extension](/tools/chrome-extension)
1097
+
1098
+ If the Gateway runs on the same machine as Chrome (default setup), you usually **do not** need anything extra.
1099
+ If the Gateway runs elsewhere, run a node host on the browser machine so the Gateway can proxy browser actions.
1100
+ You still need to click the extension button on the tab you want to control (it doesn’t auto-attach).
1101
+
1102
+ ## Sandboxing and memory
1103
+
1104
+ ### Is there a dedicated sandboxing doc
1105
+
1106
+ Yes. See [Sandboxing](/gateway/sandboxing). For Docker-specific setup (full gateway in Docker or sandbox images), see [Docker](/install/docker).
1107
+
1108
+ **Can I keep DMs personal but make groups public sandboxed with one agent**
1109
+
1110
+ Yes - if your private traffic is **DMs** and your public traffic is **groups**.
1111
+
1112
+ Use `agents.defaults.sandbox.mode: "non-main"` so group/channel sessions (non-main keys) run in Docker, while the main DM session stays on-host. Then restrict what tools are available in sandboxed sessions via `tools.sandbox.tools`.
1113
+
1114
+ Setup walkthrough + example config: [Groups: personal DMs + public groups](/concepts/groups#pattern-personal-dms-public-groups-single-agent)
1115
+
1116
+ Key config reference: [Gateway configuration](/gateway/configuration#agentsdefaultssandbox)
1117
+
1118
+ ### How do I bind a host folder into the sandbox
1119
+
1120
+ Set `agents.defaults.sandbox.docker.binds` to `["host:path:mode"]` (e.g., `"/home/user/src:/src:ro"`). Global + per-agent binds merge; per-agent binds are ignored when `scope: "shared"`. Use `:ro` for anything sensitive and remember binds bypass the sandbox filesystem walls. See [Sandboxing](/gateway/sandboxing#custom-bind-mounts) and [Sandbox vs Tool Policy vs Elevated](/gateway/sandbox-vs-tool-policy-vs-elevated#bind-mounts-security-quick-check) for examples and safety notes.
1121
+
1122
+ ### How does memory work
1123
+
1124
+ Moltbot memory is just Markdown files in the agent workspace:
1125
+ - Daily notes in `memory/YYYY-MM-DD.md`
1126
+ - Curated long-term notes in `MEMORY.md` (main/private sessions only)
1127
+
1128
+ Moltbot also runs a **silent pre-compaction memory flush** to remind the model
1129
+ to write durable notes before auto-compaction. This only runs when the workspace
1130
+ is writable (read-only sandboxes skip it). See [Memory](/concepts/memory).
1131
+
1132
+ ### Memory keeps forgetting things How do I make it stick
1133
+
1134
+ Ask the bot to **write the fact to memory**. Long-term notes belong in `MEMORY.md`,
1135
+ short-term context goes into `memory/YYYY-MM-DD.md`.
1136
+
1137
+ This is still an area we are improving. It helps to remind the model to store memories;
1138
+ it will know what to do. If it keeps forgetting, verify the Gateway is using the same
1139
+ workspace on every run.
1140
+
1141
+ Docs: [Memory](/concepts/memory), [Agent workspace](/concepts/agent-workspace).
1142
+
1143
+ ### Does semantic memory search require an OpenAI API key
1144
+
1145
+ Only if you use **OpenAI embeddings**. Codex OAuth covers chat/completions and
1146
+ does **not** grant embeddings access, so **signing in with Codex (OAuth or the
1147
+ Codex CLI login)** does not help for semantic memory search. OpenAI embeddings
1148
+ still need a real API key (`OPENAI_API_KEY` or `models.providers.openai.apiKey`).
1149
+
1150
+ If you don’t set a provider explicitly, Moltbot auto-selects a provider when it
1151
+ can resolve an API key (auth profiles, `models.providers.*.apiKey`, or env vars).
1152
+ It prefers OpenAI if an OpenAI key resolves, otherwise Gemini if a Gemini key
1153
+ resolves. If neither key is available, memory search stays disabled until you
1154
+ configure it. If you have a local model path configured and present, Moltbot
1155
+ prefers `local`.
1156
+
1157
+ If you’d rather stay local, set `memorySearch.provider = "local"` (and optionally
1158
+ `memorySearch.fallback = "none"`). If you want Gemini embeddings, set
1159
+ `memorySearch.provider = "gemini"` and provide `GEMINI_API_KEY` (or
1160
+ `memorySearch.remote.apiKey`). We support **OpenAI, Gemini, or local** embedding
1161
+ models - see [Memory](/concepts/memory) for the setup details.
1162
+
1163
+ ### Does memory persist forever What are the limits
1164
+
1165
+ Memory files live on disk and persist until you delete them. The limit is your
1166
+ storage, not the model. The **session context** is still limited by the model
1167
+ context window, so long conversations can compact or truncate. That is why
1168
+ memory search exists - it pulls only the relevant parts back into context.
1169
+
1170
+ Docs: [Memory](/concepts/memory), [Context](/concepts/context).
1171
+
1172
+ ## Where things live on disk
1173
+
1174
+ ### Is all data used with Moltbot saved locally
1175
+
1176
+ No - **Moltbot’s state is local**, but **external services still see what you send them**.
1177
+
1178
+ - **Local by default:** sessions, memory files, config, and workspace live on the Gateway host
1179
+ (`~/.clawdbot` + your workspace directory).
1180
+ - **Remote by necessity:** messages you send to model providers (Anthropic/OpenAI/etc.) go to
1181
+ their APIs, and chat platforms (WhatsApp/Telegram/Slack/etc.) store message data on their
1182
+ servers.
1183
+ - **You control the footprint:** using local models keeps prompts on your machine, but channel
1184
+ traffic still goes through the channel’s servers.
1185
+
1186
+ Related: [Agent workspace](/concepts/agent-workspace), [Memory](/concepts/memory).
1187
+
1188
+ ### Where does Moltbot store its data
1189
+
1190
+ Everything lives under `$CLAWDBOT_STATE_DIR` (default: `~/.clawdbot`):
1191
+
1192
+ | Path | Purpose |
1193
+ |------|---------|
1194
+ | `$CLAWDBOT_STATE_DIR/moltbot.json` | Main config (JSON5) |
1195
+ | `$CLAWDBOT_STATE_DIR/credentials/oauth.json` | Legacy OAuth import (copied into auth profiles on first use) |
1196
+ | `$CLAWDBOT_STATE_DIR/agents/<agentId>/agent/auth-profiles.json` | Auth profiles (OAuth + API keys) |
1197
+ | `$CLAWDBOT_STATE_DIR/agents/<agentId>/agent/auth.json` | Runtime auth cache (managed automatically) |
1198
+ | `$CLAWDBOT_STATE_DIR/credentials/` | Provider state (e.g. `whatsapp/<accountId>/creds.json`) |
1199
+ | `$CLAWDBOT_STATE_DIR/agents/` | Per‑agent state (agentDir + sessions) |
1200
+ | `$CLAWDBOT_STATE_DIR/agents/<agentId>/sessions/` | Conversation history & state (per agent) |
1201
+ | `$CLAWDBOT_STATE_DIR/agents/<agentId>/sessions/sessions.json` | Session metadata (per agent) |
1202
+
1203
+ Legacy single‑agent path: `~/.clawdbot/agent/*` (migrated by `moltbot doctor`).
1204
+
1205
+ Your **workspace** (AGENTS.md, memory files, skills, etc.) is separate and configured via `agents.defaults.workspace` (default: `~/clawd`).
1206
+
1207
+ ### Where should AGENTSmd SOULmd USERmd MEMORYmd live
1208
+
1209
+ These files live in the **agent workspace**, not `~/.clawdbot`.
1210
+
1211
+ - **Workspace (per agent)**: `AGENTS.md`, `SOUL.md`, `IDENTITY.md`, `USER.md`,
1212
+ `MEMORY.md` (or `memory.md`), `memory/YYYY-MM-DD.md`, optional `HEARTBEAT.md`.
1213
+ - **State dir (`~/.clawdbot`)**: config, credentials, auth profiles, sessions, logs,
1214
+ and shared skills (`~/.clawdbot/skills`).
1215
+
1216
+ Default workspace is `~/clawd`, configurable via:
1217
+
1218
+ ```json5
1219
+ {
1220
+ agents: { defaults: { workspace: "~/clawd" } }
1221
+ }
1222
+ ```
1223
+
1224
+ If the bot “forgets” after a restart, confirm the Gateway is using the same
1225
+ workspace on every launch (and remember: remote mode uses the **gateway host’s**
1226
+ workspace, not your local laptop).
1227
+
1228
+ Tip: if you want a durable behavior or preference, ask the bot to **write it into
1229
+ AGENTS.md or MEMORY.md** rather than relying on chat history.
1230
+
1231
+ See [Agent workspace](/concepts/agent-workspace) and [Memory](/concepts/memory).
1232
+
1233
+ ### Whats the recommended backup strategy
1234
+
1235
+ Put your **agent workspace** in a **private** git repo and back it up somewhere
1236
+ private (for example GitHub private). This captures memory + AGENTS/SOUL/USER
1237
+ files, and lets you restore the assistant’s “mind” later.
1238
+
1239
+ Do **not** commit anything under `~/.clawdbot` (credentials, sessions, tokens).
1240
+ If you need a full restore, back up both the workspace and the state directory
1241
+ separately (see the migration question above).
1242
+
1243
+ Docs: [Agent workspace](/concepts/agent-workspace).
1244
+
1245
+ ### How do I completely uninstall Moltbot
1246
+
1247
+ See the dedicated guide: [Uninstall](/install/uninstall).
1248
+
1249
+ ### Can agents work outside the workspace
1250
+
1251
+ Yes. The workspace is the **default cwd** and memory anchor, not a hard sandbox.
1252
+ Relative paths resolve inside the workspace, but absolute paths can access other
1253
+ host locations unless sandboxing is enabled. If you need isolation, use
1254
+ [`agents.defaults.sandbox`](/gateway/sandboxing) or per‑agent sandbox settings. If you
1255
+ want a repo to be the default working directory, point that agent’s
1256
+ `workspace` to the repo root. The Moltbot repo is just source code; keep the
1257
+ workspace separate unless you intentionally want the agent to work inside it.
1258
+
1259
+ Example (repo as default cwd):
1260
+
1261
+ ```json5
1262
+ {
1263
+ agents: {
1264
+ defaults: {
1265
+ workspace: "~/Projects/my-repo"
1266
+ }
1267
+ }
1268
+ }
1269
+ ```
1270
+
1271
+ ### Im in remote mode where is the session store
1272
+
1273
+ Session state is owned by the **gateway host**. If you’re in remote mode, the session store you care about is on the remote machine, not your local laptop. See [Session management](/concepts/session).
1274
+
1275
+ ## Config basics
1276
+
1277
+ ### What format is the config Where is it
1278
+
1279
+ Moltbot reads an optional **JSON5** config from `$CLAWDBOT_CONFIG_PATH` (default: `~/.clawdbot/moltbot.json`):
1280
+
1281
+ ```
1282
+ $CLAWDBOT_CONFIG_PATH
1283
+ ```
1284
+
1285
+ If the file is missing, it uses safe‑ish defaults (including a default workspace of `~/clawd`).
1286
+
1287
+ ### I set gatewaybind lan or tailnet and now nothing listens the UI says unauthorized
1288
+
1289
+ Non-loopback binds **require auth**. Configure `gateway.auth.mode` + `gateway.auth.token` (or use `CLAWDBOT_GATEWAY_TOKEN`).
1290
+
1291
+ ```json5
1292
+ {
1293
+ gateway: {
1294
+ bind: "lan",
1295
+ auth: {
1296
+ mode: "token",
1297
+ token: "replace-me"
1298
+ }
1299
+ }
1300
+ }
1301
+ ```
1302
+
1303
+ Notes:
1304
+ - `gateway.remote.token` is for **remote CLI calls** only; it does not enable local gateway auth.
1305
+ - The Control UI authenticates via `connect.params.auth.token` (stored in app/UI settings). Avoid putting tokens in URLs.
1306
+
1307
+ ### Why do I need a token on localhost now
1308
+
1309
+ The wizard generates a gateway token by default (even on loopback) so **local WS clients must authenticate**. This blocks other local processes from calling the Gateway. Paste the token into the Control UI settings (or your client config) to connect.
1310
+
1311
+ If you **really** want open loopback, remove `gateway.auth` from your config. Doctor can generate a token for you any time: `moltbot doctor --generate-gateway-token`.
1312
+
1313
+ ### Do I have to restart after changing config
1314
+
1315
+ The Gateway watches the config and supports hot‑reload:
1316
+
1317
+ - `gateway.reload.mode: "hybrid"` (default): hot‑apply safe changes, restart for critical ones
1318
+ - `hot`, `restart`, `off` are also supported
1319
+
1320
+ ### How do I enable web search and web fetch
1321
+
1322
+ `web_fetch` works without an API key. `web_search` requires a Brave Search API
1323
+ key. **Recommended:** run `moltbot configure --section web` to store it in
1324
+ `tools.web.search.apiKey`. Environment alternative: set `BRAVE_API_KEY` for the
1325
+ Gateway process.
1326
+
1327
+ ```json5
1328
+ {
1329
+ tools: {
1330
+ web: {
1331
+ search: {
1332
+ enabled: true,
1333
+ apiKey: "BRAVE_API_KEY_HERE",
1334
+ maxResults: 5
1335
+ },
1336
+ fetch: {
1337
+ enabled: true
1338
+ }
1339
+ }
1340
+ }
1341
+ }
1342
+ ```
1343
+
1344
+ Notes:
1345
+ - If you use allowlists, add `web_search`/`web_fetch` or `group:web`.
1346
+ - `web_fetch` is enabled by default (unless explicitly disabled).
1347
+ - Daemons read env vars from `~/.clawdbot/.env` (or the service environment).
1348
+
1349
+ Docs: [Web tools](/tools/web).
1350
+
1351
+ ### How do I run a central Gateway with specialized workers across devices
1352
+
1353
+ The common pattern is **one Gateway** (e.g. Raspberry Pi) plus **nodes** and **agents**:
1354
+
1355
+ - **Gateway (central):** owns channels (Signal/WhatsApp), routing, and sessions.
1356
+ - **Nodes (devices):** Macs/iOS/Android connect as peripherals and expose local tools (`system.run`, `canvas`, `camera`).
1357
+ - **Agents (workers):** separate brains/workspaces for special roles (e.g. “Hetzner ops”, “Personal data”).
1358
+ - **Sub‑agents:** spawn background work from a main agent when you want parallelism.
1359
+ - **TUI:** connect to the Gateway and switch agents/sessions.
1360
+
1361
+ Docs: [Nodes](/nodes), [Remote access](/gateway/remote), [Multi-Agent Routing](/concepts/multi-agent), [Sub-agents](/tools/subagents), [TUI](/tui).
1362
+
1363
+ ### Can the Moltbot browser run headless
1364
+
1365
+ Yes. It’s a config option:
1366
+
1367
+ ```json5
1368
+ {
1369
+ browser: { headless: true },
1370
+ agents: {
1371
+ defaults: {
1372
+ sandbox: { browser: { headless: true } }
1373
+ }
1374
+ }
1375
+ }
1376
+ ```
1377
+
1378
+ Default is `false` (headful). Headless is more likely to trigger anti‑bot checks on some sites. See [Browser](/tools/browser).
1379
+
1380
+ Headless uses the **same Chromium engine** and works for most automation (forms, clicks, scraping, logins). The main differences:
1381
+ - No visible browser window (use screenshots if you need visuals).
1382
+ - Some sites are stricter about automation in headless mode (CAPTCHAs, anti‑bot).
1383
+ For example, X/Twitter often blocks headless sessions.
1384
+
1385
+ ### How do I use Brave for browser control
1386
+
1387
+ Set `browser.executablePath` to your Brave binary (or any Chromium-based browser) and restart the Gateway.
1388
+ See the full config examples in [Browser](/tools/browser#use-brave-or-another-chromium-based-browser).
1389
+
1390
+ ## Remote gateways + nodes
1391
+
1392
+ ### How do commands propagate between Telegram the gateway and nodes
1393
+
1394
+ Telegram messages are handled by the **gateway**. The gateway runs the agent and
1395
+ only then calls nodes over the **Gateway WebSocket** when a node tool is needed:
1396
+
1397
+ Telegram → Gateway → Agent → `node.*` → Node → Gateway → Telegram
1398
+
1399
+ Nodes don’t see inbound provider traffic; they only receive node RPC calls.
1400
+
1401
+ ### How can my agent access my computer if the Gateway is hosted remotely
1402
+
1403
+ Short answer: **pair your computer as a node**. The Gateway runs elsewhere, but it can
1404
+ call `node.*` tools (screen, camera, system) on your local machine over the Gateway WebSocket.
1405
+
1406
+ Typical setup:
1407
+ 1) Run the Gateway on the always‑on host (VPS/home server).
1408
+ 2) Put the Gateway host + your computer on the same tailnet.
1409
+ 3) Ensure the Gateway WS is reachable (tailnet bind or SSH tunnel).
1410
+ 4) Open the macOS app locally and connect in **Remote over SSH** mode (or direct tailnet)
1411
+ so it can register as a node.
1412
+ 5) Approve the node on the Gateway:
1413
+ ```bash
1414
+ moltbot nodes pending
1415
+ moltbot nodes approve <requestId>
1416
+ ```
1417
+
1418
+ No separate TCP bridge is required; nodes connect over the Gateway WebSocket.
1419
+
1420
+ Security reminder: pairing a macOS node allows `system.run` on that machine. Only
1421
+ pair devices you trust, and review [Security](/gateway/security).
1422
+
1423
+ Docs: [Nodes](/nodes), [Gateway protocol](/gateway/protocol), [macOS remote mode](/platforms/mac/remote), [Security](/gateway/security).
1424
+
1425
+ ### Tailscale is connected but I get no replies What now
1426
+
1427
+ Check the basics:
1428
+ - Gateway is running: `moltbot gateway status`
1429
+ - Gateway health: `moltbot status`
1430
+ - Channel health: `moltbot channels status`
1431
+
1432
+ Then verify auth and routing:
1433
+ - If you use Tailscale Serve, make sure `gateway.auth.allowTailscale` is set correctly.
1434
+ - If you connect via SSH tunnel, confirm the local tunnel is up and points at the right port.
1435
+ - Confirm your allowlists (DM or group) include your account.
1436
+
1437
+ Docs: [Tailscale](/gateway/tailscale), [Remote access](/gateway/remote), [Channels](/channels).
1438
+
1439
+ ### Can two Moltbots talk to each other local VPS
1440
+
1441
+ Yes. There is no built-in "bot-to-bot" bridge, but you can wire it up in a few
1442
+ reliable ways:
1443
+
1444
+ **Simplest:** use a normal chat channel both bots can access (Telegram/Slack/WhatsApp).
1445
+ Have Bot A send a message to Bot B, then let Bot B reply as usual.
1446
+
1447
+ **CLI bridge (generic):** run a script that calls the other Gateway with
1448
+ `moltbot agent --message ... --deliver`, targeting a chat where the other bot
1449
+ listens. If one bot is on a remote VPS, point your CLI at that remote Gateway
1450
+ via SSH/Tailscale (see [Remote access](/gateway/remote)).
1451
+
1452
+ Example pattern (run from a machine that can reach the target Gateway):
1453
+ ```bash
1454
+ moltbot agent --message "Hello from local bot" --deliver --channel telegram --reply-to <chat-id>
1455
+ ```
1456
+
1457
+ Tip: add a guardrail so the two bots do not loop endlessly (mention-only, channel
1458
+ allowlists, or a "do not reply to bot messages" rule).
1459
+
1460
+ Docs: [Remote access](/gateway/remote), [Agent CLI](/cli/agent), [Agent send](/tools/agent-send).
1461
+
1462
+ ### Do I need separate VPSes for multiple agents
1463
+
1464
+ No. One Gateway can host multiple agents, each with its own workspace, model defaults,
1465
+ and routing. That is the normal setup and it is much cheaper and simpler than running
1466
+ one VPS per agent.
1467
+
1468
+ Use separate VPSes only when you need hard isolation (security boundaries) or very
1469
+ different configs that you do not want to share. Otherwise, keep one Gateway and
1470
+ use multiple agents or sub-agents.
1471
+
1472
+ ### Is there a benefit to using a node on my personal laptop instead of SSH from a VPS
1473
+
1474
+ Yes - nodes are the first‑class way to reach your laptop from a remote Gateway, and they
1475
+ unlock more than shell access. The Gateway runs on macOS/Linux (Windows via WSL2) and is
1476
+ lightweight (a small VPS or Raspberry Pi-class box is fine; 4 GB RAM is plenty), so a common
1477
+ setup is an always‑on host plus your laptop as a node.
1478
+
1479
+ - **No inbound SSH required.** Nodes connect out to the Gateway WebSocket and use device pairing.
1480
+ - **Safer execution controls.** `system.run` is gated by node allowlists/approvals on that laptop.
1481
+ - **More device tools.** Nodes expose `canvas`, `camera`, and `screen` in addition to `system.run`.
1482
+ - **Local browser automation.** Keep the Gateway on a VPS, but run Chrome locally and relay control
1483
+ with the Chrome extension + a node host on the laptop.
1484
+
1485
+ SSH is fine for ad‑hoc shell access, but nodes are simpler for ongoing agent workflows and
1486
+ device automation.
1487
+
1488
+ Docs: [Nodes](/nodes), [Nodes CLI](/cli/nodes), [Chrome extension](/tools/chrome-extension).
1489
+
1490
+ ### Should I install on a second laptop or just add a node
1491
+
1492
+ If you only need **local tools** (screen/camera/exec) on the second laptop, add it as a
1493
+ **node**. That keeps a single Gateway and avoids duplicated config. Local node tools are
1494
+ currently macOS-only, but we plan to extend them to other OSes.
1495
+
1496
+ Install a second Gateway only when you need **hard isolation** or two fully separate bots.
1497
+
1498
+ Docs: [Nodes](/nodes), [Nodes CLI](/cli/nodes), [Multiple gateways](/gateway/multiple-gateways).
1499
+
1500
+ ### Do nodes run a gateway service
1501
+
1502
+ No. Only **one gateway** should run per host unless you intentionally run isolated profiles (see [Multiple gateways](/gateway/multiple-gateways)). Nodes are peripherals that connect
1503
+ to the gateway (iOS/Android nodes, or macOS “node mode” in the menubar app). For headless node
1504
+ hosts and CLI control, see [Node host CLI](/cli/node).
1505
+
1506
+ A full restart is required for `gateway`, `discovery`, and `canvasHost` changes.
1507
+
1508
+ ### Is there an API RPC way to apply config
1509
+
1510
+ Yes. `config.apply` validates + writes the full config and restarts the Gateway as part of the operation.
1511
+
1512
+ ### configapply wiped my config How do I recover and avoid this
1513
+
1514
+ `config.apply` replaces the **entire config**. If you send a partial object, everything
1515
+ else is removed.
1516
+
1517
+ Recover:
1518
+ - Restore from backup (git or a copied `~/.clawdbot/moltbot.json`).
1519
+ - If you have no backup, re-run `moltbot doctor` and reconfigure channels/models.
1520
+ - If this was unexpected, file a bug and include your last known config or any backup.
1521
+ - A local coding agent can often reconstruct a working config from logs or history.
1522
+
1523
+ Avoid it:
1524
+ - Use `moltbot config set` for small changes.
1525
+ - Use `moltbot configure` for interactive edits.
1526
+
1527
+ Docs: [Config](/cli/config), [Configure](/cli/configure), [Doctor](/gateway/doctor).
1528
+
1529
+ ### Whats a minimal sane config for a first install
1530
+
1531
+ ```json5
1532
+ {
1533
+ agents: { defaults: { workspace: "~/clawd" } },
1534
+ channels: { whatsapp: { allowFrom: ["+15555550123"] } }
1535
+ }
1536
+ ```
1537
+
1538
+ This sets your workspace and restricts who can trigger the bot.
1539
+
1540
+ ### How do I set up Tailscale on a VPS and connect from my Mac
1541
+
1542
+ Minimal steps:
1543
+
1544
+ 1) **Install + login on the VPS**
1545
+ ```bash
1546
+ curl -fsSL https://tailscale.com/install.sh | sh
1547
+ sudo tailscale up
1548
+ ```
1549
+ 2) **Install + login on your Mac**
1550
+ - Use the Tailscale app and sign in to the same tailnet.
1551
+ 3) **Enable MagicDNS (recommended)**
1552
+ - In the Tailscale admin console, enable MagicDNS so the VPS has a stable name.
1553
+ 4) **Use the tailnet hostname**
1554
+ - SSH: `ssh user@your-vps.tailnet-xxxx.ts.net`
1555
+ - Gateway WS: `ws://your-vps.tailnet-xxxx.ts.net:18789`
1556
+
1557
+ If you want the Control UI without SSH, use Tailscale Serve on the VPS:
1558
+ ```bash
1559
+ moltbot gateway --tailscale serve
1560
+ ```
1561
+ This keeps the gateway bound to loopback and exposes HTTPS via Tailscale. See [Tailscale](/gateway/tailscale).
1562
+
1563
+ ### How do I connect a Mac node to a remote Gateway Tailscale Serve
1564
+
1565
+ Serve exposes the **Gateway Control UI + WS**. Nodes connect over the same Gateway WS endpoint.
1566
+
1567
+ Recommended setup:
1568
+ 1) **Make sure the VPS + Mac are on the same tailnet**.
1569
+ 2) **Use the macOS app in Remote mode** (SSH target can be the tailnet hostname).
1570
+ The app will tunnel the Gateway port and connect as a node.
1571
+ 3) **Approve the node** on the gateway:
1572
+ ```bash
1573
+ moltbot nodes pending
1574
+ moltbot nodes approve <requestId>
1575
+ ```
1576
+
1577
+ Docs: [Gateway protocol](/gateway/protocol), [Discovery](/gateway/discovery), [macOS remote mode](/platforms/mac/remote).
1578
+
1579
+ ## Env vars and .env loading
1580
+
1581
+ ### How does Moltbot load environment variables
1582
+
1583
+ Moltbot reads env vars from the parent process (shell, launchd/systemd, CI, etc.) and additionally loads:
1584
+
1585
+ - `.env` from the current working directory
1586
+ - a global fallback `.env` from `~/.clawdbot/.env` (aka `$CLAWDBOT_STATE_DIR/.env`)
1587
+
1588
+ Neither `.env` file overrides existing env vars.
1589
+
1590
+ You can also define inline env vars in config (applied only if missing from the process env):
1591
+
1592
+ ```json5
1593
+ {
1594
+ env: {
1595
+ OPENROUTER_API_KEY: "sk-or-...",
1596
+ vars: { GROQ_API_KEY: "gsk-..." }
1597
+ }
1598
+ }
1599
+ ```
1600
+
1601
+ See [/environment](/environment) for full precedence and sources.
1602
+
1603
+ ### I started the Gateway via the service and my env vars disappeared What now
1604
+
1605
+ Two common fixes:
1606
+
1607
+ 1) Put the missing keys in `~/.clawdbot/.env` so they’re picked up even when the service doesn’t inherit your shell env.
1608
+ 2) Enable shell import (opt‑in convenience):
1609
+
1610
+ ```json5
1611
+ {
1612
+ env: {
1613
+ shellEnv: {
1614
+ enabled: true,
1615
+ timeoutMs: 15000
1616
+ }
1617
+ }
1618
+ }
1619
+ ```
1620
+
1621
+ This runs your login shell and imports only missing expected keys (never overrides). Env var equivalents:
1622
+ `CLAWDBOT_LOAD_SHELL_ENV=1`, `CLAWDBOT_SHELL_ENV_TIMEOUT_MS=15000`.
1623
+
1624
+ ### I set COPILOTGITHUBTOKEN but models status shows Shell env off Why
1625
+
1626
+ `moltbot models status` reports whether **shell env import** is enabled. “Shell env: off”
1627
+ does **not** mean your env vars are missing - it just means Moltbot won’t load
1628
+ your login shell automatically.
1629
+
1630
+ If the Gateway runs as a service (launchd/systemd), it won’t inherit your shell
1631
+ environment. Fix by doing one of these:
1632
+
1633
+ 1) Put the token in `~/.clawdbot/.env`:
1634
+ ```
1635
+ COPILOT_GITHUB_TOKEN=...
1636
+ ```
1637
+ 2) Or enable shell import (`env.shellEnv.enabled: true`).
1638
+ 3) Or add it to your config `env` block (applies only if missing).
1639
+
1640
+ Then restart the gateway and recheck:
1641
+ ```bash
1642
+ moltbot models status
1643
+ ```
1644
+
1645
+ Copilot tokens are read from `COPILOT_GITHUB_TOKEN` (also `GH_TOKEN` / `GITHUB_TOKEN`).
1646
+ See [/concepts/model-providers](/concepts/model-providers) and [/environment](/environment).
1647
+
1648
+ ## Sessions & multiple chats
1649
+
1650
+ ### How do I start a fresh conversation
1651
+
1652
+ Send `/new` or `/reset` as a standalone message. See [Session management](/concepts/session).
1653
+
1654
+ ### Do sessions reset automatically if I never send new
1655
+
1656
+ Yes. Sessions expire after `session.idleMinutes` (default **60**). The **next**
1657
+ message starts a fresh session id for that chat key. This does not delete
1658
+ transcripts - it just starts a new session.
1659
+
1660
+ ```json5
1661
+ {
1662
+ session: {
1663
+ idleMinutes: 240
1664
+ }
1665
+ }
1666
+ ```
1667
+
1668
+ ### Is there a way to make a team of Moltbots one CEO and many agents
1669
+
1670
+ Yes, via **multi-agent routing** and **sub-agents**. You can create one coordinator
1671
+ agent and several worker agents with their own workspaces and models.
1672
+
1673
+ That said, this is best seen as a **fun experiment**. It is token heavy and often
1674
+ less efficient than using one bot with separate sessions. The typical model we
1675
+ envision is one bot you talk to, with different sessions for parallel work. That
1676
+ bot can also spawn sub-agents when needed.
1677
+
1678
+ Docs: [Multi-agent routing](/concepts/multi-agent), [Sub-agents](/tools/subagents), [Agents CLI](/cli/agents).
1679
+
1680
+ ### Why did context get truncated midtask How do I prevent it
1681
+
1682
+ Session context is limited by the model window. Long chats, large tool outputs, or many
1683
+ files can trigger compaction or truncation.
1684
+
1685
+ What helps:
1686
+ - Ask the bot to summarize the current state and write it to a file.
1687
+ - Use `/compact` before long tasks, and `/new` when switching topics.
1688
+ - Keep important context in the workspace and ask the bot to read it back.
1689
+ - Use sub-agents for long or parallel work so the main chat stays smaller.
1690
+ - Pick a model with a larger context window if this happens often.
1691
+
1692
+ ### How do I completely reset Moltbot but keep it installed
1693
+
1694
+ Use the reset command:
1695
+
1696
+ ```bash
1697
+ moltbot reset
1698
+ ```
1699
+
1700
+ Non-interactive full reset:
1701
+
1702
+ ```bash
1703
+ moltbot reset --scope full --yes --non-interactive
1704
+ ```
1705
+
1706
+ Then re-run onboarding:
1707
+
1708
+ ```bash
1709
+ moltbot onboard --install-daemon
1710
+ ```
1711
+
1712
+ Notes:
1713
+ - The onboarding wizard also offers **Reset** if it sees an existing config. See [Wizard](/start/wizard).
1714
+ - If you used profiles (`--profile` / `CLAWDBOT_PROFILE`), reset each state dir (defaults are `~/.clawdbot-<profile>`).
1715
+ - Dev reset: `moltbot gateway --dev --reset` (dev-only; wipes dev config + credentials + sessions + workspace).
1716
+
1717
+ ### Im getting context too large errors how do I reset or compact
1718
+
1719
+ Use one of these:
1720
+
1721
+ - **Compact** (keeps the conversation but summarizes older turns):
1722
+ ```
1723
+ /compact
1724
+ ```
1725
+ or `/compact <instructions>` to guide the summary.
1726
+
1727
+ - **Reset** (fresh session ID for the same chat key):
1728
+ ```
1729
+ /new
1730
+ /reset
1731
+ ```
1732
+
1733
+ If it keeps happening:
1734
+ - Enable or tune **session pruning** (`agents.defaults.contextPruning`) to trim old tool output.
1735
+ - Use a model with a larger context window.
1736
+
1737
+ Docs: [Compaction](/concepts/compaction), [Session pruning](/concepts/session-pruning), [Session management](/concepts/session).
1738
+
1739
+ ### Why am I seeing LLM request rejected messagesNcontentXtooluseinput Field required
1740
+
1741
+ This is a provider validation error: the model emitted a `tool_use` block without the required
1742
+ `input`. It usually means the session history is stale or corrupted (often after long threads
1743
+ or a tool/schema change).
1744
+
1745
+ Fix: start a fresh session with `/new` (standalone message).
1746
+
1747
+ ### Why am I getting heartbeat messages every 30 minutes
1748
+
1749
+ Heartbeats run every **30m** by default. Tune or disable them:
1750
+
1751
+ ```json5
1752
+ {
1753
+ agents: {
1754
+ defaults: {
1755
+ heartbeat: {
1756
+ every: "2h" // or "0m" to disable
1757
+ }
1758
+ }
1759
+ }
1760
+ }
1761
+ ```
1762
+
1763
+ If `HEARTBEAT.md` exists but is effectively empty (only blank lines and markdown
1764
+ headers like `# Heading`), Moltbot skips the heartbeat run to save API calls.
1765
+ If the file is missing, the heartbeat still runs and the model decides what to do.
1766
+
1767
+ Per-agent overrides use `agents.list[].heartbeat`. Docs: [Heartbeat](/gateway/heartbeat).
1768
+
1769
+ ### Do I need to add a bot account to a WhatsApp group
1770
+
1771
+ No. Moltbot runs on **your own account**, so if you’re in the group, Moltbot can see it.
1772
+ By default, group replies are blocked until you allow senders (`groupPolicy: "allowlist"`).
1773
+
1774
+ If you want only **you** to be able to trigger group replies:
1775
+
1776
+ ```json5
1777
+ {
1778
+ channels: {
1779
+ whatsapp: {
1780
+ groupPolicy: "allowlist",
1781
+ groupAllowFrom: ["+15551234567"]
1782
+ }
1783
+ }
1784
+ }
1785
+ ```
1786
+
1787
+ ### How do I get the JID of a WhatsApp group
1788
+
1789
+ Option 1 (fastest): tail logs and send a test message in the group:
1790
+
1791
+ ```bash
1792
+ moltbot logs --follow --json
1793
+ ```
1794
+
1795
+ Look for `chatId` (or `from`) ending in `@g.us`, like:
1796
+ `1234567890-1234567890@g.us`.
1797
+
1798
+ Option 2 (if already configured/allowlisted): list groups from config:
1799
+
1800
+ ```bash
1801
+ moltbot directory groups list --channel whatsapp
1802
+ ```
1803
+
1804
+ Docs: [WhatsApp](/channels/whatsapp), [Directory](/cli/directory), [Logs](/cli/logs).
1805
+
1806
+ ### Why doesnt Moltbot reply in a group
1807
+
1808
+ Two common causes:
1809
+ - Mention gating is on (default). You must @mention the bot (or match `mentionPatterns`).
1810
+ - You configured `channels.whatsapp.groups` without `"*"` and the group isn’t allowlisted.
1811
+
1812
+ See [Groups](/concepts/groups) and [Group messages](/concepts/group-messages).
1813
+
1814
+ ### Do groupsthreads share context with DMs
1815
+
1816
+ Direct chats collapse to the main session by default. Groups/channels have their own session keys, and Telegram topics / Discord threads are separate sessions. See [Groups](/concepts/groups) and [Group messages](/concepts/group-messages).
1817
+
1818
+ ### How many workspaces and agents can I create
1819
+
1820
+ No hard limits. Dozens (even hundreds) are fine, but watch for:
1821
+
1822
+ - **Disk growth:** sessions + transcripts live under `~/.clawdbot/agents/<agentId>/sessions/`.
1823
+ - **Token cost:** more agents means more concurrent model usage.
1824
+ - **Ops overhead:** per-agent auth profiles, workspaces, and channel routing.
1825
+
1826
+ Tips:
1827
+ - Keep one **active** workspace per agent (`agents.defaults.workspace`).
1828
+ - Prune old sessions (delete JSONL or store entries) if disk grows.
1829
+ - Use `moltbot doctor` to spot stray workspaces and profile mismatches.
1830
+
1831
+ ### Can I run multiple bots or chats at the same time Slack and how should I set that up
1832
+
1833
+ Yes. Use **Multi‑Agent Routing** to run multiple isolated agents and route inbound messages by
1834
+ channel/account/peer. Slack is supported as a channel and can be bound to specific agents.
1835
+
1836
+ Browser access is powerful but not “do anything a human can” - anti‑bot, CAPTCHAs, and MFA can
1837
+ still block automation. For the most reliable browser control, use the Chrome extension relay
1838
+ on the machine that runs the browser (and keep the Gateway anywhere).
1839
+
1840
+ Best‑practice setup:
1841
+ - Always‑on Gateway host (VPS/Mac mini).
1842
+ - One agent per role (bindings).
1843
+ - Slack channel(s) bound to those agents.
1844
+ - Local browser via extension relay (or a node) when needed.
1845
+
1846
+ Docs: [Multi‑Agent Routing](/concepts/multi-agent), [Slack](/channels/slack),
1847
+ [Browser](/tools/browser), [Chrome extension](/tools/chrome-extension), [Nodes](/nodes).
1848
+
1849
+ ## Models: defaults, selection, aliases, switching
1850
+
1851
+ ### What is the default model
1852
+
1853
+ Moltbot’s default model is whatever you set as:
1854
+
1855
+ ```
1856
+ agents.defaults.model.primary
1857
+ ```
1858
+
1859
+ Models are referenced as `provider/model` (example: `anthropic/claude-opus-4-5`). If you omit the provider, Moltbot currently assumes `anthropic` as a temporary deprecation fallback - but you should still **explicitly** set `provider/model`.
1860
+
1861
+ ### What model do you recommend
1862
+
1863
+ **Recommended default:** `anthropic/claude-opus-4-5`.
1864
+ **Good alternative:** `anthropic/claude-sonnet-4-5`.
1865
+ **Reliable (less character):** `openai/gpt-5.2` - nearly as good as Opus, just less personality.
1866
+ **Budget:** `zai/glm-4.7`.
1867
+
1868
+ MiniMax M2.1 has its own docs: [MiniMax](/providers/minimax) and
1869
+ [Local models](/gateway/local-models).
1870
+
1871
+ Rule of thumb: use the **best model you can afford** for high-stakes work, and a cheaper
1872
+ model for routine chat or summaries. You can route models per agent and use sub-agents to
1873
+ parallelize long tasks (each sub-agent consumes tokens). See [Models](/concepts/models) and
1874
+ [Sub-agents](/tools/subagents).
1875
+
1876
+ Strong warning: weaker/over-quantized models are more vulnerable to prompt
1877
+ injection and unsafe behavior. See [Security](/gateway/security).
1878
+
1879
+ More context: [Models](/concepts/models).
1880
+
1881
+ ### Can I use selfhosted models llamacpp vLLM Ollama
1882
+
1883
+ Yes. If your local server exposes an OpenAI-compatible API, you can point a
1884
+ custom provider at it. Ollama is supported directly and is the easiest path.
1885
+
1886
+ Security note: smaller or heavily quantized models are more vulnerable to prompt
1887
+ injection. We strongly recommend **large models** for any bot that can use tools.
1888
+ If you still want small models, enable sandboxing and strict tool allowlists.
1889
+
1890
+ Docs: [Ollama](/providers/ollama), [Local models](/gateway/local-models),
1891
+ [Model providers](/concepts/model-providers), [Security](/gateway/security),
1892
+ [Sandboxing](/gateway/sandboxing).
1893
+
1894
+ ### How do I switch models without wiping my config
1895
+
1896
+ Use **model commands** or edit only the **model** fields. Avoid full config replaces.
1897
+
1898
+ Safe options:
1899
+ - `/model` in chat (quick, per-session)
1900
+ - `moltbot models set ...` (updates just model config)
1901
+ - `moltbot configure --section models` (interactive)
1902
+ - edit `agents.defaults.model` in `~/.clawdbot/moltbot.json`
1903
+
1904
+ Avoid `config.apply` with a partial object unless you intend to replace the whole config.
1905
+ If you did overwrite config, restore from backup or re-run `moltbot doctor` to repair.
1906
+
1907
+ Docs: [Models](/concepts/models), [Configure](/cli/configure), [Config](/cli/config), [Doctor](/gateway/doctor).
1908
+
1909
+ ### What do Clawd Flawd and Krill use for models
1910
+
1911
+ - **Clawd + Flawd:** Anthropic Opus (`anthropic/claude-opus-4-5`) - see [Anthropic](/providers/anthropic).
1912
+ - **Krill:** MiniMax M2.1 (`minimax/MiniMax-M2.1`) - see [MiniMax](/providers/minimax).
1913
+
1914
+ ### How do I switch models on the fly without restarting
1915
+
1916
+ Use the `/model` command as a standalone message:
1917
+
1918
+ ```
1919
+ /model sonnet
1920
+ /model haiku
1921
+ /model opus
1922
+ /model gpt
1923
+ /model gpt-mini
1924
+ /model gemini
1925
+ /model gemini-flash
1926
+ ```
1927
+
1928
+ You can list available models with `/model`, `/model list`, or `/model status`.
1929
+
1930
+ `/model` (and `/model list`) shows a compact, numbered picker. Select by number:
1931
+
1932
+ ```
1933
+ /model 3
1934
+ ```
1935
+
1936
+ You can also force a specific auth profile for the provider (per session):
1937
+
1938
+ ```
1939
+ /model opus@anthropic:default
1940
+ /model opus@anthropic:work
1941
+ ```
1942
+
1943
+ Tip: `/model status` shows which agent is active, which `auth-profiles.json` file is being used, and which auth profile will be tried next.
1944
+ It also shows the configured provider endpoint (`baseUrl`) and API mode (`api`) when available.
1945
+
1946
+ **How do I unpin a profile I set with profile**
1947
+
1948
+ Re-run `/model` **without** the `@profile` suffix:
1949
+
1950
+ ```
1951
+ /model anthropic/claude-opus-4-5
1952
+ ```
1953
+
1954
+ If you want to return to the default, pick it from `/model` (or send `/model <default provider/model>`).
1955
+ Use `/model status` to confirm which auth profile is active.
1956
+
1957
+ ### Can I use GPT 5.2 for daily tasks and Codex 5.2 for coding
1958
+
1959
+ Yes. Set one as default and switch as needed:
1960
+
1961
+ - **Quick switch (per session):** `/model gpt-5.2` for daily tasks, `/model gpt-5.2-codex` for coding.
1962
+ - **Default + switch:** set `agents.defaults.model.primary` to `openai-codex/gpt-5.2`, then switch to `openai-codex/gpt-5.2-codex` when coding (or the other way around).
1963
+ - **Sub-agents:** route coding tasks to sub-agents with a different default model.
1964
+
1965
+ See [Models](/concepts/models) and [Slash commands](/tools/slash-commands).
1966
+
1967
+ ### Why do I see Model is not allowed and then no reply
1968
+
1969
+ If `agents.defaults.models` is set, it becomes the **allowlist** for `/model` and any
1970
+ session overrides. Choosing a model that isn’t in that list returns:
1971
+
1972
+ ```
1973
+ Model "provider/model" is not allowed. Use /model to list available models.
1974
+ ```
1975
+
1976
+ That error is returned **instead of** a normal reply. Fix: add the model to
1977
+ `agents.defaults.models`, remove the allowlist, or pick a model from `/model list`.
1978
+
1979
+ ### Why do I see Unknown model minimaxMiniMaxM21
1980
+
1981
+ This means the **provider isn’t configured** (no MiniMax provider config or auth
1982
+ profile was found), so the model can’t be resolved. A fix for this detection is
1983
+ in **2026.1.12** (unreleased at the time of writing).
1984
+
1985
+ Fix checklist:
1986
+ 1) Upgrade to **2026.1.12** (or run from source `main`), then restart the gateway.
1987
+ 2) Make sure MiniMax is configured (wizard or JSON), or that a MiniMax API key
1988
+ exists in env/auth profiles so the provider can be injected.
1989
+ 3) Use the exact model id (case‑sensitive): `minimax/MiniMax-M2.1` or
1990
+ `minimax/MiniMax-M2.1-lightning`.
1991
+ 4) Run:
1992
+ ```bash
1993
+ moltbot models list
1994
+ ```
1995
+ and pick from the list (or `/model list` in chat).
1996
+
1997
+ See [MiniMax](/providers/minimax) and [Models](/concepts/models).
1998
+
1999
+ ### Can I use MiniMax as my default and OpenAI for complex tasks
2000
+
2001
+ Yes. Use **MiniMax as the default** and switch models **per session** when needed.
2002
+ Fallbacks are for **errors**, not “hard tasks,” so use `/model` or a separate agent.
2003
+
2004
+ **Option A: switch per session**
2005
+ ```json5
2006
+ {
2007
+ env: { MINIMAX_API_KEY: "sk-...", OPENAI_API_KEY: "sk-..." },
2008
+ agents: {
2009
+ defaults: {
2010
+ model: { primary: "minimax/MiniMax-M2.1" },
2011
+ models: {
2012
+ "minimax/MiniMax-M2.1": { alias: "minimax" },
2013
+ "openai/gpt-5.2": { alias: "gpt" }
2014
+ }
2015
+ }
2016
+ }
2017
+ }
2018
+ ```
2019
+
2020
+ Then:
2021
+ ```
2022
+ /model gpt
2023
+ ```
2024
+
2025
+ **Option B: separate agents**
2026
+ - Agent A default: MiniMax
2027
+ - Agent B default: OpenAI
2028
+ - Route by agent or use `/agent` to switch
2029
+
2030
+ Docs: [Models](/concepts/models), [Multi-Agent Routing](/concepts/multi-agent), [MiniMax](/providers/minimax), [OpenAI](/providers/openai).
2031
+
2032
+ ### Are opus sonnet gpt builtin shortcuts
2033
+
2034
+ Yes. Moltbot ships a few default shorthands (only applied when the model exists in `agents.defaults.models`):
2035
+
2036
+ - `opus` → `anthropic/claude-opus-4-5`
2037
+ - `sonnet` → `anthropic/claude-sonnet-4-5`
2038
+ - `gpt` → `openai/gpt-5.2`
2039
+ - `gpt-mini` → `openai/gpt-5-mini`
2040
+ - `gemini` → `google/gemini-3-pro-preview`
2041
+ - `gemini-flash` → `google/gemini-3-flash-preview`
2042
+
2043
+ If you set your own alias with the same name, your value wins.
2044
+
2045
+ ### How do I defineoverride model shortcuts aliases
2046
+
2047
+ Aliases come from `agents.defaults.models.<modelId>.alias`. Example:
2048
+
2049
+ ```json5
2050
+ {
2051
+ agents: {
2052
+ defaults: {
2053
+ model: { primary: "anthropic/claude-opus-4-5" },
2054
+ models: {
2055
+ "anthropic/claude-opus-4-5": { alias: "opus" },
2056
+ "anthropic/claude-sonnet-4-5": { alias: "sonnet" },
2057
+ "anthropic/claude-haiku-4-5": { alias: "haiku" }
2058
+ }
2059
+ }
2060
+ }
2061
+ }
2062
+ ```
2063
+
2064
+ Then `/model sonnet` (or `/<alias>` when supported) resolves to that model ID.
2065
+
2066
+ ### How do I add models from other providers like OpenRouter or ZAI
2067
+
2068
+ OpenRouter (pay‑per‑token; many models):
2069
+
2070
+ ```json5
2071
+ {
2072
+ agents: {
2073
+ defaults: {
2074
+ model: { primary: "openrouter/anthropic/claude-sonnet-4-5" },
2075
+ models: { "openrouter/anthropic/claude-sonnet-4-5": {} }
2076
+ }
2077
+ },
2078
+ env: { OPENROUTER_API_KEY: "sk-or-..." }
2079
+ }
2080
+ ```
2081
+
2082
+ Z.AI (GLM models):
2083
+
2084
+ ```json5
2085
+ {
2086
+ agents: {
2087
+ defaults: {
2088
+ model: { primary: "zai/glm-4.7" },
2089
+ models: { "zai/glm-4.7": {} }
2090
+ }
2091
+ },
2092
+ env: { ZAI_API_KEY: "..." }
2093
+ }
2094
+ ```
2095
+
2096
+ If you reference a provider/model but the required provider key is missing, you’ll get a runtime auth error (e.g. `No API key found for provider "zai"`).
2097
+
2098
+ **No API key found for provider after adding a new agent**
2099
+
2100
+ This usually means the **new agent** has an empty auth store. Auth is per-agent and
2101
+ stored in:
2102
+
2103
+ ```
2104
+ ~/.clawdbot/agents/<agentId>/agent/auth-profiles.json
2105
+ ```
2106
+
2107
+ Fix options:
2108
+ - Run `moltbot agents add <id>` and configure auth during the wizard.
2109
+ - Or copy `auth-profiles.json` from the main agent’s `agentDir` into the new agent’s `agentDir`.
2110
+
2111
+ Do **not** reuse `agentDir` across agents; it causes auth/session collisions.
2112
+
2113
+ ## Model failover and “All models failed”
2114
+
2115
+ ### How does failover work
2116
+
2117
+ Failover happens in two stages:
2118
+
2119
+ 1) **Auth profile rotation** within the same provider.
2120
+ 2) **Model fallback** to the next model in `agents.defaults.model.fallbacks`.
2121
+
2122
+ Cooldowns apply to failing profiles (exponential backoff), so Moltbot can keep responding even when a provider is rate‑limited or temporarily failing.
2123
+
2124
+ ### What does this error mean
2125
+
2126
+ ```
2127
+ No credentials found for profile "anthropic:default"
2128
+ ```
2129
+
2130
+ It means the system attempted to use the auth profile ID `anthropic:default`, but could not find credentials for it in the expected auth store.
2131
+
2132
+ ### Fix checklist for No credentials found for profile anthropicdefault
2133
+
2134
+ - **Confirm where auth profiles live** (new vs legacy paths)
2135
+ - Current: `~/.clawdbot/agents/<agentId>/agent/auth-profiles.json`
2136
+ - Legacy: `~/.clawdbot/agent/*` (migrated by `moltbot doctor`)
2137
+ - **Confirm your env var is loaded by the Gateway**
2138
+ - If you set `ANTHROPIC_API_KEY` in your shell but run the Gateway via systemd/launchd, it may not inherit it. Put it in `~/.clawdbot/.env` or enable `env.shellEnv`.
2139
+ - **Make sure you’re editing the correct agent**
2140
+ - Multi‑agent setups mean there can be multiple `auth-profiles.json` files.
2141
+ - **Sanity‑check model/auth status**
2142
+ - Use `moltbot models status` to see configured models and whether providers are authenticated.
2143
+
2144
+ **Fix checklist for No credentials found for profile anthropic**
2145
+
2146
+ This means the run is pinned to an Anthropic auth profile, but the Gateway
2147
+ can’t find it in its auth store.
2148
+
2149
+ - **Use a setup-token**
2150
+ - Run `claude setup-token`, then paste it with `moltbot models auth setup-token --provider anthropic`.
2151
+ - If the token was created on another machine, use `moltbot models auth paste-token --provider anthropic`.
2152
+ - **If you want to use an API key instead**
2153
+ - Put `ANTHROPIC_API_KEY` in `~/.clawdbot/.env` on the **gateway host**.
2154
+ - Clear any pinned order that forces a missing profile:
2155
+ ```bash
2156
+ moltbot models auth order clear --provider anthropic
2157
+ ```
2158
+ - **Confirm you’re running commands on the gateway host**
2159
+ - In remote mode, auth profiles live on the gateway machine, not your laptop.
2160
+
2161
+ ### Why did it also try Google Gemini and fail
2162
+
2163
+ If your model config includes Google Gemini as a fallback (or you switched to a Gemini shorthand), Moltbot will try it during model fallback. If you haven’t configured Google credentials, you’ll see `No API key found for provider "google"`.
2164
+
2165
+ Fix: either provide Google auth, or remove/avoid Google models in `agents.defaults.model.fallbacks` / aliases so fallback doesn’t route there.
2166
+
2167
+ **LLM request rejected message thinking signature required google antigravity**
2168
+
2169
+ Cause: the session history contains **thinking blocks without signatures** (often from
2170
+ an aborted/partial stream). Google Antigravity requires signatures for thinking blocks.
2171
+
2172
+ Fix: Moltbot now strips unsigned thinking blocks for Google Antigravity Claude. If it still appears, start a **new session** or set `/thinking off` for that agent.
2173
+
2174
+ ## Auth profiles: what they are and how to manage them
2175
+
2176
+ Related: [/concepts/oauth](/concepts/oauth) (OAuth flows, token storage, multi-account patterns)
2177
+
2178
+ ### What is an auth profile
2179
+
2180
+ An auth profile is a named credential record (OAuth or API key) tied to a provider. Profiles live in:
2181
+
2182
+ ```
2183
+ ~/.clawdbot/agents/<agentId>/agent/auth-profiles.json
2184
+ ```
2185
+
2186
+ ### What are typical profile IDs
2187
+
2188
+ Moltbot uses provider‑prefixed IDs like:
2189
+
2190
+ - `anthropic:default` (common when no email identity exists)
2191
+ - `anthropic:<email>` for OAuth identities
2192
+ - custom IDs you choose (e.g. `anthropic:work`)
2193
+
2194
+ ### Can I control which auth profile is tried first
2195
+
2196
+ Yes. Config supports optional metadata for profiles and an ordering per provider (`auth.order.<provider>`). This does **not** store secrets; it maps IDs to provider/mode and sets rotation order.
2197
+
2198
+ Moltbot may temporarily skip a profile if it’s in a short **cooldown** (rate limits/timeouts/auth failures) or a longer **disabled** state (billing/insufficient credits). To inspect this, run `moltbot models status --json` and check `auth.unusableProfiles`. Tuning: `auth.cooldowns.billingBackoffHours*`.
2199
+
2200
+ You can also set a **per-agent** order override (stored in that agent’s `auth-profiles.json`) via the CLI:
2201
+
2202
+ ```bash
2203
+ # Defaults to the configured default agent (omit --agent)
2204
+ moltbot models auth order get --provider anthropic
2205
+
2206
+ # Lock rotation to a single profile (only try this one)
2207
+ moltbot models auth order set --provider anthropic anthropic:default
2208
+
2209
+ # Or set an explicit order (fallback within provider)
2210
+ moltbot models auth order set --provider anthropic anthropic:work anthropic:default
2211
+
2212
+ # Clear override (fall back to config auth.order / round-robin)
2213
+ moltbot models auth order clear --provider anthropic
2214
+ ```
2215
+
2216
+ To target a specific agent:
2217
+
2218
+ ```bash
2219
+ moltbot models auth order set --provider anthropic --agent main anthropic:default
2220
+ ```
2221
+
2222
+ ### OAuth vs API key whats the difference
2223
+
2224
+ Moltbot supports both:
2225
+
2226
+ - **OAuth** often leverages subscription access (where applicable).
2227
+ - **API keys** use pay‑per‑token billing.
2228
+
2229
+ The wizard explicitly supports Anthropic setup-token and OpenAI Codex OAuth and can store API keys for you.
2230
+
2231
+ ## Gateway: ports, “already running”, and remote mode
2232
+
2233
+ ### What port does the Gateway use
2234
+
2235
+ `gateway.port` controls the single multiplexed port for WebSocket + HTTP (Control UI, hooks, etc.).
2236
+
2237
+ Precedence:
2238
+
2239
+ ```
2240
+ --port > CLAWDBOT_GATEWAY_PORT > gateway.port > default 18789
2241
+ ```
2242
+
2243
+ ### Why does moltbot gateway status say Runtime running but RPC probe failed
2244
+
2245
+ Because “running” is the **supervisor’s** view (launchd/systemd/schtasks). The RPC probe is the CLI actually connecting to the gateway WebSocket and calling `status`.
2246
+
2247
+ Use `moltbot gateway status` and trust these lines:
2248
+ - `Probe target:` (the URL the probe actually used)
2249
+ - `Listening:` (what’s actually bound on the port)
2250
+ - `Last gateway error:` (common root cause when the process is alive but the port isn’t listening)
2251
+
2252
+ ### Why does moltbot gateway status show Config cli and Config service different
2253
+
2254
+ You’re editing one config file while the service is running another (often a `--profile` / `CLAWDBOT_STATE_DIR` mismatch).
2255
+
2256
+ Fix:
2257
+ ```bash
2258
+ moltbot gateway install --force
2259
+ ```
2260
+ Run that from the same `--profile` / environment you want the service to use.
2261
+
2262
+ ### What does another gateway instance is already listening mean
2263
+
2264
+ Moltbot enforces a runtime lock by binding the WebSocket listener immediately on startup (default `ws://127.0.0.1:18789`). If the bind fails with `EADDRINUSE`, it throws `GatewayLockError` indicating another instance is already listening.
2265
+
2266
+ Fix: stop the other instance, free the port, or run with `moltbot gateway --port <port>`.
2267
+
2268
+ ### How do I run Moltbot in remote mode client connects to a Gateway elsewhere
2269
+
2270
+ Set `gateway.mode: "remote"` and point to a remote WebSocket URL, optionally with a token/password:
2271
+
2272
+ ```json5
2273
+ {
2274
+ gateway: {
2275
+ mode: "remote",
2276
+ remote: {
2277
+ url: "ws://gateway.tailnet:18789",
2278
+ token: "your-token",
2279
+ password: "your-password"
2280
+ }
2281
+ }
2282
+ }
2283
+ ```
2284
+
2285
+ Notes:
2286
+ - `moltbot gateway` only starts when `gateway.mode` is `local` (or you pass the override flag).
2287
+ - The macOS app watches the config file and switches modes live when these values change.
2288
+
2289
+ ### The Control UI says unauthorized or keeps reconnecting What now
2290
+
2291
+ Your gateway is running with auth enabled (`gateway.auth.*`), but the UI is not sending the matching token/password.
2292
+
2293
+ Facts (from code):
2294
+ - The Control UI stores the token in browser localStorage key `moltbot.control.settings.v1`.
2295
+ - The UI can import `?token=...` (and/or `?password=...`) once, then strips it from the URL.
2296
+
2297
+ Fix:
2298
+ - Fastest: `moltbot dashboard` (prints + copies tokenized link, tries to open; shows SSH hint if headless).
2299
+ - If you don’t have a token yet: `moltbot doctor --generate-gateway-token`.
2300
+ - If remote, tunnel first: `ssh -N -L 18789:127.0.0.1:18789 user@host` then open `http://127.0.0.1:18789/?token=...`.
2301
+ - Set `gateway.auth.token` (or `CLAWDBOT_GATEWAY_TOKEN`) on the gateway host.
2302
+ - In the Control UI settings, paste the same token (or refresh with a one-time `?token=...` link).
2303
+ - Still stuck? Run `moltbot status --all` and follow [Troubleshooting](/gateway/troubleshooting). See [Dashboard](/web/dashboard) for auth details.
2304
+
2305
+ ### I set gatewaybind tailnet but it cant bind nothing listens
2306
+
2307
+ `tailnet` bind picks a Tailscale IP from your network interfaces (100.64.0.0/10). If the machine isn’t on Tailscale (or the interface is down), there’s nothing to bind to.
2308
+
2309
+ Fix:
2310
+ - Start Tailscale on that host (so it has a 100.x address), or
2311
+ - Switch to `gateway.bind: "loopback"` / `"lan"`.
2312
+
2313
+ Note: `tailnet` is explicit. `auto` prefers loopback; use `gateway.bind: "tailnet"` when you want a tailnet-only bind.
2314
+
2315
+ ### Can I run multiple Gateways on the same host
2316
+
2317
+ Usually no - one Gateway can run multiple messaging channels and agents. Use multiple Gateways only when you need redundancy (ex: rescue bot) or hard isolation.
2318
+
2319
+ Yes, but you must isolate:
2320
+
2321
+ - `CLAWDBOT_CONFIG_PATH` (per‑instance config)
2322
+ - `CLAWDBOT_STATE_DIR` (per‑instance state)
2323
+ - `agents.defaults.workspace` (workspace isolation)
2324
+ - `gateway.port` (unique ports)
2325
+
2326
+ Quick setup (recommended):
2327
+ - Use `moltbot --profile <name> …` per instance (auto-creates `~/.clawdbot-<name>`).
2328
+ - Set a unique `gateway.port` in each profile config (or pass `--port` for manual runs).
2329
+ - Install a per-profile service: `moltbot --profile <name> gateway install`.
2330
+
2331
+ Profiles also suffix service names (`bot.molt.<profile>`; legacy `com.clawdbot.*`, `moltbot-gateway-<profile>.service`, `Moltbot Gateway (<profile>)`).
2332
+ Full guide: [Multiple gateways](/gateway/multiple-gateways).
2333
+
2334
+ ### What does invalid handshake code 1008 mean
2335
+
2336
+ The Gateway is a **WebSocket server**, and it expects the very first message to
2337
+ be a `connect` frame. If it receives anything else, it closes the connection
2338
+ with **code 1008** (policy violation).
2339
+
2340
+ Common causes:
2341
+ - You opened the **HTTP** URL in a browser (`http://...`) instead of a WS client.
2342
+ - You used the wrong port or path.
2343
+ - A proxy or tunnel stripped auth headers or sent a non‑Gateway request.
2344
+
2345
+ Quick fixes:
2346
+ 1) Use the WS URL: `ws://<host>:18789` (or `wss://...` if HTTPS).
2347
+ 2) Don’t open the WS port in a normal browser tab.
2348
+ 3) If auth is on, include the token/password in the `connect` frame.
2349
+
2350
+ If you’re using the CLI or TUI, the URL should look like:
2351
+ ```
2352
+ moltbot tui --url ws://<host>:18789 --token <token>
2353
+ ```
2354
+
2355
+ Protocol details: [Gateway protocol](/gateway/protocol).
2356
+
2357
+ ## Logging and debugging
2358
+
2359
+ ### Where are logs
2360
+
2361
+ File logs (structured):
2362
+
2363
+ ```
2364
+ /tmp/moltbot/moltbot-YYYY-MM-DD.log
2365
+ ```
2366
+
2367
+ You can set a stable path via `logging.file`. File log level is controlled by `logging.level`. Console verbosity is controlled by `--verbose` and `logging.consoleLevel`.
2368
+
2369
+ Fastest log tail:
2370
+
2371
+ ```bash
2372
+ moltbot logs --follow
2373
+ ```
2374
+
2375
+ Service/supervisor logs (when the gateway runs via launchd/systemd):
2376
+ - macOS: `$CLAWDBOT_STATE_DIR/logs/gateway.log` and `gateway.err.log` (default: `~/.clawdbot/logs/...`; profiles use `~/.clawdbot-<profile>/logs/...`)
2377
+ - Linux: `journalctl --user -u moltbot-gateway[-<profile>].service -n 200 --no-pager`
2378
+ - Windows: `schtasks /Query /TN "Moltbot Gateway (<profile>)" /V /FO LIST`
2379
+
2380
+ See [Troubleshooting](/gateway/troubleshooting#log-locations) for more.
2381
+
2382
+ ### How do I startstoprestart the Gateway service
2383
+
2384
+ Use the gateway helpers:
2385
+
2386
+ ```bash
2387
+ moltbot gateway status
2388
+ moltbot gateway restart
2389
+ ```
2390
+
2391
+ If you run the gateway manually, `moltbot gateway --force` can reclaim the port. See [Gateway](/gateway).
2392
+
2393
+ ### I closed my terminal on Windows how do I restart Moltbot
2394
+
2395
+ There are **two Windows install modes**:
2396
+
2397
+ **1) WSL2 (recommended):** the Gateway runs inside Linux.
2398
+
2399
+ Open PowerShell, enter WSL, then restart:
2400
+
2401
+ ```powershell
2402
+ wsl
2403
+ moltbot gateway status
2404
+ moltbot gateway restart
2405
+ ```
2406
+
2407
+ If you never installed the service, start it in the foreground:
2408
+
2409
+ ```bash
2410
+ moltbot gateway run
2411
+ ```
2412
+
2413
+ **2) Native Windows (not recommended):** the Gateway runs directly in Windows.
2414
+
2415
+ Open PowerShell and run:
2416
+
2417
+ ```powershell
2418
+ moltbot gateway status
2419
+ moltbot gateway restart
2420
+ ```
2421
+
2422
+ If you run it manually (no service), use:
2423
+
2424
+ ```powershell
2425
+ moltbot gateway run
2426
+ ```
2427
+
2428
+ Docs: [Windows (WSL2)](/platforms/windows), [Gateway service runbook](/gateway).
2429
+
2430
+ ### The Gateway is up but replies never arrive What should I check
2431
+
2432
+ Start with a quick health sweep:
2433
+
2434
+ ```bash
2435
+ moltbot status
2436
+ moltbot models status
2437
+ moltbot channels status
2438
+ moltbot logs --follow
2439
+ ```
2440
+
2441
+ Common causes:
2442
+ - Model auth not loaded on the **gateway host** (check `models status`).
2443
+ - Channel pairing/allowlist blocking replies (check channel config + logs).
2444
+ - WebChat/Dashboard is open without the right token.
2445
+
2446
+ If you are remote, confirm the tunnel/Tailscale connection is up and that the
2447
+ Gateway WebSocket is reachable.
2448
+
2449
+ Docs: [Channels](/channels), [Troubleshooting](/gateway/troubleshooting), [Remote access](/gateway/remote).
2450
+
2451
+ ### Disconnected from gateway no reason what now
2452
+
2453
+ This usually means the UI lost the WebSocket connection. Check:
2454
+
2455
+ 1) Is the Gateway running? `moltbot gateway status`
2456
+ 2) Is the Gateway healthy? `moltbot status`
2457
+ 3) Does the UI have the right token? `moltbot dashboard`
2458
+ 4) If remote, is the tunnel/Tailscale link up?
2459
+
2460
+ Then tail logs:
2461
+
2462
+ ```bash
2463
+ moltbot logs --follow
2464
+ ```
2465
+
2466
+ Docs: [Dashboard](/web/dashboard), [Remote access](/gateway/remote), [Troubleshooting](/gateway/troubleshooting).
2467
+
2468
+ ### Telegram setMyCommands fails with network errors What should I check
2469
+
2470
+ Start with logs and channel status:
2471
+
2472
+ ```bash
2473
+ moltbot channels status
2474
+ moltbot channels logs --channel telegram
2475
+ ```
2476
+
2477
+ If you are on a VPS or behind a proxy, confirm outbound HTTPS is allowed and DNS works.
2478
+ If the Gateway is remote, make sure you are looking at logs on the Gateway host.
2479
+
2480
+ Docs: [Telegram](/channels/telegram), [Channel troubleshooting](/channels/troubleshooting).
2481
+
2482
+ ### TUI shows no output What should I check
2483
+
2484
+ First confirm the Gateway is reachable and the agent can run:
2485
+
2486
+ ```bash
2487
+ moltbot status
2488
+ moltbot models status
2489
+ moltbot logs --follow
2490
+ ```
2491
+
2492
+ In the TUI, use `/status` to see the current state. If you expect replies in a chat
2493
+ channel, make sure delivery is enabled (`/deliver on`).
2494
+
2495
+ Docs: [TUI](/tui), [Slash commands](/tools/slash-commands).
2496
+
2497
+ ### How do I completely stop then start the Gateway
2498
+
2499
+ If you installed the service:
2500
+
2501
+ ```bash
2502
+ moltbot gateway stop
2503
+ moltbot gateway start
2504
+ ```
2505
+
2506
+ This stops/starts the **supervised service** (launchd on macOS, systemd on Linux).
2507
+ Use this when the Gateway runs in the background as a daemon.
2508
+
2509
+ If you’re running in the foreground, stop with Ctrl‑C, then:
2510
+
2511
+ ```bash
2512
+ moltbot gateway run
2513
+ ```
2514
+
2515
+ Docs: [Gateway service runbook](/gateway).
2516
+
2517
+ ### ELI5 moltbot gateway restart vs moltbot gateway
2518
+
2519
+ - `moltbot gateway restart`: restarts the **background service** (launchd/systemd).
2520
+ - `moltbot gateway`: runs the gateway **in the foreground** for this terminal session.
2521
+
2522
+ If you installed the service, use the gateway commands. Use `moltbot gateway` when
2523
+ you want a one-off, foreground run.
2524
+
2525
+ ### Whats the fastest way to get more details when something fails
2526
+
2527
+ Start the Gateway with `--verbose` to get more console detail. Then inspect the log file for channel auth, model routing, and RPC errors.
2528
+
2529
+ ## Media & attachments
2530
+
2531
+ ### My skill generated an imagePDF but nothing was sent
2532
+
2533
+ Outbound attachments from the agent must include a `MEDIA:<path-or-url>` line (on its own line). See [Moltbot assistant setup](/start/clawd) and [Agent send](/tools/agent-send).
2534
+
2535
+ CLI sending:
2536
+
2537
+ ```bash
2538
+ moltbot message send --target +15555550123 --message "Here you go" --media /path/to/file.png
2539
+ ```
2540
+
2541
+ Also check:
2542
+ - The target channel supports outbound media and isn’t blocked by allowlists.
2543
+ - The file is within the provider’s size limits (images are resized to max 2048px).
2544
+
2545
+ See [Images](/nodes/images).
2546
+
2547
+ ## Security and access control
2548
+
2549
+ ### Is it safe to expose Moltbot to inbound DMs
2550
+
2551
+ Treat inbound DMs as untrusted input. Defaults are designed to reduce risk:
2552
+
2553
+ - Default behavior on DM‑capable channels is **pairing**:
2554
+ - Unknown senders receive a pairing code; the bot does not process their message.
2555
+ - Approve with: `moltbot pairing approve <channel> <code>`
2556
+ - Pending requests are capped at **3 per channel**; check `moltbot pairing list <channel>` if a code didn’t arrive.
2557
+ - Opening DMs publicly requires explicit opt‑in (`dmPolicy: "open"` and allowlist `"*"`).
2558
+
2559
+ Run `moltbot doctor` to surface risky DM policies.
2560
+
2561
+ ### Is prompt injection only a concern for public bots
2562
+
2563
+ No. Prompt injection is about **untrusted content**, not just who can DM the bot.
2564
+ If your assistant reads external content (web search/fetch, browser pages, emails,
2565
+ docs, attachments, pasted logs), that content can include instructions that try
2566
+ to hijack the model. This can happen even if **you are the only sender**.
2567
+
2568
+ The biggest risk is when tools are enabled: the model can be tricked into
2569
+ exfiltrating context or calling tools on your behalf. Reduce the blast radius by:
2570
+ - using a read-only or tool-disabled "reader" agent to summarize untrusted content
2571
+ - keeping `web_search` / `web_fetch` / `browser` off for tool-enabled agents
2572
+ - sandboxing and strict tool allowlists
2573
+
2574
+ Details: [Security](/gateway/security).
2575
+
2576
+ ### Should my bot have its own email GitHub account or phone number
2577
+
2578
+ Yes, for most setups. Isolating the bot with separate accounts and phone numbers
2579
+ reduces the blast radius if something goes wrong. This also makes it easier to rotate
2580
+ credentials or revoke access without impacting your personal accounts.
2581
+
2582
+ Start small. Give access only to the tools and accounts you actually need, and expand
2583
+ later if required.
2584
+
2585
+ Docs: [Security](/gateway/security), [Pairing](/start/pairing).
2586
+
2587
+ ### Can I give it autonomy over my text messages and is that safe
2588
+
2589
+ We do **not** recommend full autonomy over your personal messages. The safest pattern is:
2590
+ - Keep DMs in **pairing mode** or a tight allowlist.
2591
+ - Use a **separate number or account** if you want it to message on your behalf.
2592
+ - Let it draft, then **approve before sending**.
2593
+
2594
+ If you want to experiment, do it on a dedicated account and keep it isolated. See
2595
+ [Security](/gateway/security).
2596
+
2597
+ ### Can I use cheaper models for personal assistant tasks
2598
+
2599
+ Yes, **if** the agent is chat-only and the input is trusted. Smaller tiers are
2600
+ more susceptible to instruction hijacking, so avoid them for tool-enabled agents
2601
+ or when reading untrusted content. If you must use a smaller model, lock down
2602
+ tools and run inside a sandbox. See [Security](/gateway/security).
2603
+
2604
+ ### I ran start in Telegram but didnt get a pairing code
2605
+
2606
+ Pairing codes are sent **only** when an unknown sender messages the bot and
2607
+ `dmPolicy: "pairing"` is enabled. `/start` by itself doesn’t generate a code.
2608
+
2609
+ Check pending requests:
2610
+ ```bash
2611
+ moltbot pairing list telegram
2612
+ ```
2613
+
2614
+ If you want immediate access, allowlist your sender id or set `dmPolicy: "open"`
2615
+ for that account.
2616
+
2617
+ ### WhatsApp will it message my contacts How does pairing work
2618
+
2619
+ No. Default WhatsApp DM policy is **pairing**. Unknown senders only get a pairing code and their message is **not processed**. Moltbot only replies to chats it receives or to explicit sends you trigger.
2620
+
2621
+ Approve pairing with:
2622
+
2623
+ ```bash
2624
+ moltbot pairing approve whatsapp <code>
2625
+ ```
2626
+
2627
+ List pending requests:
2628
+
2629
+ ```bash
2630
+ moltbot pairing list whatsapp
2631
+ ```
2632
+
2633
+ Wizard phone number prompt: it’s used to set your **allowlist/owner** so your own DMs are permitted. It’s not used for auto-sending. If you run on your personal WhatsApp number, use that number and enable `channels.whatsapp.selfChatMode`.
2634
+
2635
+ ## Chat commands, aborting tasks, and “it won’t stop”
2636
+
2637
+ ### How do I stop internal system messages from showing in chat
2638
+
2639
+ Most internal or tool messages only appear when **verbose** or **reasoning** is enabled
2640
+ for that session.
2641
+
2642
+ Fix in the chat where you see it:
2643
+ ```
2644
+ /verbose off
2645
+ /reasoning off
2646
+ ```
2647
+
2648
+ If it is still noisy, check the session settings in the Control UI and set verbose
2649
+ to **inherit**. Also confirm you are not using a bot profile with `verboseDefault` set
2650
+ to `on` in config.
2651
+
2652
+ Docs: [Thinking and verbose](/tools/thinking), [Security](/gateway/security#reasoning--verbose-output-in-groups).
2653
+
2654
+ ### How do I stopcancel a running task
2655
+
2656
+ Send any of these **as a standalone message** (no slash):
2657
+
2658
+ ```
2659
+ stop
2660
+ abort
2661
+ esc
2662
+ wait
2663
+ exit
2664
+ interrupt
2665
+ ```
2666
+
2667
+ These are abort triggers (not slash commands).
2668
+
2669
+ For background processes (from the exec tool), you can ask the agent to run:
2670
+
2671
+ ```
2672
+ process action:kill sessionId:XXX
2673
+ ```
2674
+
2675
+ Slash commands overview: see [Slash commands](/tools/slash-commands).
2676
+
2677
+ Most commands must be sent as a **standalone** message that starts with `/`, but a few shortcuts (like `/status`) also work inline for allowlisted senders.
2678
+
2679
+ ### How do I send a Discord message from Telegram Crosscontext messaging denied
2680
+
2681
+ Moltbot blocks **cross‑provider** messaging by default. If a tool call is bound
2682
+ to Telegram, it won’t send to Discord unless you explicitly allow it.
2683
+
2684
+ Enable cross‑provider messaging for the agent:
2685
+
2686
+ ```json5
2687
+ {
2688
+ agents: {
2689
+ defaults: {
2690
+ tools: {
2691
+ message: {
2692
+ crossContext: {
2693
+ allowAcrossProviders: true,
2694
+ marker: { enabled: true, prefix: "[from {channel}] " }
2695
+ }
2696
+ }
2697
+ }
2698
+ }
2699
+ }
2700
+ }
2701
+ ```
2702
+
2703
+ Restart the gateway after editing config. If you only want this for a single
2704
+ agent, set it under `agents.list[].tools.message` instead.
2705
+
2706
+ ### Why does it feel like the bot ignores rapidfire messages
2707
+
2708
+ Queue mode controls how new messages interact with an in‑flight run. Use `/queue` to change modes:
2709
+
2710
+ - `steer` - new messages redirect the current task
2711
+ - `followup` - run messages one at a time
2712
+ - `collect` - batch messages and reply once (default)
2713
+ - `steer-backlog` - steer now, then process backlog
2714
+ - `interrupt` - abort current run and start fresh
2715
+
2716
+ You can add options like `debounce:2s cap:25 drop:summarize` for followup modes.
2717
+
2718
+ ## Answer the exact question from the screenshot/chat log
2719
+
2720
+ **Q: “What’s the default model for Anthropic with an API key?”**
2721
+
2722
+ **A:** In Moltbot, credentials and model selection are separate. Setting `ANTHROPIC_API_KEY` (or storing an Anthropic API key in auth profiles) enables authentication, but the actual default model is whatever you configure in `agents.defaults.model.primary` (for example, `anthropic/claude-sonnet-4-5` or `anthropic/claude-opus-4-5`). If you see `No credentials found for profile "anthropic:default"`, it means the Gateway couldn’t find Anthropic credentials in the expected `auth-profiles.json` for the agent that’s running.
2723
+
2724
+ ---
2725
+
2726
+ Still stuck? Ask in [Discord](https://discord.com/invite/clawd) or open a [GitHub discussion](https://github.com/moltbot/moltbot/discussions).