loudmouth-ai 0.1.0

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