@gguf/pigbot 0.0.1

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