loudmouth-ai 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1158 -0
- package/LICENSE +21 -0
- package/README.md +128 -0
- package/assets/avatar-placeholder.svg +19 -0
- package/assets/chrome-extension/README.md +22 -0
- package/assets/chrome-extension/background.js +438 -0
- package/assets/chrome-extension/icons/icon128.png +0 -0
- package/assets/chrome-extension/icons/icon16.png +0 -0
- package/assets/chrome-extension/icons/icon32.png +0 -0
- package/assets/chrome-extension/icons/icon48.png +0 -0
- package/assets/chrome-extension/manifest.json +25 -0
- package/assets/chrome-extension/options.html +197 -0
- package/assets/chrome-extension/options.js +59 -0
- package/assets/dmg-background-small.png +0 -0
- package/assets/dmg-background.png +0 -0
- package/dist/acp/client.js +144 -0
- package/dist/acp/commands.js +38 -0
- package/dist/acp/event-mapper.js +70 -0
- package/dist/acp/index.js +2 -0
- package/dist/acp/meta.js +30 -0
- package/dist/acp/server.js +131 -0
- package/dist/acp/session-mapper.js +65 -0
- package/dist/acp/session.js +68 -0
- package/dist/acp/translator.js +344 -0
- package/dist/acp/types.js +6 -0
- package/dist/agents/agent-paths.js +19 -0
- package/dist/agents/agent-scope.js +118 -0
- package/dist/agents/anthropic-payload-log.js +160 -0
- package/dist/agents/apply-patch-update.js +145 -0
- package/dist/agents/apply-patch.js +355 -0
- package/dist/agents/auth-health.js +165 -0
- package/dist/agents/auth-profiles/constants.js +20 -0
- package/dist/agents/auth-profiles/display.js +10 -0
- package/dist/agents/auth-profiles/doctor.js +31 -0
- package/dist/agents/auth-profiles/external-cli-sync.js +62 -0
- package/dist/agents/auth-profiles/oauth.js +193 -0
- package/dist/agents/auth-profiles/order.js +166 -0
- package/dist/agents/auth-profiles/paths.js +27 -0
- package/dist/agents/auth-profiles/profiles.js +63 -0
- package/dist/agents/auth-profiles/repair.js +120 -0
- package/dist/agents/auth-profiles/session-override.js +97 -0
- package/dist/agents/auth-profiles/store.js +323 -0
- package/dist/agents/auth-profiles/types.js +1 -0
- package/dist/agents/auth-profiles/usage.js +235 -0
- package/dist/agents/auth-profiles.js +10 -0
- package/dist/agents/bash-process-registry.js +177 -0
- package/dist/agents/bash-tools.exec.js +1176 -0
- package/dist/agents/bash-tools.js +2 -0
- package/dist/agents/bash-tools.process.js +569 -0
- package/dist/agents/bash-tools.shared.js +191 -0
- package/dist/agents/bedrock-discovery.js +157 -0
- package/dist/agents/bootstrap-files.js +28 -0
- package/dist/agents/bootstrap-hooks.js +19 -0
- package/dist/agents/cache-trace.js +185 -0
- package/dist/agents/channel-tools.js +58 -0
- package/dist/agents/chutes-oauth.js +133 -0
- package/dist/agents/claude-cli-runner.js +3 -0
- package/dist/agents/clawdbot-tools.js +124 -0
- package/dist/agents/cli-backends.js +126 -0
- package/dist/agents/cli-credentials.js +360 -0
- package/dist/agents/cli-runner/helpers.js +409 -0
- package/dist/agents/cli-runner.js +265 -0
- package/dist/agents/cli-session.js +27 -0
- package/dist/agents/compaction.js +226 -0
- package/dist/agents/context-window-guard.js +37 -0
- package/dist/agents/context.js +34 -0
- package/dist/agents/date-time.js +158 -0
- package/dist/agents/defaults.js +6 -0
- package/dist/agents/docs-path.js +20 -0
- package/dist/agents/failover-error.js +164 -0
- package/dist/agents/identity-avatar.js +82 -0
- package/dist/agents/identity-file.js +80 -0
- package/dist/agents/identity.js +61 -0
- package/dist/agents/lanes.js +2 -0
- package/dist/agents/live-auth-keys.js +70 -0
- package/dist/agents/live-model-filter.js +70 -0
- package/dist/agents/memory-search.js +184 -0
- package/dist/agents/minimax-vlm.js +81 -0
- package/dist/agents/model-auth.js +273 -0
- package/dist/agents/model-catalog.js +95 -0
- package/dist/agents/model-compat.js +17 -0
- package/dist/agents/model-fallback.js +246 -0
- package/dist/agents/model-scan.js +350 -0
- package/dist/agents/model-selection.js +284 -0
- package/dist/agents/models-config.js +111 -0
- package/dist/agents/models-config.providers.js +423 -0
- package/dist/agents/opencode-zen-models.js +254 -0
- package/dist/agents/pi-embedded-block-chunker.js +209 -0
- package/dist/agents/pi-embedded-helpers/bootstrap.js +159 -0
- package/dist/agents/pi-embedded-helpers/errors.js +436 -0
- package/dist/agents/pi-embedded-helpers/google.js +12 -0
- package/dist/agents/pi-embedded-helpers/images.js +92 -0
- package/dist/agents/pi-embedded-helpers/messaging-dedupe.js +35 -0
- package/dist/agents/pi-embedded-helpers/openai.js +98 -0
- package/dist/agents/pi-embedded-helpers/thinking.js +32 -0
- package/dist/agents/pi-embedded-helpers/turns.js +95 -0
- package/dist/agents/pi-embedded-helpers/types.js +1 -0
- package/dist/agents/pi-embedded-helpers.js +9 -0
- package/dist/agents/pi-embedded-messaging.js +24 -0
- package/dist/agents/pi-embedded-runner/abort.js +9 -0
- package/dist/agents/pi-embedded-runner/cache-ttl.js +45 -0
- package/dist/agents/pi-embedded-runner/compact.js +405 -0
- package/dist/agents/pi-embedded-runner/extensions.js +59 -0
- package/dist/agents/pi-embedded-runner/extra-params.js +70 -0
- package/dist/agents/pi-embedded-runner/google.js +302 -0
- package/dist/agents/pi-embedded-runner/history.js +61 -0
- package/dist/agents/pi-embedded-runner/lanes.js +11 -0
- package/dist/agents/pi-embedded-runner/logger.js +2 -0
- package/dist/agents/pi-embedded-runner/model.js +70 -0
- package/dist/agents/pi-embedded-runner/run/attempt.js +748 -0
- package/dist/agents/pi-embedded-runner/run/images.js +344 -0
- package/dist/agents/pi-embedded-runner/run/params.js +1 -0
- package/dist/agents/pi-embedded-runner/run/payloads.js +162 -0
- package/dist/agents/pi-embedded-runner/run/types.js +1 -0
- package/dist/agents/pi-embedded-runner/run.js +535 -0
- package/dist/agents/pi-embedded-runner/runs.js +107 -0
- package/dist/agents/pi-embedded-runner/sandbox-info.js +25 -0
- package/dist/agents/pi-embedded-runner/session-manager-cache.js +54 -0
- package/dist/agents/pi-embedded-runner/session-manager-init.js +31 -0
- package/dist/agents/pi-embedded-runner/system-prompt.js +33 -0
- package/dist/agents/pi-embedded-runner/tool-split.js +8 -0
- package/dist/agents/pi-embedded-runner/types.js +1 -0
- package/dist/agents/pi-embedded-runner/utils.js +25 -0
- package/dist/agents/pi-embedded-runner.js +10 -0
- package/dist/agents/pi-embedded-subscribe.handlers.js +45 -0
- package/dist/agents/pi-embedded-subscribe.handlers.lifecycle.js +86 -0
- package/dist/agents/pi-embedded-subscribe.handlers.messages.js +230 -0
- package/dist/agents/pi-embedded-subscribe.handlers.tools.js +176 -0
- package/dist/agents/pi-embedded-subscribe.handlers.types.js +1 -0
- package/dist/agents/pi-embedded-subscribe.js +454 -0
- package/dist/agents/pi-embedded-subscribe.raw-stream.js +27 -0
- package/dist/agents/pi-embedded-subscribe.tools.js +166 -0
- package/dist/agents/pi-embedded-subscribe.types.js +1 -0
- package/dist/agents/pi-embedded-utils.js +341 -0
- package/dist/agents/pi-embedded.js +1 -0
- package/dist/agents/pi-extensions/compaction-safeguard.js +223 -0
- package/dist/agents/pi-extensions/context-pruning/extension.js +32 -0
- package/dist/agents/pi-extensions/context-pruning/pruner.js +263 -0
- package/dist/agents/pi-extensions/context-pruning/runtime.js +21 -0
- package/dist/agents/pi-extensions/context-pruning/settings.js +71 -0
- package/dist/agents/pi-extensions/context-pruning/tools.js +44 -0
- package/dist/agents/pi-extensions/context-pruning.js +9 -0
- package/dist/agents/pi-settings.js +19 -0
- package/dist/agents/pi-tool-definition-adapter.js +74 -0
- package/dist/agents/pi-tools.abort.js +41 -0
- package/dist/agents/pi-tools.js +289 -0
- package/dist/agents/pi-tools.policy.js +212 -0
- package/dist/agents/pi-tools.read.js +227 -0
- package/dist/agents/pi-tools.schema.js +147 -0
- package/dist/agents/pi-tools.types.js +1 -0
- package/dist/agents/pty-dsr.js +13 -0
- package/dist/agents/pty-keys.js +235 -0
- package/dist/agents/sandbox/browser-bridges.js +1 -0
- package/dist/agents/sandbox/browser.js +178 -0
- package/dist/agents/sandbox/config-hash.js +45 -0
- package/dist/agents/sandbox/config.js +126 -0
- package/dist/agents/sandbox/constants.js +45 -0
- package/dist/agents/sandbox/context.js +117 -0
- package/dist/agents/sandbox/docker.js +272 -0
- package/dist/agents/sandbox/manage.js +91 -0
- package/dist/agents/sandbox/prune.js +87 -0
- package/dist/agents/sandbox/registry.js +71 -0
- package/dist/agents/sandbox/runtime-status.js +90 -0
- package/dist/agents/sandbox/shared.js +38 -0
- package/dist/agents/sandbox/tool-policy.js +106 -0
- package/dist/agents/sandbox/types.docker.js +1 -0
- package/dist/agents/sandbox/types.js +1 -0
- package/dist/agents/sandbox/workspace.js +39 -0
- package/dist/agents/sandbox-paths.js +68 -0
- package/dist/agents/sandbox.js +7 -0
- package/dist/agents/schema/clean-for-gemini.js +295 -0
- package/dist/agents/schema/typebox.js +22 -0
- package/dist/agents/session-slug.js +134 -0
- package/dist/agents/session-tool-result-guard-wrapper.js +34 -0
- package/dist/agents/session-tool-result-guard.js +99 -0
- package/dist/agents/session-transcript-repair.js +174 -0
- package/dist/agents/session-write-lock.js +102 -0
- package/dist/agents/shell-utils.js +99 -0
- package/dist/agents/skills/bundled-dir.js +30 -0
- package/dist/agents/skills/config.js +141 -0
- package/dist/agents/skills/env-overrides.js +67 -0
- package/dist/agents/skills/frontmatter.js +119 -0
- package/dist/agents/skills/plugin-skills.js +55 -0
- package/dist/agents/skills/refresh.js +135 -0
- package/dist/agents/skills/serialize.js +13 -0
- package/dist/agents/skills/types.js +1 -0
- package/dist/agents/skills/workspace.js +272 -0
- package/dist/agents/skills-install.js +390 -0
- package/dist/agents/skills-status.js +183 -0
- package/dist/agents/skills.js +13 -0
- package/dist/agents/subagent-announce-queue.js +129 -0
- package/dist/agents/subagent-announce.js +391 -0
- package/dist/agents/subagent-registry.js +343 -0
- package/dist/agents/subagent-registry.store.js +73 -0
- package/dist/agents/synthetic-models.js +174 -0
- package/dist/agents/system-prompt-params.js +70 -0
- package/dist/agents/system-prompt-report.js +113 -0
- package/dist/agents/system-prompt.js +467 -0
- package/dist/agents/test-helpers/fast-coding-tools.js +18 -0
- package/dist/agents/test-helpers/fast-core-tools.js +24 -0
- package/dist/agents/timeout.js +24 -0
- package/dist/agents/tool-call-id.js +164 -0
- package/dist/agents/tool-display.js +209 -0
- package/dist/agents/tool-display.json +308 -0
- package/dist/agents/tool-images.js +166 -0
- package/dist/agents/tool-policy.js +193 -0
- package/dist/agents/tool-summaries.js +10 -0
- package/dist/agents/tools/agent-step.js +44 -0
- package/dist/agents/tools/agents-list-tool.js +66 -0
- package/dist/agents/tools/browser-tool.js +656 -0
- package/dist/agents/tools/browser-tool.schema.js +106 -0
- package/dist/agents/tools/canvas-tool.js +158 -0
- package/dist/agents/tools/common.js +146 -0
- package/dist/agents/tools/cron-tool.js +261 -0
- package/dist/agents/tools/discord-actions-guild.js +453 -0
- package/dist/agents/tools/discord-actions-messaging.js +383 -0
- package/dist/agents/tools/discord-actions-moderation.js +92 -0
- package/dist/agents/tools/discord-actions.js +61 -0
- package/dist/agents/tools/gateway-tool.js +214 -0
- package/dist/agents/tools/gateway.js +30 -0
- package/dist/agents/tools/image-tool.helpers.js +55 -0
- package/dist/agents/tools/image-tool.js +370 -0
- package/dist/agents/tools/memory-tool.js +103 -0
- package/dist/agents/tools/message-tool.js +319 -0
- package/dist/agents/tools/nodes-tool.js +399 -0
- package/dist/agents/tools/nodes-utils.js +92 -0
- package/dist/agents/tools/session-status-tool.js +357 -0
- package/dist/agents/tools/sessions-announce-target.js +43 -0
- package/dist/agents/tools/sessions-helpers.js +261 -0
- package/dist/agents/tools/sessions-history-tool.js +118 -0
- package/dist/agents/tools/sessions-list-tool.js +161 -0
- package/dist/agents/tools/sessions-send-helpers.js +116 -0
- package/dist/agents/tools/sessions-send-tool.a2a.js +119 -0
- package/dist/agents/tools/sessions-send-tool.js +345 -0
- package/dist/agents/tools/sessions-spawn-tool.js +232 -0
- package/dist/agents/tools/slack-actions.js +243 -0
- package/dist/agents/tools/telegram-actions.js +162 -0
- package/dist/agents/tools/tts-tool.js +47 -0
- package/dist/agents/tools/web-fetch-utils.js +104 -0
- package/dist/agents/tools/web-fetch.js +477 -0
- package/dist/agents/tools/web-search.js +355 -0
- package/dist/agents/tools/web-shared.js +62 -0
- package/dist/agents/tools/web-tools.js +2 -0
- package/dist/agents/tools/whatsapp-actions.js +32 -0
- package/dist/agents/transcript-policy.js +83 -0
- package/dist/agents/usage.js +48 -0
- package/dist/agents/venice-models.js +342 -0
- package/dist/agents/workspace.js +234 -0
- package/dist/auto-reply/chunk.js +358 -0
- package/dist/auto-reply/command-auth.js +132 -0
- package/dist/auto-reply/command-detection.js +56 -0
- package/dist/auto-reply/commands-args.js +85 -0
- package/dist/auto-reply/commands-registry.data.js +509 -0
- package/dist/auto-reply/commands-registry.js +351 -0
- package/dist/auto-reply/commands-registry.types.js +1 -0
- package/dist/auto-reply/dispatch.js +40 -0
- package/dist/auto-reply/envelope.js +173 -0
- package/dist/auto-reply/group-activation.js +22 -0
- package/dist/auto-reply/heartbeat.js +120 -0
- package/dist/auto-reply/inbound-debounce.js +74 -0
- package/dist/auto-reply/media-note.js +72 -0
- package/dist/auto-reply/model.js +28 -0
- package/dist/auto-reply/reply/abort.js +151 -0
- package/dist/auto-reply/reply/agent-runner-execution.js +461 -0
- package/dist/auto-reply/reply/agent-runner-helpers.js +65 -0
- package/dist/auto-reply/reply/agent-runner-memory.js +155 -0
- package/dist/auto-reply/reply/agent-runner-payloads.js +85 -0
- package/dist/auto-reply/reply/agent-runner-utils.js +101 -0
- package/dist/auto-reply/reply/agent-runner.js +379 -0
- package/dist/auto-reply/reply/audio-tags.js +1 -0
- package/dist/auto-reply/reply/bash-command.js +336 -0
- package/dist/auto-reply/reply/block-reply-coalescer.js +101 -0
- package/dist/auto-reply/reply/block-reply-pipeline.js +179 -0
- package/dist/auto-reply/reply/block-streaming.js +91 -0
- package/dist/auto-reply/reply/body.js +37 -0
- package/dist/auto-reply/reply/commands-allowlist.js +570 -0
- package/dist/auto-reply/reply/commands-approve.js +88 -0
- package/dist/auto-reply/reply/commands-bash.js +25 -0
- package/dist/auto-reply/reply/commands-compact.js +106 -0
- package/dist/auto-reply/reply/commands-config.js +239 -0
- package/dist/auto-reply/reply/commands-context-report.js +294 -0
- package/dist/auto-reply/reply/commands-context.js +29 -0
- package/dist/auto-reply/reply/commands-core.js +101 -0
- package/dist/auto-reply/reply/commands-info.js +109 -0
- package/dist/auto-reply/reply/commands-models.js +201 -0
- package/dist/auto-reply/reply/commands-plugin.js +35 -0
- package/dist/auto-reply/reply/commands-session.js +311 -0
- package/dist/auto-reply/reply/commands-status.js +178 -0
- package/dist/auto-reply/reply/commands-subagents.js +357 -0
- package/dist/auto-reply/reply/commands-tts.js +228 -0
- package/dist/auto-reply/reply/commands-types.js +1 -0
- package/dist/auto-reply/reply/commands.js +3 -0
- package/dist/auto-reply/reply/config-commands.js +58 -0
- package/dist/auto-reply/reply/config-value.js +35 -0
- package/dist/auto-reply/reply/debug-commands.js +58 -0
- package/dist/auto-reply/reply/directive-handling.auth.js +191 -0
- package/dist/auto-reply/reply/directive-handling.fast-lane.js +60 -0
- package/dist/auto-reply/reply/directive-handling.impl.js +380 -0
- package/dist/auto-reply/reply/directive-handling.js +5 -0
- package/dist/auto-reply/reply/directive-handling.model-picker.js +64 -0
- package/dist/auto-reply/reply/directive-handling.model.js +279 -0
- package/dist/auto-reply/reply/directive-handling.parse.js +84 -0
- package/dist/auto-reply/reply/directive-handling.persist.js +181 -0
- package/dist/auto-reply/reply/directive-handling.queue-validation.js +48 -0
- package/dist/auto-reply/reply/directive-handling.shared.js +43 -0
- package/dist/auto-reply/reply/directives.js +114 -0
- package/dist/auto-reply/reply/dispatch-from-config.js +289 -0
- package/dist/auto-reply/reply/exec/directive.js +183 -0
- package/dist/auto-reply/reply/exec.js +1 -0
- package/dist/auto-reply/reply/followup-runner.js +221 -0
- package/dist/auto-reply/reply/get-reply-directives-apply.js +201 -0
- package/dist/auto-reply/reply/get-reply-directives-utils.js +45 -0
- package/dist/auto-reply/reply/get-reply-directives.js +343 -0
- package/dist/auto-reply/reply/get-reply-inline-actions.js +257 -0
- package/dist/auto-reply/reply/get-reply-run.js +282 -0
- package/dist/auto-reply/reply/get-reply.js +234 -0
- package/dist/auto-reply/reply/groups.js +102 -0
- package/dist/auto-reply/reply/history.js +87 -0
- package/dist/auto-reply/reply/inbound-context.js +51 -0
- package/dist/auto-reply/reply/inbound-dedupe.js +39 -0
- package/dist/auto-reply/reply/inbound-sender-meta.js +45 -0
- package/dist/auto-reply/reply/inbound-text.js +3 -0
- package/dist/auto-reply/reply/line-directives.js +294 -0
- package/dist/auto-reply/reply/memory-flush.js +66 -0
- package/dist/auto-reply/reply/mentions.js +122 -0
- package/dist/auto-reply/reply/model-selection.js +398 -0
- package/dist/auto-reply/reply/normalize-reply.js +54 -0
- package/dist/auto-reply/reply/provider-dispatcher.js +19 -0
- package/dist/auto-reply/reply/queue/cleanup.js +19 -0
- package/dist/auto-reply/reply/queue/directive.js +155 -0
- package/dist/auto-reply/reply/queue/drain.js +111 -0
- package/dist/auto-reply/reply/queue/enqueue.js +43 -0
- package/dist/auto-reply/reply/queue/normalize.js +30 -0
- package/dist/auto-reply/reply/queue/settings.js +52 -0
- package/dist/auto-reply/reply/queue/state.js +53 -0
- package/dist/auto-reply/reply/queue/types.js +1 -0
- package/dist/auto-reply/reply/queue.js +6 -0
- package/dist/auto-reply/reply/reply-directives.js +30 -0
- package/dist/auto-reply/reply/reply-dispatcher.js +100 -0
- package/dist/auto-reply/reply/reply-elevated.js +166 -0
- package/dist/auto-reply/reply/reply-inline.js +28 -0
- package/dist/auto-reply/reply/reply-payloads.js +83 -0
- package/dist/auto-reply/reply/reply-reference.js +35 -0
- package/dist/auto-reply/reply/reply-tags.js +13 -0
- package/dist/auto-reply/reply/reply-threading.js +41 -0
- package/dist/auto-reply/reply/response-prefix-template.js +76 -0
- package/dist/auto-reply/reply/route-reply.js +108 -0
- package/dist/auto-reply/reply/session-reset-model.js +133 -0
- package/dist/auto-reply/reply/session-updates.js +228 -0
- package/dist/auto-reply/reply/session-usage.js +79 -0
- package/dist/auto-reply/reply/session.js +303 -0
- package/dist/auto-reply/reply/stage-sandbox-media.js +146 -0
- package/dist/auto-reply/reply/streaming-directives.js +92 -0
- package/dist/auto-reply/reply/subagents-utils.js +52 -0
- package/dist/auto-reply/reply/test-ctx.js +15 -0
- package/dist/auto-reply/reply/typing-mode.js +91 -0
- package/dist/auto-reply/reply/typing.js +132 -0
- package/dist/auto-reply/reply.js +5 -0
- package/dist/auto-reply/send-policy.js +30 -0
- package/dist/auto-reply/skill-commands.js +97 -0
- package/dist/auto-reply/status.js +399 -0
- package/dist/auto-reply/templating.js +39 -0
- package/dist/auto-reply/thinking.js +154 -0
- package/dist/auto-reply/tokens.js +15 -0
- package/dist/auto-reply/tool-meta.js +112 -0
- package/dist/auto-reply/types.js +1 -0
- package/dist/browser/bridge-server.js +47 -0
- package/dist/browser/cdp.helpers.js +136 -0
- package/dist/browser/cdp.js +293 -0
- package/dist/browser/chrome.executables.js +509 -0
- package/dist/browser/chrome.js +253 -0
- package/dist/browser/chrome.profile-decoration.js +144 -0
- package/dist/browser/client-actions-core.js +94 -0
- package/dist/browser/client-actions-observe.js +94 -0
- package/dist/browser/client-actions-state.js +163 -0
- package/dist/browser/client-actions-types.js +1 -0
- package/dist/browser/client-actions.js +4 -0
- package/dist/browser/client-fetch.js +78 -0
- package/dist/browser/client.js +139 -0
- package/dist/browser/config.js +193 -0
- package/dist/browser/constants.js +8 -0
- package/dist/browser/extension-relay.js +541 -0
- package/dist/browser/profiles-service.js +132 -0
- package/dist/browser/profiles.js +93 -0
- package/dist/browser/pw-ai-module.js +37 -0
- package/dist/browser/pw-ai.js +2 -0
- package/dist/browser/pw-role-snapshot.js +310 -0
- package/dist/browser/pw-session.js +431 -0
- package/dist/browser/pw-tools-core.activity.js +44 -0
- package/dist/browser/pw-tools-core.downloads.js +176 -0
- package/dist/browser/pw-tools-core.interactions.js +420 -0
- package/dist/browser/pw-tools-core.js +8 -0
- package/dist/browser/pw-tools-core.responses.js +83 -0
- package/dist/browser/pw-tools-core.shared.js +48 -0
- package/dist/browser/pw-tools-core.snapshot.js +142 -0
- package/dist/browser/pw-tools-core.state.js +147 -0
- package/dist/browser/pw-tools-core.storage.js +72 -0
- package/dist/browser/pw-tools-core.trace.js +25 -0
- package/dist/browser/routes/agent.act.js +453 -0
- package/dist/browser/routes/agent.act.shared.js +38 -0
- package/dist/browser/routes/agent.debug.js +133 -0
- package/dist/browser/routes/agent.js +10 -0
- package/dist/browser/routes/agent.shared.js +45 -0
- package/dist/browser/routes/agent.snapshot.js +269 -0
- package/dist/browser/routes/agent.storage.js +386 -0
- package/dist/browser/routes/basic.js +174 -0
- package/dist/browser/routes/index.js +8 -0
- package/dist/browser/routes/tabs.js +120 -0
- package/dist/browser/routes/utils.js +57 -0
- package/dist/browser/screenshot.js +39 -0
- package/dist/browser/server-context.js +533 -0
- package/dist/browser/server-context.types.js +1 -0
- package/dist/browser/server.js +92 -0
- package/dist/browser/target-id.js +16 -0
- package/dist/browser/trash.js +21 -0
- package/dist/build-info.json +5 -0
- package/dist/canvas-host/a2ui/.bundle.hash +1 -0
- package/dist/canvas-host/a2ui/a2ui.bundle.js +17768 -0
- package/dist/canvas-host/a2ui/index.html +307 -0
- package/dist/canvas-host/a2ui.js +185 -0
- package/dist/canvas-host/server.js +380 -0
- package/dist/channel-web.js +8 -0
- package/dist/channels/ack-reactions.js +56 -0
- package/dist/channels/allowlist-match.js +3 -0
- package/dist/channels/allowlists/resolve-utils.js +37 -0
- package/dist/channels/channel-config.js +131 -0
- package/dist/channels/chat-type.js +12 -0
- package/dist/channels/command-gating.js +24 -0
- package/dist/channels/conversation-label.js +48 -0
- package/dist/channels/dock.js +344 -0
- package/dist/channels/location.js +44 -0
- package/dist/channels/logging.js +13 -0
- package/dist/channels/mention-gating.js +26 -0
- package/dist/channels/plugins/actions/discord/handle-action.guild-admin.js +328 -0
- package/dist/channels/plugins/actions/discord/handle-action.js +165 -0
- package/dist/channels/plugins/actions/discord.js +93 -0
- package/dist/channels/plugins/actions/signal.js +115 -0
- package/dist/channels/plugins/actions/telegram.js +95 -0
- package/dist/channels/plugins/agent-tools/whatsapp-login.js +63 -0
- package/dist/channels/plugins/allowlist-match.js +1 -0
- package/dist/channels/plugins/bluebubbles-actions.js +16 -0
- package/dist/channels/plugins/catalog.js +216 -0
- package/dist/channels/plugins/channel-config.js +1 -0
- package/dist/channels/plugins/config-helpers.js +87 -0
- package/dist/channels/plugins/config-schema.js +8 -0
- package/dist/channels/plugins/config-writes.js +21 -0
- package/dist/channels/plugins/directory-config.js +185 -0
- package/dist/channels/plugins/group-mentions.js +267 -0
- package/dist/channels/plugins/helpers.js +12 -0
- package/dist/channels/plugins/index.js +51 -0
- package/dist/channels/plugins/load.js +22 -0
- package/dist/channels/plugins/media-limits.js +15 -0
- package/dist/channels/plugins/message-action-names.js +50 -0
- package/dist/channels/plugins/message-actions.js +35 -0
- package/dist/channels/plugins/normalize/discord.js +18 -0
- package/dist/channels/plugins/normalize/imessage.js +36 -0
- package/dist/channels/plugins/normalize/signal.js +52 -0
- package/dist/channels/plugins/normalize/slack.js +19 -0
- package/dist/channels/plugins/normalize/telegram.js +31 -0
- package/dist/channels/plugins/normalize/whatsapp.js +17 -0
- package/dist/channels/plugins/onboarding/channel-access.js +68 -0
- package/dist/channels/plugins/onboarding/discord.js +413 -0
- package/dist/channels/plugins/onboarding/helpers.js +33 -0
- package/dist/channels/plugins/onboarding/imessage.js +231 -0
- package/dist/channels/plugins/onboarding/signal.js +262 -0
- package/dist/channels/plugins/onboarding/slack.js +470 -0
- package/dist/channels/plugins/onboarding/telegram.js +281 -0
- package/dist/channels/plugins/onboarding/whatsapp.js +286 -0
- package/dist/channels/plugins/onboarding-types.js +1 -0
- package/dist/channels/plugins/outbound/discord.js +29 -0
- package/dist/channels/plugins/outbound/imessage.js +38 -0
- package/dist/channels/plugins/outbound/load.js +28 -0
- package/dist/channels/plugins/outbound/signal.js +36 -0
- package/dist/channels/plugins/outbound/slack.js +27 -0
- package/dist/channels/plugins/outbound/telegram.js +91 -0
- package/dist/channels/plugins/outbound/whatsapp.js +76 -0
- package/dist/channels/plugins/pairing-message.js +1 -0
- package/dist/channels/plugins/pairing.js +44 -0
- package/dist/channels/plugins/setup-helpers.js +89 -0
- package/dist/channels/plugins/slack.actions.js +158 -0
- package/dist/channels/plugins/status-issues/bluebubbles.js +76 -0
- package/dist/channels/plugins/status-issues/discord.js +115 -0
- package/dist/channels/plugins/status-issues/shared.js +23 -0
- package/dist/channels/plugins/status-issues/telegram.js +100 -0
- package/dist/channels/plugins/status-issues/whatsapp.js +52 -0
- package/dist/channels/plugins/status.js +26 -0
- package/dist/channels/plugins/types.adapters.js +1 -0
- package/dist/channels/plugins/types.core.js +1 -0
- package/dist/channels/plugins/types.js +1 -0
- package/dist/channels/plugins/types.plugin.js +1 -0
- package/dist/channels/plugins/whatsapp-heartbeat.js +56 -0
- package/dist/channels/registry.js +153 -0
- package/dist/channels/reply-prefix.js +21 -0
- package/dist/channels/sender-identity.js +30 -0
- package/dist/channels/sender-label.js +38 -0
- package/dist/channels/session.js +26 -0
- package/dist/channels/targets.js +27 -0
- package/dist/channels/typing.js +17 -0
- package/dist/channels/web/index.js +2 -0
- package/dist/cli/acp-cli.js +61 -0
- package/dist/cli/argv.js +119 -0
- package/dist/cli/banner.js +94 -0
- package/dist/cli/browser-cli-actions-input/register.element.js +200 -0
- package/dist/cli/browser-cli-actions-input/register.files-downloads.js +128 -0
- package/dist/cli/browser-cli-actions-input/register.form-wait-eval.js +108 -0
- package/dist/cli/browser-cli-actions-input/register.js +10 -0
- package/dist/cli/browser-cli-actions-input/register.navigation.js +63 -0
- package/dist/cli/browser-cli-actions-input/shared.js +50 -0
- package/dist/cli/browser-cli-actions-input.js +1 -0
- package/dist/cli/browser-cli-actions-observe.js +82 -0
- package/dist/cli/browser-cli-debug.js +148 -0
- package/dist/cli/browser-cli-examples.js +33 -0
- package/dist/cli/browser-cli-extension.js +98 -0
- package/dist/cli/browser-cli-inspect.js +130 -0
- package/dist/cli/browser-cli-manage.js +351 -0
- package/dist/cli/browser-cli-serve.js +91 -0
- package/dist/cli/browser-cli-shared.js +1 -0
- package/dist/cli/browser-cli-state.cookies-storage.js +168 -0
- package/dist/cli/browser-cli-state.js +261 -0
- package/dist/cli/browser-cli.js +38 -0
- package/dist/cli/channel-auth.js +49 -0
- package/dist/cli/channel-options.js +29 -0
- package/dist/cli/channels-cli.js +208 -0
- package/dist/cli/cli-utils.js +34 -0
- package/dist/cli/command-format.js +14 -0
- package/dist/cli/command-options.js +6 -0
- package/dist/cli/config-cli.js +295 -0
- package/dist/cli/cron-cli/register.cron-add.js +188 -0
- package/dist/cli/cron-cli/register.cron-edit.js +160 -0
- package/dist/cli/cron-cli/register.cron-simple.js +98 -0
- package/dist/cli/cron-cli/register.js +16 -0
- package/dist/cli/cron-cli/shared.js +178 -0
- package/dist/cli/cron-cli.js +1 -0
- package/dist/cli/daemon-cli/install.js +112 -0
- package/dist/cli/daemon-cli/lifecycle.js +265 -0
- package/dist/cli/daemon-cli/probe.js +28 -0
- package/dist/cli/daemon-cli/register.js +69 -0
- package/dist/cli/daemon-cli/response.js +20 -0
- package/dist/cli/daemon-cli/runners.js +3 -0
- package/dist/cli/daemon-cli/shared.js +162 -0
- package/dist/cli/daemon-cli/status.gather.js +170 -0
- package/dist/cli/daemon-cli/status.js +19 -0
- package/dist/cli/daemon-cli/status.print.js +241 -0
- package/dist/cli/daemon-cli/types.js +1 -0
- package/dist/cli/daemon-cli.js +2 -0
- package/dist/cli/deps.js +28 -0
- package/dist/cli/devices-cli.js +181 -0
- package/dist/cli/directory-cli.js +227 -0
- package/dist/cli/dns-cli.js +199 -0
- package/dist/cli/docs-cli.js +17 -0
- package/dist/cli/exec-approvals-cli.js +378 -0
- package/dist/cli/gateway-cli/call.js +25 -0
- package/dist/cli/gateway-cli/dev.js +99 -0
- package/dist/cli/gateway-cli/discover.js +88 -0
- package/dist/cli/gateway-cli/register.js +255 -0
- package/dist/cli/gateway-cli/run-loop.js +87 -0
- package/dist/cli/gateway-cli/run.js +265 -0
- package/dist/cli/gateway-cli/shared.js +101 -0
- package/dist/cli/gateway-cli.js +1 -0
- package/dist/cli/gateway-rpc.js +27 -0
- package/dist/cli/help-format.js +16 -0
- package/dist/cli/hooks-cli.js +709 -0
- package/dist/cli/logs-cli.js +222 -0
- package/dist/cli/memory-cli.js +527 -0
- package/dist/cli/models-cli.js +321 -0
- package/dist/cli/node-cli/daemon.js +481 -0
- package/dist/cli/node-cli/register.js +81 -0
- package/dist/cli/node-cli.js +1 -0
- package/dist/cli/nodes-camera.js +50 -0
- package/dist/cli/nodes-canvas.js +24 -0
- package/dist/cli/nodes-cli/a2ui-jsonl.js +81 -0
- package/dist/cli/nodes-cli/cli-utils.js +27 -0
- package/dist/cli/nodes-cli/format.js +35 -0
- package/dist/cli/nodes-cli/register.camera.js +193 -0
- package/dist/cli/nodes-cli/register.canvas.js +215 -0
- package/dist/cli/nodes-cli/register.invoke.js +303 -0
- package/dist/cli/nodes-cli/register.js +24 -0
- package/dist/cli/nodes-cli/register.location.js +64 -0
- package/dist/cli/nodes-cli/register.notify.js +51 -0
- package/dist/cli/nodes-cli/register.pairing.js +99 -0
- package/dist/cli/nodes-cli/register.screen.js +66 -0
- package/dist/cli/nodes-cli/register.status.js +328 -0
- package/dist/cli/nodes-cli/rpc.js +88 -0
- package/dist/cli/nodes-cli/types.js +1 -0
- package/dist/cli/nodes-cli.js +1 -0
- package/dist/cli/nodes-run.js +19 -0
- package/dist/cli/nodes-screen.js +35 -0
- package/dist/cli/outbound-send-deps.js +11 -0
- package/dist/cli/pairing-cli.js +115 -0
- package/dist/cli/parse-duration.js +28 -0
- package/dist/cli/parse-timeout.js +18 -0
- package/dist/cli/plugin-registry.js +24 -0
- package/dist/cli/plugins-cli.js +469 -0
- package/dist/cli/ports.js +101 -0
- package/dist/cli/profile-utils.js +17 -0
- package/dist/cli/profile.js +86 -0
- package/dist/cli/program/build-program.js +14 -0
- package/dist/cli/program/command-registry.js +148 -0
- package/dist/cli/program/config-guard.js +67 -0
- package/dist/cli/program/context.js +11 -0
- package/dist/cli/program/help.js +69 -0
- package/dist/cli/program/helpers.js +26 -0
- package/dist/cli/program/message/helpers.js +46 -0
- package/dist/cli/program/message/register.broadcast.js +11 -0
- package/dist/cli/program/message/register.discord-admin.js +119 -0
- package/dist/cli/program/message/register.emoji-sticker.js +43 -0
- package/dist/cli/program/message/register.permissions-search.js +22 -0
- package/dist/cli/program/message/register.pins.js +23 -0
- package/dist/cli/program/message/register.poll.js +13 -0
- package/dist/cli/program/message/register.reactions.js +21 -0
- package/dist/cli/program/message/register.read-edit-delete.js +30 -0
- package/dist/cli/program/message/register.send.js +17 -0
- package/dist/cli/program/message/register.thread.js +35 -0
- package/dist/cli/program/preaction.js +46 -0
- package/dist/cli/program/register.agent.js +162 -0
- package/dist/cli/program/register.configure.js +32 -0
- package/dist/cli/program/register.maintenance.js +91 -0
- package/dist/cli/program/register.message.js +54 -0
- package/dist/cli/program/register.onboard.js +120 -0
- package/dist/cli/program/register.setup.js +41 -0
- package/dist/cli/program/register.status-health-sessions.js +109 -0
- package/dist/cli/program/register.subclis.js +271 -0
- package/dist/cli/program.js +2 -0
- package/dist/cli/progress.js +165 -0
- package/dist/cli/prompt.js +17 -0
- package/dist/cli/route.js +29 -0
- package/dist/cli/run-main.js +100 -0
- package/dist/cli/sandbox-cli.js +98 -0
- package/dist/cli/security-cli.js +123 -0
- package/dist/cli/skills-cli.js +341 -0
- package/dist/cli/system-cli.js +98 -0
- package/dist/cli/tagline.js +208 -0
- package/dist/cli/tui-cli.js +44 -0
- package/dist/cli/update-cli.js +997 -0
- package/dist/cli/wait.js +8 -0
- package/dist/cli/webhooks-cli.js +140 -0
- package/dist/commands/agent/delivery.js +140 -0
- package/dist/commands/agent/run-context.js +27 -0
- package/dist/commands/agent/session-store.js +43 -0
- package/dist/commands/agent/session.js +74 -0
- package/dist/commands/agent/types.js +1 -0
- package/dist/commands/agent-via-gateway.js +119 -0
- package/dist/commands/agent.js +438 -0
- package/dist/commands/agents.bindings.js +126 -0
- package/dist/commands/agents.command-shared.js +18 -0
- package/dist/commands/agents.commands.add.js +293 -0
- package/dist/commands/agents.commands.delete.js +75 -0
- package/dist/commands/agents.commands.identity.js +168 -0
- package/dist/commands/agents.commands.list.js +98 -0
- package/dist/commands/agents.config.js +145 -0
- package/dist/commands/agents.js +6 -0
- package/dist/commands/agents.providers.js +140 -0
- package/dist/commands/auth-choice-options.js +165 -0
- package/dist/commands/auth-choice-prompt.js +36 -0
- package/dist/commands/auth-choice.api-key.js +34 -0
- package/dist/commands/auth-choice.apply.anthropic.js +77 -0
- package/dist/commands/auth-choice.apply.api-providers.js +502 -0
- package/dist/commands/auth-choice.apply.copilot-proxy.js +10 -0
- package/dist/commands/auth-choice.apply.github-copilot.js +47 -0
- package/dist/commands/auth-choice.apply.google-antigravity.js +10 -0
- package/dist/commands/auth-choice.apply.google-gemini-cli.js +10 -0
- package/dist/commands/auth-choice.apply.js +30 -0
- package/dist/commands/auth-choice.apply.minimax.js +72 -0
- package/dist/commands/auth-choice.apply.oauth.js +78 -0
- package/dist/commands/auth-choice.apply.openai.js +117 -0
- package/dist/commands/auth-choice.apply.plugin-provider.js +140 -0
- package/dist/commands/auth-choice.apply.qwen-portal.js +10 -0
- package/dist/commands/auth-choice.default-model.js +12 -0
- package/dist/commands/auth-choice.js +3 -0
- package/dist/commands/auth-choice.model-check.js +61 -0
- package/dist/commands/auth-choice.preferred-provider.js +32 -0
- package/dist/commands/auth-token.js +32 -0
- package/dist/commands/channels/add-mutators.js +49 -0
- package/dist/commands/channels/add.js +210 -0
- package/dist/commands/channels/capabilities.js +439 -0
- package/dist/commands/channels/list.js +145 -0
- package/dist/commands/channels/logs.js +85 -0
- package/dist/commands/channels/remove.js +114 -0
- package/dist/commands/channels/resolve.js +107 -0
- package/dist/commands/channels/shared.js +41 -0
- package/dist/commands/channels/status.js +238 -0
- package/dist/commands/channels.js +7 -0
- package/dist/commands/chutes-oauth.js +144 -0
- package/dist/commands/cleanup-utils.js +74 -0
- package/dist/commands/configure.channels.js +52 -0
- package/dist/commands/configure.commands.js +8 -0
- package/dist/commands/configure.daemon.js +101 -0
- package/dist/commands/configure.gateway-auth.js +64 -0
- package/dist/commands/configure.gateway.js +159 -0
- package/dist/commands/configure.js +4 -0
- package/dist/commands/configure.shared.js +49 -0
- package/dist/commands/configure.wizard.js +466 -0
- package/dist/commands/daemon-install-helpers.js +51 -0
- package/dist/commands/daemon-runtime.js +11 -0
- package/dist/commands/dashboard.js +47 -0
- package/dist/commands/docs.js +148 -0
- package/dist/commands/doctor-auth.js +236 -0
- package/dist/commands/doctor-config-flow.js +188 -0
- package/dist/commands/doctor-format.js +85 -0
- package/dist/commands/doctor-gateway-daemon-flow.js +201 -0
- package/dist/commands/doctor-gateway-health.js +43 -0
- package/dist/commands/doctor-gateway-services.js +209 -0
- package/dist/commands/doctor-install.js +27 -0
- package/dist/commands/doctor-legacy-config.js +42 -0
- package/dist/commands/doctor-platform-notes.js +66 -0
- package/dist/commands/doctor-prompter.js +64 -0
- package/dist/commands/doctor-sandbox.js +207 -0
- package/dist/commands/doctor-security.js +141 -0
- package/dist/commands/doctor-state-integrity.js +332 -0
- package/dist/commands/doctor-state-migrations.js +1 -0
- package/dist/commands/doctor-ui.js +119 -0
- package/dist/commands/doctor-update.js +65 -0
- package/dist/commands/doctor-workspace-status.js +56 -0
- package/dist/commands/doctor-workspace.js +69 -0
- package/dist/commands/doctor.js +252 -0
- package/dist/commands/gateway-status/helpers.js +200 -0
- package/dist/commands/gateway-status.js +300 -0
- package/dist/commands/google-gemini-model-default.js +33 -0
- package/dist/commands/health-format.js +37 -0
- package/dist/commands/health.js +595 -0
- package/dist/commands/message-format.js +345 -0
- package/dist/commands/message.js +45 -0
- package/dist/commands/model-picker.js +420 -0
- package/dist/commands/models/aliases.js +92 -0
- package/dist/commands/models/auth-order.js +95 -0
- package/dist/commands/models/auth.js +334 -0
- package/dist/commands/models/fallbacks.js +126 -0
- package/dist/commands/models/image-fallbacks.js +126 -0
- package/dist/commands/models/list.auth-overview.js +93 -0
- package/dist/commands/models/list.configured.js +80 -0
- package/dist/commands/models/list.format.js +41 -0
- package/dist/commands/models/list.js +2 -0
- package/dist/commands/models/list.list-command.js +99 -0
- package/dist/commands/models/list.probe.js +348 -0
- package/dist/commands/models/list.registry.js +81 -0
- package/dist/commands/models/list.status-command.js +420 -0
- package/dist/commands/models/list.table.js +58 -0
- package/dist/commands/models/list.types.js +1 -0
- package/dist/commands/models/scan.js +293 -0
- package/dist/commands/models/set-image.js +28 -0
- package/dist/commands/models/set.js +28 -0
- package/dist/commands/models/shared.js +80 -0
- package/dist/commands/models.js +10 -0
- package/dist/commands/node-daemon-install-helpers.js +35 -0
- package/dist/commands/node-daemon-runtime.js +6 -0
- package/dist/commands/oauth-env.js +16 -0
- package/dist/commands/oauth-flow.js +33 -0
- package/dist/commands/onboard-auth.config-core.js +386 -0
- package/dist/commands/onboard-auth.config-minimax.js +176 -0
- package/dist/commands/onboard-auth.config-opencode.js +40 -0
- package/dist/commands/onboard-auth.credentials.js +147 -0
- package/dist/commands/onboard-auth.js +7 -0
- package/dist/commands/onboard-auth.models.js +100 -0
- package/dist/commands/onboard-channels.js +527 -0
- package/dist/commands/onboard-helpers.js +359 -0
- package/dist/commands/onboard-hooks.js +59 -0
- package/dist/commands/onboard-interactive.js +17 -0
- package/dist/commands/onboard-non-interactive/api-keys.js +45 -0
- package/dist/commands/onboard-non-interactive/local/auth-choice.js +333 -0
- package/dist/commands/onboard-non-interactive/local/daemon-install.js +45 -0
- package/dist/commands/onboard-non-interactive/local/gateway-config.js +86 -0
- package/dist/commands/onboard-non-interactive/local/output.js +14 -0
- package/dist/commands/onboard-non-interactive/local/skills-config.js +21 -0
- package/dist/commands/onboard-non-interactive/local/workspace.js +7 -0
- package/dist/commands/onboard-non-interactive/local.js +105 -0
- package/dist/commands/onboard-non-interactive/remote.js +41 -0
- package/dist/commands/onboard-non-interactive.js +25 -0
- package/dist/commands/onboard-remote.js +121 -0
- package/dist/commands/onboard-skills.js +146 -0
- package/dist/commands/onboard-types.js +1 -0
- package/dist/commands/onboard.js +62 -0
- package/dist/commands/onboarding/__tests__/test-utils.js +20 -0
- package/dist/commands/onboarding/plugin-install.js +162 -0
- package/dist/commands/onboarding/registry.js +13 -0
- package/dist/commands/onboarding/types.js +1 -0
- package/dist/commands/openai-codex-model-default.js +44 -0
- package/dist/commands/opencode-zen-model-default.js +35 -0
- package/dist/commands/reset.js +134 -0
- package/dist/commands/sandbox-display.js +82 -0
- package/dist/commands/sandbox-explain.js +226 -0
- package/dist/commands/sandbox-formatters.js +31 -0
- package/dist/commands/sandbox.js +119 -0
- package/dist/commands/sessions.js +211 -0
- package/dist/commands/setup.js +60 -0
- package/dist/commands/signal-install.js +132 -0
- package/dist/commands/status-all/agents.js +62 -0
- package/dist/commands/status-all/channels.js +354 -0
- package/dist/commands/status-all/diagnosis.js +156 -0
- package/dist/commands/status-all/format.js +41 -0
- package/dist/commands/status-all/gateway.js +158 -0
- package/dist/commands/status-all/report-lines.js +135 -0
- package/dist/commands/status-all.js +409 -0
- package/dist/commands/status.agent-local.js +68 -0
- package/dist/commands/status.command.js +476 -0
- package/dist/commands/status.daemon.js +30 -0
- package/dist/commands/status.format.js +52 -0
- package/dist/commands/status.gateway-probe.js +35 -0
- package/dist/commands/status.js +2 -0
- package/dist/commands/status.link-channel.js +39 -0
- package/dist/commands/status.scan.js +140 -0
- package/dist/commands/status.summary.js +172 -0
- package/dist/commands/status.types.js +1 -0
- package/dist/commands/status.update.js +112 -0
- package/dist/commands/systemd-linger.js +77 -0
- package/dist/commands/uninstall.js +161 -0
- package/dist/config/agent-dirs.js +79 -0
- package/dist/config/agent-limits.js +16 -0
- package/dist/config/cache-utils.js +22 -0
- package/dist/config/channel-capabilities.js +42 -0
- package/dist/config/commands.js +38 -0
- package/dist/config/config-paths.js +75 -0
- package/dist/config/config.js +7 -0
- package/dist/config/defaults.js +350 -0
- package/dist/config/env-substitution.js +117 -0
- package/dist/config/env-vars.js +21 -0
- package/dist/config/group-policy.js +54 -0
- package/dist/config/includes.js +183 -0
- package/dist/config/io.js +488 -0
- package/dist/config/legacy-migrate.js +13 -0
- package/dist/config/legacy.js +34 -0
- package/dist/config/legacy.migrations.js +8 -0
- package/dist/config/legacy.migrations.part-1.js +308 -0
- package/dist/config/legacy.migrations.part-2.js +343 -0
- package/dist/config/legacy.migrations.part-3.js +161 -0
- package/dist/config/legacy.rules.js +116 -0
- package/dist/config/legacy.shared.js +76 -0
- package/dist/config/logging.js +10 -0
- package/dist/config/markdown-tables.js +36 -0
- package/dist/config/merge-config.js +22 -0
- package/dist/config/merge-patch.js +22 -0
- package/dist/config/normalize-paths.js +54 -0
- package/dist/config/paths.js +90 -0
- package/dist/config/plugin-auto-enable.js +338 -0
- package/dist/config/port-defaults.js +30 -0
- package/dist/config/runtime-overrides.js +50 -0
- package/dist/config/schema.js +789 -0
- package/dist/config/sessions/group.js +83 -0
- package/dist/config/sessions/main-session.js +43 -0
- package/dist/config/sessions/metadata.js +114 -0
- package/dist/config/sessions/paths.js +46 -0
- package/dist/config/sessions/reset.js +103 -0
- package/dist/config/sessions/session-key.js +34 -0
- package/dist/config/sessions/store.js +346 -0
- package/dist/config/sessions/transcript.js +113 -0
- package/dist/config/sessions/types.js +11 -0
- package/dist/config/sessions.js +9 -0
- package/dist/config/talk.js +31 -0
- package/dist/config/telegram-custom-commands.js +70 -0
- package/dist/config/types.agent-defaults.js +1 -0
- package/dist/config/types.agents.js +1 -0
- package/dist/config/types.approvals.js +1 -0
- package/dist/config/types.auth.js +1 -0
- package/dist/config/types.base.js +1 -0
- package/dist/config/types.browser.js +1 -0
- package/dist/config/types.channels.js +1 -0
- package/dist/config/types.clawdbot.js +1 -0
- package/dist/config/types.cron.js +1 -0
- package/dist/config/types.discord.js +1 -0
- package/dist/config/types.gateway.js +1 -0
- package/dist/config/types.googlechat.js +1 -0
- package/dist/config/types.hooks.js +1 -0
- package/dist/config/types.imessage.js +1 -0
- package/dist/config/types.js +29 -0
- package/dist/config/types.messages.js +1 -0
- package/dist/config/types.models.js +1 -0
- package/dist/config/types.msteams.js +1 -0
- package/dist/config/types.node-host.js +1 -0
- package/dist/config/types.plugins.js +1 -0
- package/dist/config/types.queue.js +1 -0
- package/dist/config/types.sandbox.js +1 -0
- package/dist/config/types.signal.js +1 -0
- package/dist/config/types.skills.js +1 -0
- package/dist/config/types.slack.js +1 -0
- package/dist/config/types.telegram.js +1 -0
- package/dist/config/types.tools.js +1 -0
- package/dist/config/types.tts.js +1 -0
- package/dist/config/types.whatsapp.js +1 -0
- package/dist/config/validation.js +297 -0
- package/dist/config/version.js +30 -0
- package/dist/config/zod-schema.agent-defaults.js +156 -0
- package/dist/config/zod-schema.agent-runtime.js +487 -0
- package/dist/config/zod-schema.agents.js +46 -0
- package/dist/config/zod-schema.approvals.js +25 -0
- package/dist/config/zod-schema.channels.js +9 -0
- package/dist/config/zod-schema.core.js +452 -0
- package/dist/config/zod-schema.hooks.js +124 -0
- package/dist/config/zod-schema.js +539 -0
- package/dist/config/zod-schema.providers-core.js +687 -0
- package/dist/config/zod-schema.providers-whatsapp.js +123 -0
- package/dist/config/zod-schema.providers.js +29 -0
- package/dist/config/zod-schema.session.js +100 -0
- package/dist/control-ui/assets/index-08nzABV3.css +1 -0
- package/dist/control-ui/assets/index-DQcOTEYz.js +3119 -0
- package/dist/control-ui/assets/index-DQcOTEYz.js.map +1 -0
- package/dist/control-ui/index.html +15 -0
- package/dist/cron/isolated-agent/delivery-target.js +59 -0
- package/dist/cron/isolated-agent/helpers.js +49 -0
- package/dist/cron/isolated-agent/run.js +374 -0
- package/dist/cron/isolated-agent/session.js +27 -0
- package/dist/cron/isolated-agent.js +1 -0
- package/dist/cron/normalize.js +111 -0
- package/dist/cron/parse.js +24 -0
- package/dist/cron/payload-migration.js +29 -0
- package/dist/cron/run-log.js +70 -0
- package/dist/cron/schedule.js +24 -0
- package/dist/cron/service/jobs.js +174 -0
- package/dist/cron/service/locked.js +12 -0
- package/dist/cron/service/normalize.js +55 -0
- package/dist/cron/service/ops.js +118 -0
- package/dist/cron/service/state.js +10 -0
- package/dist/cron/service/store.js +57 -0
- package/dist/cron/service/timer.js +217 -0
- package/dist/cron/service.js +35 -0
- package/dist/cron/store.js +43 -0
- package/dist/cron/types.js +1 -0
- package/dist/daemon/constants.js +71 -0
- package/dist/daemon/diagnostics.js +38 -0
- package/dist/daemon/inspect.js +313 -0
- package/dist/daemon/launchd-plist.js +68 -0
- package/dist/daemon/launchd.js +316 -0
- package/dist/daemon/legacy.js +44 -0
- package/dist/daemon/node-service.js +53 -0
- package/dist/daemon/paths.js +35 -0
- package/dist/daemon/program-args.js +220 -0
- package/dist/daemon/runtime-parse.js +17 -0
- package/dist/daemon/runtime-paths.js +109 -0
- package/dist/daemon/schtasks.js +303 -0
- package/dist/daemon/service-audit.js +270 -0
- package/dist/daemon/service-env.js +128 -0
- package/dist/daemon/service-runtime.js +1 -0
- package/dist/daemon/service.js +90 -0
- package/dist/daemon/systemd-hints.js +24 -0
- package/dist/daemon/systemd-linger.js +59 -0
- package/dist/daemon/systemd-unit.js +108 -0
- package/dist/daemon/systemd.js +318 -0
- package/dist/discord/accounts.js +52 -0
- package/dist/discord/api.js +93 -0
- package/dist/discord/audit.js +94 -0
- package/dist/discord/chunk.js +200 -0
- package/dist/discord/directory-live.js +76 -0
- package/dist/discord/gateway-logging.js +48 -0
- package/dist/discord/index.js +2 -0
- package/dist/discord/monitor/allow-list.js +230 -0
- package/dist/discord/monitor/exec-approvals.js +406 -0
- package/dist/discord/monitor/format.js +27 -0
- package/dist/discord/monitor/listeners.js +240 -0
- package/dist/discord/monitor/message-handler.js +101 -0
- package/dist/discord/monitor/message-handler.preflight.js +438 -0
- package/dist/discord/monitor/message-handler.preflight.types.js +1 -0
- package/dist/discord/monitor/message-handler.process.js +344 -0
- package/dist/discord/monitor/message-utils.js +189 -0
- package/dist/discord/monitor/native-command.js +705 -0
- package/dist/discord/monitor/presence-cache.js +38 -0
- package/dist/discord/monitor/provider.js +551 -0
- package/dist/discord/monitor/reply-context.js +29 -0
- package/dist/discord/monitor/reply-delivery.js +57 -0
- package/dist/discord/monitor/system-events.js +53 -0
- package/dist/discord/monitor/threading.js +201 -0
- package/dist/discord/monitor/typing.js +8 -0
- package/dist/discord/monitor.gateway.js +54 -0
- package/dist/discord/monitor.js +7 -0
- package/dist/discord/probe.js +124 -0
- package/dist/discord/resolve-channels.js +239 -0
- package/dist/discord/resolve-users.js +114 -0
- package/dist/discord/send.channels.js +74 -0
- package/dist/discord/send.emojis-stickers.js +48 -0
- package/dist/discord/send.guild.js +79 -0
- package/dist/discord/send.js +7 -0
- package/dist/discord/send.messages.js +91 -0
- package/dist/discord/send.outbound.js +87 -0
- package/dist/discord/send.permissions.js +116 -0
- package/dist/discord/send.reactions.js +71 -0
- package/dist/discord/send.shared.js +249 -0
- package/dist/discord/send.types.js +16 -0
- package/dist/discord/targets.js +43 -0
- package/dist/discord/token.js +29 -0
- package/dist/entry.js +127 -0
- package/dist/gateway/assistant-identity.js +64 -0
- package/dist/gateway/auth.js +194 -0
- package/dist/gateway/boot.js +72 -0
- package/dist/gateway/call.js +182 -0
- package/dist/gateway/chat-abort.js +55 -0
- package/dist/gateway/chat-attachments.js +133 -0
- package/dist/gateway/chat-sanitize.js +103 -0
- package/dist/gateway/client.js +339 -0
- package/dist/gateway/config-reload.js +295 -0
- package/dist/gateway/control-ui-shared.js +48 -0
- package/dist/gateway/control-ui.js +258 -0
- package/dist/gateway/device-auth.js +19 -0
- package/dist/gateway/exec-approval-manager.js +40 -0
- package/dist/gateway/hooks-mapping.js +287 -0
- package/dist/gateway/hooks.js +169 -0
- package/dist/gateway/http-common.js +43 -0
- package/dist/gateway/http-utils.js +51 -0
- package/dist/gateway/live-image-probe.js +156 -0
- package/dist/gateway/net.js +176 -0
- package/dist/gateway/node-command-policy.js +106 -0
- package/dist/gateway/node-registry.js +142 -0
- package/dist/gateway/open-responses.schema.js +285 -0
- package/dist/gateway/openai-http.js +327 -0
- package/dist/gateway/openresponses-http.js +693 -0
- package/dist/gateway/probe.js +87 -0
- package/dist/gateway/protocol/client-info.js +46 -0
- package/dist/gateway/protocol/index.js +109 -0
- package/dist/gateway/protocol/schema/agent.js +73 -0
- package/dist/gateway/protocol/schema/agents-models-skills.js +47 -0
- package/dist/gateway/protocol/schema/channels.js +74 -0
- package/dist/gateway/protocol/schema/config.js +44 -0
- package/dist/gateway/protocol/schema/cron.js +159 -0
- package/dist/gateway/protocol/schema/devices.js +36 -0
- package/dist/gateway/protocol/schema/error-codes.js +14 -0
- package/dist/gateway/protocol/schema/exec-approvals.js +66 -0
- package/dist/gateway/protocol/schema/frames.js +101 -0
- package/dist/gateway/protocol/schema/logs-chat.js +53 -0
- package/dist/gateway/protocol/schema/nodes.js +54 -0
- package/dist/gateway/protocol/schema/primitives.js +10 -0
- package/dist/gateway/protocol/schema/protocol-schemas.js +117 -0
- package/dist/gateway/protocol/schema/sessions.js +69 -0
- package/dist/gateway/protocol/schema/snapshot.js +40 -0
- package/dist/gateway/protocol/schema/types.js +1 -0
- package/dist/gateway/protocol/schema/wizard.js +76 -0
- package/dist/gateway/protocol/schema.js +16 -0
- package/dist/gateway/server/__tests__/test-utils.js +24 -0
- package/dist/gateway/server/close-reason.js +10 -0
- package/dist/gateway/server/health-state.js +69 -0
- package/dist/gateway/server/hooks.js +85 -0
- package/dist/gateway/server/http-listen.js +26 -0
- package/dist/gateway/server/plugins-http.js +45 -0
- package/dist/gateway/server/tls.js +4 -0
- package/dist/gateway/server/ws-connection/message-handler.js +771 -0
- package/dist/gateway/server/ws-connection.js +191 -0
- package/dist/gateway/server/ws-types.js +1 -0
- package/dist/gateway/server-broadcast.js +73 -0
- package/dist/gateway/server-browser.js +11 -0
- package/dist/gateway/server-channels.js +242 -0
- package/dist/gateway/server-chat.js +195 -0
- package/dist/gateway/server-close.js +99 -0
- package/dist/gateway/server-constants.js +29 -0
- package/dist/gateway/server-cron.js +84 -0
- package/dist/gateway/server-discovery-runtime.js +69 -0
- package/dist/gateway/server-discovery.js +62 -0
- package/dist/gateway/server-http.js +224 -0
- package/dist/gateway/server-lanes.js +7 -0
- package/dist/gateway/server-maintenance.js +68 -0
- package/dist/gateway/server-methods/agent-job.js +104 -0
- package/dist/gateway/server-methods/agent.js +360 -0
- package/dist/gateway/server-methods/agents.js +14 -0
- package/dist/gateway/server-methods/channels.js +218 -0
- package/dist/gateway/server-methods/chat.js +520 -0
- package/dist/gateway/server-methods/config.js +269 -0
- package/dist/gateway/server-methods/connect.js +6 -0
- package/dist/gateway/server-methods/cron.js +109 -0
- package/dist/gateway/server-methods/devices.js +95 -0
- package/dist/gateway/server-methods/exec-approval.js +78 -0
- package/dist/gateway/server-methods/exec-approvals.js +141 -0
- package/dist/gateway/server-methods/health.js +29 -0
- package/dist/gateway/server-methods/logs.js +143 -0
- package/dist/gateway/server-methods/models.js +16 -0
- package/dist/gateway/server-methods/nodes.helpers.js +32 -0
- package/dist/gateway/server-methods/nodes.js +426 -0
- package/dist/gateway/server-methods/send.js +280 -0
- package/dist/gateway/server-methods/sessions.js +322 -0
- package/dist/gateway/server-methods/skills.js +137 -0
- package/dist/gateway/server-methods/system.js +122 -0
- package/dist/gateway/server-methods/talk.js +20 -0
- package/dist/gateway/server-methods/tts.js +132 -0
- package/dist/gateway/server-methods/types.js +1 -0
- package/dist/gateway/server-methods/update.js +96 -0
- package/dist/gateway/server-methods/usage.js +63 -0
- package/dist/gateway/server-methods/voicewake.js +30 -0
- package/dist/gateway/server-methods/web.js +73 -0
- package/dist/gateway/server-methods/wizard.js +100 -0
- package/dist/gateway/server-methods-list.js +107 -0
- package/dist/gateway/server-methods.js +192 -0
- package/dist/gateway/server-mobile-nodes.js +10 -0
- package/dist/gateway/server-model-catalog.js +11 -0
- package/dist/gateway/server-node-events-types.js +1 -0
- package/dist/gateway/server-node-events.js +206 -0
- package/dist/gateway/server-node-subscriptions.js +93 -0
- package/dist/gateway/server-plugins.js +36 -0
- package/dist/gateway/server-reload-handlers.js +112 -0
- package/dist/gateway/server-restart-sentinel.js +84 -0
- package/dist/gateway/server-runtime-config.js +66 -0
- package/dist/gateway/server-runtime-state.js +113 -0
- package/dist/gateway/server-session-key.js +20 -0
- package/dist/gateway/server-shared.js +1 -0
- package/dist/gateway/server-startup-log.js +27 -0
- package/dist/gateway/server-startup.js +119 -0
- package/dist/gateway/server-tailscale.js +41 -0
- package/dist/gateway/server-utils.js +35 -0
- package/dist/gateway/server-wizard-sessions.js +19 -0
- package/dist/gateway/server-ws-runtime.js +20 -0
- package/dist/gateway/server.impl.js +436 -0
- package/dist/gateway/server.js +2 -0
- package/dist/gateway/session-utils.fs.js +343 -0
- package/dist/gateway/session-utils.js +534 -0
- package/dist/gateway/session-utils.types.js +1 -0
- package/dist/gateway/sessions-patch.js +298 -0
- package/dist/gateway/sessions-resolve.js +103 -0
- package/dist/gateway/test-helpers.e2e.js +101 -0
- package/dist/gateway/test-helpers.mocks.js +502 -0
- package/dist/gateway/test-helpers.openai-mock.js +163 -0
- package/dist/gateway/test-helpers.server.js +369 -0
- package/dist/gateway/tools-invoke-http.js +178 -0
- package/dist/gateway/ws-log.js +336 -0
- package/dist/gateway/ws-logging.js +8 -0
- package/dist/globals.js +41 -0
- package/dist/hooks/bundled/boot-md/HOOK.md +19 -0
- package/dist/hooks/bundled/boot-md/handler.js +14 -0
- package/dist/hooks/bundled/command-logger/HOOK.md +122 -0
- package/dist/hooks/bundled/command-logger/handler.js +55 -0
- package/dist/hooks/bundled/session-memory/HOOK.md +86 -0
- package/dist/hooks/bundled/session-memory/handler.js +140 -0
- package/dist/hooks/bundled/soul-evil/HOOK.md +71 -0
- package/dist/hooks/bundled/soul-evil/handler.js +36 -0
- package/dist/hooks/bundled-dir.js +42 -0
- package/dist/hooks/config.js +122 -0
- package/dist/hooks/frontmatter.js +105 -0
- package/dist/hooks/gmail-ops.js +243 -0
- package/dist/hooks/gmail-setup-utils.js +310 -0
- package/dist/hooks/gmail-watcher.js +191 -0
- package/dist/hooks/gmail.js +179 -0
- package/dist/hooks/hooks-status.js +135 -0
- package/dist/hooks/hooks.js +2 -0
- package/dist/hooks/install.js +327 -0
- package/dist/hooks/installs.js +24 -0
- package/dist/hooks/internal-hooks.js +121 -0
- package/dist/hooks/llm-slug-generator.js +70 -0
- package/dist/hooks/loader.js +110 -0
- package/dist/hooks/plugin-hooks.js +91 -0
- package/dist/hooks/soul-evil.js +186 -0
- package/dist/hooks/types.js +1 -0
- package/dist/hooks/workspace.js +206 -0
- package/dist/imessage/accounts.js +61 -0
- package/dist/imessage/client.js +174 -0
- package/dist/imessage/index.js +3 -0
- package/dist/imessage/monitor/deliver.js +45 -0
- package/dist/imessage/monitor/monitor-provider.js +592 -0
- package/dist/imessage/monitor/runtime.js +12 -0
- package/dist/imessage/monitor/types.js +1 -0
- package/dist/imessage/monitor.js +1 -0
- package/dist/imessage/probe.js +68 -0
- package/dist/imessage/send.js +101 -0
- package/dist/imessage/targets.js +172 -0
- package/dist/index.js +49 -0
- package/dist/infra/agent-events.js +54 -0
- package/dist/infra/archive.js +97 -0
- package/dist/infra/backoff.js +19 -0
- package/dist/infra/binaries.js +9 -0
- package/dist/infra/bonjour-ciao.js +10 -0
- package/dist/infra/bonjour-discovery.js +445 -0
- package/dist/infra/bonjour-errors.js +7 -0
- package/dist/infra/bonjour.js +209 -0
- package/dist/infra/brew.js +55 -0
- package/dist/infra/canvas-host-url.js +52 -0
- package/dist/infra/channel-activity.js +32 -0
- package/dist/infra/channel-summary.js +183 -0
- package/dist/infra/channels-status-issues.js +15 -0
- package/dist/infra/clawdbot-root.js +56 -0
- package/dist/infra/clipboard.js +24 -0
- package/dist/infra/control-ui-assets.js +98 -0
- package/dist/infra/dedupe.js +47 -0
- package/dist/infra/device-auth-store.js +97 -0
- package/dist/infra/device-identity.js +149 -0
- package/dist/infra/device-pairing.js +401 -0
- package/dist/infra/diagnostic-events.js +28 -0
- package/dist/infra/diagnostic-flags.js +66 -0
- package/dist/infra/dotenv.js +15 -0
- package/dist/infra/env-file.js +43 -0
- package/dist/infra/env.js +34 -0
- package/dist/infra/errors.js +35 -0
- package/dist/infra/exec-approval-forwarder.js +212 -0
- package/dist/infra/exec-approvals.js +1040 -0
- package/dist/infra/exec-host.js +75 -0
- package/dist/infra/exec-safety.js +31 -0
- package/dist/infra/fetch.js +58 -0
- package/dist/infra/format-duration.js +20 -0
- package/dist/infra/gateway-lock.js +202 -0
- package/dist/infra/git-commit.js +106 -0
- package/dist/infra/heartbeat-events.js +34 -0
- package/dist/infra/heartbeat-runner.js +743 -0
- package/dist/infra/heartbeat-visibility.js +31 -0
- package/dist/infra/heartbeat-wake.js +61 -0
- package/dist/infra/is-main.js +33 -0
- package/dist/infra/json-file.js +21 -0
- package/dist/infra/machine-name.js +43 -0
- package/dist/infra/net/ssrf.js +199 -0
- package/dist/infra/node-pairing.js +228 -0
- package/dist/infra/node-shell.js +9 -0
- package/dist/infra/os-summary.js +23 -0
- package/dist/infra/outbound/agent-delivery.js +86 -0
- package/dist/infra/outbound/channel-adapters.js +16 -0
- package/dist/infra/outbound/channel-selection.js +62 -0
- package/dist/infra/outbound/channel-target.js +28 -0
- package/dist/infra/outbound/deliver.js +253 -0
- package/dist/infra/outbound/directory-cache.js +44 -0
- package/dist/infra/outbound/envelope.js +20 -0
- package/dist/infra/outbound/format.js +66 -0
- package/dist/infra/outbound/message-action-runner.js +766 -0
- package/dist/infra/outbound/message-action-spec.js +82 -0
- package/dist/infra/outbound/message.js +189 -0
- package/dist/infra/outbound/outbound-policy.js +122 -0
- package/dist/infra/outbound/outbound-send-service.js +123 -0
- package/dist/infra/outbound/outbound-session.js +744 -0
- package/dist/infra/outbound/payloads.js +78 -0
- package/dist/infra/outbound/target-errors.js +23 -0
- package/dist/infra/outbound/target-normalization.js +27 -0
- package/dist/infra/outbound/target-resolver.js +348 -0
- package/dist/infra/outbound/targets.js +213 -0
- package/dist/infra/path-env.js +93 -0
- package/dist/infra/ports-format.js +53 -0
- package/dist/infra/ports-inspect.js +240 -0
- package/dist/infra/ports-lsof.js +33 -0
- package/dist/infra/ports-types.js +1 -0
- package/dist/infra/ports.js +75 -0
- package/dist/infra/provider-usage.auth.js +188 -0
- package/dist/infra/provider-usage.fetch.antigravity.js +212 -0
- package/dist/infra/provider-usage.fetch.claude.js +129 -0
- package/dist/infra/provider-usage.fetch.codex.js +62 -0
- package/dist/infra/provider-usage.fetch.copilot.js +42 -0
- package/dist/infra/provider-usage.fetch.gemini.js +57 -0
- package/dist/infra/provider-usage.fetch.js +7 -0
- package/dist/infra/provider-usage.fetch.minimax.js +332 -0
- package/dist/infra/provider-usage.fetch.shared.js +10 -0
- package/dist/infra/provider-usage.fetch.zai.js +62 -0
- package/dist/infra/provider-usage.format.js +96 -0
- package/dist/infra/provider-usage.js +3 -0
- package/dist/infra/provider-usage.load.js +59 -0
- package/dist/infra/provider-usage.shared.js +51 -0
- package/dist/infra/provider-usage.types.js +1 -0
- package/dist/infra/restart-sentinel.js +65 -0
- package/dist/infra/restart.js +171 -0
- package/dist/infra/retry-policy.js +68 -0
- package/dist/infra/retry.js +85 -0
- package/dist/infra/runtime-guard.js +60 -0
- package/dist/infra/session-cost-usage.js +190 -0
- package/dist/infra/shell-env.js +125 -0
- package/dist/infra/skills-remote.js +282 -0
- package/dist/infra/ssh-config.js +83 -0
- package/dist/infra/ssh-tunnel.js +166 -0
- package/dist/infra/state-migrations.fs.js +49 -0
- package/dist/infra/state-migrations.js +498 -0
- package/dist/infra/system-events.js +75 -0
- package/dist/infra/system-presence.js +231 -0
- package/dist/infra/tailnet.js +46 -0
- package/dist/infra/tailscale.js +368 -0
- package/dist/infra/tls/fingerprint.js +5 -0
- package/dist/infra/tls/gateway.js +119 -0
- package/dist/infra/transport-ready.js +38 -0
- package/dist/infra/unhandled-rejections.js +29 -0
- package/dist/infra/update-channels.js +57 -0
- package/dist/infra/update-check.js +293 -0
- package/dist/infra/update-global.js +85 -0
- package/dist/infra/update-runner.js +557 -0
- package/dist/infra/update-startup.js +86 -0
- package/dist/infra/voicewake.js +74 -0
- package/dist/infra/warnings.js +25 -0
- package/dist/infra/widearea-dns.js +131 -0
- package/dist/infra/ws.js +13 -0
- package/dist/infra/wsl.js +25 -0
- package/dist/line/accounts.js +130 -0
- package/dist/line/auto-reply-delivery.js +102 -0
- package/dist/line/bot-access.js +38 -0
- package/dist/line/bot-handlers.js +258 -0
- package/dist/line/bot-message-context.js +374 -0
- package/dist/line/bot.js +48 -0
- package/dist/line/config-schema.js +47 -0
- package/dist/line/download.js +95 -0
- package/dist/line/flex-templates.js +1264 -0
- package/dist/line/http-registry.js +27 -0
- package/dist/line/index.js +19 -0
- package/dist/line/markdown-to-line.js +346 -0
- package/dist/line/monitor.js +270 -0
- package/dist/line/probe.js +37 -0
- package/dist/line/reply-chunks.js +53 -0
- package/dist/line/rich-menu.js +320 -0
- package/dist/line/send.js +451 -0
- package/dist/line/template-messages.js +258 -0
- package/dist/line/types.js +1 -0
- package/dist/line/webhook.js +75 -0
- package/dist/link-understanding/apply.js +22 -0
- package/dist/link-understanding/defaults.js +2 -0
- package/dist/link-understanding/detect.js +49 -0
- package/dist/link-understanding/format.js +10 -0
- package/dist/link-understanding/index.js +4 -0
- package/dist/link-understanding/runner.js +99 -0
- package/dist/logger.js +53 -0
- package/dist/logging/config.js +19 -0
- package/dist/logging/console.js +237 -0
- package/dist/logging/diagnostic.js +236 -0
- package/dist/logging/levels.js +26 -0
- package/dist/logging/logger.js +185 -0
- package/dist/logging/parse-log-line.js +52 -0
- package/dist/logging/redact.js +115 -0
- package/dist/logging/state.js +12 -0
- package/dist/logging/subsystem.js +234 -0
- package/dist/logging.js +5 -0
- package/dist/macos/gateway-daemon.js +178 -0
- package/dist/macos/relay-smoke.js +29 -0
- package/dist/macos/relay.js +60 -0
- package/dist/markdown/code-spans.js +67 -0
- package/dist/markdown/fences.js +57 -0
- package/dist/markdown/frontmatter.js +124 -0
- package/dist/markdown/ir.js +687 -0
- package/dist/markdown/render.js +113 -0
- package/dist/markdown/tables.js +35 -0
- package/dist/media/audio-tags.js +14 -0
- package/dist/media/audio.js +15 -0
- package/dist/media/constants.js +33 -0
- package/dist/media/fetch.js +151 -0
- package/dist/media/host.js +43 -0
- package/dist/media/image-ops.js +385 -0
- package/dist/media/input-files.js +276 -0
- package/dist/media/mime.js +147 -0
- package/dist/media/parse.js +175 -0
- package/dist/media/server.js +64 -0
- package/dist/media/store.js +199 -0
- package/dist/media-understanding/apply.js +78 -0
- package/dist/media-understanding/attachments.js +320 -0
- package/dist/media-understanding/concurrency.js +26 -0
- package/dist/media-understanding/defaults.js +30 -0
- package/dist/media-understanding/errors.js +11 -0
- package/dist/media-understanding/format.js +56 -0
- package/dist/media-understanding/index.js +3 -0
- package/dist/media-understanding/providers/anthropic/index.js +6 -0
- package/dist/media-understanding/providers/deepgram/audio.js +47 -0
- package/dist/media-understanding/providers/deepgram/index.js +6 -0
- package/dist/media-understanding/providers/google/audio.js +64 -0
- package/dist/media-understanding/providers/google/index.js +10 -0
- package/dist/media-understanding/providers/google/video.js +64 -0
- package/dist/media-understanding/providers/groq/index.js +10 -0
- package/dist/media-understanding/providers/image.js +59 -0
- package/dist/media-understanding/providers/index.js +45 -0
- package/dist/media-understanding/providers/minimax/index.js +6 -0
- package/dist/media-understanding/providers/openai/audio.js +46 -0
- package/dist/media-understanding/providers/openai/index.js +8 -0
- package/dist/media-understanding/providers/shared.js +29 -0
- package/dist/media-understanding/resolve.js +113 -0
- package/dist/media-understanding/runner.js +976 -0
- package/dist/media-understanding/scope.js +41 -0
- package/dist/media-understanding/types.js +1 -0
- package/dist/media-understanding/video.js +8 -0
- package/dist/memory/batch-gemini.js +320 -0
- package/dist/memory/batch-openai.js +290 -0
- package/dist/memory/embeddings-gemini.js +129 -0
- package/dist/memory/embeddings-openai.js +65 -0
- package/dist/memory/embeddings.js +170 -0
- package/dist/memory/headers-fingerprint.js +16 -0
- package/dist/memory/hybrid.js +61 -0
- package/dist/memory/index.js +1 -0
- package/dist/memory/internal.js +189 -0
- package/dist/memory/manager-cache-key.js +45 -0
- package/dist/memory/manager-search.js +95 -0
- package/dist/memory/manager.js +1815 -0
- package/dist/memory/memory-schema.js +76 -0
- package/dist/memory/node-llama.js +3 -0
- package/dist/memory/openai-batch.js +2 -0
- package/dist/memory/provider-key.js +23 -0
- package/dist/memory/search-manager.js +11 -0
- package/dist/memory/session-files.js +98 -0
- package/dist/memory/sqlite-vec.js +19 -0
- package/dist/memory/sqlite.js +7 -0
- package/dist/memory/status-format.js +23 -0
- package/dist/memory/sync-memory-files.js +69 -0
- package/dist/memory/sync-session-files.js +95 -0
- package/dist/node-host/config.js +53 -0
- package/dist/node-host/runner.js +951 -0
- package/dist/pairing/pairing-labels.js +4 -0
- package/dist/pairing/pairing-messages.js +14 -0
- package/dist/pairing/pairing-store.js +357 -0
- package/dist/plugin-sdk/index.js +84 -0
- package/dist/plugins/bundled-dir.js +35 -0
- package/dist/plugins/cli.js +49 -0
- package/dist/plugins/commands.js +228 -0
- package/dist/plugins/config-schema.js +23 -0
- package/dist/plugins/config-state.js +101 -0
- package/dist/plugins/discovery.js +273 -0
- package/dist/plugins/enable.js +36 -0
- package/dist/plugins/hook-runner-global.js +57 -0
- package/dist/plugins/hooks.js +283 -0
- package/dist/plugins/http-path.js +10 -0
- package/dist/plugins/http-registry.js +31 -0
- package/dist/plugins/install.js +323 -0
- package/dist/plugins/installs.js +21 -0
- package/dist/plugins/loader.js +364 -0
- package/dist/plugins/manifest-registry.js +136 -0
- package/dist/plugins/manifest.js +69 -0
- package/dist/plugins/providers.js +16 -0
- package/dist/plugins/registry.js +312 -0
- package/dist/plugins/runtime/index.js +290 -0
- package/dist/plugins/runtime/native-deps.js +16 -0
- package/dist/plugins/runtime/types.js +1 -0
- package/dist/plugins/runtime.js +42 -0
- package/dist/plugins/schema-validator.js +28 -0
- package/dist/plugins/services.js +55 -0
- package/dist/plugins/slots.js +68 -0
- package/dist/plugins/status.js +27 -0
- package/dist/plugins/tools.js +98 -0
- package/dist/plugins/types.js +1 -0
- package/dist/plugins/update.js +324 -0
- package/dist/polls.js +41 -0
- package/dist/process/child-process-bridge.js +34 -0
- package/dist/process/command-queue.js +104 -0
- package/dist/process/exec.js +98 -0
- package/dist/process/lanes.js +1 -0
- package/dist/process/spawn-utils.js +95 -0
- package/dist/providers/github-copilot-auth.js +124 -0
- package/dist/providers/github-copilot-models.js +35 -0
- package/dist/providers/github-copilot-token.js +95 -0
- package/dist/providers/qwen-portal-oauth.js +38 -0
- package/dist/routing/bindings.js +87 -0
- package/dist/routing/resolve-route.js +140 -0
- package/dist/routing/session-key.js +169 -0
- package/dist/runtime.js +15 -0
- package/dist/security/audit-extra.js +852 -0
- package/dist/security/audit-fs.js +133 -0
- package/dist/security/audit.js +790 -0
- package/dist/security/external-content.js +143 -0
- package/dist/security/fix.js +402 -0
- package/dist/security/windows-acl.js +162 -0
- package/dist/sessions/level-overrides.js +24 -0
- package/dist/sessions/model-overrides.js +57 -0
- package/dist/sessions/send-policy.js +69 -0
- package/dist/sessions/session-key-utils.js +51 -0
- package/dist/sessions/session-label.js +16 -0
- package/dist/sessions/transcript-events.js +16 -0
- package/dist/shared/text/reasoning-tags.js +48 -0
- package/dist/signal/accounts.js +59 -0
- package/dist/signal/client.js +141 -0
- package/dist/signal/daemon.js +69 -0
- package/dist/signal/format.js +165 -0
- package/dist/signal/identity.js +95 -0
- package/dist/signal/index.js +5 -0
- package/dist/signal/monitor/event-handler.js +492 -0
- package/dist/signal/monitor/event-handler.types.js +1 -0
- package/dist/signal/monitor.js +269 -0
- package/dist/signal/probe.js +46 -0
- package/dist/signal/reaction-level.js +53 -0
- package/dist/signal/send-reactions.js +155 -0
- package/dist/signal/send.js +192 -0
- package/dist/signal/sse-reconnect.js +56 -0
- package/dist/slack/accounts.js +84 -0
- package/dist/slack/actions.js +156 -0
- package/dist/slack/channel-migration.js +53 -0
- package/dist/slack/client.js +17 -0
- package/dist/slack/directory-live.js +122 -0
- package/dist/slack/format.js +111 -0
- package/dist/slack/http/index.js +1 -0
- package/dist/slack/http/registry.js +27 -0
- package/dist/slack/index.js +6 -0
- package/dist/slack/monitor/allow-list.js +58 -0
- package/dist/slack/monitor/auth.js +17 -0
- package/dist/slack/monitor/channel-config.js +79 -0
- package/dist/slack/monitor/commands.js +17 -0
- package/dist/slack/monitor/context.js +242 -0
- package/dist/slack/monitor/events/channels.js +116 -0
- package/dist/slack/monitor/events/members.js +74 -0
- package/dist/slack/monitor/events/messages.js +111 -0
- package/dist/slack/monitor/events/pins.js +76 -0
- package/dist/slack/monitor/events/reactions.js +54 -0
- package/dist/slack/monitor/events.js +15 -0
- package/dist/slack/monitor/media.js +93 -0
- package/dist/slack/monitor/message-handler/dispatch.js +170 -0
- package/dist/slack/monitor/message-handler/prepare.js +477 -0
- package/dist/slack/monitor/message-handler/types.js +1 -0
- package/dist/slack/monitor/message-handler.js +87 -0
- package/dist/slack/monitor/policy.js +10 -0
- package/dist/slack/monitor/provider.js +324 -0
- package/dist/slack/monitor/replies.js +107 -0
- package/dist/slack/monitor/slash.js +504 -0
- package/dist/slack/monitor/thread-resolution.js +102 -0
- package/dist/slack/monitor/types.js +1 -0
- package/dist/slack/monitor.js +4 -0
- package/dist/slack/monitor.test-helpers.js +119 -0
- package/dist/slack/probe.js +47 -0
- package/dist/slack/resolve-channels.js +88 -0
- package/dist/slack/resolve-users.js +133 -0
- package/dist/slack/scopes.js +87 -0
- package/dist/slack/send.js +132 -0
- package/dist/slack/targets.js +48 -0
- package/dist/slack/threading-tool-context.js +18 -0
- package/dist/slack/threading.js +26 -0
- package/dist/slack/token.js +10 -0
- package/dist/slack/types.js +1 -0
- package/dist/telegram/accounts.js +98 -0
- package/dist/telegram/allowed-updates.js +8 -0
- package/dist/telegram/audit.js +116 -0
- package/dist/telegram/bot/delivery.js +312 -0
- package/dist/telegram/bot/helpers.js +303 -0
- package/dist/telegram/bot/types.js +1 -0
- package/dist/telegram/bot-access.js +59 -0
- package/dist/telegram/bot-handlers.js +516 -0
- package/dist/telegram/bot-message-context.js +435 -0
- package/dist/telegram/bot-message-dispatch.js +183 -0
- package/dist/telegram/bot-message.js +41 -0
- package/dist/telegram/bot-native-commands.js +402 -0
- package/dist/telegram/bot-updates.js +25 -0
- package/dist/telegram/bot.js +383 -0
- package/dist/telegram/caption.js +11 -0
- package/dist/telegram/download.js +34 -0
- package/dist/telegram/draft-chunking.js +22 -0
- package/dist/telegram/draft-stream.js +101 -0
- package/dist/telegram/fetch.js +11 -0
- package/dist/telegram/format.js +66 -0
- package/dist/telegram/group-migration.js +53 -0
- package/dist/telegram/index.js +4 -0
- package/dist/telegram/inline-buttons.js +55 -0
- package/dist/telegram/monitor.js +142 -0
- package/dist/telegram/pairing-store.js +77 -0
- package/dist/telegram/probe.js +70 -0
- package/dist/telegram/proxy.js +10 -0
- package/dist/telegram/reaction-level.js +46 -0
- package/dist/telegram/send.js +382 -0
- package/dist/telegram/sent-message-cache.js +53 -0
- package/dist/telegram/targets.js +46 -0
- package/dist/telegram/token.js +58 -0
- package/dist/telegram/update-offset-store.js +60 -0
- package/dist/telegram/voice.js +23 -0
- package/dist/telegram/webhook-set.js +21 -0
- package/dist/telegram/webhook.js +90 -0
- package/dist/terminal/ansi.js +11 -0
- package/dist/terminal/links.js +17 -0
- package/dist/terminal/note.js +79 -0
- package/dist/terminal/palette.js +12 -0
- package/dist/terminal/progress-line.js +18 -0
- package/dist/terminal/prompt-style.js +4 -0
- package/dist/terminal/stream-writer.js +49 -0
- package/dist/terminal/table.js +327 -0
- package/dist/terminal/theme.js +22 -0
- package/dist/tts/tts.js +1159 -0
- package/dist/tui/commands.js +134 -0
- package/dist/tui/components/assistant-message.js +16 -0
- package/dist/tui/components/chat-log.js +86 -0
- package/dist/tui/components/custom-editor.js +61 -0
- package/dist/tui/components/filterable-select-list.js +102 -0
- package/dist/tui/components/fuzzy-filter.js +113 -0
- package/dist/tui/components/searchable-select-list.js +231 -0
- package/dist/tui/components/selectors.js +16 -0
- package/dist/tui/components/tool-execution.js +109 -0
- package/dist/tui/components/user-message.js +17 -0
- package/dist/tui/gateway-chat.js +146 -0
- package/dist/tui/theme/syntax-theme.js +49 -0
- package/dist/tui/theme/theme.js +119 -0
- package/dist/tui/tui-command-handlers.js +418 -0
- package/dist/tui/tui-event-handlers.js +160 -0
- package/dist/tui/tui-formatters.js +158 -0
- package/dist/tui/tui-local-shell.js +99 -0
- package/dist/tui/tui-overlays.js +13 -0
- package/dist/tui/tui-session-actions.js +205 -0
- package/dist/tui/tui-status-summary.js +74 -0
- package/dist/tui/tui-stream-assembler.js +54 -0
- package/dist/tui/tui-types.js +1 -0
- package/dist/tui/tui-waiting.js +34 -0
- package/dist/tui/tui.js +551 -0
- package/dist/utils/account-id.js +6 -0
- package/dist/utils/boolean.js +22 -0
- package/dist/utils/delivery-context.js +84 -0
- package/dist/utils/directive-tags.js +54 -0
- package/dist/utils/message-channel.js +84 -0
- package/dist/utils/provider-utils.js +28 -0
- package/dist/utils/queue-helpers.js +95 -0
- package/dist/utils/time-format.js +19 -0
- package/dist/utils/usage-format.js +46 -0
- package/dist/utils.js +247 -0
- package/dist/version.js +18 -0
- package/dist/web/accounts.js +122 -0
- package/dist/web/active-listener.js +37 -0
- package/dist/web/auth-store.js +168 -0
- package/dist/web/auto-reply/constants.js +1 -0
- package/dist/web/auto-reply/deliver-reply.js +140 -0
- package/dist/web/auto-reply/heartbeat-runner.js +264 -0
- package/dist/web/auto-reply/loggers.js +5 -0
- package/dist/web/auto-reply/mentions.js +79 -0
- package/dist/web/auto-reply/monitor/ack-reaction.js +47 -0
- package/dist/web/auto-reply/monitor/broadcast.js +64 -0
- package/dist/web/auto-reply/monitor/commands.js +21 -0
- package/dist/web/auto-reply/monitor/echo.js +36 -0
- package/dist/web/auto-reply/monitor/group-activation.js +37 -0
- package/dist/web/auto-reply/monitor/group-gating.js +98 -0
- package/dist/web/auto-reply/monitor/group-members.js +53 -0
- package/dist/web/auto-reply/monitor/last-route.js +38 -0
- package/dist/web/auto-reply/monitor/message-line.js +35 -0
- package/dist/web/auto-reply/monitor/on-message.js +128 -0
- package/dist/web/auto-reply/monitor/peer.js +10 -0
- package/dist/web/auto-reply/monitor/process-message.js +316 -0
- package/dist/web/auto-reply/monitor.js +355 -0
- package/dist/web/auto-reply/session-snapshot.js +40 -0
- package/dist/web/auto-reply/types.js +1 -0
- package/dist/web/auto-reply/util.js +47 -0
- package/dist/web/auto-reply.impl.js +5 -0
- package/dist/web/auto-reply.js +1 -0
- package/dist/web/inbound/access-control.js +147 -0
- package/dist/web/inbound/dedupe.js +13 -0
- package/dist/web/inbound/extract.js +254 -0
- package/dist/web/inbound/media.js +35 -0
- package/dist/web/inbound/monitor.js +332 -0
- package/dist/web/inbound/send-api.js +90 -0
- package/dist/web/inbound/types.js +1 -0
- package/dist/web/inbound.js +3 -0
- package/dist/web/login-qr.js +227 -0
- package/dist/web/login.js +68 -0
- package/dist/web/media.js +221 -0
- package/dist/web/outbound.js +132 -0
- package/dist/web/qr-image.js +95 -0
- package/dist/web/reconnect.js +36 -0
- package/dist/web/session.js +224 -0
- package/dist/web/vcard.js +63 -0
- package/dist/whatsapp/normalize.js +66 -0
- package/dist/wizard/clack-prompter.js +72 -0
- package/dist/wizard/onboarding.finalize.js +351 -0
- package/dist/wizard/onboarding.gateway-config.js +188 -0
- package/dist/wizard/onboarding.js +372 -0
- package/dist/wizard/onboarding.types.js +1 -0
- package/dist/wizard/prompts.js +6 -0
- package/dist/wizard/session.js +201 -0
- package/docs/CNAME +1 -0
- package/docs/_config.yml +53 -0
- package/docs/_layouts/default.html +145 -0
- package/docs/assets/markdown.css +179 -0
- package/docs/assets/pixel-lobster.svg +60 -0
- package/docs/assets/showcase/agents-ui.jpg +0 -0
- package/docs/assets/showcase/bambu-cli.png +0 -0
- package/docs/assets/showcase/codexmonitor.png +0 -0
- package/docs/assets/showcase/gohome-grafana.png +0 -0
- package/docs/assets/showcase/ios-testflight.jpg +0 -0
- package/docs/assets/showcase/oura-health.png +0 -0
- package/docs/assets/showcase/padel-cli.svg +11 -0
- package/docs/assets/showcase/padel-screenshot.jpg +0 -0
- package/docs/assets/showcase/papla-tts.jpg +0 -0
- package/docs/assets/showcase/pr-review-telegram.jpg +0 -0
- package/docs/assets/showcase/roborock-screenshot.jpg +0 -0
- package/docs/assets/showcase/roborock-status.svg +13 -0
- package/docs/assets/showcase/roof-camera-sky.jpg +0 -0
- package/docs/assets/showcase/snag.png +0 -0
- package/docs/assets/showcase/tesco-shop.jpg +0 -0
- package/docs/assets/showcase/wienerlinien.png +0 -0
- package/docs/assets/showcase/wine-cellar-skill.jpg +0 -0
- package/docs/assets/showcase/winix-air-purifier.jpg +0 -0
- package/docs/assets/showcase/xuezh-pronunciation.jpeg +0 -0
- package/docs/assets/terminal.css +470 -0
- package/docs/assets/theme.js +55 -0
- package/docs/automation/auth-monitoring.md +41 -0
- package/docs/automation/cron-jobs.md +286 -0
- package/docs/automation/cron-vs-heartbeat.md +274 -0
- package/docs/automation/gmail-pubsub.md +252 -0
- package/docs/automation/poll.md +63 -0
- package/docs/automation/webhook.md +155 -0
- package/docs/bedrock.md +172 -0
- package/docs/brave-search.md +40 -0
- package/docs/broadcast-groups.md +407 -0
- package/docs/channels/bluebubbles.md +232 -0
- package/docs/channels/discord.md +400 -0
- package/docs/channels/googlechat.md +220 -0
- package/docs/channels/grammy.md +27 -0
- package/docs/channels/imessage.md +261 -0
- package/docs/channels/index.md +43 -0
- package/docs/channels/line.md +183 -0
- package/docs/channels/location.md +48 -0
- package/docs/channels/matrix.md +230 -0
- package/docs/channels/mattermost.md +123 -0
- package/docs/channels/msteams.md +703 -0
- package/docs/channels/nextcloud-talk.md +120 -0
- package/docs/channels/nostr.md +235 -0
- package/docs/channels/signal.md +179 -0
- package/docs/channels/slack.md +507 -0
- package/docs/channels/telegram.md +546 -0
- package/docs/channels/tlon.md +133 -0
- package/docs/channels/troubleshooting.md +25 -0
- package/docs/channels/twitch.md +366 -0
- package/docs/channels/whatsapp.md +362 -0
- package/docs/channels/zalo.md +167 -0
- package/docs/channels/zalouser.md +123 -0
- package/docs/cli/acp.md +166 -0
- package/docs/cli/agent.md +22 -0
- package/docs/cli/agents.md +71 -0
- package/docs/cli/approvals.md +48 -0
- package/docs/cli/browser.md +106 -0
- package/docs/cli/channels.md +75 -0
- package/docs/cli/config.md +49 -0
- package/docs/cli/configure.md +30 -0
- package/docs/cli/cron.md +29 -0
- package/docs/cli/dashboard.md +16 -0
- package/docs/cli/devices.md +66 -0
- package/docs/cli/directory.md +60 -0
- package/docs/cli/dns.md +22 -0
- package/docs/cli/docs.md +15 -0
- package/docs/cli/doctor.md +38 -0
- package/docs/cli/gateway.md +187 -0
- package/docs/cli/health.md +19 -0
- package/docs/cli/hooks.md +290 -0
- package/docs/cli/index.md +919 -0
- package/docs/cli/logs.md +23 -0
- package/docs/cli/memory.md +41 -0
- package/docs/cli/message.md +228 -0
- package/docs/cli/models.md +68 -0
- package/docs/cli/node.md +108 -0
- package/docs/cli/nodes.md +68 -0
- package/docs/cli/onboard.md +25 -0
- package/docs/cli/pairing.md +20 -0
- package/docs/cli/plugins.md +60 -0
- package/docs/cli/reset.md +17 -0
- package/docs/cli/sandbox.md +150 -0
- package/docs/cli/security.md +24 -0
- package/docs/cli/sessions.md +16 -0
- package/docs/cli/setup.md +28 -0
- package/docs/cli/skills.md +25 -0
- package/docs/cli/status.md +24 -0
- package/docs/cli/system.md +55 -0
- package/docs/cli/tui.md +22 -0
- package/docs/cli/uninstall.md +17 -0
- package/docs/cli/update.md +96 -0
- package/docs/cli/voicecall.md +33 -0
- package/docs/cli/webhooks.md +23 -0
- package/docs/concepts/agent-loop.md +126 -0
- package/docs/concepts/agent-workspace.md +231 -0
- package/docs/concepts/agent.md +117 -0
- package/docs/concepts/architecture.md +122 -0
- package/docs/concepts/channel-routing.md +114 -0
- package/docs/concepts/compaction.md +49 -0
- package/docs/concepts/context.md +151 -0
- package/docs/concepts/group-messages.md +78 -0
- package/docs/concepts/groups.md +308 -0
- package/docs/concepts/markdown-formatting.md +132 -0
- package/docs/concepts/memory.md +388 -0
- package/docs/concepts/messages.md +143 -0
- package/docs/concepts/model-failover.md +139 -0
- package/docs/concepts/model-providers.md +318 -0
- package/docs/concepts/models.md +202 -0
- package/docs/concepts/multi-agent.md +354 -0
- package/docs/concepts/oauth.md +135 -0
- package/docs/concepts/presence.md +98 -0
- package/docs/concepts/queue.md +77 -0
- package/docs/concepts/retry.md +60 -0
- package/docs/concepts/session-pruning.md +104 -0
- package/docs/concepts/session-tool.md +171 -0
- package/docs/concepts/session.md +150 -0
- package/docs/concepts/sessions.md +8 -0
- package/docs/concepts/streaming.md +123 -0
- package/docs/concepts/system-prompt.md +110 -0
- package/docs/concepts/timezone.md +89 -0
- package/docs/concepts/typebox.md +281 -0
- package/docs/concepts/typing-indicators.md +59 -0
- package/docs/concepts/usage-tracking.md +30 -0
- package/docs/date-time.md +127 -0
- package/docs/debug/node-issue.md +72 -0
- package/docs/debugging.md +161 -0
- package/docs/diagnostics/flags.md +89 -0
- package/docs/docs.json +1135 -0
- package/docs/environment.md +78 -0
- package/docs/experiments/onboarding-config-protocol.md +34 -0
- package/docs/experiments/plans/cron-add-hardening.md +57 -0
- package/docs/experiments/plans/group-policy-hardening.md +38 -0
- package/docs/experiments/plans/openresponses-gateway.md +122 -0
- package/docs/experiments/proposals/model-config.md +32 -0
- package/docs/experiments/research/memory.md +210 -0
- package/docs/gateway/authentication.md +143 -0
- package/docs/gateway/background-process.md +82 -0
- package/docs/gateway/bonjour.md +162 -0
- package/docs/gateway/bridge-protocol.md +85 -0
- package/docs/gateway/cli-backends.md +221 -0
- package/docs/gateway/configuration-examples.md +572 -0
- package/docs/gateway/configuration.md +3246 -0
- package/docs/gateway/discovery.md +110 -0
- package/docs/gateway/doctor.md +252 -0
- package/docs/gateway/gateway-lock.md +28 -0
- package/docs/gateway/health.md +29 -0
- package/docs/gateway/heartbeat.md +297 -0
- package/docs/gateway/index.md +292 -0
- package/docs/gateway/local-models.md +146 -0
- package/docs/gateway/logging.md +112 -0
- package/docs/gateway/multiple-gateways.md +107 -0
- package/docs/gateway/openai-http-api.md +112 -0
- package/docs/gateway/openresponses-http-api.md +298 -0
- package/docs/gateway/pairing.md +92 -0
- package/docs/gateway/protocol.md +215 -0
- package/docs/gateway/remote-gateway-readme.md +153 -0
- package/docs/gateway/remote.md +122 -0
- package/docs/gateway/sandbox-vs-tool-policy-vs-elevated.md +117 -0
- package/docs/gateway/sandboxing.md +174 -0
- package/docs/gateway/security.md +741 -0
- package/docs/gateway/tailscale.md +146 -0
- package/docs/gateway/tools-invoke-http-api.md +79 -0
- package/docs/gateway/troubleshooting.md +714 -0
- package/docs/help/faq.md +2725 -0
- package/docs/help/index.md +20 -0
- package/docs/help/troubleshooting.md +97 -0
- package/docs/hooks/soul-evil.md +68 -0
- package/docs/hooks.md +896 -0
- package/docs/images/groups-flow.svg +52 -0
- package/docs/images/mobile-ui-screenshot.png +0 -0
- package/docs/index.md +240 -0
- package/docs/install/ansible.md +205 -0
- package/docs/install/bun.md +58 -0
- package/docs/install/development-channels.md +74 -0
- package/docs/install/docker.md +447 -0
- package/docs/install/index.md +180 -0
- package/docs/install/installer.md +122 -0
- package/docs/install/nix.md +95 -0
- package/docs/install/node.md +77 -0
- package/docs/install/uninstall.md +125 -0
- package/docs/install/updating.md +218 -0
- package/docs/logging.md +343 -0
- package/docs/multi-agent-sandbox-tools.md +374 -0
- package/docs/network.md +51 -0
- package/docs/nodes/audio.md +109 -0
- package/docs/nodes/camera.md +152 -0
- package/docs/nodes/images.md +61 -0
- package/docs/nodes/index.md +305 -0
- package/docs/nodes/location-command.md +95 -0
- package/docs/nodes/media-understanding.md +313 -0
- package/docs/nodes/talk.md +79 -0
- package/docs/nodes/voicewake.md +61 -0
- package/docs/perplexity.md +79 -0
- package/docs/platforms/android.md +141 -0
- package/docs/platforms/digitalocean.md +243 -0
- package/docs/platforms/exe-dev.md +187 -0
- package/docs/platforms/fly.md +465 -0
- package/docs/platforms/gcp.md +498 -0
- package/docs/platforms/hetzner.md +325 -0
- package/docs/platforms/index.md +50 -0
- package/docs/platforms/ios.md +104 -0
- package/docs/platforms/linux.md +89 -0
- package/docs/platforms/mac/bundled-gateway.md +67 -0
- package/docs/platforms/mac/canvas.md +121 -0
- package/docs/platforms/mac/child-process.md +67 -0
- package/docs/platforms/mac/dev-setup.md +91 -0
- package/docs/platforms/mac/health.md +28 -0
- package/docs/platforms/mac/icon.md +26 -0
- package/docs/platforms/mac/logging.md +51 -0
- package/docs/platforms/mac/menu-bar.md +70 -0
- package/docs/platforms/mac/peekaboo.md +62 -0
- package/docs/platforms/mac/permissions.md +40 -0
- package/docs/platforms/mac/release.md +77 -0
- package/docs/platforms/mac/remote.md +71 -0
- package/docs/platforms/mac/signing.md +43 -0
- package/docs/platforms/mac/skills.md +27 -0
- package/docs/platforms/mac/voice-overlay.md +52 -0
- package/docs/platforms/mac/voicewake.md +56 -0
- package/docs/platforms/mac/webchat.md +39 -0
- package/docs/platforms/mac/xpc.md +51 -0
- package/docs/platforms/macos-vm.md +275 -0
- package/docs/platforms/macos.md +195 -0
- package/docs/platforms/oracle.md +291 -0
- package/docs/platforms/raspberry-pi.md +354 -0
- package/docs/platforms/windows.md +153 -0
- package/docs/plugin.md +638 -0
- package/docs/plugins/agent-tools.md +96 -0
- package/docs/plugins/manifest.md +67 -0
- package/docs/plugins/voice-call.md +238 -0
- package/docs/plugins/zalouser.md +75 -0
- package/docs/prose.md +131 -0
- package/docs/providers/anthropic.md +126 -0
- package/docs/providers/claude-max-api-proxy.md +145 -0
- package/docs/providers/deepgram.md +89 -0
- package/docs/providers/github-copilot.md +70 -0
- package/docs/providers/glm.md +31 -0
- package/docs/providers/index.md +59 -0
- package/docs/providers/minimax.md +183 -0
- package/docs/providers/models.md +48 -0
- package/docs/providers/moonshot.md +151 -0
- package/docs/providers/ollama.md +219 -0
- package/docs/providers/openai.md +60 -0
- package/docs/providers/opencode.md +34 -0
- package/docs/providers/openrouter.md +35 -0
- package/docs/providers/qwen.md +51 -0
- package/docs/providers/synthetic.md +97 -0
- package/docs/providers/venice.md +264 -0
- package/docs/providers/vercel-ai-gateway.md +50 -0
- package/docs/providers/zai.md +34 -0
- package/docs/railway.mdx +96 -0
- package/docs/refactor/clawnet.md +360 -0
- package/docs/refactor/exec-host.md +265 -0
- package/docs/refactor/outbound-session-mirroring.md +75 -0
- package/docs/refactor/plugin-sdk.md +187 -0
- package/docs/refactor/strict-config.md +81 -0
- package/docs/reference/AGENTS.default.md +113 -0
- package/docs/reference/RELEASING.md +107 -0
- package/docs/reference/api-usage-costs.md +116 -0
- package/docs/reference/device-models.md +46 -0
- package/docs/reference/rpc.md +35 -0
- package/docs/reference/session-management-compaction.md +273 -0
- package/docs/reference/templates/AGENTS.dev.md +78 -0
- package/docs/reference/templates/AGENTS.md +196 -0
- package/docs/reference/templates/BOOT.md +9 -0
- package/docs/reference/templates/BOOTSTRAP.md +55 -0
- package/docs/reference/templates/HEARTBEAT.md +9 -0
- package/docs/reference/templates/IDENTITY.dev.md +40 -0
- package/docs/reference/templates/IDENTITY.md +27 -0
- package/docs/reference/templates/SOUL.dev.md +74 -0
- package/docs/reference/templates/SOUL.md +41 -0
- package/docs/reference/templates/TOOLS.dev.md +21 -0
- package/docs/reference/templates/TOOLS.md +41 -0
- package/docs/reference/templates/USER.dev.md +17 -0
- package/docs/reference/templates/USER.md +22 -0
- package/docs/reference/test.md +46 -0
- package/docs/reference/transcript-hygiene.md +95 -0
- package/docs/render.mdx +158 -0
- package/docs/scripts.md +31 -0
- package/docs/start/clawd.md +235 -0
- package/docs/start/getting-started.md +203 -0
- package/docs/start/hubs.md +182 -0
- package/docs/start/lore.md +133 -0
- package/docs/start/onboarding.md +103 -0
- package/docs/start/pairing.md +83 -0
- package/docs/start/setup.md +143 -0
- package/docs/start/showcase.md +416 -0
- package/docs/start/wizard.md +318 -0
- package/docs/testing.md +349 -0
- package/docs/token-use.md +110 -0
- package/docs/tools/agent-send.md +51 -0
- package/docs/tools/apply-patch.md +49 -0
- package/docs/tools/browser-linux-troubleshooting.md +129 -0
- package/docs/tools/browser-login.md +67 -0
- package/docs/tools/browser.md +642 -0
- package/docs/tools/chrome-extension.md +185 -0
- package/docs/tools/clawdhub.md +201 -0
- package/docs/tools/creating-skills.md +41 -0
- package/docs/tools/elevated.md +48 -0
- package/docs/tools/exec-approvals.md +223 -0
- package/docs/tools/exec.md +156 -0
- package/docs/tools/firecrawl.md +58 -0
- package/docs/tools/index.md +447 -0
- package/docs/tools/llm-task.md +114 -0
- package/docs/tools/lobster.md +326 -0
- package/docs/tools/reactions.md +20 -0
- package/docs/tools/skills-config.md +75 -0
- package/docs/tools/skills.md +267 -0
- package/docs/tools/slash-commands.md +188 -0
- package/docs/tools/subagents.md +137 -0
- package/docs/tools/thinking.md +62 -0
- package/docs/tools/web.md +257 -0
- package/docs/tts.md +389 -0
- package/docs/tui.md +134 -0
- package/docs/vps.md +39 -0
- package/docs/web/control-ui.md +163 -0
- package/docs/web/dashboard.md +42 -0
- package/docs/web/index.md +110 -0
- package/docs/web/webchat.md +41 -0
- package/docs/whatsapp-clawd.jpg +0 -0
- package/extensions/bluebubbles/clawdbot.plugin.json +11 -0
- package/extensions/bluebubbles/index.ts +20 -0
- package/extensions/bluebubbles/package.json +33 -0
- package/extensions/bluebubbles/src/accounts.ts +80 -0
- package/extensions/bluebubbles/src/actions.test.ts +651 -0
- package/extensions/bluebubbles/src/actions.ts +403 -0
- package/extensions/bluebubbles/src/attachments.test.ts +346 -0
- package/extensions/bluebubbles/src/attachments.ts +282 -0
- package/extensions/bluebubbles/src/channel.ts +399 -0
- package/extensions/bluebubbles/src/chat.test.ts +462 -0
- package/extensions/bluebubbles/src/chat.ts +354 -0
- package/extensions/bluebubbles/src/config-schema.ts +51 -0
- package/extensions/bluebubbles/src/media-send.ts +168 -0
- package/extensions/bluebubbles/src/monitor.test.ts +2140 -0
- package/extensions/bluebubbles/src/monitor.ts +2101 -0
- package/extensions/bluebubbles/src/onboarding.ts +340 -0
- package/extensions/bluebubbles/src/probe.ts +127 -0
- package/extensions/bluebubbles/src/reactions.test.ts +393 -0
- package/extensions/bluebubbles/src/reactions.ts +183 -0
- package/extensions/bluebubbles/src/runtime.ts +14 -0
- package/extensions/bluebubbles/src/send.test.ts +809 -0
- package/extensions/bluebubbles/src/send.ts +418 -0
- package/extensions/bluebubbles/src/targets.test.ts +184 -0
- package/extensions/bluebubbles/src/targets.ts +323 -0
- package/extensions/bluebubbles/src/types.ts +127 -0
- package/extensions/copilot-proxy/README.md +24 -0
- package/extensions/copilot-proxy/clawdbot.plugin.json +11 -0
- package/extensions/copilot-proxy/index.ts +142 -0
- package/extensions/copilot-proxy/package.json +11 -0
- package/extensions/diagnostics-otel/clawdbot.plugin.json +8 -0
- package/extensions/diagnostics-otel/index.ts +16 -0
- package/extensions/diagnostics-otel/package.json +24 -0
- package/extensions/diagnostics-otel/src/service.test.ts +220 -0
- package/extensions/diagnostics-otel/src/service.ts +566 -0
- package/extensions/discord/clawdbot.plugin.json +11 -0
- package/extensions/discord/index.ts +18 -0
- package/extensions/discord/package.json +11 -0
- package/extensions/discord/src/channel.ts +422 -0
- package/extensions/discord/src/runtime.ts +14 -0
- package/extensions/google-antigravity-auth/README.md +24 -0
- package/extensions/google-antigravity-auth/clawdbot.plugin.json +11 -0
- package/extensions/google-antigravity-auth/index.ts +437 -0
- package/extensions/google-antigravity-auth/package.json +11 -0
- package/extensions/google-gemini-cli-auth/README.md +35 -0
- package/extensions/google-gemini-cli-auth/clawdbot.plugin.json +11 -0
- package/extensions/google-gemini-cli-auth/index.ts +91 -0
- package/extensions/google-gemini-cli-auth/oauth.test.ts +228 -0
- package/extensions/google-gemini-cli-auth/oauth.ts +580 -0
- package/extensions/google-gemini-cli-auth/package.json +11 -0
- package/extensions/googlechat/clawdbot.plugin.json +11 -0
- package/extensions/googlechat/index.ts +20 -0
- package/extensions/googlechat/package.json +39 -0
- package/extensions/googlechat/src/accounts.ts +133 -0
- package/extensions/googlechat/src/actions.ts +162 -0
- package/extensions/googlechat/src/api.test.ts +62 -0
- package/extensions/googlechat/src/api.ts +259 -0
- package/extensions/googlechat/src/auth.ts +113 -0
- package/extensions/googlechat/src/channel.ts +580 -0
- package/extensions/googlechat/src/monitor.test.ts +27 -0
- package/extensions/googlechat/src/monitor.ts +900 -0
- package/extensions/googlechat/src/onboarding.ts +278 -0
- package/extensions/googlechat/src/runtime.ts +14 -0
- package/extensions/googlechat/src/targets.test.ts +35 -0
- package/extensions/googlechat/src/targets.ts +55 -0
- package/extensions/googlechat/src/types.config.ts +3 -0
- package/extensions/googlechat/src/types.ts +73 -0
- package/extensions/imessage/clawdbot.plugin.json +11 -0
- package/extensions/imessage/index.ts +18 -0
- package/extensions/imessage/package.json +11 -0
- package/extensions/imessage/src/channel.ts +294 -0
- package/extensions/imessage/src/runtime.ts +14 -0
- package/extensions/line/clawdbot.plugin.json +11 -0
- package/extensions/line/index.ts +20 -0
- package/extensions/line/package.json +29 -0
- package/extensions/line/src/card-command.ts +338 -0
- package/extensions/line/src/channel.logout.test.ts +96 -0
- package/extensions/line/src/channel.sendPayload.test.ts +308 -0
- package/extensions/line/src/channel.ts +773 -0
- package/extensions/line/src/runtime.ts +14 -0
- package/extensions/llm-task/README.md +97 -0
- package/extensions/llm-task/clawdbot.plugin.json +21 -0
- package/extensions/llm-task/index.ts +7 -0
- package/extensions/llm-task/package.json +11 -0
- package/extensions/llm-task/src/llm-task-tool.test.ts +117 -0
- package/extensions/llm-task/src/llm-task-tool.ts +218 -0
- package/extensions/lobster/README.md +80 -0
- package/extensions/lobster/SKILL.md +90 -0
- package/extensions/lobster/clawdbot.plugin.json +10 -0
- package/extensions/lobster/index.ts +13 -0
- package/extensions/lobster/package.json +11 -0
- package/extensions/lobster/src/lobster-tool.test.ts +123 -0
- package/extensions/lobster/src/lobster-tool.ts +222 -0
- package/extensions/matrix/CHANGELOG.md +54 -0
- package/extensions/matrix/clawdbot.plugin.json +11 -0
- package/extensions/matrix/index.ts +18 -0
- package/extensions/matrix/package.json +36 -0
- package/extensions/matrix/src/actions.ts +185 -0
- package/extensions/matrix/src/channel.directory.test.ts +56 -0
- package/extensions/matrix/src/channel.ts +417 -0
- package/extensions/matrix/src/config-schema.ts +62 -0
- package/extensions/matrix/src/directory-live.ts +175 -0
- package/extensions/matrix/src/group-mentions.ts +61 -0
- package/extensions/matrix/src/matrix/accounts.test.ts +83 -0
- package/extensions/matrix/src/matrix/accounts.ts +63 -0
- package/extensions/matrix/src/matrix/actions/client.ts +53 -0
- package/extensions/matrix/src/matrix/actions/messages.ts +120 -0
- package/extensions/matrix/src/matrix/actions/pins.ts +70 -0
- package/extensions/matrix/src/matrix/actions/reactions.ts +84 -0
- package/extensions/matrix/src/matrix/actions/room.ts +88 -0
- package/extensions/matrix/src/matrix/actions/summary.ts +77 -0
- package/extensions/matrix/src/matrix/actions/types.ts +84 -0
- package/extensions/matrix/src/matrix/actions.ts +15 -0
- package/extensions/matrix/src/matrix/active-client.ts +11 -0
- package/extensions/matrix/src/matrix/client/config.ts +165 -0
- package/extensions/matrix/src/matrix/client/create-client.ts +127 -0
- package/extensions/matrix/src/matrix/client/logging.ts +35 -0
- package/extensions/matrix/src/matrix/client/runtime.ts +4 -0
- package/extensions/matrix/src/matrix/client/shared.ts +169 -0
- package/extensions/matrix/src/matrix/client/storage.ts +131 -0
- package/extensions/matrix/src/matrix/client/types.ts +34 -0
- package/extensions/matrix/src/matrix/client.test.ts +57 -0
- package/extensions/matrix/src/matrix/client.ts +9 -0
- package/extensions/matrix/src/matrix/credentials.ts +103 -0
- package/extensions/matrix/src/matrix/deps.ts +57 -0
- package/extensions/matrix/src/matrix/format.test.ts +34 -0
- package/extensions/matrix/src/matrix/format.ts +22 -0
- package/extensions/matrix/src/matrix/index.ts +11 -0
- package/extensions/matrix/src/matrix/monitor/allowlist.ts +58 -0
- package/extensions/matrix/src/matrix/monitor/auto-join.ts +68 -0
- package/extensions/matrix/src/matrix/monitor/direct.ts +105 -0
- package/extensions/matrix/src/matrix/monitor/events.ts +103 -0
- package/extensions/matrix/src/matrix/monitor/handler.ts +645 -0
- package/extensions/matrix/src/matrix/monitor/index.ts +279 -0
- package/extensions/matrix/src/matrix/monitor/location.ts +83 -0
- package/extensions/matrix/src/matrix/monitor/media.test.ts +103 -0
- package/extensions/matrix/src/matrix/monitor/media.ts +113 -0
- package/extensions/matrix/src/matrix/monitor/mentions.ts +31 -0
- package/extensions/matrix/src/matrix/monitor/replies.ts +96 -0
- package/extensions/matrix/src/matrix/monitor/room-info.ts +58 -0
- package/extensions/matrix/src/matrix/monitor/rooms.ts +43 -0
- package/extensions/matrix/src/matrix/monitor/threads.ts +64 -0
- package/extensions/matrix/src/matrix/monitor/types.ts +39 -0
- package/extensions/matrix/src/matrix/poll-types.test.ts +22 -0
- package/extensions/matrix/src/matrix/poll-types.ts +157 -0
- package/extensions/matrix/src/matrix/probe.ts +70 -0
- package/extensions/matrix/src/matrix/send/client.ts +63 -0
- package/extensions/matrix/src/matrix/send/formatting.ts +92 -0
- package/extensions/matrix/src/matrix/send/media.ts +220 -0
- package/extensions/matrix/src/matrix/send/targets.test.ts +102 -0
- package/extensions/matrix/src/matrix/send/targets.ts +144 -0
- package/extensions/matrix/src/matrix/send/types.ts +109 -0
- package/extensions/matrix/src/matrix/send.test.ts +172 -0
- package/extensions/matrix/src/matrix/send.ts +255 -0
- package/extensions/matrix/src/onboarding.ts +432 -0
- package/extensions/matrix/src/outbound.ts +53 -0
- package/extensions/matrix/src/resolve-targets.ts +89 -0
- package/extensions/matrix/src/runtime.ts +14 -0
- package/extensions/matrix/src/tool-actions.ts +160 -0
- package/extensions/matrix/src/types.ts +95 -0
- package/extensions/mattermost/clawdbot.plugin.json +11 -0
- package/extensions/mattermost/index.ts +18 -0
- package/extensions/mattermost/package.json +25 -0
- package/extensions/mattermost/src/channel.test.ts +43 -0
- package/extensions/mattermost/src/channel.ts +339 -0
- package/extensions/mattermost/src/config-schema.ts +56 -0
- package/extensions/mattermost/src/group-mentions.ts +14 -0
- package/extensions/mattermost/src/mattermost/accounts.ts +115 -0
- package/extensions/mattermost/src/mattermost/client.ts +208 -0
- package/extensions/mattermost/src/mattermost/index.ts +9 -0
- package/extensions/mattermost/src/mattermost/monitor-helpers.ts +150 -0
- package/extensions/mattermost/src/mattermost/monitor.ts +921 -0
- package/extensions/mattermost/src/mattermost/probe.ts +70 -0
- package/extensions/mattermost/src/mattermost/send.ts +217 -0
- package/extensions/mattermost/src/normalize.ts +38 -0
- package/extensions/mattermost/src/onboarding-helpers.ts +42 -0
- package/extensions/mattermost/src/onboarding.ts +187 -0
- package/extensions/mattermost/src/runtime.ts +14 -0
- package/extensions/mattermost/src/types.ts +50 -0
- package/extensions/memory-core/clawdbot.plugin.json +9 -0
- package/extensions/memory-core/index.ts +36 -0
- package/extensions/memory-core/package.json +14 -0
- package/extensions/memory-lancedb/clawdbot.plugin.json +67 -0
- package/extensions/memory-lancedb/config.ts +114 -0
- package/extensions/memory-lancedb/index.test.ts +284 -0
- package/extensions/memory-lancedb/index.ts +590 -0
- package/extensions/memory-lancedb/package.json +16 -0
- package/extensions/msteams/CHANGELOG.md +51 -0
- package/extensions/msteams/clawdbot.plugin.json +11 -0
- package/extensions/msteams/index.ts +18 -0
- package/extensions/msteams/package.json +36 -0
- package/extensions/msteams/src/attachments/download.ts +206 -0
- package/extensions/msteams/src/attachments/graph.ts +319 -0
- package/extensions/msteams/src/attachments/html.ts +76 -0
- package/extensions/msteams/src/attachments/payload.ts +22 -0
- package/extensions/msteams/src/attachments/shared.ts +235 -0
- package/extensions/msteams/src/attachments/types.ts +37 -0
- package/extensions/msteams/src/attachments.test.ts +424 -0
- package/extensions/msteams/src/attachments.ts +18 -0
- package/extensions/msteams/src/channel.directory.test.ts +46 -0
- package/extensions/msteams/src/channel.ts +436 -0
- package/extensions/msteams/src/conversation-store-fs.test.ts +88 -0
- package/extensions/msteams/src/conversation-store-fs.ts +155 -0
- package/extensions/msteams/src/conversation-store-memory.ts +45 -0
- package/extensions/msteams/src/conversation-store.ts +41 -0
- package/extensions/msteams/src/directory-live.ts +179 -0
- package/extensions/msteams/src/errors.test.ts +46 -0
- package/extensions/msteams/src/errors.ts +158 -0
- package/extensions/msteams/src/file-consent-helpers.test.ts +234 -0
- package/extensions/msteams/src/file-consent-helpers.ts +73 -0
- package/extensions/msteams/src/file-consent.ts +122 -0
- package/extensions/msteams/src/graph-chat.ts +52 -0
- package/extensions/msteams/src/graph-upload.ts +445 -0
- package/extensions/msteams/src/inbound.test.ts +67 -0
- package/extensions/msteams/src/inbound.ts +38 -0
- package/extensions/msteams/src/index.ts +4 -0
- package/extensions/msteams/src/media-helpers.test.ts +186 -0
- package/extensions/msteams/src/media-helpers.ts +77 -0
- package/extensions/msteams/src/messenger.test.ts +245 -0
- package/extensions/msteams/src/messenger.ts +460 -0
- package/extensions/msteams/src/monitor-handler/inbound-media.ts +123 -0
- package/extensions/msteams/src/monitor-handler/message-handler.ts +629 -0
- package/extensions/msteams/src/monitor-handler.ts +166 -0
- package/extensions/msteams/src/monitor-types.ts +5 -0
- package/extensions/msteams/src/monitor.ts +290 -0
- package/extensions/msteams/src/onboarding.ts +432 -0
- package/extensions/msteams/src/outbound.ts +47 -0
- package/extensions/msteams/src/pending-uploads.ts +87 -0
- package/extensions/msteams/src/policy.test.ts +210 -0
- package/extensions/msteams/src/policy.ts +202 -0
- package/extensions/msteams/src/polls-store-memory.ts +30 -0
- package/extensions/msteams/src/polls-store.test.ts +40 -0
- package/extensions/msteams/src/polls.test.ts +72 -0
- package/extensions/msteams/src/polls.ts +299 -0
- package/extensions/msteams/src/probe.test.ts +57 -0
- package/extensions/msteams/src/probe.ts +99 -0
- package/extensions/msteams/src/reply-dispatcher.ts +128 -0
- package/extensions/msteams/src/resolve-allowlist.ts +277 -0
- package/extensions/msteams/src/runtime.ts +14 -0
- package/extensions/msteams/src/sdk-types.ts +19 -0
- package/extensions/msteams/src/sdk.ts +33 -0
- package/extensions/msteams/src/send-context.ts +156 -0
- package/extensions/msteams/src/send.ts +489 -0
- package/extensions/msteams/src/sent-message-cache.test.ts +16 -0
- package/extensions/msteams/src/sent-message-cache.ts +41 -0
- package/extensions/msteams/src/storage.ts +22 -0
- package/extensions/msteams/src/store-fs.ts +80 -0
- package/extensions/msteams/src/token.ts +19 -0
- package/extensions/nextcloud-talk/clawdbot.plugin.json +11 -0
- package/extensions/nextcloud-talk/index.ts +18 -0
- package/extensions/nextcloud-talk/package.json +30 -0
- package/extensions/nextcloud-talk/src/accounts.ts +154 -0
- package/extensions/nextcloud-talk/src/channel.ts +404 -0
- package/extensions/nextcloud-talk/src/config-schema.ts +78 -0
- package/extensions/nextcloud-talk/src/format.ts +79 -0
- package/extensions/nextcloud-talk/src/inbound.ts +336 -0
- package/extensions/nextcloud-talk/src/monitor.ts +246 -0
- package/extensions/nextcloud-talk/src/normalize.ts +31 -0
- package/extensions/nextcloud-talk/src/onboarding.ts +341 -0
- package/extensions/nextcloud-talk/src/policy.ts +175 -0
- package/extensions/nextcloud-talk/src/room-info.ts +111 -0
- package/extensions/nextcloud-talk/src/runtime.ts +14 -0
- package/extensions/nextcloud-talk/src/send.ts +206 -0
- package/extensions/nextcloud-talk/src/signature.ts +67 -0
- package/extensions/nextcloud-talk/src/types.ts +179 -0
- package/extensions/nostr/CHANGELOG.md +46 -0
- package/extensions/nostr/README.md +136 -0
- package/extensions/nostr/clawdbot.plugin.json +11 -0
- package/extensions/nostr/index.ts +69 -0
- package/extensions/nostr/package.json +31 -0
- package/extensions/nostr/src/channel.test.ts +141 -0
- package/extensions/nostr/src/channel.ts +342 -0
- package/extensions/nostr/src/config-schema.ts +90 -0
- package/extensions/nostr/src/metrics.ts +464 -0
- package/extensions/nostr/src/nostr-bus.fuzz.test.ts +544 -0
- package/extensions/nostr/src/nostr-bus.integration.test.ts +452 -0
- package/extensions/nostr/src/nostr-bus.test.ts +199 -0
- package/extensions/nostr/src/nostr-bus.ts +741 -0
- package/extensions/nostr/src/nostr-profile-http.test.ts +378 -0
- package/extensions/nostr/src/nostr-profile-http.ts +500 -0
- package/extensions/nostr/src/nostr-profile-import.test.ts +120 -0
- package/extensions/nostr/src/nostr-profile-import.ts +259 -0
- package/extensions/nostr/src/nostr-profile.fuzz.test.ts +479 -0
- package/extensions/nostr/src/nostr-profile.test.ts +410 -0
- package/extensions/nostr/src/nostr-profile.ts +242 -0
- package/extensions/nostr/src/nostr-state-store.test.ts +128 -0
- package/extensions/nostr/src/nostr-state-store.ts +226 -0
- package/extensions/nostr/src/runtime.ts +14 -0
- package/extensions/nostr/src/seen-tracker.ts +271 -0
- package/extensions/nostr/src/types.test.ts +161 -0
- package/extensions/nostr/src/types.ts +99 -0
- package/extensions/nostr/test/setup.ts +5 -0
- package/extensions/open-prose/README.md +25 -0
- package/extensions/open-prose/clawdbot.plugin.json +11 -0
- package/extensions/open-prose/index.ts +5 -0
- package/extensions/open-prose/package.json +11 -0
- package/extensions/open-prose/skills/prose/LICENSE +21 -0
- package/extensions/open-prose/skills/prose/SKILL.md +318 -0
- package/extensions/open-prose/skills/prose/alt-borges.md +141 -0
- package/extensions/open-prose/skills/prose/alts/arabian-nights.md +358 -0
- package/extensions/open-prose/skills/prose/alts/borges.md +360 -0
- package/extensions/open-prose/skills/prose/alts/folk.md +322 -0
- package/extensions/open-prose/skills/prose/alts/homer.md +346 -0
- package/extensions/open-prose/skills/prose/alts/kafka.md +373 -0
- package/extensions/open-prose/skills/prose/compiler.md +2967 -0
- package/extensions/open-prose/skills/prose/examples/01-hello-world.prose +4 -0
- package/extensions/open-prose/skills/prose/examples/02-research-and-summarize.prose +6 -0
- package/extensions/open-prose/skills/prose/examples/03-code-review.prose +17 -0
- package/extensions/open-prose/skills/prose/examples/04-write-and-refine.prose +14 -0
- package/extensions/open-prose/skills/prose/examples/05-debug-issue.prose +20 -0
- package/extensions/open-prose/skills/prose/examples/06-explain-codebase.prose +17 -0
- package/extensions/open-prose/skills/prose/examples/07-refactor.prose +20 -0
- package/extensions/open-prose/skills/prose/examples/08-blog-post.prose +20 -0
- package/extensions/open-prose/skills/prose/examples/09-research-with-agents.prose +25 -0
- package/extensions/open-prose/skills/prose/examples/10-code-review-agents.prose +32 -0
- package/extensions/open-prose/skills/prose/examples/11-skills-and-imports.prose +27 -0
- package/extensions/open-prose/skills/prose/examples/12-secure-agent-permissions.prose +43 -0
- package/extensions/open-prose/skills/prose/examples/13-variables-and-context.prose +51 -0
- package/extensions/open-prose/skills/prose/examples/14-composition-blocks.prose +48 -0
- package/extensions/open-prose/skills/prose/examples/15-inline-sequences.prose +23 -0
- package/extensions/open-prose/skills/prose/examples/16-parallel-reviews.prose +19 -0
- package/extensions/open-prose/skills/prose/examples/17-parallel-research.prose +19 -0
- package/extensions/open-prose/skills/prose/examples/18-mixed-parallel-sequential.prose +36 -0
- package/extensions/open-prose/skills/prose/examples/19-advanced-parallel.prose +71 -0
- package/extensions/open-prose/skills/prose/examples/20-fixed-loops.prose +20 -0
- package/extensions/open-prose/skills/prose/examples/21-pipeline-operations.prose +35 -0
- package/extensions/open-prose/skills/prose/examples/22-error-handling.prose +51 -0
- package/extensions/open-prose/skills/prose/examples/23-retry-with-backoff.prose +63 -0
- package/extensions/open-prose/skills/prose/examples/24-choice-blocks.prose +86 -0
- package/extensions/open-prose/skills/prose/examples/25-conditionals.prose +114 -0
- package/extensions/open-prose/skills/prose/examples/26-parameterized-blocks.prose +100 -0
- package/extensions/open-prose/skills/prose/examples/27-string-interpolation.prose +105 -0
- package/extensions/open-prose/skills/prose/examples/28-automated-pr-review.prose +37 -0
- package/extensions/open-prose/skills/prose/examples/28-gas-town.prose +1572 -0
- package/extensions/open-prose/skills/prose/examples/29-captains-chair.prose +218 -0
- package/extensions/open-prose/skills/prose/examples/30-captains-chair-simple.prose +42 -0
- package/extensions/open-prose/skills/prose/examples/31-captains-chair-with-memory.prose +145 -0
- package/extensions/open-prose/skills/prose/examples/33-pr-review-autofix.prose +168 -0
- package/extensions/open-prose/skills/prose/examples/34-content-pipeline.prose +204 -0
- package/extensions/open-prose/skills/prose/examples/35-feature-factory.prose +296 -0
- package/extensions/open-prose/skills/prose/examples/36-bug-hunter.prose +237 -0
- package/extensions/open-prose/skills/prose/examples/37-the-forge.prose +1474 -0
- package/extensions/open-prose/skills/prose/examples/38-skill-scan.prose +455 -0
- package/extensions/open-prose/skills/prose/examples/39-architect-by-simulation.prose +277 -0
- package/extensions/open-prose/skills/prose/examples/40-rlm-self-refine.prose +32 -0
- package/extensions/open-prose/skills/prose/examples/41-rlm-divide-conquer.prose +38 -0
- package/extensions/open-prose/skills/prose/examples/42-rlm-filter-recurse.prose +46 -0
- package/extensions/open-prose/skills/prose/examples/43-rlm-pairwise.prose +50 -0
- package/extensions/open-prose/skills/prose/examples/44-run-endpoint-ux-test.prose +261 -0
- package/extensions/open-prose/skills/prose/examples/45-plugin-release.prose +159 -0
- package/extensions/open-prose/skills/prose/examples/45-run-endpoint-ux-test-with-remediation.prose +637 -0
- package/extensions/open-prose/skills/prose/examples/46-run-endpoint-ux-test-fast.prose +148 -0
- package/extensions/open-prose/skills/prose/examples/46-workflow-crystallizer.prose +225 -0
- package/extensions/open-prose/skills/prose/examples/47-language-self-improvement.prose +356 -0
- package/extensions/open-prose/skills/prose/examples/48-habit-miner.prose +445 -0
- package/extensions/open-prose/skills/prose/examples/49-prose-run-retrospective.prose +210 -0
- package/extensions/open-prose/skills/prose/examples/README.md +391 -0
- package/extensions/open-prose/skills/prose/examples/roadmap/README.md +22 -0
- package/extensions/open-prose/skills/prose/examples/roadmap/iterative-refinement.prose +20 -0
- package/extensions/open-prose/skills/prose/examples/roadmap/parallel-review.prose +18 -0
- package/extensions/open-prose/skills/prose/examples/roadmap/simple-pipeline.prose +17 -0
- package/extensions/open-prose/skills/prose/examples/roadmap/syntax/open-prose-syntax.prose +223 -0
- package/extensions/open-prose/skills/prose/guidance/antipatterns.md +951 -0
- package/extensions/open-prose/skills/prose/guidance/patterns.md +700 -0
- package/extensions/open-prose/skills/prose/guidance/system-prompt.md +180 -0
- package/extensions/open-prose/skills/prose/help.md +143 -0
- package/extensions/open-prose/skills/prose/lib/README.md +105 -0
- package/extensions/open-prose/skills/prose/lib/calibrator.prose +215 -0
- package/extensions/open-prose/skills/prose/lib/cost-analyzer.prose +174 -0
- package/extensions/open-prose/skills/prose/lib/error-forensics.prose +250 -0
- package/extensions/open-prose/skills/prose/lib/inspector.prose +196 -0
- package/extensions/open-prose/skills/prose/lib/profiler.prose +460 -0
- package/extensions/open-prose/skills/prose/lib/program-improver.prose +275 -0
- package/extensions/open-prose/skills/prose/lib/project-memory.prose +118 -0
- package/extensions/open-prose/skills/prose/lib/user-memory.prose +93 -0
- package/extensions/open-prose/skills/prose/lib/vm-improver.prose +243 -0
- package/extensions/open-prose/skills/prose/primitives/session.md +587 -0
- package/extensions/open-prose/skills/prose/prose.md +1235 -0
- package/extensions/open-prose/skills/prose/state/filesystem.md +478 -0
- package/extensions/open-prose/skills/prose/state/in-context.md +380 -0
- package/extensions/open-prose/skills/prose/state/postgres.md +875 -0
- package/extensions/open-prose/skills/prose/state/sqlite.md +572 -0
- package/extensions/qwen-portal-auth/README.md +24 -0
- package/extensions/qwen-portal-auth/clawdbot.plugin.json +11 -0
- package/extensions/qwen-portal-auth/index.ts +127 -0
- package/extensions/qwen-portal-auth/oauth.ts +190 -0
- package/extensions/signal/clawdbot.plugin.json +11 -0
- package/extensions/signal/index.ts +18 -0
- package/extensions/signal/package.json +11 -0
- package/extensions/signal/src/channel.ts +312 -0
- package/extensions/signal/src/runtime.ts +14 -0
- package/extensions/slack/clawdbot.plugin.json +11 -0
- package/extensions/slack/index.ts +18 -0
- package/extensions/slack/package.json +11 -0
- package/extensions/slack/src/channel.ts +577 -0
- package/extensions/slack/src/runtime.ts +14 -0
- package/extensions/telegram/clawdbot.plugin.json +11 -0
- package/extensions/telegram/index.ts +18 -0
- package/extensions/telegram/package.json +11 -0
- package/extensions/telegram/src/channel.ts +478 -0
- package/extensions/telegram/src/runtime.ts +14 -0
- package/extensions/tlon/README.md +5 -0
- package/extensions/tlon/clawdbot.plugin.json +11 -0
- package/extensions/tlon/index.ts +18 -0
- package/extensions/tlon/package.json +30 -0
- package/extensions/tlon/src/channel.ts +379 -0
- package/extensions/tlon/src/config-schema.test.ts +32 -0
- package/extensions/tlon/src/config-schema.ts +43 -0
- package/extensions/tlon/src/monitor/discovery.ts +71 -0
- package/extensions/tlon/src/monitor/history.ts +87 -0
- package/extensions/tlon/src/monitor/index.ts +501 -0
- package/extensions/tlon/src/monitor/processed-messages.test.ts +24 -0
- package/extensions/tlon/src/monitor/processed-messages.ts +38 -0
- package/extensions/tlon/src/monitor/utils.ts +83 -0
- package/extensions/tlon/src/onboarding.ts +213 -0
- package/extensions/tlon/src/runtime.ts +14 -0
- package/extensions/tlon/src/targets.ts +79 -0
- package/extensions/tlon/src/types.ts +85 -0
- package/extensions/tlon/src/urbit/auth.ts +18 -0
- package/extensions/tlon/src/urbit/http-api.ts +36 -0
- package/extensions/tlon/src/urbit/send.test.ts +38 -0
- package/extensions/tlon/src/urbit/send.ts +127 -0
- package/extensions/tlon/src/urbit/sse-client.test.ts +41 -0
- package/extensions/tlon/src/urbit/sse-client.ts +367 -0
- package/extensions/twitch/CHANGELOG.md +21 -0
- package/extensions/twitch/README.md +89 -0
- package/extensions/twitch/clawdbot.plugin.json +9 -0
- package/extensions/twitch/index.ts +20 -0
- package/extensions/twitch/package.json +20 -0
- package/extensions/twitch/src/access-control.test.ts +489 -0
- package/extensions/twitch/src/access-control.ts +154 -0
- package/extensions/twitch/src/actions.ts +173 -0
- package/extensions/twitch/src/client-manager-registry.ts +115 -0
- package/extensions/twitch/src/config-schema.ts +82 -0
- package/extensions/twitch/src/config.test.ts +88 -0
- package/extensions/twitch/src/config.ts +116 -0
- package/extensions/twitch/src/monitor.ts +257 -0
- package/extensions/twitch/src/onboarding.test.ts +311 -0
- package/extensions/twitch/src/onboarding.ts +411 -0
- package/extensions/twitch/src/outbound.test.ts +373 -0
- package/extensions/twitch/src/outbound.ts +186 -0
- package/extensions/twitch/src/plugin.test.ts +39 -0
- package/extensions/twitch/src/plugin.ts +274 -0
- package/extensions/twitch/src/probe.test.ts +198 -0
- package/extensions/twitch/src/probe.ts +118 -0
- package/extensions/twitch/src/resolver.ts +137 -0
- package/extensions/twitch/src/runtime.ts +14 -0
- package/extensions/twitch/src/send.test.ts +289 -0
- package/extensions/twitch/src/send.ts +136 -0
- package/extensions/twitch/src/status.test.ts +270 -0
- package/extensions/twitch/src/status.ts +176 -0
- package/extensions/twitch/src/token.test.ts +171 -0
- package/extensions/twitch/src/token.ts +87 -0
- package/extensions/twitch/src/twitch-client.test.ts +574 -0
- package/extensions/twitch/src/twitch-client.ts +277 -0
- package/extensions/twitch/src/types.ts +141 -0
- package/extensions/twitch/src/utils/markdown.ts +92 -0
- package/extensions/twitch/src/utils/twitch.ts +78 -0
- package/extensions/twitch/test/setup.ts +7 -0
- package/extensions/voice-call/CHANGELOG.md +72 -0
- package/extensions/voice-call/README.md +134 -0
- package/extensions/voice-call/clawdbot.plugin.json +601 -0
- package/extensions/voice-call/index.ts +497 -0
- package/extensions/voice-call/package.json +16 -0
- package/extensions/voice-call/src/cli.ts +300 -0
- package/extensions/voice-call/src/config.test.ts +204 -0
- package/extensions/voice-call/src/config.ts +493 -0
- package/extensions/voice-call/src/core-bridge.ts +196 -0
- package/extensions/voice-call/src/manager/context.ts +21 -0
- package/extensions/voice-call/src/manager/events.ts +177 -0
- package/extensions/voice-call/src/manager/lookup.ts +33 -0
- package/extensions/voice-call/src/manager/outbound.ts +248 -0
- package/extensions/voice-call/src/manager/state.ts +50 -0
- package/extensions/voice-call/src/manager/store.ts +88 -0
- package/extensions/voice-call/src/manager/timers.ts +86 -0
- package/extensions/voice-call/src/manager/twiml.ts +9 -0
- package/extensions/voice-call/src/manager.test.ts +108 -0
- package/extensions/voice-call/src/manager.ts +876 -0
- package/extensions/voice-call/src/media-stream.test.ts +97 -0
- package/extensions/voice-call/src/media-stream.ts +393 -0
- package/extensions/voice-call/src/providers/base.ts +67 -0
- package/extensions/voice-call/src/providers/index.ts +10 -0
- package/extensions/voice-call/src/providers/mock.ts +168 -0
- package/extensions/voice-call/src/providers/plivo.test.ts +28 -0
- package/extensions/voice-call/src/providers/plivo.ts +504 -0
- package/extensions/voice-call/src/providers/stt-openai-realtime.ts +311 -0
- package/extensions/voice-call/src/providers/telnyx.ts +364 -0
- package/extensions/voice-call/src/providers/tts-openai.ts +264 -0
- package/extensions/voice-call/src/providers/twilio/api.ts +45 -0
- package/extensions/voice-call/src/providers/twilio/webhook.ts +29 -0
- package/extensions/voice-call/src/providers/twilio.test.ts +64 -0
- package/extensions/voice-call/src/providers/twilio.ts +595 -0
- package/extensions/voice-call/src/response-generator.ts +171 -0
- package/extensions/voice-call/src/runtime.ts +205 -0
- package/extensions/voice-call/src/telephony-audio.ts +88 -0
- package/extensions/voice-call/src/telephony-tts.ts +95 -0
- package/extensions/voice-call/src/tunnel.ts +331 -0
- package/extensions/voice-call/src/types.ts +272 -0
- package/extensions/voice-call/src/utils.ts +12 -0
- package/extensions/voice-call/src/voice-mapping.ts +65 -0
- package/extensions/voice-call/src/webhook-security.test.ts +233 -0
- package/extensions/voice-call/src/webhook-security.ts +446 -0
- package/extensions/voice-call/src/webhook.ts +490 -0
- package/extensions/whatsapp/clawdbot.plugin.json +11 -0
- package/extensions/whatsapp/index.ts +18 -0
- package/extensions/whatsapp/package.json +11 -0
- package/extensions/whatsapp/src/channel.ts +500 -0
- package/extensions/whatsapp/src/runtime.ts +14 -0
- package/extensions/zalo/CHANGELOG.md +55 -0
- package/extensions/zalo/README.md +50 -0
- package/extensions/zalo/clawdbot.plugin.json +11 -0
- package/extensions/zalo/index.ts +20 -0
- package/extensions/zalo/package.json +33 -0
- package/extensions/zalo/src/accounts.ts +71 -0
- package/extensions/zalo/src/actions.ts +62 -0
- package/extensions/zalo/src/api.ts +206 -0
- package/extensions/zalo/src/channel.directory.test.ts +35 -0
- package/extensions/zalo/src/channel.ts +394 -0
- package/extensions/zalo/src/config-schema.ts +24 -0
- package/extensions/zalo/src/monitor.ts +760 -0
- package/extensions/zalo/src/monitor.webhook.test.ts +70 -0
- package/extensions/zalo/src/onboarding.ts +405 -0
- package/extensions/zalo/src/probe.ts +46 -0
- package/extensions/zalo/src/proxy.ts +18 -0
- package/extensions/zalo/src/runtime.ts +14 -0
- package/extensions/zalo/src/send.ts +117 -0
- package/extensions/zalo/src/status-issues.ts +50 -0
- package/extensions/zalo/src/token.ts +55 -0
- package/extensions/zalo/src/types.ts +42 -0
- package/extensions/zalouser/CHANGELOG.md +33 -0
- package/extensions/zalouser/README.md +221 -0
- package/extensions/zalouser/clawdbot.plugin.json +11 -0
- package/extensions/zalouser/index.ts +32 -0
- package/extensions/zalouser/package.json +33 -0
- package/extensions/zalouser/src/accounts.ts +117 -0
- package/extensions/zalouser/src/channel.test.ts +17 -0
- package/extensions/zalouser/src/channel.ts +641 -0
- package/extensions/zalouser/src/config-schema.ts +27 -0
- package/extensions/zalouser/src/monitor.ts +574 -0
- package/extensions/zalouser/src/onboarding.ts +488 -0
- package/extensions/zalouser/src/probe.ts +28 -0
- package/extensions/zalouser/src/runtime.ts +14 -0
- package/extensions/zalouser/src/send.ts +150 -0
- package/extensions/zalouser/src/status-issues.test.ts +58 -0
- package/extensions/zalouser/src/status-issues.ts +81 -0
- package/extensions/zalouser/src/tool.ts +156 -0
- package/extensions/zalouser/src/types.ts +102 -0
- package/extensions/zalouser/src/zca.ts +208 -0
- package/git-hooks/pre-commit +4 -0
- package/package.json +280 -0
- package/patches/.gitkeep +0 -0
- package/scripts/format-staged.js +148 -0
- package/scripts/postinstall.js +300 -0
- package/scripts/setup-git-hooks.js +96 -0
- package/skills/1password/SKILL.md +53 -0
- package/skills/1password/references/cli-examples.md +29 -0
- package/skills/1password/references/get-started.md +17 -0
- package/skills/apple-notes/SKILL.md +50 -0
- package/skills/apple-reminders/SKILL.md +67 -0
- package/skills/bear-notes/SKILL.md +79 -0
- package/skills/bird/SKILL.md +197 -0
- package/skills/blogwatcher/SKILL.md +46 -0
- package/skills/blucli/SKILL.md +27 -0
- package/skills/bluebubbles/SKILL.md +39 -0
- package/skills/camsnap/SKILL.md +25 -0
- package/skills/canvas/SKILL.md +189 -0
- package/skills/clawdhub/SKILL.md +53 -0
- package/skills/coding-agent/SKILL.md +278 -0
- package/skills/content-writer/SKILL.md +260 -0
- package/skills/discord/SKILL.md +475 -0
- package/skills/eightctl/SKILL.md +29 -0
- package/skills/food-order/SKILL.md +41 -0
- package/skills/ga4/SKILL.md +297 -0
- package/skills/gemini/SKILL.md +23 -0
- package/skills/gifgrep/SKILL.md +47 -0
- package/skills/github/SKILL.md +48 -0
- package/skills/gog/SKILL.md +92 -0
- package/skills/goplaces/SKILL.md +30 -0
- package/skills/himalaya/SKILL.md +217 -0
- package/skills/himalaya/references/configuration.md +174 -0
- package/skills/himalaya/references/message-composition.md +182 -0
- package/skills/imsg/SKILL.md +25 -0
- package/skills/local-places/SERVER_README.md +101 -0
- package/skills/local-places/SKILL.md +91 -0
- package/skills/local-places/pyproject.toml +27 -0
- package/skills/local-places/src/local_places/__init__.py +2 -0
- package/skills/local-places/src/local_places/google_places.py +314 -0
- package/skills/local-places/src/local_places/main.py +65 -0
- package/skills/local-places/src/local_places/schemas.py +107 -0
- package/skills/marketing-reporter/SKILL.md +221 -0
- package/skills/mcporter/SKILL.md +38 -0
- package/skills/model-usage/SKILL.md +45 -0
- package/skills/model-usage/references/codexbar-cli.md +28 -0
- package/skills/model-usage/scripts/model_usage.py +310 -0
- package/skills/nano-banana-pro/SKILL.md +30 -0
- package/skills/nano-banana-pro/scripts/generate_image.py +169 -0
- package/skills/nano-pdf/SKILL.md +20 -0
- package/skills/notion/SKILL.md +156 -0
- package/skills/obsidian/SKILL.md +55 -0
- package/skills/openai-image-gen/SKILL.md +71 -0
- package/skills/openai-image-gen/scripts/gen.py +240 -0
- package/skills/openai-whisper/SKILL.md +19 -0
- package/skills/openai-whisper-api/SKILL.md +43 -0
- package/skills/openai-whisper-api/scripts/transcribe.sh +85 -0
- package/skills/openhue/SKILL.md +30 -0
- package/skills/oracle/SKILL.md +105 -0
- package/skills/ordercli/SKILL.md +47 -0
- package/skills/peekaboo/SKILL.md +153 -0
- package/skills/sag/SKILL.md +62 -0
- package/skills/search-console/SKILL.md +288 -0
- package/skills/session-logs/SKILL.md +105 -0
- package/skills/sherpa-onnx-tts/SKILL.md +49 -0
- package/skills/sherpa-onnx-tts/bin/sherpa-onnx-tts +178 -0
- package/skills/skill-creator/SKILL.md +371 -0
- package/skills/skill-creator/license.txt +202 -0
- package/skills/skill-creator/scripts/init_skill.py +378 -0
- package/skills/skill-creator/scripts/package_skill.py +111 -0
- package/skills/skill-creator/scripts/quick_validate.py +101 -0
- package/skills/slack/SKILL.md +144 -0
- package/skills/social-posting/SKILL.md +311 -0
- package/skills/songsee/SKILL.md +29 -0
- package/skills/sonoscli/SKILL.md +26 -0
- package/skills/spotify-player/SKILL.md +34 -0
- package/skills/summarize/SKILL.md +67 -0
- package/skills/things-mac/SKILL.md +61 -0
- package/skills/tmux/SKILL.md +121 -0
- package/skills/tmux/scripts/find-sessions.sh +112 -0
- package/skills/tmux/scripts/wait-for-text.sh +83 -0
- package/skills/trello/SKILL.md +84 -0
- package/skills/video-frames/SKILL.md +29 -0
- package/skills/video-frames/scripts/frame.sh +81 -0
- package/skills/voice-call/SKILL.md +35 -0
- package/skills/wacli/SKILL.md +42 -0
- package/skills/weather/SKILL.md +49 -0
|
@@ -0,0 +1,3246 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "All configuration options for ~/.clawdbot/clawdbot.json with examples"
|
|
3
|
+
read_when:
|
|
4
|
+
- Adding or modifying config fields
|
|
5
|
+
---
|
|
6
|
+
# Configuration 🔧
|
|
7
|
+
|
|
8
|
+
Clawdbot reads an optional **JSON5** config from `~/.clawdbot/clawdbot.json` (comments + trailing commas allowed).
|
|
9
|
+
|
|
10
|
+
If the file is missing, Clawdbot uses safe-ish defaults (embedded Pi agent + per-sender sessions + workspace `~/clawd`). You usually only need a config to:
|
|
11
|
+
- restrict who can trigger the bot (`channels.whatsapp.allowFrom`, `channels.telegram.allowFrom`, etc.)
|
|
12
|
+
- control group allowlists + mention behavior (`channels.whatsapp.groups`, `channels.telegram.groups`, `channels.discord.guilds`, `agents.list[].groupChat`)
|
|
13
|
+
- customize message prefixes (`messages`)
|
|
14
|
+
- set the agent's workspace (`agents.defaults.workspace` or `agents.list[].workspace`)
|
|
15
|
+
- tune the embedded agent defaults (`agents.defaults`) and session behavior (`session`)
|
|
16
|
+
- set per-agent identity (`agents.list[].identity`)
|
|
17
|
+
|
|
18
|
+
> **New to configuration?** Check out the [Configuration Examples](/gateway/configuration-examples) guide for complete examples with detailed explanations!
|
|
19
|
+
|
|
20
|
+
## Strict config validation
|
|
21
|
+
|
|
22
|
+
Clawdbot only accepts configurations that fully match the schema.
|
|
23
|
+
Unknown keys, malformed types, or invalid values cause the Gateway to **refuse to start** for safety.
|
|
24
|
+
|
|
25
|
+
When validation fails:
|
|
26
|
+
- The Gateway does not boot.
|
|
27
|
+
- Only diagnostic commands are allowed (for example: `clawdbot doctor`, `clawdbot logs`, `clawdbot health`, `clawdbot status`, `clawdbot service`, `clawdbot help`).
|
|
28
|
+
- Run `clawdbot doctor` to see the exact issues.
|
|
29
|
+
- Run `clawdbot doctor --fix` (or `--yes`) to apply migrations/repairs.
|
|
30
|
+
|
|
31
|
+
Doctor never writes changes unless you explicitly opt into `--fix`/`--yes`.
|
|
32
|
+
|
|
33
|
+
## Schema + UI hints
|
|
34
|
+
|
|
35
|
+
The Gateway exposes a JSON Schema representation of the config via `config.schema` for UI editors.
|
|
36
|
+
The Control UI renders a form from this schema, with a **Raw JSON** editor as an escape hatch.
|
|
37
|
+
|
|
38
|
+
Channel plugins and extensions can register schema + UI hints for their config, so channel settings
|
|
39
|
+
stay schema-driven across apps without hard-coded forms.
|
|
40
|
+
|
|
41
|
+
Hints (labels, grouping, sensitive fields) ship alongside the schema so clients can render
|
|
42
|
+
better forms without hard-coding config knowledge.
|
|
43
|
+
|
|
44
|
+
## Apply + restart (RPC)
|
|
45
|
+
|
|
46
|
+
Use `config.apply` to validate + write the full config and restart the Gateway in one step.
|
|
47
|
+
It writes a restart sentinel and pings the last active session after the Gateway comes back.
|
|
48
|
+
|
|
49
|
+
Warning: `config.apply` replaces the **entire config**. If you want to change only a few keys,
|
|
50
|
+
use `config.patch` or `clawdbot config set`. Keep a backup of `~/.clawdbot/clawdbot.json`.
|
|
51
|
+
|
|
52
|
+
Params:
|
|
53
|
+
- `raw` (string) — JSON5 payload for the entire config
|
|
54
|
+
- `baseHash` (optional) — config hash from `config.get` (required when a config already exists)
|
|
55
|
+
- `sessionKey` (optional) — last active session key for the wake-up ping
|
|
56
|
+
- `note` (optional) — note to include in the restart sentinel
|
|
57
|
+
- `restartDelayMs` (optional) — delay before restart (default 2000)
|
|
58
|
+
|
|
59
|
+
Example (via `gateway call`):
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
clawdbot gateway call config.get --params '{}' # capture payload.hash
|
|
63
|
+
clawdbot gateway call config.apply --params '{
|
|
64
|
+
"raw": "{\\n agents: { defaults: { workspace: \\"~/clawd\\" } }\\n}\\n",
|
|
65
|
+
"baseHash": "<hash-from-config.get>",
|
|
66
|
+
"sessionKey": "agent:main:whatsapp:dm:+15555550123",
|
|
67
|
+
"restartDelayMs": 1000
|
|
68
|
+
}'
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Partial updates (RPC)
|
|
72
|
+
|
|
73
|
+
Use `config.patch` to merge a partial update into the existing config without clobbering
|
|
74
|
+
unrelated keys. It applies JSON merge patch semantics:
|
|
75
|
+
- objects merge recursively
|
|
76
|
+
- `null` deletes a key
|
|
77
|
+
- arrays replace
|
|
78
|
+
Like `config.apply`, it validates, writes the config, stores a restart sentinel, and schedules
|
|
79
|
+
the Gateway restart (with an optional wake when `sessionKey` is provided).
|
|
80
|
+
|
|
81
|
+
Params:
|
|
82
|
+
- `raw` (string) — JSON5 payload containing just the keys to change
|
|
83
|
+
- `baseHash` (required) — config hash from `config.get`
|
|
84
|
+
- `sessionKey` (optional) — last active session key for the wake-up ping
|
|
85
|
+
- `note` (optional) — note to include in the restart sentinel
|
|
86
|
+
- `restartDelayMs` (optional) — delay before restart (default 2000)
|
|
87
|
+
|
|
88
|
+
Example:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
clawdbot gateway call config.get --params '{}' # capture payload.hash
|
|
92
|
+
clawdbot gateway call config.patch --params '{
|
|
93
|
+
"raw": "{\\n channels: { telegram: { groups: { \\"*\\": { requireMention: false } } } }\\n}\\n",
|
|
94
|
+
"baseHash": "<hash-from-config.get>",
|
|
95
|
+
"sessionKey": "agent:main:whatsapp:dm:+15555550123",
|
|
96
|
+
"restartDelayMs": 1000
|
|
97
|
+
}'
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Minimal config (recommended starting point)
|
|
101
|
+
|
|
102
|
+
```json5
|
|
103
|
+
{
|
|
104
|
+
agents: { defaults: { workspace: "~/clawd" } },
|
|
105
|
+
channels: { whatsapp: { allowFrom: ["+15555550123"] } }
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Build the default image once with:
|
|
110
|
+
```bash
|
|
111
|
+
scripts/sandbox-setup.sh
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## Self-chat mode (recommended for group control)
|
|
115
|
+
|
|
116
|
+
To prevent the bot from responding to WhatsApp @-mentions in groups (only respond to specific text triggers):
|
|
117
|
+
|
|
118
|
+
```json5
|
|
119
|
+
{
|
|
120
|
+
agents: {
|
|
121
|
+
defaults: { workspace: "~/clawd" },
|
|
122
|
+
list: [
|
|
123
|
+
{
|
|
124
|
+
id: "main",
|
|
125
|
+
groupChat: { mentionPatterns: ["@clawd", "reisponde"] }
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
channels: {
|
|
130
|
+
whatsapp: {
|
|
131
|
+
// Allowlist is DMs only; including your own number enables self-chat mode.
|
|
132
|
+
allowFrom: ["+15555550123"],
|
|
133
|
+
groups: { "*": { requireMention: true } }
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Config Includes (`$include`)
|
|
140
|
+
|
|
141
|
+
Split your config into multiple files using the `$include` directive. This is useful for:
|
|
142
|
+
- Organizing large configs (e.g., per-client agent definitions)
|
|
143
|
+
- Sharing common settings across environments
|
|
144
|
+
- Keeping sensitive configs separate
|
|
145
|
+
|
|
146
|
+
### Basic usage
|
|
147
|
+
|
|
148
|
+
```json5
|
|
149
|
+
// ~/.clawdbot/clawdbot.json
|
|
150
|
+
{
|
|
151
|
+
gateway: { port: 18789 },
|
|
152
|
+
|
|
153
|
+
// Include a single file (replaces the key's value)
|
|
154
|
+
agents: { "$include": "./agents.json5" },
|
|
155
|
+
|
|
156
|
+
// Include multiple files (deep-merged in order)
|
|
157
|
+
broadcast: {
|
|
158
|
+
"$include": [
|
|
159
|
+
"./clients/mueller.json5",
|
|
160
|
+
"./clients/schmidt.json5"
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
```json5
|
|
167
|
+
// ~/.clawdbot/agents.json5
|
|
168
|
+
{
|
|
169
|
+
defaults: { sandbox: { mode: "all", scope: "session" } },
|
|
170
|
+
list: [
|
|
171
|
+
{ id: "main", workspace: "~/clawd" }
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### Merge behavior
|
|
177
|
+
|
|
178
|
+
- **Single file**: Replaces the object containing `$include`
|
|
179
|
+
- **Array of files**: Deep-merges files in order (later files override earlier ones)
|
|
180
|
+
- **With sibling keys**: Sibling keys are merged after includes (override included values)
|
|
181
|
+
- **Sibling keys + arrays/primitives**: Not supported (included content must be an object)
|
|
182
|
+
|
|
183
|
+
```json5
|
|
184
|
+
// Sibling keys override included values
|
|
185
|
+
{
|
|
186
|
+
"$include": "./base.json5", // { a: 1, b: 2 }
|
|
187
|
+
b: 99 // Result: { a: 1, b: 99 }
|
|
188
|
+
}
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### Nested includes
|
|
192
|
+
|
|
193
|
+
Included files can themselves contain `$include` directives (up to 10 levels deep):
|
|
194
|
+
|
|
195
|
+
```json5
|
|
196
|
+
// clients/mueller.json5
|
|
197
|
+
{
|
|
198
|
+
agents: { "$include": "./mueller/agents.json5" },
|
|
199
|
+
broadcast: { "$include": "./mueller/broadcast.json5" }
|
|
200
|
+
}
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Path resolution
|
|
204
|
+
|
|
205
|
+
- **Relative paths**: Resolved relative to the including file
|
|
206
|
+
- **Absolute paths**: Used as-is
|
|
207
|
+
- **Parent directories**: `../` references work as expected
|
|
208
|
+
|
|
209
|
+
```json5
|
|
210
|
+
{ "$include": "./sub/config.json5" } // relative
|
|
211
|
+
{ "$include": "/etc/clawdbot/base.json5" } // absolute
|
|
212
|
+
{ "$include": "../shared/common.json5" } // parent dir
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Error handling
|
|
216
|
+
|
|
217
|
+
- **Missing file**: Clear error with resolved path
|
|
218
|
+
- **Parse error**: Shows which included file failed
|
|
219
|
+
- **Circular includes**: Detected and reported with include chain
|
|
220
|
+
|
|
221
|
+
### Example: Multi-client legal setup
|
|
222
|
+
|
|
223
|
+
```json5
|
|
224
|
+
// ~/.clawdbot/clawdbot.json
|
|
225
|
+
{
|
|
226
|
+
gateway: { port: 18789, auth: { token: "secret" } },
|
|
227
|
+
|
|
228
|
+
// Common agent defaults
|
|
229
|
+
agents: {
|
|
230
|
+
defaults: {
|
|
231
|
+
sandbox: { mode: "all", scope: "session" }
|
|
232
|
+
},
|
|
233
|
+
// Merge agent lists from all clients
|
|
234
|
+
list: { "$include": [
|
|
235
|
+
"./clients/mueller/agents.json5",
|
|
236
|
+
"./clients/schmidt/agents.json5"
|
|
237
|
+
]}
|
|
238
|
+
},
|
|
239
|
+
|
|
240
|
+
// Merge broadcast configs
|
|
241
|
+
broadcast: { "$include": [
|
|
242
|
+
"./clients/mueller/broadcast.json5",
|
|
243
|
+
"./clients/schmidt/broadcast.json5"
|
|
244
|
+
]},
|
|
245
|
+
|
|
246
|
+
channels: { whatsapp: { groupPolicy: "allowlist" } }
|
|
247
|
+
}
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
```json5
|
|
251
|
+
// ~/.clawdbot/clients/mueller/agents.json5
|
|
252
|
+
[
|
|
253
|
+
{ id: "mueller-transcribe", workspace: "~/clients/mueller/transcribe" },
|
|
254
|
+
{ id: "mueller-docs", workspace: "~/clients/mueller/docs" }
|
|
255
|
+
]
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
```json5
|
|
259
|
+
// ~/.clawdbot/clients/mueller/broadcast.json5
|
|
260
|
+
{
|
|
261
|
+
"120363403215116621@g.us": ["mueller-transcribe", "mueller-docs"]
|
|
262
|
+
}
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
## Common options
|
|
266
|
+
|
|
267
|
+
### Env vars + `.env`
|
|
268
|
+
|
|
269
|
+
Clawdbot reads env vars from the parent process (shell, launchd/systemd, CI, etc.).
|
|
270
|
+
|
|
271
|
+
Additionally, it loads:
|
|
272
|
+
- `.env` from the current working directory (if present)
|
|
273
|
+
- a global fallback `.env` from `~/.clawdbot/.env` (aka `$CLAWDBOT_STATE_DIR/.env`)
|
|
274
|
+
|
|
275
|
+
Neither `.env` file overrides existing env vars.
|
|
276
|
+
|
|
277
|
+
You can also provide inline env vars in config. These are only applied if the
|
|
278
|
+
process env is missing the key (same non-overriding rule):
|
|
279
|
+
|
|
280
|
+
```json5
|
|
281
|
+
{
|
|
282
|
+
env: {
|
|
283
|
+
OPENROUTER_API_KEY: "sk-or-...",
|
|
284
|
+
vars: {
|
|
285
|
+
GROQ_API_KEY: "gsk-..."
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
See [/environment](/environment) for full precedence and sources.
|
|
292
|
+
|
|
293
|
+
### `env.shellEnv` (optional)
|
|
294
|
+
|
|
295
|
+
Opt-in convenience: if enabled and none of the expected keys are set yet, Clawdbot runs your login shell and imports only the missing expected keys (never overrides).
|
|
296
|
+
This effectively sources your shell profile.
|
|
297
|
+
|
|
298
|
+
```json5
|
|
299
|
+
{
|
|
300
|
+
env: {
|
|
301
|
+
shellEnv: {
|
|
302
|
+
enabled: true,
|
|
303
|
+
timeoutMs: 15000
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
Env var equivalent:
|
|
310
|
+
- `CLAWDBOT_LOAD_SHELL_ENV=1`
|
|
311
|
+
- `CLAWDBOT_SHELL_ENV_TIMEOUT_MS=15000`
|
|
312
|
+
|
|
313
|
+
### Env var substitution in config
|
|
314
|
+
|
|
315
|
+
You can reference environment variables directly in any config string value using
|
|
316
|
+
`${VAR_NAME}` syntax. Variables are substituted at config load time, before validation.
|
|
317
|
+
|
|
318
|
+
```json5
|
|
319
|
+
{
|
|
320
|
+
models: {
|
|
321
|
+
providers: {
|
|
322
|
+
"vercel-gateway": {
|
|
323
|
+
apiKey: "${VERCEL_GATEWAY_API_KEY}"
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
gateway: {
|
|
328
|
+
auth: {
|
|
329
|
+
token: "${CLAWDBOT_GATEWAY_TOKEN}"
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
**Rules:**
|
|
336
|
+
- Only uppercase env var names are matched: `[A-Z_][A-Z0-9_]*`
|
|
337
|
+
- Missing or empty env vars throw an error at config load
|
|
338
|
+
- Escape with `$${VAR}` to output a literal `${VAR}`
|
|
339
|
+
- Works with `$include` (included files also get substitution)
|
|
340
|
+
|
|
341
|
+
**Inline substitution:**
|
|
342
|
+
|
|
343
|
+
```json5
|
|
344
|
+
{
|
|
345
|
+
models: {
|
|
346
|
+
providers: {
|
|
347
|
+
custom: {
|
|
348
|
+
baseUrl: "${CUSTOM_API_BASE}/v1" // → "https://api.example.com/v1"
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
### Auth storage (OAuth + API keys)
|
|
356
|
+
|
|
357
|
+
Clawdbot stores **per-agent** auth profiles (OAuth + API keys) in:
|
|
358
|
+
- `<agentDir>/auth-profiles.json` (default: `~/.clawdbot/agents/<agentId>/agent/auth-profiles.json`)
|
|
359
|
+
|
|
360
|
+
See also: [/concepts/oauth](/concepts/oauth)
|
|
361
|
+
|
|
362
|
+
Legacy OAuth imports:
|
|
363
|
+
- `~/.clawdbot/credentials/oauth.json` (or `$CLAWDBOT_STATE_DIR/credentials/oauth.json`)
|
|
364
|
+
|
|
365
|
+
The embedded Pi agent maintains a runtime cache at:
|
|
366
|
+
- `<agentDir>/auth.json` (managed automatically; don’t edit manually)
|
|
367
|
+
|
|
368
|
+
Legacy agent dir (pre multi-agent):
|
|
369
|
+
- `~/.clawdbot/agent/*` (migrated by `clawdbot doctor` into `~/.clawdbot/agents/<defaultAgentId>/agent/*`)
|
|
370
|
+
|
|
371
|
+
Overrides:
|
|
372
|
+
- OAuth dir (legacy import only): `CLAWDBOT_OAUTH_DIR`
|
|
373
|
+
- Agent dir (default agent root override): `CLAWDBOT_AGENT_DIR` (preferred), `PI_CODING_AGENT_DIR` (legacy)
|
|
374
|
+
|
|
375
|
+
On first use, Clawdbot imports `oauth.json` entries into `auth-profiles.json`.
|
|
376
|
+
|
|
377
|
+
### `auth`
|
|
378
|
+
|
|
379
|
+
Optional metadata for auth profiles. This does **not** store secrets; it maps
|
|
380
|
+
profile IDs to a provider + mode (and optional email) and defines the provider
|
|
381
|
+
rotation order used for failover.
|
|
382
|
+
|
|
383
|
+
```json5
|
|
384
|
+
{
|
|
385
|
+
auth: {
|
|
386
|
+
profiles: {
|
|
387
|
+
"anthropic:me@example.com": { provider: "anthropic", mode: "oauth", email: "me@example.com" },
|
|
388
|
+
"anthropic:work": { provider: "anthropic", mode: "api_key" }
|
|
389
|
+
},
|
|
390
|
+
order: {
|
|
391
|
+
anthropic: ["anthropic:me@example.com", "anthropic:work"]
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
### `agents.list[].identity`
|
|
398
|
+
|
|
399
|
+
Optional per-agent identity used for defaults and UX. This is written by the macOS onboarding assistant.
|
|
400
|
+
|
|
401
|
+
If set, Clawdbot derives defaults (only when you haven’t set them explicitly):
|
|
402
|
+
- `messages.ackReaction` from the **active agent**’s `identity.emoji` (falls back to 👀)
|
|
403
|
+
- `agents.list[].groupChat.mentionPatterns` from the agent’s `identity.name`/`identity.emoji` (so “@Samantha” works in groups across Telegram/Slack/Discord/Google Chat/iMessage/WhatsApp)
|
|
404
|
+
- `identity.avatar` accepts a workspace-relative image path or a remote URL/data URL. Local files must live inside the agent workspace.
|
|
405
|
+
|
|
406
|
+
`identity.avatar` accepts:
|
|
407
|
+
- Workspace-relative path (must stay within the agent workspace)
|
|
408
|
+
- `http(s)` URL
|
|
409
|
+
- `data:` URI
|
|
410
|
+
|
|
411
|
+
```json5
|
|
412
|
+
{
|
|
413
|
+
agents: {
|
|
414
|
+
list: [
|
|
415
|
+
{
|
|
416
|
+
id: "main",
|
|
417
|
+
identity: {
|
|
418
|
+
name: "Samantha",
|
|
419
|
+
theme: "helpful sloth",
|
|
420
|
+
emoji: "🦥",
|
|
421
|
+
avatar: "avatars/samantha.png"
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
]
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
### `wizard`
|
|
430
|
+
|
|
431
|
+
Metadata written by CLI wizards (`onboard`, `configure`, `doctor`).
|
|
432
|
+
|
|
433
|
+
```json5
|
|
434
|
+
{
|
|
435
|
+
wizard: {
|
|
436
|
+
lastRunAt: "2026-01-01T00:00:00.000Z",
|
|
437
|
+
lastRunVersion: "2026.1.4",
|
|
438
|
+
lastRunCommit: "abc1234",
|
|
439
|
+
lastRunCommand: "configure",
|
|
440
|
+
lastRunMode: "local"
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
### `logging`
|
|
446
|
+
|
|
447
|
+
- Default log file: `/tmp/clawdbot/clawdbot-YYYY-MM-DD.log`
|
|
448
|
+
- If you want a stable path, set `logging.file` to `/tmp/clawdbot/clawdbot.log`.
|
|
449
|
+
- Console output can be tuned separately via:
|
|
450
|
+
- `logging.consoleLevel` (defaults to `info`, bumps to `debug` when `--verbose`)
|
|
451
|
+
- `logging.consoleStyle` (`pretty` | `compact` | `json`)
|
|
452
|
+
- Tool summaries can be redacted to avoid leaking secrets:
|
|
453
|
+
- `logging.redactSensitive` (`off` | `tools`, default: `tools`)
|
|
454
|
+
- `logging.redactPatterns` (array of regex strings; overrides defaults)
|
|
455
|
+
|
|
456
|
+
```json5
|
|
457
|
+
{
|
|
458
|
+
logging: {
|
|
459
|
+
level: "info",
|
|
460
|
+
file: "/tmp/clawdbot/clawdbot.log",
|
|
461
|
+
consoleLevel: "info",
|
|
462
|
+
consoleStyle: "pretty",
|
|
463
|
+
redactSensitive: "tools",
|
|
464
|
+
redactPatterns: [
|
|
465
|
+
// Example: override defaults with your own rules.
|
|
466
|
+
"\\bTOKEN\\b\\s*[=:]\\s*([\"']?)([^\\s\"']+)\\1",
|
|
467
|
+
"/\\bsk-[A-Za-z0-9_-]{8,}\\b/gi"
|
|
468
|
+
]
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
```
|
|
472
|
+
|
|
473
|
+
### `channels.whatsapp.dmPolicy`
|
|
474
|
+
|
|
475
|
+
Controls how WhatsApp direct chats (DMs) are handled:
|
|
476
|
+
- `"pairing"` (default): unknown senders get a pairing code; owner must approve
|
|
477
|
+
- `"allowlist"`: only allow senders in `channels.whatsapp.allowFrom` (or paired allow store)
|
|
478
|
+
- `"open"`: allow all inbound DMs (**requires** `channels.whatsapp.allowFrom` to include `"*"`)
|
|
479
|
+
- `"disabled"`: ignore all inbound DMs
|
|
480
|
+
|
|
481
|
+
Pairing codes expire after 1 hour; the bot only sends a pairing code when a new request is created. Pending DM pairing requests are capped at **3 per channel** by default.
|
|
482
|
+
|
|
483
|
+
Pairing approvals:
|
|
484
|
+
- `clawdbot pairing list whatsapp`
|
|
485
|
+
- `clawdbot pairing approve whatsapp <code>`
|
|
486
|
+
|
|
487
|
+
### `channels.whatsapp.allowFrom`
|
|
488
|
+
|
|
489
|
+
Allowlist of E.164 phone numbers that may trigger WhatsApp auto-replies (**DMs only**).
|
|
490
|
+
If empty and `channels.whatsapp.dmPolicy="pairing"`, unknown senders will receive a pairing code.
|
|
491
|
+
For groups, use `channels.whatsapp.groupPolicy` + `channels.whatsapp.groupAllowFrom`.
|
|
492
|
+
|
|
493
|
+
```json5
|
|
494
|
+
{
|
|
495
|
+
channels: {
|
|
496
|
+
whatsapp: {
|
|
497
|
+
dmPolicy: "pairing", // pairing | allowlist | open | disabled
|
|
498
|
+
allowFrom: ["+15555550123", "+447700900123"],
|
|
499
|
+
textChunkLimit: 4000, // optional outbound chunk size (chars)
|
|
500
|
+
chunkMode: "length", // optional chunking mode (length | newline)
|
|
501
|
+
mediaMaxMb: 50 // optional inbound media cap (MB)
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
```
|
|
506
|
+
|
|
507
|
+
### `channels.whatsapp.sendReadReceipts`
|
|
508
|
+
|
|
509
|
+
Controls whether inbound WhatsApp messages are marked as read (blue ticks). Default: `true`.
|
|
510
|
+
|
|
511
|
+
Self-chat mode always skips read receipts, even when enabled.
|
|
512
|
+
|
|
513
|
+
Per-account override: `channels.whatsapp.accounts.<id>.sendReadReceipts`.
|
|
514
|
+
|
|
515
|
+
```json5
|
|
516
|
+
{
|
|
517
|
+
channels: {
|
|
518
|
+
whatsapp: { sendReadReceipts: false }
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
```
|
|
522
|
+
|
|
523
|
+
### `channels.whatsapp.accounts` (multi-account)
|
|
524
|
+
|
|
525
|
+
Run multiple WhatsApp accounts in one gateway:
|
|
526
|
+
|
|
527
|
+
```json5
|
|
528
|
+
{
|
|
529
|
+
channels: {
|
|
530
|
+
whatsapp: {
|
|
531
|
+
accounts: {
|
|
532
|
+
default: {}, // optional; keeps the default id stable
|
|
533
|
+
personal: {},
|
|
534
|
+
biz: {
|
|
535
|
+
// Optional override. Default: ~/.clawdbot/credentials/whatsapp/biz
|
|
536
|
+
// authDir: "~/.clawdbot/credentials/whatsapp/biz",
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
```
|
|
543
|
+
|
|
544
|
+
Notes:
|
|
545
|
+
- Outbound commands default to account `default` if present; otherwise the first configured account id (sorted).
|
|
546
|
+
- The legacy single-account Baileys auth dir is migrated by `clawdbot doctor` into `whatsapp/default`.
|
|
547
|
+
|
|
548
|
+
### `channels.telegram.accounts` / `channels.discord.accounts` / `channels.googlechat.accounts` / `channels.slack.accounts` / `channels.mattermost.accounts` / `channels.signal.accounts` / `channels.imessage.accounts`
|
|
549
|
+
|
|
550
|
+
Run multiple accounts per channel (each account has its own `accountId` and optional `name`):
|
|
551
|
+
|
|
552
|
+
```json5
|
|
553
|
+
{
|
|
554
|
+
channels: {
|
|
555
|
+
telegram: {
|
|
556
|
+
accounts: {
|
|
557
|
+
default: {
|
|
558
|
+
name: "Primary bot",
|
|
559
|
+
botToken: "123456:ABC..."
|
|
560
|
+
},
|
|
561
|
+
alerts: {
|
|
562
|
+
name: "Alerts bot",
|
|
563
|
+
botToken: "987654:XYZ..."
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
```
|
|
570
|
+
|
|
571
|
+
Notes:
|
|
572
|
+
- `default` is used when `accountId` is omitted (CLI + routing).
|
|
573
|
+
- Env tokens only apply to the **default** account.
|
|
574
|
+
- Base channel settings (group policy, mention gating, etc.) apply to all accounts unless overridden per account.
|
|
575
|
+
- Use `bindings[].match.accountId` to route each account to a different agents.defaults.
|
|
576
|
+
|
|
577
|
+
### Group chat mention gating (`agents.list[].groupChat` + `messages.groupChat`)
|
|
578
|
+
|
|
579
|
+
Group messages default to **require mention** (either metadata mention or regex patterns). Applies to WhatsApp, Telegram, Discord, Google Chat, and iMessage group chats.
|
|
580
|
+
|
|
581
|
+
**Mention types:**
|
|
582
|
+
- **Metadata mentions**: Native platform @-mentions (e.g., WhatsApp tap-to-mention). Ignored in WhatsApp self-chat mode (see `channels.whatsapp.allowFrom`).
|
|
583
|
+
- **Text patterns**: Regex patterns defined in `agents.list[].groupChat.mentionPatterns`. Always checked regardless of self-chat mode.
|
|
584
|
+
- Mention gating is enforced only when mention detection is possible (native mentions or at least one `mentionPattern`).
|
|
585
|
+
|
|
586
|
+
```json5
|
|
587
|
+
{
|
|
588
|
+
messages: {
|
|
589
|
+
groupChat: { historyLimit: 50 }
|
|
590
|
+
},
|
|
591
|
+
agents: {
|
|
592
|
+
list: [
|
|
593
|
+
{ id: "main", groupChat: { mentionPatterns: ["@clawd", "clawdbot", "clawd"] } }
|
|
594
|
+
]
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
```
|
|
598
|
+
|
|
599
|
+
`messages.groupChat.historyLimit` sets the global default for group history context. Channels can override with `channels.<channel>.historyLimit` (or `channels.<channel>.accounts.*.historyLimit` for multi-account). Set `0` to disable history wrapping.
|
|
600
|
+
|
|
601
|
+
#### DM history limits
|
|
602
|
+
|
|
603
|
+
DM conversations use session-based history managed by the agent. You can limit the number of user turns retained per DM session:
|
|
604
|
+
|
|
605
|
+
```json5
|
|
606
|
+
{
|
|
607
|
+
channels: {
|
|
608
|
+
telegram: {
|
|
609
|
+
dmHistoryLimit: 30, // limit DM sessions to 30 user turns
|
|
610
|
+
dms: {
|
|
611
|
+
"123456789": { historyLimit: 50 } // per-user override (user ID)
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
```
|
|
617
|
+
|
|
618
|
+
Resolution order:
|
|
619
|
+
1. Per-DM override: `channels.<provider>.dms[userId].historyLimit`
|
|
620
|
+
2. Provider default: `channels.<provider>.dmHistoryLimit`
|
|
621
|
+
3. No limit (all history retained)
|
|
622
|
+
|
|
623
|
+
Supported providers: `telegram`, `whatsapp`, `discord`, `slack`, `signal`, `imessage`, `msteams`.
|
|
624
|
+
|
|
625
|
+
Per-agent override (takes precedence when set, even `[]`):
|
|
626
|
+
```json5
|
|
627
|
+
{
|
|
628
|
+
agents: {
|
|
629
|
+
list: [
|
|
630
|
+
{ id: "work", groupChat: { mentionPatterns: ["@workbot", "\\+15555550123"] } },
|
|
631
|
+
{ id: "personal", groupChat: { mentionPatterns: ["@homebot", "\\+15555550999"] } }
|
|
632
|
+
]
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
```
|
|
636
|
+
|
|
637
|
+
Mention gating defaults live per channel (`channels.whatsapp.groups`, `channels.telegram.groups`, `channels.imessage.groups`, `channels.discord.guilds`). When `*.groups` is set, it also acts as a group allowlist; include `"*"` to allow all groups.
|
|
638
|
+
|
|
639
|
+
To respond **only** to specific text triggers (ignoring native @-mentions):
|
|
640
|
+
```json5
|
|
641
|
+
{
|
|
642
|
+
channels: {
|
|
643
|
+
whatsapp: {
|
|
644
|
+
// Include your own number to enable self-chat mode (ignore native @-mentions).
|
|
645
|
+
allowFrom: ["+15555550123"],
|
|
646
|
+
groups: { "*": { requireMention: true } }
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
agents: {
|
|
650
|
+
list: [
|
|
651
|
+
{
|
|
652
|
+
id: "main",
|
|
653
|
+
groupChat: {
|
|
654
|
+
// Only these text patterns will trigger responses
|
|
655
|
+
mentionPatterns: ["reisponde", "@clawd"]
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
]
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
```
|
|
662
|
+
|
|
663
|
+
### Group policy (per channel)
|
|
664
|
+
|
|
665
|
+
Use `channels.*.groupPolicy` to control whether group/room messages are accepted at all:
|
|
666
|
+
|
|
667
|
+
```json5
|
|
668
|
+
{
|
|
669
|
+
channels: {
|
|
670
|
+
whatsapp: {
|
|
671
|
+
groupPolicy: "allowlist",
|
|
672
|
+
groupAllowFrom: ["+15551234567"]
|
|
673
|
+
},
|
|
674
|
+
telegram: {
|
|
675
|
+
groupPolicy: "allowlist",
|
|
676
|
+
groupAllowFrom: ["tg:123456789", "@alice"]
|
|
677
|
+
},
|
|
678
|
+
signal: {
|
|
679
|
+
groupPolicy: "allowlist",
|
|
680
|
+
groupAllowFrom: ["+15551234567"]
|
|
681
|
+
},
|
|
682
|
+
imessage: {
|
|
683
|
+
groupPolicy: "allowlist",
|
|
684
|
+
groupAllowFrom: ["chat_id:123"]
|
|
685
|
+
},
|
|
686
|
+
msteams: {
|
|
687
|
+
groupPolicy: "allowlist",
|
|
688
|
+
groupAllowFrom: ["user@org.com"]
|
|
689
|
+
},
|
|
690
|
+
discord: {
|
|
691
|
+
groupPolicy: "allowlist",
|
|
692
|
+
guilds: {
|
|
693
|
+
"GUILD_ID": {
|
|
694
|
+
channels: { help: { allow: true } }
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
slack: {
|
|
699
|
+
groupPolicy: "allowlist",
|
|
700
|
+
channels: { "#general": { allow: true } }
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
```
|
|
705
|
+
|
|
706
|
+
Notes:
|
|
707
|
+
- `"open"`: groups bypass allowlists; mention-gating still applies.
|
|
708
|
+
- `"disabled"`: block all group/room messages.
|
|
709
|
+
- `"allowlist"`: only allow groups/rooms that match the configured allowlist.
|
|
710
|
+
- `channels.defaults.groupPolicy` sets the default when a provider’s `groupPolicy` is unset.
|
|
711
|
+
- WhatsApp/Telegram/Signal/iMessage/Microsoft Teams use `groupAllowFrom` (fallback: explicit `allowFrom`).
|
|
712
|
+
- Discord/Slack use channel allowlists (`channels.discord.guilds.*.channels`, `channels.slack.channels`).
|
|
713
|
+
- Group DMs (Discord/Slack) are still controlled by `dm.groupEnabled` + `dm.groupChannels`.
|
|
714
|
+
- Default is `groupPolicy: "allowlist"` (unless overridden by `channels.defaults.groupPolicy`); if no allowlist is configured, group messages are blocked.
|
|
715
|
+
|
|
716
|
+
### Multi-agent routing (`agents.list` + `bindings`)
|
|
717
|
+
|
|
718
|
+
Run multiple isolated agents (separate workspace, `agentDir`, sessions) inside one Gateway.
|
|
719
|
+
Inbound messages are routed to an agent via bindings.
|
|
720
|
+
|
|
721
|
+
- `agents.list[]`: per-agent overrides.
|
|
722
|
+
- `id`: stable agent id (required).
|
|
723
|
+
- `default`: optional; when multiple are set, the first wins and a warning is logged.
|
|
724
|
+
If none are set, the **first entry** in the list is the default agent.
|
|
725
|
+
- `name`: display name for the agent.
|
|
726
|
+
- `workspace`: default `~/clawd-<agentId>` (for `main`, falls back to `agents.defaults.workspace`).
|
|
727
|
+
- `agentDir`: default `~/.clawdbot/agents/<agentId>/agent`.
|
|
728
|
+
- `model`: per-agent default model, overrides `agents.defaults.model` for that agent.
|
|
729
|
+
- string form: `"provider/model"`, overrides only `agents.defaults.model.primary`
|
|
730
|
+
- object form: `{ primary, fallbacks }` (fallbacks override `agents.defaults.model.fallbacks`; `[]` disables global fallbacks for that agent)
|
|
731
|
+
- `identity`: per-agent name/theme/emoji (used for mention patterns + ack reactions).
|
|
732
|
+
- `groupChat`: per-agent mention-gating (`mentionPatterns`).
|
|
733
|
+
- `sandbox`: per-agent sandbox config (overrides `agents.defaults.sandbox`).
|
|
734
|
+
- `mode`: `"off"` | `"non-main"` | `"all"`
|
|
735
|
+
- `workspaceAccess`: `"none"` | `"ro"` | `"rw"`
|
|
736
|
+
- `scope`: `"session"` | `"agent"` | `"shared"`
|
|
737
|
+
- `workspaceRoot`: custom sandbox workspace root
|
|
738
|
+
- `docker`: per-agent docker overrides (e.g. `image`, `network`, `env`, `setupCommand`, limits; ignored when `scope: "shared"`)
|
|
739
|
+
- `browser`: per-agent sandboxed browser overrides (ignored when `scope: "shared"`)
|
|
740
|
+
- `prune`: per-agent sandbox pruning overrides (ignored when `scope: "shared"`)
|
|
741
|
+
- `subagents`: per-agent sub-agent defaults.
|
|
742
|
+
- `allowAgents`: allowlist of agent ids for `sessions_spawn` from this agent (`["*"]` = allow any; default: only same agent)
|
|
743
|
+
- `tools`: per-agent tool restrictions (applied before sandbox tool policy).
|
|
744
|
+
- `profile`: base tool profile (applied before allow/deny)
|
|
745
|
+
- `allow`: array of allowed tool names
|
|
746
|
+
- `deny`: array of denied tool names (deny wins)
|
|
747
|
+
- `agents.defaults`: shared agent defaults (model, workspace, sandbox, etc.).
|
|
748
|
+
- `bindings[]`: routes inbound messages to an `agentId`.
|
|
749
|
+
- `match.channel` (required)
|
|
750
|
+
- `match.accountId` (optional; `*` = any account; omitted = default account)
|
|
751
|
+
- `match.peer` (optional; `{ kind: dm|group|channel, id }`)
|
|
752
|
+
- `match.guildId` / `match.teamId` (optional; channel-specific)
|
|
753
|
+
|
|
754
|
+
Deterministic match order:
|
|
755
|
+
1) `match.peer`
|
|
756
|
+
2) `match.guildId`
|
|
757
|
+
3) `match.teamId`
|
|
758
|
+
4) `match.accountId` (exact, no peer/guild/team)
|
|
759
|
+
5) `match.accountId: "*"` (channel-wide, no peer/guild/team)
|
|
760
|
+
6) default agent (`agents.list[].default`, else first list entry, else `"main"`)
|
|
761
|
+
|
|
762
|
+
Within each match tier, the first matching entry in `bindings` wins.
|
|
763
|
+
|
|
764
|
+
#### Per-agent access profiles (multi-agent)
|
|
765
|
+
|
|
766
|
+
Each agent can carry its own sandbox + tool policy. Use this to mix access
|
|
767
|
+
levels in one gateway:
|
|
768
|
+
- **Full access** (personal agent)
|
|
769
|
+
- **Read-only** tools + workspace
|
|
770
|
+
- **No filesystem access** (messaging/session tools only)
|
|
771
|
+
|
|
772
|
+
See [Multi-Agent Sandbox & Tools](/multi-agent-sandbox-tools) for precedence and
|
|
773
|
+
additional examples.
|
|
774
|
+
|
|
775
|
+
Full access (no sandbox):
|
|
776
|
+
```json5
|
|
777
|
+
{
|
|
778
|
+
agents: {
|
|
779
|
+
list: [
|
|
780
|
+
{
|
|
781
|
+
id: "personal",
|
|
782
|
+
workspace: "~/clawd-personal",
|
|
783
|
+
sandbox: { mode: "off" }
|
|
784
|
+
}
|
|
785
|
+
]
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
```
|
|
789
|
+
|
|
790
|
+
Read-only tools + read-only workspace:
|
|
791
|
+
```json5
|
|
792
|
+
{
|
|
793
|
+
agents: {
|
|
794
|
+
list: [
|
|
795
|
+
{
|
|
796
|
+
id: "family",
|
|
797
|
+
workspace: "~/clawd-family",
|
|
798
|
+
sandbox: {
|
|
799
|
+
mode: "all",
|
|
800
|
+
scope: "agent",
|
|
801
|
+
workspaceAccess: "ro"
|
|
802
|
+
},
|
|
803
|
+
tools: {
|
|
804
|
+
allow: ["read", "sessions_list", "sessions_history", "sessions_send", "sessions_spawn", "session_status"],
|
|
805
|
+
deny: ["write", "edit", "apply_patch", "exec", "process", "browser"]
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
]
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
```
|
|
812
|
+
|
|
813
|
+
No filesystem access (messaging/session tools enabled):
|
|
814
|
+
```json5
|
|
815
|
+
{
|
|
816
|
+
agents: {
|
|
817
|
+
list: [
|
|
818
|
+
{
|
|
819
|
+
id: "public",
|
|
820
|
+
workspace: "~/clawd-public",
|
|
821
|
+
sandbox: {
|
|
822
|
+
mode: "all",
|
|
823
|
+
scope: "agent",
|
|
824
|
+
workspaceAccess: "none"
|
|
825
|
+
},
|
|
826
|
+
tools: {
|
|
827
|
+
allow: ["sessions_list", "sessions_history", "sessions_send", "sessions_spawn", "session_status", "whatsapp", "telegram", "slack", "discord", "gateway"],
|
|
828
|
+
deny: ["read", "write", "edit", "apply_patch", "exec", "process", "browser", "canvas", "nodes", "cron", "gateway", "image"]
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
]
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
```
|
|
835
|
+
|
|
836
|
+
Example: two WhatsApp accounts → two agents:
|
|
837
|
+
|
|
838
|
+
```json5
|
|
839
|
+
{
|
|
840
|
+
agents: {
|
|
841
|
+
list: [
|
|
842
|
+
{ id: "home", default: true, workspace: "~/clawd-home" },
|
|
843
|
+
{ id: "work", workspace: "~/clawd-work" }
|
|
844
|
+
]
|
|
845
|
+
},
|
|
846
|
+
bindings: [
|
|
847
|
+
{ agentId: "home", match: { channel: "whatsapp", accountId: "personal" } },
|
|
848
|
+
{ agentId: "work", match: { channel: "whatsapp", accountId: "biz" } }
|
|
849
|
+
],
|
|
850
|
+
channels: {
|
|
851
|
+
whatsapp: {
|
|
852
|
+
accounts: {
|
|
853
|
+
personal: {},
|
|
854
|
+
biz: {},
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
```
|
|
860
|
+
|
|
861
|
+
### `tools.agentToAgent` (optional)
|
|
862
|
+
|
|
863
|
+
Agent-to-agent messaging is opt-in:
|
|
864
|
+
|
|
865
|
+
```json5
|
|
866
|
+
{
|
|
867
|
+
tools: {
|
|
868
|
+
agentToAgent: {
|
|
869
|
+
enabled: false,
|
|
870
|
+
allow: ["home", "work"]
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
```
|
|
875
|
+
|
|
876
|
+
### `messages.queue`
|
|
877
|
+
|
|
878
|
+
Controls how inbound messages behave when an agent run is already active.
|
|
879
|
+
|
|
880
|
+
```json5
|
|
881
|
+
{
|
|
882
|
+
messages: {
|
|
883
|
+
queue: {
|
|
884
|
+
mode: "collect", // steer | followup | collect | steer-backlog (steer+backlog ok) | interrupt (queue=steer legacy)
|
|
885
|
+
debounceMs: 1000,
|
|
886
|
+
cap: 20,
|
|
887
|
+
drop: "summarize", // old | new | summarize
|
|
888
|
+
byChannel: {
|
|
889
|
+
whatsapp: "collect",
|
|
890
|
+
telegram: "collect",
|
|
891
|
+
discord: "collect",
|
|
892
|
+
imessage: "collect",
|
|
893
|
+
webchat: "collect"
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
```
|
|
899
|
+
|
|
900
|
+
### `messages.inbound`
|
|
901
|
+
|
|
902
|
+
Debounce rapid inbound messages from the **same sender** so multiple back-to-back
|
|
903
|
+
messages become a single agent turn. Debouncing is scoped per channel + conversation
|
|
904
|
+
and uses the most recent message for reply threading/IDs.
|
|
905
|
+
|
|
906
|
+
```json5
|
|
907
|
+
{
|
|
908
|
+
messages: {
|
|
909
|
+
inbound: {
|
|
910
|
+
debounceMs: 2000, // 0 disables
|
|
911
|
+
byChannel: {
|
|
912
|
+
whatsapp: 5000,
|
|
913
|
+
slack: 1500,
|
|
914
|
+
discord: 1500
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
```
|
|
920
|
+
|
|
921
|
+
Notes:
|
|
922
|
+
- Debounce batches **text-only** messages; media/attachments flush immediately.
|
|
923
|
+
- Control commands (e.g. `/queue`, `/new`) bypass debouncing so they stay standalone.
|
|
924
|
+
|
|
925
|
+
### `commands` (chat command handling)
|
|
926
|
+
|
|
927
|
+
Controls how chat commands are enabled across connectors.
|
|
928
|
+
|
|
929
|
+
```json5
|
|
930
|
+
{
|
|
931
|
+
commands: {
|
|
932
|
+
native: "auto", // register native commands when supported (auto)
|
|
933
|
+
text: true, // parse slash commands in chat messages
|
|
934
|
+
bash: false, // allow ! (alias: /bash) (host-only; requires tools.elevated allowlists)
|
|
935
|
+
bashForegroundMs: 2000, // bash foreground window (0 backgrounds immediately)
|
|
936
|
+
config: false, // allow /config (writes to disk)
|
|
937
|
+
debug: false, // allow /debug (runtime-only overrides)
|
|
938
|
+
restart: false, // allow /restart + gateway restart tool
|
|
939
|
+
useAccessGroups: true // enforce access-group allowlists/policies for commands
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
```
|
|
943
|
+
|
|
944
|
+
Notes:
|
|
945
|
+
- Text commands must be sent as a **standalone** message and use the leading `/` (no plain-text aliases).
|
|
946
|
+
- `commands.text: false` disables parsing chat messages for commands.
|
|
947
|
+
- `commands.native: "auto"` (default) turns on native commands for Discord/Telegram and leaves Slack off; unsupported channels stay text-only.
|
|
948
|
+
- Set `commands.native: true|false` to force all, or override per channel with `channels.discord.commands.native`, `channels.telegram.commands.native`, `channels.slack.commands.native` (bool or `"auto"`). `false` clears previously registered commands on Discord/Telegram at startup; Slack commands are managed in the Slack app.
|
|
949
|
+
- `channels.telegram.customCommands` adds extra Telegram bot menu entries. Names are normalized; conflicts with native commands are ignored.
|
|
950
|
+
- `commands.bash: true` enables `! <cmd>` to run host shell commands (`/bash <cmd>` also works as an alias). Requires `tools.elevated.enabled` and allowlisting the sender in `tools.elevated.allowFrom.<channel>`.
|
|
951
|
+
- `commands.bashForegroundMs` controls how long bash waits before backgrounding. While a bash job is running, new `! <cmd>` requests are rejected (one at a time).
|
|
952
|
+
- `commands.config: true` enables `/config` (reads/writes `clawdbot.json`).
|
|
953
|
+
- `channels.<provider>.configWrites` gates config mutations initiated by that channel (default: true). This applies to `/config set|unset` plus provider-specific auto-migrations (Telegram supergroup ID changes, Slack channel ID changes).
|
|
954
|
+
- `commands.debug: true` enables `/debug` (runtime-only overrides).
|
|
955
|
+
- `commands.restart: true` enables `/restart` and the gateway tool restart action.
|
|
956
|
+
- `commands.useAccessGroups: false` allows commands to bypass access-group allowlists/policies.
|
|
957
|
+
|
|
958
|
+
### `web` (WhatsApp web channel runtime)
|
|
959
|
+
|
|
960
|
+
WhatsApp runs through the gateway’s web channel (Baileys Web). It starts automatically when a linked session exists.
|
|
961
|
+
Set `web.enabled: false` to keep it off by default.
|
|
962
|
+
|
|
963
|
+
```json5
|
|
964
|
+
{
|
|
965
|
+
web: {
|
|
966
|
+
enabled: true,
|
|
967
|
+
heartbeatSeconds: 60,
|
|
968
|
+
reconnect: {
|
|
969
|
+
initialMs: 2000,
|
|
970
|
+
maxMs: 120000,
|
|
971
|
+
factor: 1.4,
|
|
972
|
+
jitter: 0.2,
|
|
973
|
+
maxAttempts: 0
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
```
|
|
978
|
+
|
|
979
|
+
### `channels.telegram` (bot transport)
|
|
980
|
+
|
|
981
|
+
Clawdbot starts Telegram only when a `channels.telegram` config section exists. The bot token is resolved from `channels.telegram.botToken` (or `channels.telegram.tokenFile`), with `TELEGRAM_BOT_TOKEN` as a fallback for the default account.
|
|
982
|
+
Set `channels.telegram.enabled: false` to disable automatic startup.
|
|
983
|
+
Multi-account support lives under `channels.telegram.accounts` (see the multi-account section above). Env tokens only apply to the default account.
|
|
984
|
+
Set `channels.telegram.configWrites: false` to block Telegram-initiated config writes (including supergroup ID migrations and `/config set|unset`).
|
|
985
|
+
|
|
986
|
+
```json5
|
|
987
|
+
{
|
|
988
|
+
channels: {
|
|
989
|
+
telegram: {
|
|
990
|
+
enabled: true,
|
|
991
|
+
botToken: "your-bot-token",
|
|
992
|
+
dmPolicy: "pairing", // pairing | allowlist | open | disabled
|
|
993
|
+
allowFrom: ["tg:123456789"], // optional; "open" requires ["*"]
|
|
994
|
+
groups: {
|
|
995
|
+
"*": { requireMention: true },
|
|
996
|
+
"-1001234567890": {
|
|
997
|
+
allowFrom: ["@admin"],
|
|
998
|
+
systemPrompt: "Keep answers brief.",
|
|
999
|
+
topics: {
|
|
1000
|
+
"99": {
|
|
1001
|
+
requireMention: false,
|
|
1002
|
+
skills: ["search"],
|
|
1003
|
+
systemPrompt: "Stay on topic."
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
},
|
|
1008
|
+
customCommands: [
|
|
1009
|
+
{ command: "backup", description: "Git backup" },
|
|
1010
|
+
{ command: "generate", description: "Create an image" }
|
|
1011
|
+
],
|
|
1012
|
+
historyLimit: 50, // include last N group messages as context (0 disables)
|
|
1013
|
+
replyToMode: "first", // off | first | all
|
|
1014
|
+
linkPreview: true, // toggle outbound link previews
|
|
1015
|
+
streamMode: "partial", // off | partial | block (draft streaming; separate from block streaming)
|
|
1016
|
+
draftChunk: { // optional; only for streamMode=block
|
|
1017
|
+
minChars: 200,
|
|
1018
|
+
maxChars: 800,
|
|
1019
|
+
breakPreference: "paragraph" // paragraph | newline | sentence
|
|
1020
|
+
},
|
|
1021
|
+
actions: { reactions: true, sendMessage: true }, // tool action gates (false disables)
|
|
1022
|
+
reactionNotifications: "own", // off | own | all
|
|
1023
|
+
mediaMaxMb: 5,
|
|
1024
|
+
retry: { // outbound retry policy
|
|
1025
|
+
attempts: 3,
|
|
1026
|
+
minDelayMs: 400,
|
|
1027
|
+
maxDelayMs: 30000,
|
|
1028
|
+
jitter: 0.1
|
|
1029
|
+
},
|
|
1030
|
+
proxy: "socks5://localhost:9050",
|
|
1031
|
+
webhookUrl: "https://example.com/telegram-webhook",
|
|
1032
|
+
webhookSecret: "secret",
|
|
1033
|
+
webhookPath: "/telegram-webhook"
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
```
|
|
1038
|
+
|
|
1039
|
+
Draft streaming notes:
|
|
1040
|
+
- Uses Telegram `sendMessageDraft` (draft bubble, not a real message).
|
|
1041
|
+
- Requires **private chat topics** (message_thread_id in DMs; bot has topics enabled).
|
|
1042
|
+
- `/reasoning stream` streams reasoning into the draft, then sends the final answer.
|
|
1043
|
+
Retry policy defaults and behavior are documented in [Retry policy](/concepts/retry).
|
|
1044
|
+
|
|
1045
|
+
### `channels.discord` (bot transport)
|
|
1046
|
+
|
|
1047
|
+
Configure the Discord bot by setting the bot token and optional gating:
|
|
1048
|
+
Multi-account support lives under `channels.discord.accounts` (see the multi-account section above). Env tokens only apply to the default account.
|
|
1049
|
+
|
|
1050
|
+
```json5
|
|
1051
|
+
{
|
|
1052
|
+
channels: {
|
|
1053
|
+
discord: {
|
|
1054
|
+
enabled: true,
|
|
1055
|
+
token: "your-bot-token",
|
|
1056
|
+
mediaMaxMb: 8, // clamp inbound media size
|
|
1057
|
+
allowBots: false, // allow bot-authored messages
|
|
1058
|
+
actions: { // tool action gates (false disables)
|
|
1059
|
+
reactions: true,
|
|
1060
|
+
stickers: true,
|
|
1061
|
+
polls: true,
|
|
1062
|
+
permissions: true,
|
|
1063
|
+
messages: true,
|
|
1064
|
+
threads: true,
|
|
1065
|
+
pins: true,
|
|
1066
|
+
search: true,
|
|
1067
|
+
memberInfo: true,
|
|
1068
|
+
roleInfo: true,
|
|
1069
|
+
roles: false,
|
|
1070
|
+
channelInfo: true,
|
|
1071
|
+
voiceStatus: true,
|
|
1072
|
+
events: true,
|
|
1073
|
+
moderation: false
|
|
1074
|
+
},
|
|
1075
|
+
replyToMode: "off", // off | first | all
|
|
1076
|
+
dm: {
|
|
1077
|
+
enabled: true, // disable all DMs when false
|
|
1078
|
+
policy: "pairing", // pairing | allowlist | open | disabled
|
|
1079
|
+
allowFrom: ["1234567890", "steipete"], // optional DM allowlist ("open" requires ["*"])
|
|
1080
|
+
groupEnabled: false, // enable group DMs
|
|
1081
|
+
groupChannels: ["clawd-dm"] // optional group DM allowlist
|
|
1082
|
+
},
|
|
1083
|
+
guilds: {
|
|
1084
|
+
"123456789012345678": { // guild id (preferred) or slug
|
|
1085
|
+
slug: "friends-of-clawd",
|
|
1086
|
+
requireMention: false, // per-guild default
|
|
1087
|
+
reactionNotifications: "own", // off | own | all | allowlist
|
|
1088
|
+
users: ["987654321098765432"], // optional per-guild user allowlist
|
|
1089
|
+
channels: {
|
|
1090
|
+
general: { allow: true },
|
|
1091
|
+
help: {
|
|
1092
|
+
allow: true,
|
|
1093
|
+
requireMention: true,
|
|
1094
|
+
users: ["987654321098765432"],
|
|
1095
|
+
skills: ["docs"],
|
|
1096
|
+
systemPrompt: "Short answers only."
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
historyLimit: 20, // include last N guild messages as context
|
|
1102
|
+
textChunkLimit: 2000, // optional outbound text chunk size (chars)
|
|
1103
|
+
chunkMode: "length", // optional chunking mode (length | newline)
|
|
1104
|
+
maxLinesPerMessage: 17, // soft max lines per message (Discord UI clipping)
|
|
1105
|
+
retry: { // outbound retry policy
|
|
1106
|
+
attempts: 3,
|
|
1107
|
+
minDelayMs: 500,
|
|
1108
|
+
maxDelayMs: 30000,
|
|
1109
|
+
jitter: 0.1
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
```
|
|
1115
|
+
|
|
1116
|
+
Clawdbot starts Discord only when a `channels.discord` config section exists. The token is resolved from `channels.discord.token`, with `DISCORD_BOT_TOKEN` as a fallback for the default account (unless `channels.discord.enabled` is `false`). Use `user:<id>` (DM) or `channel:<id>` (guild channel) when specifying delivery targets for cron/CLI commands; bare numeric IDs are ambiguous and rejected.
|
|
1117
|
+
Guild slugs are lowercase with spaces replaced by `-`; channel keys use the slugged channel name (no leading `#`). Prefer guild ids as keys to avoid rename ambiguity.
|
|
1118
|
+
Bot-authored messages are ignored by default. Enable with `channels.discord.allowBots` (own messages are still filtered to prevent self-reply loops).
|
|
1119
|
+
Reaction notification modes:
|
|
1120
|
+
- `off`: no reaction events.
|
|
1121
|
+
- `own`: reactions on the bot's own messages (default).
|
|
1122
|
+
- `all`: all reactions on all messages.
|
|
1123
|
+
- `allowlist`: reactions from `guilds.<id>.users` on all messages (empty list disables).
|
|
1124
|
+
Outbound text is chunked by `channels.discord.textChunkLimit` (default 2000). Set `channels.discord.chunkMode="newline"` to split on blank lines (paragraph boundaries) before length chunking. Discord clients can clip very tall messages, so `channels.discord.maxLinesPerMessage` (default 17) splits long multi-line replies even when under 2000 chars.
|
|
1125
|
+
Retry policy defaults and behavior are documented in [Retry policy](/concepts/retry).
|
|
1126
|
+
|
|
1127
|
+
### `channels.googlechat` (Chat API webhook)
|
|
1128
|
+
|
|
1129
|
+
Google Chat runs over HTTP webhooks with app-level auth (service account).
|
|
1130
|
+
Multi-account support lives under `channels.googlechat.accounts` (see the multi-account section above). Env vars only apply to the default account.
|
|
1131
|
+
|
|
1132
|
+
```json5
|
|
1133
|
+
{
|
|
1134
|
+
channels: {
|
|
1135
|
+
"googlechat": {
|
|
1136
|
+
enabled: true,
|
|
1137
|
+
serviceAccountFile: "/path/to/service-account.json",
|
|
1138
|
+
audienceType: "app-url", // app-url | project-number
|
|
1139
|
+
audience: "https://gateway.example.com/googlechat",
|
|
1140
|
+
webhookPath: "/googlechat",
|
|
1141
|
+
botUser: "users/1234567890", // optional; improves mention detection
|
|
1142
|
+
dm: {
|
|
1143
|
+
enabled: true,
|
|
1144
|
+
policy: "pairing", // pairing | allowlist | open | disabled
|
|
1145
|
+
allowFrom: ["users/1234567890"] // optional; "open" requires ["*"]
|
|
1146
|
+
},
|
|
1147
|
+
groupPolicy: "allowlist",
|
|
1148
|
+
groups: {
|
|
1149
|
+
"spaces/AAAA": { allow: true, requireMention: true }
|
|
1150
|
+
},
|
|
1151
|
+
actions: { reactions: true },
|
|
1152
|
+
typingIndicator: "message",
|
|
1153
|
+
mediaMaxMb: 20
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
```
|
|
1158
|
+
|
|
1159
|
+
Notes:
|
|
1160
|
+
- Service account JSON can be inline (`serviceAccount`) or file-based (`serviceAccountFile`).
|
|
1161
|
+
- Env fallbacks for the default account: `GOOGLE_CHAT_SERVICE_ACCOUNT` or `GOOGLE_CHAT_SERVICE_ACCOUNT_FILE`.
|
|
1162
|
+
- `audienceType` + `audience` must match the Chat app’s webhook auth config.
|
|
1163
|
+
- Use `spaces/<spaceId>` or `users/<userId|email>` when setting delivery targets.
|
|
1164
|
+
|
|
1165
|
+
### `channels.slack` (socket mode)
|
|
1166
|
+
|
|
1167
|
+
Slack runs in Socket Mode and requires both a bot token and app token:
|
|
1168
|
+
|
|
1169
|
+
```json5
|
|
1170
|
+
{
|
|
1171
|
+
channels: {
|
|
1172
|
+
slack: {
|
|
1173
|
+
enabled: true,
|
|
1174
|
+
botToken: "xoxb-...",
|
|
1175
|
+
appToken: "xapp-...",
|
|
1176
|
+
dm: {
|
|
1177
|
+
enabled: true,
|
|
1178
|
+
policy: "pairing", // pairing | allowlist | open | disabled
|
|
1179
|
+
allowFrom: ["U123", "U456", "*"], // optional; "open" requires ["*"]
|
|
1180
|
+
groupEnabled: false,
|
|
1181
|
+
groupChannels: ["G123"]
|
|
1182
|
+
},
|
|
1183
|
+
channels: {
|
|
1184
|
+
C123: { allow: true, requireMention: true, allowBots: false },
|
|
1185
|
+
"#general": {
|
|
1186
|
+
allow: true,
|
|
1187
|
+
requireMention: true,
|
|
1188
|
+
allowBots: false,
|
|
1189
|
+
users: ["U123"],
|
|
1190
|
+
skills: ["docs"],
|
|
1191
|
+
systemPrompt: "Short answers only."
|
|
1192
|
+
}
|
|
1193
|
+
},
|
|
1194
|
+
historyLimit: 50, // include last N channel/group messages as context (0 disables)
|
|
1195
|
+
allowBots: false,
|
|
1196
|
+
reactionNotifications: "own", // off | own | all | allowlist
|
|
1197
|
+
reactionAllowlist: ["U123"],
|
|
1198
|
+
replyToMode: "off", // off | first | all
|
|
1199
|
+
thread: {
|
|
1200
|
+
historyScope: "thread", // thread | channel
|
|
1201
|
+
inheritParent: false
|
|
1202
|
+
},
|
|
1203
|
+
actions: {
|
|
1204
|
+
reactions: true,
|
|
1205
|
+
messages: true,
|
|
1206
|
+
pins: true,
|
|
1207
|
+
memberInfo: true,
|
|
1208
|
+
emojiList: true
|
|
1209
|
+
},
|
|
1210
|
+
slashCommand: {
|
|
1211
|
+
enabled: true,
|
|
1212
|
+
name: "clawd",
|
|
1213
|
+
sessionPrefix: "slack:slash",
|
|
1214
|
+
ephemeral: true
|
|
1215
|
+
},
|
|
1216
|
+
textChunkLimit: 4000,
|
|
1217
|
+
chunkMode: "length",
|
|
1218
|
+
mediaMaxMb: 20
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
```
|
|
1223
|
+
|
|
1224
|
+
Multi-account support lives under `channels.slack.accounts` (see the multi-account section above). Env tokens only apply to the default account.
|
|
1225
|
+
|
|
1226
|
+
Clawdbot starts Slack when the provider is enabled and both tokens are set (via config or `SLACK_BOT_TOKEN` + `SLACK_APP_TOKEN`). Use `user:<id>` (DM) or `channel:<id>` when specifying delivery targets for cron/CLI commands.
|
|
1227
|
+
Set `channels.slack.configWrites: false` to block Slack-initiated config writes (including channel ID migrations and `/config set|unset`).
|
|
1228
|
+
|
|
1229
|
+
Bot-authored messages are ignored by default. Enable with `channels.slack.allowBots` or `channels.slack.channels.<id>.allowBots`.
|
|
1230
|
+
|
|
1231
|
+
Reaction notification modes:
|
|
1232
|
+
- `off`: no reaction events.
|
|
1233
|
+
- `own`: reactions on the bot's own messages (default).
|
|
1234
|
+
- `all`: all reactions on all messages.
|
|
1235
|
+
- `allowlist`: reactions from `channels.slack.reactionAllowlist` on all messages (empty list disables).
|
|
1236
|
+
|
|
1237
|
+
Thread session isolation:
|
|
1238
|
+
- `channels.slack.thread.historyScope` controls whether thread history is per-thread (`thread`, default) or shared across the channel (`channel`).
|
|
1239
|
+
- `channels.slack.thread.inheritParent` controls whether new thread sessions inherit the parent channel transcript (default: false).
|
|
1240
|
+
|
|
1241
|
+
Slack action groups (gate `slack` tool actions):
|
|
1242
|
+
| Action group | Default | Notes |
|
|
1243
|
+
| --- | --- | --- |
|
|
1244
|
+
| reactions | enabled | React + list reactions |
|
|
1245
|
+
| messages | enabled | Read/send/edit/delete |
|
|
1246
|
+
| pins | enabled | Pin/unpin/list |
|
|
1247
|
+
| memberInfo | enabled | Member info |
|
|
1248
|
+
| emojiList | enabled | Custom emoji list |
|
|
1249
|
+
|
|
1250
|
+
### `channels.mattermost` (bot token)
|
|
1251
|
+
|
|
1252
|
+
Mattermost ships as a plugin and is not bundled with the core install.
|
|
1253
|
+
Install it first: `clawdbot plugins install @clawdbot/mattermost` (or `./extensions/mattermost` from a git checkout).
|
|
1254
|
+
|
|
1255
|
+
Mattermost requires a bot token plus the base URL for your server:
|
|
1256
|
+
|
|
1257
|
+
```json5
|
|
1258
|
+
{
|
|
1259
|
+
channels: {
|
|
1260
|
+
mattermost: {
|
|
1261
|
+
enabled: true,
|
|
1262
|
+
botToken: "mm-token",
|
|
1263
|
+
baseUrl: "https://chat.example.com",
|
|
1264
|
+
dmPolicy: "pairing",
|
|
1265
|
+
chatmode: "oncall", // oncall | onmessage | onchar
|
|
1266
|
+
oncharPrefixes: [">", "!"],
|
|
1267
|
+
textChunkLimit: 4000,
|
|
1268
|
+
chunkMode: "length"
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
```
|
|
1273
|
+
|
|
1274
|
+
Clawdbot starts Mattermost when the account is configured (bot token + base URL) and enabled. The token + base URL are resolved from `channels.mattermost.botToken` + `channels.mattermost.baseUrl` or `MATTERMOST_BOT_TOKEN` + `MATTERMOST_URL` for the default account (unless `channels.mattermost.enabled` is `false`).
|
|
1275
|
+
|
|
1276
|
+
Chat modes:
|
|
1277
|
+
- `oncall` (default): respond to channel messages only when @mentioned.
|
|
1278
|
+
- `onmessage`: respond to every channel message.
|
|
1279
|
+
- `onchar`: respond when a message starts with a trigger prefix (`channels.mattermost.oncharPrefixes`, default `[">", "!"]`).
|
|
1280
|
+
|
|
1281
|
+
Access control:
|
|
1282
|
+
- Default DMs: `channels.mattermost.dmPolicy="pairing"` (unknown senders get a pairing code).
|
|
1283
|
+
- Public DMs: `channels.mattermost.dmPolicy="open"` plus `channels.mattermost.allowFrom=["*"]`.
|
|
1284
|
+
- Groups: `channels.mattermost.groupPolicy="allowlist"` by default (mention-gated). Use `channels.mattermost.groupAllowFrom` to restrict senders.
|
|
1285
|
+
|
|
1286
|
+
Multi-account support lives under `channels.mattermost.accounts` (see the multi-account section above). Env vars only apply to the default account.
|
|
1287
|
+
Use `channel:<id>` or `user:<id>` (or `@username`) when specifying delivery targets; bare ids are treated as channel ids.
|
|
1288
|
+
|
|
1289
|
+
### `channels.signal` (signal-cli)
|
|
1290
|
+
|
|
1291
|
+
Signal reactions can emit system events (shared reaction tooling):
|
|
1292
|
+
|
|
1293
|
+
```json5
|
|
1294
|
+
{
|
|
1295
|
+
channels: {
|
|
1296
|
+
signal: {
|
|
1297
|
+
reactionNotifications: "own", // off | own | all | allowlist
|
|
1298
|
+
reactionAllowlist: ["+15551234567", "uuid:123e4567-e89b-12d3-a456-426614174000"],
|
|
1299
|
+
historyLimit: 50 // include last N group messages as context (0 disables)
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
```
|
|
1304
|
+
|
|
1305
|
+
Reaction notification modes:
|
|
1306
|
+
- `off`: no reaction events.
|
|
1307
|
+
- `own`: reactions on the bot's own messages (default).
|
|
1308
|
+
- `all`: all reactions on all messages.
|
|
1309
|
+
- `allowlist`: reactions from `channels.signal.reactionAllowlist` on all messages (empty list disables).
|
|
1310
|
+
|
|
1311
|
+
### `channels.imessage` (imsg CLI)
|
|
1312
|
+
|
|
1313
|
+
Clawdbot spawns `imsg rpc` (JSON-RPC over stdio). No daemon or port required.
|
|
1314
|
+
|
|
1315
|
+
```json5
|
|
1316
|
+
{
|
|
1317
|
+
channels: {
|
|
1318
|
+
imessage: {
|
|
1319
|
+
enabled: true,
|
|
1320
|
+
cliPath: "imsg",
|
|
1321
|
+
dbPath: "~/Library/Messages/chat.db",
|
|
1322
|
+
remoteHost: "user@gateway-host", // SCP for remote attachments when using SSH wrapper
|
|
1323
|
+
dmPolicy: "pairing", // pairing | allowlist | open | disabled
|
|
1324
|
+
allowFrom: ["+15555550123", "user@example.com", "chat_id:123"],
|
|
1325
|
+
historyLimit: 50, // include last N group messages as context (0 disables)
|
|
1326
|
+
includeAttachments: false,
|
|
1327
|
+
mediaMaxMb: 16,
|
|
1328
|
+
service: "auto",
|
|
1329
|
+
region: "US"
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
```
|
|
1334
|
+
|
|
1335
|
+
Multi-account support lives under `channels.imessage.accounts` (see the multi-account section above).
|
|
1336
|
+
|
|
1337
|
+
Notes:
|
|
1338
|
+
- Requires Full Disk Access to the Messages DB.
|
|
1339
|
+
- The first send will prompt for Messages automation permission.
|
|
1340
|
+
- Prefer `chat_id:<id>` targets. Use `imsg chats --limit 20` to list chats.
|
|
1341
|
+
- `channels.imessage.cliPath` can point to a wrapper script (e.g. `ssh` to another Mac that runs `imsg rpc`); use SSH keys to avoid password prompts.
|
|
1342
|
+
- For remote SSH wrappers, set `channels.imessage.remoteHost` to fetch attachments via SCP when `includeAttachments` is enabled.
|
|
1343
|
+
|
|
1344
|
+
Example wrapper:
|
|
1345
|
+
```bash
|
|
1346
|
+
#!/usr/bin/env bash
|
|
1347
|
+
exec ssh -T gateway-host imsg "$@"
|
|
1348
|
+
```
|
|
1349
|
+
|
|
1350
|
+
### `agents.defaults.workspace`
|
|
1351
|
+
|
|
1352
|
+
Sets the **single global workspace directory** used by the agent for file operations.
|
|
1353
|
+
|
|
1354
|
+
Default: `~/clawd`.
|
|
1355
|
+
|
|
1356
|
+
```json5
|
|
1357
|
+
{
|
|
1358
|
+
agents: { defaults: { workspace: "~/clawd" } }
|
|
1359
|
+
}
|
|
1360
|
+
```
|
|
1361
|
+
|
|
1362
|
+
If `agents.defaults.sandbox` is enabled, non-main sessions can override this with their
|
|
1363
|
+
own per-scope workspaces under `agents.defaults.sandbox.workspaceRoot`.
|
|
1364
|
+
|
|
1365
|
+
### `agents.defaults.repoRoot`
|
|
1366
|
+
|
|
1367
|
+
Optional repository root to show in the system prompt’s Runtime line. If unset, Clawdbot
|
|
1368
|
+
tries to detect a `.git` directory by walking upward from the workspace (and current
|
|
1369
|
+
working directory). The path must exist to be used.
|
|
1370
|
+
|
|
1371
|
+
```json5
|
|
1372
|
+
{
|
|
1373
|
+
agents: { defaults: { repoRoot: "~/Projects/clawdbot" } }
|
|
1374
|
+
}
|
|
1375
|
+
```
|
|
1376
|
+
|
|
1377
|
+
### `agents.defaults.skipBootstrap`
|
|
1378
|
+
|
|
1379
|
+
Disables automatic creation of the workspace bootstrap files (`AGENTS.md`, `SOUL.md`, `TOOLS.md`, `IDENTITY.md`, `USER.md`, and `BOOTSTRAP.md`).
|
|
1380
|
+
|
|
1381
|
+
Use this for pre-seeded deployments where your workspace files come from a repo.
|
|
1382
|
+
|
|
1383
|
+
```json5
|
|
1384
|
+
{
|
|
1385
|
+
agents: { defaults: { skipBootstrap: true } }
|
|
1386
|
+
}
|
|
1387
|
+
```
|
|
1388
|
+
|
|
1389
|
+
### `agents.defaults.bootstrapMaxChars`
|
|
1390
|
+
|
|
1391
|
+
Max characters of each workspace bootstrap file injected into the system prompt
|
|
1392
|
+
before truncation. Default: `20000`.
|
|
1393
|
+
|
|
1394
|
+
When a file exceeds this limit, Clawdbot logs a warning and injects a truncated
|
|
1395
|
+
head/tail with a marker.
|
|
1396
|
+
|
|
1397
|
+
```json5
|
|
1398
|
+
{
|
|
1399
|
+
agents: { defaults: { bootstrapMaxChars: 20000 } }
|
|
1400
|
+
}
|
|
1401
|
+
```
|
|
1402
|
+
|
|
1403
|
+
### `agents.defaults.userTimezone`
|
|
1404
|
+
|
|
1405
|
+
Sets the user’s timezone for **system prompt context** (not for timestamps in
|
|
1406
|
+
message envelopes). If unset, Clawdbot uses the host timezone at runtime.
|
|
1407
|
+
|
|
1408
|
+
```json5
|
|
1409
|
+
{
|
|
1410
|
+
agents: { defaults: { userTimezone: "America/Chicago" } }
|
|
1411
|
+
}
|
|
1412
|
+
```
|
|
1413
|
+
|
|
1414
|
+
### `agents.defaults.timeFormat`
|
|
1415
|
+
|
|
1416
|
+
Controls the **time format** shown in the system prompt’s Current Date & Time section.
|
|
1417
|
+
Default: `auto` (OS preference).
|
|
1418
|
+
|
|
1419
|
+
```json5
|
|
1420
|
+
{
|
|
1421
|
+
agents: { defaults: { timeFormat: "auto" } } // auto | 12 | 24
|
|
1422
|
+
}
|
|
1423
|
+
```
|
|
1424
|
+
|
|
1425
|
+
### `messages`
|
|
1426
|
+
|
|
1427
|
+
Controls inbound/outbound prefixes and optional ack reactions.
|
|
1428
|
+
See [Messages](/concepts/messages) for queueing, sessions, and streaming context.
|
|
1429
|
+
|
|
1430
|
+
```json5
|
|
1431
|
+
{
|
|
1432
|
+
messages: {
|
|
1433
|
+
responsePrefix: "🦞", // or "auto"
|
|
1434
|
+
ackReaction: "👀",
|
|
1435
|
+
ackReactionScope: "group-mentions",
|
|
1436
|
+
removeAckAfterReply: false
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
```
|
|
1440
|
+
|
|
1441
|
+
`responsePrefix` is applied to **all outbound replies** (tool summaries, block
|
|
1442
|
+
streaming, final replies) across channels unless already present.
|
|
1443
|
+
|
|
1444
|
+
If `messages.responsePrefix` is unset, no prefix is applied by default. WhatsApp self-chat
|
|
1445
|
+
replies are the exception: they default to `[{identity.name}]` when set, otherwise
|
|
1446
|
+
`[clawdbot]`, so same-phone conversations stay legible.
|
|
1447
|
+
Set it to `"auto"` to derive `[{identity.name}]` for the routed agent (when set).
|
|
1448
|
+
|
|
1449
|
+
#### Template variables
|
|
1450
|
+
|
|
1451
|
+
The `responsePrefix` string can include template variables that resolve dynamically:
|
|
1452
|
+
|
|
1453
|
+
| Variable | Description | Example |
|
|
1454
|
+
|----------|-------------|---------|
|
|
1455
|
+
| `{model}` | Short model name | `claude-opus-4-5`, `gpt-4o` |
|
|
1456
|
+
| `{modelFull}` | Full model identifier | `anthropic/claude-opus-4-5` |
|
|
1457
|
+
| `{provider}` | Provider name | `anthropic`, `openai` |
|
|
1458
|
+
| `{thinkingLevel}` | Current thinking level | `high`, `low`, `off` |
|
|
1459
|
+
| `{identity.name}` | Agent identity name | (same as `"auto"` mode) |
|
|
1460
|
+
|
|
1461
|
+
Variables are case-insensitive (`{MODEL}` = `{model}`). `{think}` is an alias for `{thinkingLevel}`.
|
|
1462
|
+
Unresolved variables remain as literal text.
|
|
1463
|
+
|
|
1464
|
+
```json5
|
|
1465
|
+
{
|
|
1466
|
+
messages: {
|
|
1467
|
+
responsePrefix: "[{model} | think:{thinkingLevel}]"
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
```
|
|
1471
|
+
|
|
1472
|
+
Example output: `[claude-opus-4-5 | think:high] Here's my response...`
|
|
1473
|
+
|
|
1474
|
+
WhatsApp inbound prefix is configured via `channels.whatsapp.messagePrefix` (deprecated:
|
|
1475
|
+
`messages.messagePrefix`). Default stays **unchanged**: `"[clawdbot]"` when
|
|
1476
|
+
`channels.whatsapp.allowFrom` is empty, otherwise `""` (no prefix). When using
|
|
1477
|
+
`"[clawdbot]"`, Clawdbot will instead use `[{identity.name}]` when the routed
|
|
1478
|
+
agent has `identity.name` set.
|
|
1479
|
+
|
|
1480
|
+
`ackReaction` sends a best-effort emoji reaction to acknowledge inbound messages
|
|
1481
|
+
on channels that support reactions (Slack/Discord/Telegram/Google Chat). Defaults to the
|
|
1482
|
+
active agent’s `identity.emoji` when set, otherwise `"👀"`. Set it to `""` to disable.
|
|
1483
|
+
|
|
1484
|
+
`ackReactionScope` controls when reactions fire:
|
|
1485
|
+
- `group-mentions` (default): only when a group/room requires mentions **and** the bot was mentioned
|
|
1486
|
+
- `group-all`: all group/room messages
|
|
1487
|
+
- `direct`: direct messages only
|
|
1488
|
+
- `all`: all messages
|
|
1489
|
+
|
|
1490
|
+
`removeAckAfterReply` removes the bot’s ack reaction after a reply is sent
|
|
1491
|
+
(Slack/Discord/Telegram/Google Chat only). Default: `false`.
|
|
1492
|
+
|
|
1493
|
+
#### `messages.tts`
|
|
1494
|
+
|
|
1495
|
+
Enable text-to-speech for outbound replies. When on, Clawdbot generates audio
|
|
1496
|
+
using ElevenLabs or OpenAI and attaches it to responses. Telegram uses Opus
|
|
1497
|
+
voice notes; other channels send MP3 audio.
|
|
1498
|
+
|
|
1499
|
+
```json5
|
|
1500
|
+
{
|
|
1501
|
+
messages: {
|
|
1502
|
+
tts: {
|
|
1503
|
+
auto: "always", // off | always | inbound | tagged
|
|
1504
|
+
mode: "final", // final | all (include tool/block replies)
|
|
1505
|
+
provider: "elevenlabs",
|
|
1506
|
+
summaryModel: "openai/gpt-4.1-mini",
|
|
1507
|
+
modelOverrides: {
|
|
1508
|
+
enabled: true
|
|
1509
|
+
},
|
|
1510
|
+
maxTextLength: 4000,
|
|
1511
|
+
timeoutMs: 30000,
|
|
1512
|
+
prefsPath: "~/.clawdbot/settings/tts.json",
|
|
1513
|
+
elevenlabs: {
|
|
1514
|
+
apiKey: "elevenlabs_api_key",
|
|
1515
|
+
baseUrl: "https://api.elevenlabs.io",
|
|
1516
|
+
voiceId: "voice_id",
|
|
1517
|
+
modelId: "eleven_multilingual_v2",
|
|
1518
|
+
seed: 42,
|
|
1519
|
+
applyTextNormalization: "auto",
|
|
1520
|
+
languageCode: "en",
|
|
1521
|
+
voiceSettings: {
|
|
1522
|
+
stability: 0.5,
|
|
1523
|
+
similarityBoost: 0.75,
|
|
1524
|
+
style: 0.0,
|
|
1525
|
+
useSpeakerBoost: true,
|
|
1526
|
+
speed: 1.0
|
|
1527
|
+
}
|
|
1528
|
+
},
|
|
1529
|
+
openai: {
|
|
1530
|
+
apiKey: "openai_api_key",
|
|
1531
|
+
model: "gpt-4o-mini-tts",
|
|
1532
|
+
voice: "alloy"
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
```
|
|
1538
|
+
|
|
1539
|
+
Notes:
|
|
1540
|
+
- `messages.tts.auto` controls auto‑TTS (`off`, `always`, `inbound`, `tagged`).
|
|
1541
|
+
- `/tts off|always|inbound|tagged` sets the per‑session auto mode (overrides config).
|
|
1542
|
+
- `messages.tts.enabled` is legacy; doctor migrates it to `messages.tts.auto`.
|
|
1543
|
+
- `prefsPath` stores local overrides (provider/limit/summarize).
|
|
1544
|
+
- `maxTextLength` is a hard cap for TTS input; summaries are truncated to fit.
|
|
1545
|
+
- `summaryModel` overrides `agents.defaults.model.primary` for auto-summary.
|
|
1546
|
+
- Accepts `provider/model` or an alias from `agents.defaults.models`.
|
|
1547
|
+
- `modelOverrides` enables model-driven overrides like `[[tts:...]]` tags (on by default).
|
|
1548
|
+
- `/tts limit` and `/tts summary` control per-user summarization settings.
|
|
1549
|
+
- `apiKey` values fall back to `ELEVENLABS_API_KEY`/`XI_API_KEY` and `OPENAI_API_KEY`.
|
|
1550
|
+
- `elevenlabs.baseUrl` overrides the ElevenLabs API base URL.
|
|
1551
|
+
- `elevenlabs.voiceSettings` supports `stability`/`similarityBoost`/`style` (0..1),
|
|
1552
|
+
`useSpeakerBoost`, and `speed` (0.5..2.0).
|
|
1553
|
+
|
|
1554
|
+
### `talk`
|
|
1555
|
+
|
|
1556
|
+
Defaults for Talk mode (macOS/iOS/Android). Voice IDs fall back to `ELEVENLABS_VOICE_ID` or `SAG_VOICE_ID` when unset.
|
|
1557
|
+
`apiKey` falls back to `ELEVENLABS_API_KEY` (or the gateway’s shell profile) when unset.
|
|
1558
|
+
`voiceAliases` lets Talk directives use friendly names (e.g. `"voice":"Clawd"`).
|
|
1559
|
+
|
|
1560
|
+
```json5
|
|
1561
|
+
{
|
|
1562
|
+
talk: {
|
|
1563
|
+
voiceId: "elevenlabs_voice_id",
|
|
1564
|
+
voiceAliases: {
|
|
1565
|
+
Clawd: "EXAVITQu4vr4xnSDxMaL",
|
|
1566
|
+
Roger: "CwhRBWXzGAHq8TQ4Fs17"
|
|
1567
|
+
},
|
|
1568
|
+
modelId: "eleven_v3",
|
|
1569
|
+
outputFormat: "mp3_44100_128",
|
|
1570
|
+
apiKey: "elevenlabs_api_key",
|
|
1571
|
+
interruptOnSpeech: true
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
```
|
|
1575
|
+
|
|
1576
|
+
### `agents.defaults`
|
|
1577
|
+
|
|
1578
|
+
Controls the embedded agent runtime (model/thinking/verbose/timeouts).
|
|
1579
|
+
`agents.defaults.models` defines the configured model catalog (and acts as the allowlist for `/model`).
|
|
1580
|
+
`agents.defaults.model.primary` sets the default model; `agents.defaults.model.fallbacks` are global failovers.
|
|
1581
|
+
`agents.defaults.imageModel` is optional and is **only used if the primary model lacks image input**.
|
|
1582
|
+
Each `agents.defaults.models` entry can include:
|
|
1583
|
+
- `alias` (optional model shortcut, e.g. `/opus`).
|
|
1584
|
+
- `params` (optional provider-specific API params passed through to the model request).
|
|
1585
|
+
|
|
1586
|
+
`params` is also applied to streaming runs (embedded agent + compaction). Supported keys today: `temperature`, `maxTokens`. These merge with call-time options; caller-supplied values win. `temperature` is an advanced knob—leave unset unless you know the model’s defaults and need a change.
|
|
1587
|
+
|
|
1588
|
+
Example:
|
|
1589
|
+
|
|
1590
|
+
```json5
|
|
1591
|
+
{
|
|
1592
|
+
agents: {
|
|
1593
|
+
defaults: {
|
|
1594
|
+
models: {
|
|
1595
|
+
"anthropic/claude-sonnet-4-5-20250929": {
|
|
1596
|
+
params: { temperature: 0.6 }
|
|
1597
|
+
},
|
|
1598
|
+
"openai/gpt-5.2": {
|
|
1599
|
+
params: { maxTokens: 8192 }
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
```
|
|
1606
|
+
|
|
1607
|
+
Z.AI GLM-4.x models automatically enable thinking mode unless you:
|
|
1608
|
+
- set `--thinking off`, or
|
|
1609
|
+
- define `agents.defaults.models["zai/<model>"].params.thinking` yourself.
|
|
1610
|
+
|
|
1611
|
+
Clawdbot also ships a few built-in alias shorthands. Defaults only apply when the model
|
|
1612
|
+
is already present in `agents.defaults.models`:
|
|
1613
|
+
|
|
1614
|
+
- `opus` -> `anthropic/claude-opus-4-5`
|
|
1615
|
+
- `sonnet` -> `anthropic/claude-sonnet-4-5`
|
|
1616
|
+
- `gpt` -> `openai/gpt-5.2`
|
|
1617
|
+
- `gpt-mini` -> `openai/gpt-5-mini`
|
|
1618
|
+
- `gemini` -> `google/gemini-3-pro-preview`
|
|
1619
|
+
- `gemini-flash` -> `google/gemini-3-flash-preview`
|
|
1620
|
+
|
|
1621
|
+
If you configure the same alias name (case-insensitive) yourself, your value wins (defaults never override).
|
|
1622
|
+
|
|
1623
|
+
Example: Opus 4.5 primary with MiniMax M2.1 fallback (hosted MiniMax):
|
|
1624
|
+
|
|
1625
|
+
```json5
|
|
1626
|
+
{
|
|
1627
|
+
agents: {
|
|
1628
|
+
defaults: {
|
|
1629
|
+
models: {
|
|
1630
|
+
"anthropic/claude-opus-4-5": { alias: "opus" },
|
|
1631
|
+
"minimax/MiniMax-M2.1": { alias: "minimax" }
|
|
1632
|
+
},
|
|
1633
|
+
model: {
|
|
1634
|
+
primary: "anthropic/claude-opus-4-5",
|
|
1635
|
+
fallbacks: ["minimax/MiniMax-M2.1"]
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
```
|
|
1641
|
+
|
|
1642
|
+
MiniMax auth: set `MINIMAX_API_KEY` (env) or configure `models.providers.minimax`.
|
|
1643
|
+
|
|
1644
|
+
#### `agents.defaults.cliBackends` (CLI fallback)
|
|
1645
|
+
|
|
1646
|
+
Optional CLI backends for text-only fallback runs (no tool calls). These are useful as a
|
|
1647
|
+
backup path when API providers fail. Image pass-through is supported when you configure
|
|
1648
|
+
an `imageArg` that accepts file paths.
|
|
1649
|
+
|
|
1650
|
+
Notes:
|
|
1651
|
+
- CLI backends are **text-first**; tools are always disabled.
|
|
1652
|
+
- Sessions are supported when `sessionArg` is set; session ids are persisted per backend.
|
|
1653
|
+
- For `claude-cli`, defaults are wired in. Override the command path if PATH is minimal
|
|
1654
|
+
(launchd/systemd).
|
|
1655
|
+
|
|
1656
|
+
Example:
|
|
1657
|
+
|
|
1658
|
+
```json5
|
|
1659
|
+
{
|
|
1660
|
+
agents: {
|
|
1661
|
+
defaults: {
|
|
1662
|
+
cliBackends: {
|
|
1663
|
+
"claude-cli": {
|
|
1664
|
+
command: "/opt/homebrew/bin/claude"
|
|
1665
|
+
},
|
|
1666
|
+
"my-cli": {
|
|
1667
|
+
command: "my-cli",
|
|
1668
|
+
args: ["--json"],
|
|
1669
|
+
output: "json",
|
|
1670
|
+
modelArg: "--model",
|
|
1671
|
+
sessionArg: "--session",
|
|
1672
|
+
sessionMode: "existing",
|
|
1673
|
+
systemPromptArg: "--system",
|
|
1674
|
+
systemPromptWhen: "first",
|
|
1675
|
+
imageArg: "--image",
|
|
1676
|
+
imageMode: "repeat"
|
|
1677
|
+
}
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
}
|
|
1682
|
+
```
|
|
1683
|
+
|
|
1684
|
+
```json5
|
|
1685
|
+
{
|
|
1686
|
+
agents: {
|
|
1687
|
+
defaults: {
|
|
1688
|
+
models: {
|
|
1689
|
+
"anthropic/claude-opus-4-5": { alias: "Opus" },
|
|
1690
|
+
"anthropic/claude-sonnet-4-1": { alias: "Sonnet" },
|
|
1691
|
+
"openrouter/deepseek/deepseek-r1:free": {},
|
|
1692
|
+
"zai/glm-4.7": {
|
|
1693
|
+
alias: "GLM",
|
|
1694
|
+
params: {
|
|
1695
|
+
thinking: {
|
|
1696
|
+
type: "enabled",
|
|
1697
|
+
clear_thinking: false
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1701
|
+
},
|
|
1702
|
+
model: {
|
|
1703
|
+
primary: "anthropic/claude-opus-4-5",
|
|
1704
|
+
fallbacks: [
|
|
1705
|
+
"openrouter/deepseek/deepseek-r1:free",
|
|
1706
|
+
"openrouter/meta-llama/llama-3.3-70b-instruct:free"
|
|
1707
|
+
]
|
|
1708
|
+
},
|
|
1709
|
+
imageModel: {
|
|
1710
|
+
primary: "openrouter/qwen/qwen-2.5-vl-72b-instruct:free",
|
|
1711
|
+
fallbacks: [
|
|
1712
|
+
"openrouter/google/gemini-2.0-flash-vision:free"
|
|
1713
|
+
]
|
|
1714
|
+
},
|
|
1715
|
+
thinkingDefault: "low",
|
|
1716
|
+
verboseDefault: "off",
|
|
1717
|
+
elevatedDefault: "on",
|
|
1718
|
+
timeoutSeconds: 600,
|
|
1719
|
+
mediaMaxMb: 5,
|
|
1720
|
+
heartbeat: {
|
|
1721
|
+
every: "30m",
|
|
1722
|
+
target: "last"
|
|
1723
|
+
},
|
|
1724
|
+
maxConcurrent: 3,
|
|
1725
|
+
subagents: {
|
|
1726
|
+
model: "minimax/MiniMax-M2.1",
|
|
1727
|
+
maxConcurrent: 1,
|
|
1728
|
+
archiveAfterMinutes: 60
|
|
1729
|
+
},
|
|
1730
|
+
exec: {
|
|
1731
|
+
backgroundMs: 10000,
|
|
1732
|
+
timeoutSec: 1800,
|
|
1733
|
+
cleanupMs: 1800000
|
|
1734
|
+
},
|
|
1735
|
+
contextTokens: 200000
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
```
|
|
1740
|
+
|
|
1741
|
+
#### `agents.defaults.contextPruning` (tool-result pruning)
|
|
1742
|
+
|
|
1743
|
+
`agents.defaults.contextPruning` prunes **old tool results** from the in-memory context right before a request is sent to the LLM.
|
|
1744
|
+
It does **not** modify the session history on disk (`*.jsonl` remains complete).
|
|
1745
|
+
|
|
1746
|
+
This is intended to reduce token usage for chatty agents that accumulate large tool outputs over time.
|
|
1747
|
+
|
|
1748
|
+
High level:
|
|
1749
|
+
- Never touches user/assistant messages.
|
|
1750
|
+
- Protects the last `keepLastAssistants` assistant messages (no tool results after that point are pruned).
|
|
1751
|
+
- Protects the bootstrap prefix (nothing before the first user message is pruned).
|
|
1752
|
+
- Modes:
|
|
1753
|
+
- `adaptive`: soft-trims oversized tool results (keep head/tail) when the estimated context ratio crosses `softTrimRatio`.
|
|
1754
|
+
Then hard-clears the oldest eligible tool results when the estimated context ratio crosses `hardClearRatio` **and**
|
|
1755
|
+
there’s enough prunable tool-result bulk (`minPrunableToolChars`).
|
|
1756
|
+
- `aggressive`: always replaces eligible tool results before the cutoff with the `hardClear.placeholder` (no ratio checks).
|
|
1757
|
+
|
|
1758
|
+
Soft vs hard pruning (what changes in the context sent to the LLM):
|
|
1759
|
+
- **Soft-trim**: only for *oversized* tool results. Keeps the beginning + end and inserts `...` in the middle.
|
|
1760
|
+
- Before: `toolResult("…very long output…")`
|
|
1761
|
+
- After: `toolResult("HEAD…\n...\n…TAIL\n\n[Tool result trimmed: …]")`
|
|
1762
|
+
- **Hard-clear**: replaces the entire tool result with the placeholder.
|
|
1763
|
+
- Before: `toolResult("…very long output…")`
|
|
1764
|
+
- After: `toolResult("[Old tool result content cleared]")`
|
|
1765
|
+
|
|
1766
|
+
Notes / current limitations:
|
|
1767
|
+
- Tool results containing **image blocks are skipped** (never trimmed/cleared) right now.
|
|
1768
|
+
- The estimated “context ratio” is based on **characters** (approximate), not exact tokens.
|
|
1769
|
+
- If the session doesn’t contain at least `keepLastAssistants` assistant messages yet, pruning is skipped.
|
|
1770
|
+
- In `aggressive` mode, `hardClear.enabled` is ignored (eligible tool results are always replaced with `hardClear.placeholder`).
|
|
1771
|
+
|
|
1772
|
+
Default (adaptive):
|
|
1773
|
+
```json5
|
|
1774
|
+
{
|
|
1775
|
+
agents: { defaults: { contextPruning: { mode: "adaptive" } } }
|
|
1776
|
+
}
|
|
1777
|
+
```
|
|
1778
|
+
|
|
1779
|
+
To disable:
|
|
1780
|
+
```json5
|
|
1781
|
+
{
|
|
1782
|
+
agents: { defaults: { contextPruning: { mode: "off" } } }
|
|
1783
|
+
}
|
|
1784
|
+
```
|
|
1785
|
+
|
|
1786
|
+
Defaults (when `mode` is `"adaptive"` or `"aggressive"`):
|
|
1787
|
+
- `keepLastAssistants`: `3`
|
|
1788
|
+
- `softTrimRatio`: `0.3` (adaptive only)
|
|
1789
|
+
- `hardClearRatio`: `0.5` (adaptive only)
|
|
1790
|
+
- `minPrunableToolChars`: `50000` (adaptive only)
|
|
1791
|
+
- `softTrim`: `{ maxChars: 4000, headChars: 1500, tailChars: 1500 }` (adaptive only)
|
|
1792
|
+
- `hardClear`: `{ enabled: true, placeholder: "[Old tool result content cleared]" }`
|
|
1793
|
+
|
|
1794
|
+
Example (aggressive, minimal):
|
|
1795
|
+
```json5
|
|
1796
|
+
{
|
|
1797
|
+
agents: { defaults: { contextPruning: { mode: "aggressive" } } }
|
|
1798
|
+
}
|
|
1799
|
+
```
|
|
1800
|
+
|
|
1801
|
+
Example (adaptive tuned):
|
|
1802
|
+
```json5
|
|
1803
|
+
{
|
|
1804
|
+
agents: {
|
|
1805
|
+
defaults: {
|
|
1806
|
+
contextPruning: {
|
|
1807
|
+
mode: "adaptive",
|
|
1808
|
+
keepLastAssistants: 3,
|
|
1809
|
+
softTrimRatio: 0.3,
|
|
1810
|
+
hardClearRatio: 0.5,
|
|
1811
|
+
minPrunableToolChars: 50000,
|
|
1812
|
+
softTrim: { maxChars: 4000, headChars: 1500, tailChars: 1500 },
|
|
1813
|
+
hardClear: { enabled: true, placeholder: "[Old tool result content cleared]" },
|
|
1814
|
+
// Optional: restrict pruning to specific tools (deny wins; supports "*" wildcards)
|
|
1815
|
+
tools: { deny: ["browser", "canvas"] },
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
```
|
|
1821
|
+
|
|
1822
|
+
See [/concepts/session-pruning](/concepts/session-pruning) for behavior details.
|
|
1823
|
+
|
|
1824
|
+
#### `agents.defaults.compaction` (reserve headroom + memory flush)
|
|
1825
|
+
|
|
1826
|
+
`agents.defaults.compaction.mode` selects the compaction summarization strategy. Defaults to `default`; set `safeguard` to enable chunked summarization for very long histories. See [/concepts/compaction](/concepts/compaction).
|
|
1827
|
+
|
|
1828
|
+
`agents.defaults.compaction.reserveTokensFloor` enforces a minimum `reserveTokens`
|
|
1829
|
+
value for Pi compaction (default: `20000`). Set it to `0` to disable the floor.
|
|
1830
|
+
|
|
1831
|
+
`agents.defaults.compaction.memoryFlush` runs a **silent** agentic turn before
|
|
1832
|
+
auto-compaction, instructing the model to store durable memories on disk (e.g.
|
|
1833
|
+
`memory/YYYY-MM-DD.md`). It triggers when the session token estimate crosses a
|
|
1834
|
+
soft threshold below the compaction limit.
|
|
1835
|
+
|
|
1836
|
+
Legacy defaults:
|
|
1837
|
+
- `memoryFlush.enabled`: `true`
|
|
1838
|
+
- `memoryFlush.softThresholdTokens`: `4000`
|
|
1839
|
+
- `memoryFlush.prompt` / `memoryFlush.systemPrompt`: built-in defaults with `NO_REPLY`
|
|
1840
|
+
- Note: memory flush is skipped when the session workspace is read-only
|
|
1841
|
+
(`agents.defaults.sandbox.workspaceAccess: "ro"` or `"none"`).
|
|
1842
|
+
|
|
1843
|
+
Example (tuned):
|
|
1844
|
+
```json5
|
|
1845
|
+
{
|
|
1846
|
+
agents: {
|
|
1847
|
+
defaults: {
|
|
1848
|
+
compaction: {
|
|
1849
|
+
mode: "safeguard",
|
|
1850
|
+
reserveTokensFloor: 24000,
|
|
1851
|
+
memoryFlush: {
|
|
1852
|
+
enabled: true,
|
|
1853
|
+
softThresholdTokens: 6000,
|
|
1854
|
+
systemPrompt: "Session nearing compaction. Store durable memories now.",
|
|
1855
|
+
prompt: "Write any lasting notes to memory/YYYY-MM-DD.md; reply with NO_REPLY if nothing to store."
|
|
1856
|
+
}
|
|
1857
|
+
}
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
```
|
|
1862
|
+
|
|
1863
|
+
Block streaming:
|
|
1864
|
+
- `agents.defaults.blockStreamingDefault`: `"on"`/`"off"` (default off).
|
|
1865
|
+
- Channel overrides: `*.blockStreaming` (and per-account variants) to force block streaming on/off.
|
|
1866
|
+
Non-Telegram channels require an explicit `*.blockStreaming: true` to enable block replies.
|
|
1867
|
+
- `agents.defaults.blockStreamingBreak`: `"text_end"` or `"message_end"` (default: text_end).
|
|
1868
|
+
- `agents.defaults.blockStreamingChunk`: soft chunking for streamed blocks. Defaults to
|
|
1869
|
+
800–1200 chars, prefers paragraph breaks (`\n\n`), then newlines, then sentences.
|
|
1870
|
+
Example:
|
|
1871
|
+
```json5
|
|
1872
|
+
{
|
|
1873
|
+
agents: { defaults: { blockStreamingChunk: { minChars: 800, maxChars: 1200 } } }
|
|
1874
|
+
}
|
|
1875
|
+
```
|
|
1876
|
+
- `agents.defaults.blockStreamingCoalesce`: merge streamed blocks before sending.
|
|
1877
|
+
Defaults to `{ idleMs: 1000 }` and inherits `minChars` from `blockStreamingChunk`
|
|
1878
|
+
with `maxChars` capped to the channel text limit. Signal/Slack/Discord/Google Chat default
|
|
1879
|
+
to `minChars: 1500` unless overridden.
|
|
1880
|
+
Channel overrides: `channels.whatsapp.blockStreamingCoalesce`, `channels.telegram.blockStreamingCoalesce`,
|
|
1881
|
+
`channels.discord.blockStreamingCoalesce`, `channels.slack.blockStreamingCoalesce`, `channels.mattermost.blockStreamingCoalesce`,
|
|
1882
|
+
`channels.signal.blockStreamingCoalesce`, `channels.imessage.blockStreamingCoalesce`, `channels.msteams.blockStreamingCoalesce`,
|
|
1883
|
+
`channels.googlechat.blockStreamingCoalesce`
|
|
1884
|
+
(and per-account variants).
|
|
1885
|
+
- `agents.defaults.humanDelay`: randomized pause between **block replies** after the first.
|
|
1886
|
+
Modes: `off` (default), `natural` (800–2500ms), `custom` (use `minMs`/`maxMs`).
|
|
1887
|
+
Per-agent override: `agents.list[].humanDelay`.
|
|
1888
|
+
Example:
|
|
1889
|
+
```json5
|
|
1890
|
+
{
|
|
1891
|
+
agents: { defaults: { humanDelay: { mode: "natural" } } }
|
|
1892
|
+
}
|
|
1893
|
+
```
|
|
1894
|
+
See [/concepts/streaming](/concepts/streaming) for behavior + chunking details.
|
|
1895
|
+
|
|
1896
|
+
Typing indicators:
|
|
1897
|
+
- `agents.defaults.typingMode`: `"never" | "instant" | "thinking" | "message"`. Defaults to
|
|
1898
|
+
`instant` for direct chats / mentions and `message` for unmentioned group chats.
|
|
1899
|
+
- `session.typingMode`: per-session override for the mode.
|
|
1900
|
+
- `agents.defaults.typingIntervalSeconds`: how often the typing signal is refreshed (default: 6s).
|
|
1901
|
+
- `session.typingIntervalSeconds`: per-session override for the refresh interval.
|
|
1902
|
+
See [/concepts/typing-indicators](/concepts/typing-indicators) for behavior details.
|
|
1903
|
+
|
|
1904
|
+
`agents.defaults.model.primary` should be set as `provider/model` (e.g. `anthropic/claude-opus-4-5`).
|
|
1905
|
+
Aliases come from `agents.defaults.models.*.alias` (e.g. `Opus`).
|
|
1906
|
+
If you omit the provider, Clawdbot currently assumes `anthropic` as a temporary
|
|
1907
|
+
deprecation fallback.
|
|
1908
|
+
Z.AI models are available as `zai/<model>` (e.g. `zai/glm-4.7`) and require
|
|
1909
|
+
`ZAI_API_KEY` (or legacy `Z_AI_API_KEY`) in the environment.
|
|
1910
|
+
|
|
1911
|
+
`agents.defaults.heartbeat` configures periodic heartbeat runs:
|
|
1912
|
+
- `every`: duration string (`ms`, `s`, `m`, `h`); default unit minutes. Default:
|
|
1913
|
+
`30m`. Set `0m` to disable.
|
|
1914
|
+
- `model`: optional override model for heartbeat runs (`provider/model`).
|
|
1915
|
+
- `includeReasoning`: when `true`, heartbeats will also deliver the separate `Reasoning:` message when available (same shape as `/reasoning on`). Default: `false`.
|
|
1916
|
+
- `session`: optional session key to control which session the heartbeat runs in. Default: `main`.
|
|
1917
|
+
- `to`: optional recipient override (channel-specific id, e.g. E.164 for WhatsApp, chat id for Telegram).
|
|
1918
|
+
- `target`: optional delivery channel (`last`, `whatsapp`, `telegram`, `discord`, `slack`, `msteams`, `signal`, `imessage`, `none`). Default: `last`.
|
|
1919
|
+
- `prompt`: optional override for the heartbeat body (default: `Read HEARTBEAT.md if it exists (workspace context). Follow it strictly. Do not infer or repeat old tasks from prior chats. If nothing needs attention, reply HEARTBEAT_OK.`). Overrides are sent verbatim; include a `Read HEARTBEAT.md` line if you still want the file read.
|
|
1920
|
+
- `ackMaxChars`: max chars allowed after `HEARTBEAT_OK` before delivery (default: 300).
|
|
1921
|
+
|
|
1922
|
+
Per-agent heartbeats:
|
|
1923
|
+
- Set `agents.list[].heartbeat` to enable or override heartbeat settings for a specific agent.
|
|
1924
|
+
- If any agent entry defines `heartbeat`, **only those agents** run heartbeats; defaults
|
|
1925
|
+
become the shared baseline for those agents.
|
|
1926
|
+
|
|
1927
|
+
Heartbeats run full agent turns. Shorter intervals burn more tokens; be mindful
|
|
1928
|
+
of `every`, keep `HEARTBEAT.md` tiny, and/or choose a cheaper `model`.
|
|
1929
|
+
|
|
1930
|
+
`tools.exec` configures background exec defaults:
|
|
1931
|
+
- `backgroundMs`: time before auto-background (ms, default 10000)
|
|
1932
|
+
- `timeoutSec`: auto-kill after this runtime (seconds, default 1800)
|
|
1933
|
+
- `cleanupMs`: how long to keep finished sessions in memory (ms, default 1800000)
|
|
1934
|
+
- `notifyOnExit`: enqueue a system event + request heartbeat when backgrounded exec exits (default true)
|
|
1935
|
+
- `applyPatch.enabled`: enable experimental `apply_patch` (OpenAI/OpenAI Codex only; default false)
|
|
1936
|
+
- `applyPatch.allowModels`: optional allowlist of model ids (e.g. `gpt-5.2` or `openai/gpt-5.2`)
|
|
1937
|
+
Note: `applyPatch` is only under `tools.exec`.
|
|
1938
|
+
|
|
1939
|
+
`tools.web` configures web search + fetch tools:
|
|
1940
|
+
- `tools.web.search.enabled` (default: true when key is present)
|
|
1941
|
+
- `tools.web.search.apiKey` (recommended: set via `clawdbot configure --section web`, or use `BRAVE_API_KEY` env var)
|
|
1942
|
+
- `tools.web.search.maxResults` (1–10, default 5)
|
|
1943
|
+
- `tools.web.search.timeoutSeconds` (default 30)
|
|
1944
|
+
- `tools.web.search.cacheTtlMinutes` (default 15)
|
|
1945
|
+
- `tools.web.fetch.enabled` (default true)
|
|
1946
|
+
- `tools.web.fetch.maxChars` (default 50000)
|
|
1947
|
+
- `tools.web.fetch.timeoutSeconds` (default 30)
|
|
1948
|
+
- `tools.web.fetch.cacheTtlMinutes` (default 15)
|
|
1949
|
+
- `tools.web.fetch.userAgent` (optional override)
|
|
1950
|
+
- `tools.web.fetch.readability` (default true; disable to use basic HTML cleanup only)
|
|
1951
|
+
- `tools.web.fetch.firecrawl.enabled` (default true when an API key is set)
|
|
1952
|
+
- `tools.web.fetch.firecrawl.apiKey` (optional; defaults to `FIRECRAWL_API_KEY`)
|
|
1953
|
+
- `tools.web.fetch.firecrawl.baseUrl` (default https://api.firecrawl.dev)
|
|
1954
|
+
- `tools.web.fetch.firecrawl.onlyMainContent` (default true)
|
|
1955
|
+
- `tools.web.fetch.firecrawl.maxAgeMs` (optional)
|
|
1956
|
+
- `tools.web.fetch.firecrawl.timeoutSeconds` (optional)
|
|
1957
|
+
|
|
1958
|
+
`tools.media` configures inbound media understanding (image/audio/video):
|
|
1959
|
+
- `tools.media.models`: shared model list (capability-tagged; used after per-cap lists).
|
|
1960
|
+
- `tools.media.concurrency`: max concurrent capability runs (default 2).
|
|
1961
|
+
- `tools.media.image` / `tools.media.audio` / `tools.media.video`:
|
|
1962
|
+
- `enabled`: opt-out switch (default true when models are configured).
|
|
1963
|
+
- `prompt`: optional prompt override (image/video append a `maxChars` hint automatically).
|
|
1964
|
+
- `maxChars`: max output characters (default 500 for image/video; unset for audio).
|
|
1965
|
+
- `maxBytes`: max media size to send (defaults: image 10MB, audio 20MB, video 50MB).
|
|
1966
|
+
- `timeoutSeconds`: request timeout (defaults: image 60s, audio 60s, video 120s).
|
|
1967
|
+
- `language`: optional audio hint.
|
|
1968
|
+
- `attachments`: attachment policy (`mode`, `maxAttachments`, `prefer`).
|
|
1969
|
+
- `scope`: optional gating (first match wins) with `match.channel`, `match.chatType`, or `match.keyPrefix`.
|
|
1970
|
+
- `models`: ordered list of model entries; failures or oversize media fall back to the next entry.
|
|
1971
|
+
- Each `models[]` entry:
|
|
1972
|
+
- Provider entry (`type: "provider"` or omitted):
|
|
1973
|
+
- `provider`: API provider id (`openai`, `anthropic`, `google`/`gemini`, `groq`, etc).
|
|
1974
|
+
- `model`: model id override (required for image; defaults to `gpt-4o-mini-transcribe`/`whisper-large-v3-turbo` for audio providers, and `gemini-3-flash-preview` for video).
|
|
1975
|
+
- `profile` / `preferredProfile`: auth profile selection.
|
|
1976
|
+
- CLI entry (`type: "cli"`):
|
|
1977
|
+
- `command`: executable to run.
|
|
1978
|
+
- `args`: templated args (supports `{{MediaPath}}`, `{{Prompt}}`, `{{MaxChars}}`, etc).
|
|
1979
|
+
- `capabilities`: optional list (`image`, `audio`, `video`) to gate a shared entry. Defaults when omitted: `openai`/`anthropic`/`minimax` → image, `google` → image+audio+video, `groq` → audio.
|
|
1980
|
+
- `prompt`, `maxChars`, `maxBytes`, `timeoutSeconds`, `language` can be overridden per entry.
|
|
1981
|
+
|
|
1982
|
+
If no models are configured (or `enabled: false`), understanding is skipped; the model still receives the original attachments.
|
|
1983
|
+
|
|
1984
|
+
Provider auth follows the standard model auth order (auth profiles, env vars like `OPENAI_API_KEY`/`GROQ_API_KEY`/`GEMINI_API_KEY`, or `models.providers.*.apiKey`).
|
|
1985
|
+
|
|
1986
|
+
Example:
|
|
1987
|
+
```json5
|
|
1988
|
+
{
|
|
1989
|
+
tools: {
|
|
1990
|
+
media: {
|
|
1991
|
+
audio: {
|
|
1992
|
+
enabled: true,
|
|
1993
|
+
maxBytes: 20971520,
|
|
1994
|
+
scope: {
|
|
1995
|
+
default: "deny",
|
|
1996
|
+
rules: [{ action: "allow", match: { chatType: "direct" } }]
|
|
1997
|
+
},
|
|
1998
|
+
models: [
|
|
1999
|
+
{ provider: "openai", model: "gpt-4o-mini-transcribe" },
|
|
2000
|
+
{ type: "cli", command: "whisper", args: ["--model", "base", "{{MediaPath}}"] }
|
|
2001
|
+
]
|
|
2002
|
+
},
|
|
2003
|
+
video: {
|
|
2004
|
+
enabled: true,
|
|
2005
|
+
maxBytes: 52428800,
|
|
2006
|
+
models: [{ provider: "google", model: "gemini-3-flash-preview" }]
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
```
|
|
2012
|
+
|
|
2013
|
+
`agents.defaults.subagents` configures sub-agent defaults:
|
|
2014
|
+
- `model`: default model for spawned sub-agents (string or `{ primary, fallbacks }`). If omitted, sub-agents inherit the caller’s model unless overridden per agent or per call.
|
|
2015
|
+
- `maxConcurrent`: max concurrent sub-agent runs (default 1)
|
|
2016
|
+
- `archiveAfterMinutes`: auto-archive sub-agent sessions after N minutes (default 60; set `0` to disable)
|
|
2017
|
+
- Per-subagent tool policy: `tools.subagents.tools.allow` / `tools.subagents.tools.deny` (deny wins)
|
|
2018
|
+
|
|
2019
|
+
`tools.profile` sets a **base tool allowlist** before `tools.allow`/`tools.deny`:
|
|
2020
|
+
- `minimal`: `session_status` only
|
|
2021
|
+
- `coding`: `group:fs`, `group:runtime`, `group:sessions`, `group:memory`, `image`
|
|
2022
|
+
- `messaging`: `group:messaging`, `sessions_list`, `sessions_history`, `sessions_send`, `session_status`
|
|
2023
|
+
- `full`: no restriction (same as unset)
|
|
2024
|
+
|
|
2025
|
+
Per-agent override: `agents.list[].tools.profile`.
|
|
2026
|
+
|
|
2027
|
+
Example (messaging-only by default, allow Slack + Discord tools too):
|
|
2028
|
+
```json5
|
|
2029
|
+
{
|
|
2030
|
+
tools: {
|
|
2031
|
+
profile: "messaging",
|
|
2032
|
+
allow: ["slack", "discord"]
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
```
|
|
2036
|
+
|
|
2037
|
+
Example (coding profile, but deny exec/process everywhere):
|
|
2038
|
+
```json5
|
|
2039
|
+
{
|
|
2040
|
+
tools: {
|
|
2041
|
+
profile: "coding",
|
|
2042
|
+
deny: ["group:runtime"]
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
2045
|
+
```
|
|
2046
|
+
|
|
2047
|
+
`tools.byProvider` lets you **further restrict** tools for specific providers (or a single `provider/model`).
|
|
2048
|
+
Per-agent override: `agents.list[].tools.byProvider`.
|
|
2049
|
+
|
|
2050
|
+
Order: base profile → provider profile → allow/deny policies.
|
|
2051
|
+
Provider keys accept either `provider` (e.g. `google-antigravity`) or `provider/model`
|
|
2052
|
+
(e.g. `openai/gpt-5.2`).
|
|
2053
|
+
|
|
2054
|
+
Example (keep global coding profile, but minimal tools for Google Antigravity):
|
|
2055
|
+
```json5
|
|
2056
|
+
{
|
|
2057
|
+
tools: {
|
|
2058
|
+
profile: "coding",
|
|
2059
|
+
byProvider: {
|
|
2060
|
+
"google-antigravity": { profile: "minimal" }
|
|
2061
|
+
}
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
```
|
|
2065
|
+
|
|
2066
|
+
Example (provider/model-specific allowlist):
|
|
2067
|
+
```json5
|
|
2068
|
+
{
|
|
2069
|
+
tools: {
|
|
2070
|
+
allow: ["group:fs", "group:runtime", "sessions_list"],
|
|
2071
|
+
byProvider: {
|
|
2072
|
+
"openai/gpt-5.2": { allow: ["group:fs", "sessions_list"] }
|
|
2073
|
+
}
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
```
|
|
2077
|
+
|
|
2078
|
+
`tools.allow` / `tools.deny` configure a global tool allow/deny policy (deny wins).
|
|
2079
|
+
Matching is case-insensitive and supports `*` wildcards (`"*"` means all tools).
|
|
2080
|
+
This is applied even when the Docker sandbox is **off**.
|
|
2081
|
+
|
|
2082
|
+
Example (disable browser/canvas everywhere):
|
|
2083
|
+
```json5
|
|
2084
|
+
{
|
|
2085
|
+
tools: { deny: ["browser", "canvas"] }
|
|
2086
|
+
}
|
|
2087
|
+
```
|
|
2088
|
+
|
|
2089
|
+
Tool groups (shorthands) work in **global** and **per-agent** tool policies:
|
|
2090
|
+
- `group:runtime`: `exec`, `bash`, `process`
|
|
2091
|
+
- `group:fs`: `read`, `write`, `edit`, `apply_patch`
|
|
2092
|
+
- `group:sessions`: `sessions_list`, `sessions_history`, `sessions_send`, `sessions_spawn`, `session_status`
|
|
2093
|
+
- `group:memory`: `memory_search`, `memory_get`
|
|
2094
|
+
- `group:web`: `web_search`, `web_fetch`
|
|
2095
|
+
- `group:ui`: `browser`, `canvas`
|
|
2096
|
+
- `group:automation`: `cron`, `gateway`
|
|
2097
|
+
- `group:messaging`: `message`
|
|
2098
|
+
- `group:nodes`: `nodes`
|
|
2099
|
+
- `group:clawdbot`: all built-in Clawdbot tools (excludes provider plugins)
|
|
2100
|
+
|
|
2101
|
+
`tools.elevated` controls elevated (host) exec access:
|
|
2102
|
+
- `enabled`: allow elevated mode (default true)
|
|
2103
|
+
- `allowFrom`: per-channel allowlists (empty = disabled)
|
|
2104
|
+
- `whatsapp`: E.164 numbers
|
|
2105
|
+
- `telegram`: chat ids or usernames
|
|
2106
|
+
- `discord`: user ids or usernames (falls back to `channels.discord.dm.allowFrom` if omitted)
|
|
2107
|
+
- `signal`: E.164 numbers
|
|
2108
|
+
- `imessage`: handles/chat ids
|
|
2109
|
+
- `webchat`: session ids or usernames
|
|
2110
|
+
|
|
2111
|
+
Example:
|
|
2112
|
+
```json5
|
|
2113
|
+
{
|
|
2114
|
+
tools: {
|
|
2115
|
+
elevated: {
|
|
2116
|
+
enabled: true,
|
|
2117
|
+
allowFrom: {
|
|
2118
|
+
whatsapp: ["+15555550123"],
|
|
2119
|
+
discord: ["steipete", "1234567890123"]
|
|
2120
|
+
}
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
```
|
|
2125
|
+
|
|
2126
|
+
Per-agent override (further restrict):
|
|
2127
|
+
```json5
|
|
2128
|
+
{
|
|
2129
|
+
agents: {
|
|
2130
|
+
list: [
|
|
2131
|
+
{
|
|
2132
|
+
id: "family",
|
|
2133
|
+
tools: {
|
|
2134
|
+
elevated: { enabled: false }
|
|
2135
|
+
}
|
|
2136
|
+
}
|
|
2137
|
+
]
|
|
2138
|
+
}
|
|
2139
|
+
}
|
|
2140
|
+
```
|
|
2141
|
+
|
|
2142
|
+
Notes:
|
|
2143
|
+
- `tools.elevated` is the global baseline. `agents.list[].tools.elevated` can only further restrict (both must allow).
|
|
2144
|
+
- `/elevated on|off|ask|full` stores state per session key; inline directives apply to a single message.
|
|
2145
|
+
- Elevated `exec` runs on the host and bypasses sandboxing.
|
|
2146
|
+
- Tool policy still applies; if `exec` is denied, elevated cannot be used.
|
|
2147
|
+
|
|
2148
|
+
`agents.defaults.maxConcurrent` sets the maximum number of embedded agent runs that can
|
|
2149
|
+
execute in parallel across sessions. Each session is still serialized (one run
|
|
2150
|
+
per session key at a time). Default: 1.
|
|
2151
|
+
|
|
2152
|
+
### `agents.defaults.sandbox`
|
|
2153
|
+
|
|
2154
|
+
Optional **Docker sandboxing** for the embedded agent. Intended for non-main
|
|
2155
|
+
sessions so they cannot access your host system.
|
|
2156
|
+
|
|
2157
|
+
Details: [Sandboxing](/gateway/sandboxing)
|
|
2158
|
+
|
|
2159
|
+
Defaults (if enabled):
|
|
2160
|
+
- scope: `"agent"` (one container + workspace per agent)
|
|
2161
|
+
- Debian bookworm-slim based image
|
|
2162
|
+
- agent workspace access: `workspaceAccess: "none"` (default)
|
|
2163
|
+
- `"none"`: use a per-scope sandbox workspace under `~/.clawdbot/sandboxes`
|
|
2164
|
+
- `"ro"`: keep the sandbox workspace at `/workspace`, and mount the agent workspace read-only at `/agent` (disables `write`/`edit`/`apply_patch`)
|
|
2165
|
+
- `"rw"`: mount the agent workspace read/write at `/workspace`
|
|
2166
|
+
- auto-prune: idle > 24h OR age > 7d
|
|
2167
|
+
- tool policy: allow only `exec`, `process`, `read`, `write`, `edit`, `apply_patch`, `sessions_list`, `sessions_history`, `sessions_send`, `sessions_spawn`, `session_status` (deny wins)
|
|
2168
|
+
- configure via `tools.sandbox.tools`, override per-agent via `agents.list[].tools.sandbox.tools`
|
|
2169
|
+
- tool group shorthands supported in sandbox policy: `group:runtime`, `group:fs`, `group:sessions`, `group:memory` (see [Sandbox vs Tool Policy vs Elevated](/gateway/sandbox-vs-tool-policy-vs-elevated#tool-groups-shorthands))
|
|
2170
|
+
- optional sandboxed browser (Chromium + CDP, noVNC observer)
|
|
2171
|
+
- hardening knobs: `network`, `user`, `pidsLimit`, `memory`, `cpus`, `ulimits`, `seccompProfile`, `apparmorProfile`
|
|
2172
|
+
|
|
2173
|
+
Warning: `scope: "shared"` means a shared container and shared workspace. No
|
|
2174
|
+
cross-session isolation. Use `scope: "session"` for per-session isolation.
|
|
2175
|
+
|
|
2176
|
+
Legacy: `perSession` is still supported (`true` → `scope: "session"`,
|
|
2177
|
+
`false` → `scope: "shared"`).
|
|
2178
|
+
|
|
2179
|
+
`setupCommand` runs **once** after the container is created (inside the container via `sh -lc`).
|
|
2180
|
+
For package installs, ensure network egress, a writable root FS, and a root user.
|
|
2181
|
+
|
|
2182
|
+
```json5
|
|
2183
|
+
{
|
|
2184
|
+
agents: {
|
|
2185
|
+
defaults: {
|
|
2186
|
+
sandbox: {
|
|
2187
|
+
mode: "non-main", // off | non-main | all
|
|
2188
|
+
scope: "agent", // session | agent | shared (agent is default)
|
|
2189
|
+
workspaceAccess: "none", // none | ro | rw
|
|
2190
|
+
workspaceRoot: "~/.clawdbot/sandboxes",
|
|
2191
|
+
docker: {
|
|
2192
|
+
image: "clawdbot-sandbox:bookworm-slim",
|
|
2193
|
+
containerPrefix: "clawdbot-sbx-",
|
|
2194
|
+
workdir: "/workspace",
|
|
2195
|
+
readOnlyRoot: true,
|
|
2196
|
+
tmpfs: ["/tmp", "/var/tmp", "/run"],
|
|
2197
|
+
network: "none",
|
|
2198
|
+
user: "1000:1000",
|
|
2199
|
+
capDrop: ["ALL"],
|
|
2200
|
+
env: { LANG: "C.UTF-8" },
|
|
2201
|
+
setupCommand: "apt-get update && apt-get install -y git curl jq",
|
|
2202
|
+
// Per-agent override (multi-agent): agents.list[].sandbox.docker.*
|
|
2203
|
+
pidsLimit: 256,
|
|
2204
|
+
memory: "1g",
|
|
2205
|
+
memorySwap: "2g",
|
|
2206
|
+
cpus: 1,
|
|
2207
|
+
ulimits: {
|
|
2208
|
+
nofile: { soft: 1024, hard: 2048 },
|
|
2209
|
+
nproc: 256
|
|
2210
|
+
},
|
|
2211
|
+
seccompProfile: "/path/to/seccomp.json",
|
|
2212
|
+
apparmorProfile: "clawdbot-sandbox",
|
|
2213
|
+
dns: ["1.1.1.1", "8.8.8.8"],
|
|
2214
|
+
extraHosts: ["internal.service:10.0.0.5"],
|
|
2215
|
+
binds: ["/var/run/docker.sock:/var/run/docker.sock", "/home/user/source:/source:rw"]
|
|
2216
|
+
},
|
|
2217
|
+
browser: {
|
|
2218
|
+
enabled: false,
|
|
2219
|
+
image: "clawdbot-sandbox-browser:bookworm-slim",
|
|
2220
|
+
containerPrefix: "clawdbot-sbx-browser-",
|
|
2221
|
+
cdpPort: 9222,
|
|
2222
|
+
vncPort: 5900,
|
|
2223
|
+
noVncPort: 6080,
|
|
2224
|
+
headless: false,
|
|
2225
|
+
enableNoVnc: true,
|
|
2226
|
+
allowHostControl: false,
|
|
2227
|
+
allowedControlUrls: ["http://10.0.0.42:18791"],
|
|
2228
|
+
allowedControlHosts: ["browser.lab.local", "10.0.0.42"],
|
|
2229
|
+
allowedControlPorts: [18791],
|
|
2230
|
+
autoStart: true,
|
|
2231
|
+
autoStartTimeoutMs: 12000
|
|
2232
|
+
},
|
|
2233
|
+
prune: {
|
|
2234
|
+
idleHours: 24, // 0 disables idle pruning
|
|
2235
|
+
maxAgeDays: 7 // 0 disables max-age pruning
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
}
|
|
2239
|
+
},
|
|
2240
|
+
tools: {
|
|
2241
|
+
sandbox: {
|
|
2242
|
+
tools: {
|
|
2243
|
+
allow: ["exec", "process", "read", "write", "edit", "apply_patch", "sessions_list", "sessions_history", "sessions_send", "sessions_spawn", "session_status"],
|
|
2244
|
+
deny: ["browser", "canvas", "nodes", "cron", "discord", "gateway"]
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
}
|
|
2249
|
+
```
|
|
2250
|
+
|
|
2251
|
+
Build the default sandbox image once with:
|
|
2252
|
+
```bash
|
|
2253
|
+
scripts/sandbox-setup.sh
|
|
2254
|
+
```
|
|
2255
|
+
|
|
2256
|
+
Note: sandbox containers default to `network: "none"`; set `agents.defaults.sandbox.docker.network`
|
|
2257
|
+
to `"bridge"` (or your custom network) if the agent needs outbound access.
|
|
2258
|
+
|
|
2259
|
+
Note: inbound attachments are staged into the active workspace at `media/inbound/*`. With `workspaceAccess: "rw"`, that means files are written into the agent workspace.
|
|
2260
|
+
|
|
2261
|
+
Note: `docker.binds` mounts additional host directories; global and per-agent binds are merged.
|
|
2262
|
+
|
|
2263
|
+
Build the optional browser image with:
|
|
2264
|
+
```bash
|
|
2265
|
+
scripts/sandbox-browser-setup.sh
|
|
2266
|
+
```
|
|
2267
|
+
|
|
2268
|
+
When `agents.defaults.sandbox.browser.enabled=true`, the browser tool uses a sandboxed
|
|
2269
|
+
Chromium instance (CDP). If noVNC is enabled (default when headless=false),
|
|
2270
|
+
the noVNC URL is injected into the system prompt so the agent can reference it.
|
|
2271
|
+
This does not require `browser.enabled` in the main config; the sandbox control
|
|
2272
|
+
URL is injected per session.
|
|
2273
|
+
|
|
2274
|
+
`agents.defaults.sandbox.browser.allowHostControl` (default: false) allows
|
|
2275
|
+
sandboxed sessions to explicitly target the **host** browser control server
|
|
2276
|
+
via the browser tool (`target: "host"`). Leave this off if you want strict
|
|
2277
|
+
sandbox isolation.
|
|
2278
|
+
|
|
2279
|
+
Allowlists for remote control:
|
|
2280
|
+
- `allowedControlUrls`: exact control URLs permitted for `target: "custom"`.
|
|
2281
|
+
- `allowedControlHosts`: hostnames permitted (hostname only, no port).
|
|
2282
|
+
- `allowedControlPorts`: ports permitted (defaults: http=80, https=443).
|
|
2283
|
+
Defaults: all allowlists are unset (no restriction). `allowHostControl` defaults to false.
|
|
2284
|
+
|
|
2285
|
+
### `models` (custom providers + base URLs)
|
|
2286
|
+
|
|
2287
|
+
Clawdbot uses the **pi-coding-agent** model catalog. You can add custom providers
|
|
2288
|
+
(LiteLLM, local OpenAI-compatible servers, Anthropic proxies, etc.) by writing
|
|
2289
|
+
`~/.clawdbot/agents/<agentId>/agent/models.json` or by defining the same schema inside your
|
|
2290
|
+
Clawdbot config under `models.providers`.
|
|
2291
|
+
Provider-by-provider overview + examples: [/concepts/model-providers](/concepts/model-providers).
|
|
2292
|
+
|
|
2293
|
+
When `models.providers` is present, Clawdbot writes/merges a `models.json` into
|
|
2294
|
+
`~/.clawdbot/agents/<agentId>/agent/` on startup:
|
|
2295
|
+
- default behavior: **merge** (keeps existing providers, overrides on name)
|
|
2296
|
+
- set `models.mode: "replace"` to overwrite the file contents
|
|
2297
|
+
|
|
2298
|
+
Select the model via `agents.defaults.model.primary` (provider/model).
|
|
2299
|
+
|
|
2300
|
+
```json5
|
|
2301
|
+
{
|
|
2302
|
+
agents: {
|
|
2303
|
+
defaults: {
|
|
2304
|
+
model: { primary: "custom-proxy/llama-3.1-8b" },
|
|
2305
|
+
models: {
|
|
2306
|
+
"custom-proxy/llama-3.1-8b": {}
|
|
2307
|
+
}
|
|
2308
|
+
}
|
|
2309
|
+
},
|
|
2310
|
+
models: {
|
|
2311
|
+
mode: "merge",
|
|
2312
|
+
providers: {
|
|
2313
|
+
"custom-proxy": {
|
|
2314
|
+
baseUrl: "http://localhost:4000/v1",
|
|
2315
|
+
apiKey: "LITELLM_KEY",
|
|
2316
|
+
api: "openai-completions",
|
|
2317
|
+
models: [
|
|
2318
|
+
{
|
|
2319
|
+
id: "llama-3.1-8b",
|
|
2320
|
+
name: "Llama 3.1 8B",
|
|
2321
|
+
reasoning: false,
|
|
2322
|
+
input: ["text"],
|
|
2323
|
+
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
|
2324
|
+
contextWindow: 128000,
|
|
2325
|
+
maxTokens: 32000
|
|
2326
|
+
}
|
|
2327
|
+
]
|
|
2328
|
+
}
|
|
2329
|
+
}
|
|
2330
|
+
}
|
|
2331
|
+
}
|
|
2332
|
+
```
|
|
2333
|
+
|
|
2334
|
+
### OpenCode Zen (multi-model proxy)
|
|
2335
|
+
|
|
2336
|
+
OpenCode Zen is a multi-model gateway with per-model endpoints. Clawdbot uses
|
|
2337
|
+
the built-in `opencode` provider from pi-ai; set `OPENCODE_API_KEY` (or
|
|
2338
|
+
`OPENCODE_ZEN_API_KEY`) from https://opencode.ai/auth.
|
|
2339
|
+
|
|
2340
|
+
Notes:
|
|
2341
|
+
- Model refs use `opencode/<modelId>` (example: `opencode/claude-opus-4-5`).
|
|
2342
|
+
- If you enable an allowlist via `agents.defaults.models`, add each model you plan to use.
|
|
2343
|
+
- Shortcut: `clawdbot onboard --auth-choice opencode-zen`.
|
|
2344
|
+
|
|
2345
|
+
```json5
|
|
2346
|
+
{
|
|
2347
|
+
agents: {
|
|
2348
|
+
defaults: {
|
|
2349
|
+
model: { primary: "opencode/claude-opus-4-5" },
|
|
2350
|
+
models: { "opencode/claude-opus-4-5": { alias: "Opus" } }
|
|
2351
|
+
}
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
```
|
|
2355
|
+
|
|
2356
|
+
### Z.AI (GLM-4.7) — provider alias support
|
|
2357
|
+
|
|
2358
|
+
Z.AI models are available via the built-in `zai` provider. Set `ZAI_API_KEY`
|
|
2359
|
+
in your environment and reference the model by provider/model.
|
|
2360
|
+
|
|
2361
|
+
Shortcut: `clawdbot onboard --auth-choice zai-api-key`.
|
|
2362
|
+
|
|
2363
|
+
```json5
|
|
2364
|
+
{
|
|
2365
|
+
agents: {
|
|
2366
|
+
defaults: {
|
|
2367
|
+
model: { primary: "zai/glm-4.7" },
|
|
2368
|
+
models: { "zai/glm-4.7": {} }
|
|
2369
|
+
}
|
|
2370
|
+
}
|
|
2371
|
+
}
|
|
2372
|
+
```
|
|
2373
|
+
|
|
2374
|
+
Notes:
|
|
2375
|
+
- `z.ai/*` and `z-ai/*` are accepted aliases and normalize to `zai/*`.
|
|
2376
|
+
- If `ZAI_API_KEY` is missing, requests to `zai/*` will fail with an auth error at runtime.
|
|
2377
|
+
- Example error: `No API key found for provider "zai".`
|
|
2378
|
+
- Z.AI’s general API endpoint is `https://api.z.ai/api/paas/v4`. GLM coding
|
|
2379
|
+
requests use the dedicated Coding endpoint `https://api.z.ai/api/coding/paas/v4`.
|
|
2380
|
+
The built-in `zai` provider uses the Coding endpoint. If you need the general
|
|
2381
|
+
endpoint, define a custom provider in `models.providers` with the base URL
|
|
2382
|
+
override (see the custom providers section above).
|
|
2383
|
+
- Use a fake placeholder in docs/configs; never commit real API keys.
|
|
2384
|
+
|
|
2385
|
+
### Moonshot AI (Kimi)
|
|
2386
|
+
|
|
2387
|
+
Use Moonshot's OpenAI-compatible endpoint:
|
|
2388
|
+
|
|
2389
|
+
```json5
|
|
2390
|
+
{
|
|
2391
|
+
env: { MOONSHOT_API_KEY: "sk-..." },
|
|
2392
|
+
agents: {
|
|
2393
|
+
defaults: {
|
|
2394
|
+
model: { primary: "moonshot/kimi-k2-0905-preview" },
|
|
2395
|
+
models: { "moonshot/kimi-k2-0905-preview": { alias: "Kimi K2" } }
|
|
2396
|
+
}
|
|
2397
|
+
},
|
|
2398
|
+
models: {
|
|
2399
|
+
mode: "merge",
|
|
2400
|
+
providers: {
|
|
2401
|
+
moonshot: {
|
|
2402
|
+
baseUrl: "https://api.moonshot.ai/v1",
|
|
2403
|
+
apiKey: "${MOONSHOT_API_KEY}",
|
|
2404
|
+
api: "openai-completions",
|
|
2405
|
+
models: [
|
|
2406
|
+
{
|
|
2407
|
+
id: "kimi-k2-0905-preview",
|
|
2408
|
+
name: "Kimi K2 0905 Preview",
|
|
2409
|
+
reasoning: false,
|
|
2410
|
+
input: ["text"],
|
|
2411
|
+
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
|
2412
|
+
contextWindow: 256000,
|
|
2413
|
+
maxTokens: 8192
|
|
2414
|
+
}
|
|
2415
|
+
]
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
```
|
|
2421
|
+
|
|
2422
|
+
Notes:
|
|
2423
|
+
- Set `MOONSHOT_API_KEY` in the environment or use `clawdbot onboard --auth-choice moonshot-api-key`.
|
|
2424
|
+
- Model ref: `moonshot/kimi-k2-0905-preview`.
|
|
2425
|
+
- Use `https://api.moonshot.cn/v1` if you need the China endpoint.
|
|
2426
|
+
|
|
2427
|
+
### Kimi Code
|
|
2428
|
+
|
|
2429
|
+
Use Kimi Code's dedicated OpenAI-compatible endpoint (separate from Moonshot):
|
|
2430
|
+
|
|
2431
|
+
```json5
|
|
2432
|
+
{
|
|
2433
|
+
env: { KIMICODE_API_KEY: "sk-..." },
|
|
2434
|
+
agents: {
|
|
2435
|
+
defaults: {
|
|
2436
|
+
model: { primary: "kimi-code/kimi-for-coding" },
|
|
2437
|
+
models: { "kimi-code/kimi-for-coding": { alias: "Kimi Code" } }
|
|
2438
|
+
}
|
|
2439
|
+
},
|
|
2440
|
+
models: {
|
|
2441
|
+
mode: "merge",
|
|
2442
|
+
providers: {
|
|
2443
|
+
"kimi-code": {
|
|
2444
|
+
baseUrl: "https://api.kimi.com/coding/v1",
|
|
2445
|
+
apiKey: "${KIMICODE_API_KEY}",
|
|
2446
|
+
api: "openai-completions",
|
|
2447
|
+
models: [
|
|
2448
|
+
{
|
|
2449
|
+
id: "kimi-for-coding",
|
|
2450
|
+
name: "Kimi For Coding",
|
|
2451
|
+
reasoning: true,
|
|
2452
|
+
input: ["text"],
|
|
2453
|
+
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
|
2454
|
+
contextWindow: 262144,
|
|
2455
|
+
maxTokens: 32768,
|
|
2456
|
+
headers: { "User-Agent": "KimiCLI/0.77" },
|
|
2457
|
+
compat: { supportsDeveloperRole: false }
|
|
2458
|
+
}
|
|
2459
|
+
]
|
|
2460
|
+
}
|
|
2461
|
+
}
|
|
2462
|
+
}
|
|
2463
|
+
}
|
|
2464
|
+
```
|
|
2465
|
+
|
|
2466
|
+
Notes:
|
|
2467
|
+
- Set `KIMICODE_API_KEY` in the environment or use `clawdbot onboard --auth-choice kimi-code-api-key`.
|
|
2468
|
+
- Model ref: `kimi-code/kimi-for-coding`.
|
|
2469
|
+
|
|
2470
|
+
### Synthetic (Anthropic-compatible)
|
|
2471
|
+
|
|
2472
|
+
Use Synthetic's Anthropic-compatible endpoint:
|
|
2473
|
+
|
|
2474
|
+
```json5
|
|
2475
|
+
{
|
|
2476
|
+
env: { SYNTHETIC_API_KEY: "sk-..." },
|
|
2477
|
+
agents: {
|
|
2478
|
+
defaults: {
|
|
2479
|
+
model: { primary: "synthetic/hf:MiniMaxAI/MiniMax-M2.1" },
|
|
2480
|
+
models: { "synthetic/hf:MiniMaxAI/MiniMax-M2.1": { alias: "MiniMax M2.1" } }
|
|
2481
|
+
}
|
|
2482
|
+
},
|
|
2483
|
+
models: {
|
|
2484
|
+
mode: "merge",
|
|
2485
|
+
providers: {
|
|
2486
|
+
synthetic: {
|
|
2487
|
+
baseUrl: "https://api.synthetic.new/anthropic",
|
|
2488
|
+
apiKey: "${SYNTHETIC_API_KEY}",
|
|
2489
|
+
api: "anthropic-messages",
|
|
2490
|
+
models: [
|
|
2491
|
+
{
|
|
2492
|
+
id: "hf:MiniMaxAI/MiniMax-M2.1",
|
|
2493
|
+
name: "MiniMax M2.1",
|
|
2494
|
+
reasoning: false,
|
|
2495
|
+
input: ["text"],
|
|
2496
|
+
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
|
2497
|
+
contextWindow: 192000,
|
|
2498
|
+
maxTokens: 65536
|
|
2499
|
+
}
|
|
2500
|
+
]
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
```
|
|
2506
|
+
|
|
2507
|
+
Notes:
|
|
2508
|
+
- Set `SYNTHETIC_API_KEY` or use `clawdbot onboard --auth-choice synthetic-api-key`.
|
|
2509
|
+
- Model ref: `synthetic/hf:MiniMaxAI/MiniMax-M2.1`.
|
|
2510
|
+
- Base URL should omit `/v1` because the Anthropic client appends it.
|
|
2511
|
+
|
|
2512
|
+
### Local models (LM Studio) — recommended setup
|
|
2513
|
+
|
|
2514
|
+
See [/gateway/local-models](/gateway/local-models) for the current local guidance. TL;DR: run MiniMax M2.1 via LM Studio Responses API on serious hardware; keep hosted models merged for fallback.
|
|
2515
|
+
|
|
2516
|
+
### MiniMax M2.1
|
|
2517
|
+
|
|
2518
|
+
Use MiniMax M2.1 directly without LM Studio:
|
|
2519
|
+
|
|
2520
|
+
```json5
|
|
2521
|
+
{
|
|
2522
|
+
agent: {
|
|
2523
|
+
model: { primary: "minimax/MiniMax-M2.1" },
|
|
2524
|
+
models: {
|
|
2525
|
+
"anthropic/claude-opus-4-5": { alias: "Opus" },
|
|
2526
|
+
"minimax/MiniMax-M2.1": { alias: "Minimax" }
|
|
2527
|
+
}
|
|
2528
|
+
},
|
|
2529
|
+
models: {
|
|
2530
|
+
mode: "merge",
|
|
2531
|
+
providers: {
|
|
2532
|
+
minimax: {
|
|
2533
|
+
baseUrl: "https://api.minimax.io/anthropic",
|
|
2534
|
+
apiKey: "${MINIMAX_API_KEY}",
|
|
2535
|
+
api: "anthropic-messages",
|
|
2536
|
+
models: [
|
|
2537
|
+
{
|
|
2538
|
+
id: "MiniMax-M2.1",
|
|
2539
|
+
name: "MiniMax M2.1",
|
|
2540
|
+
reasoning: false,
|
|
2541
|
+
input: ["text"],
|
|
2542
|
+
// Pricing: update in models.json if you need exact cost tracking.
|
|
2543
|
+
cost: { input: 15, output: 60, cacheRead: 2, cacheWrite: 10 },
|
|
2544
|
+
contextWindow: 200000,
|
|
2545
|
+
maxTokens: 8192
|
|
2546
|
+
}
|
|
2547
|
+
]
|
|
2548
|
+
}
|
|
2549
|
+
}
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2552
|
+
```
|
|
2553
|
+
|
|
2554
|
+
Notes:
|
|
2555
|
+
- Set `MINIMAX_API_KEY` environment variable or use `clawdbot onboard --auth-choice minimax-api`.
|
|
2556
|
+
- Available model: `MiniMax-M2.1` (default).
|
|
2557
|
+
- Update pricing in `models.json` if you need exact cost tracking.
|
|
2558
|
+
|
|
2559
|
+
### Cerebras (GLM 4.6 / 4.7)
|
|
2560
|
+
|
|
2561
|
+
Use Cerebras via their OpenAI-compatible endpoint:
|
|
2562
|
+
|
|
2563
|
+
```json5
|
|
2564
|
+
{
|
|
2565
|
+
env: { CEREBRAS_API_KEY: "sk-..." },
|
|
2566
|
+
agents: {
|
|
2567
|
+
defaults: {
|
|
2568
|
+
model: {
|
|
2569
|
+
primary: "cerebras/zai-glm-4.7",
|
|
2570
|
+
fallbacks: ["cerebras/zai-glm-4.6"]
|
|
2571
|
+
},
|
|
2572
|
+
models: {
|
|
2573
|
+
"cerebras/zai-glm-4.7": { alias: "GLM 4.7 (Cerebras)" },
|
|
2574
|
+
"cerebras/zai-glm-4.6": { alias: "GLM 4.6 (Cerebras)" }
|
|
2575
|
+
}
|
|
2576
|
+
}
|
|
2577
|
+
},
|
|
2578
|
+
models: {
|
|
2579
|
+
mode: "merge",
|
|
2580
|
+
providers: {
|
|
2581
|
+
cerebras: {
|
|
2582
|
+
baseUrl: "https://api.cerebras.ai/v1",
|
|
2583
|
+
apiKey: "${CEREBRAS_API_KEY}",
|
|
2584
|
+
api: "openai-completions",
|
|
2585
|
+
models: [
|
|
2586
|
+
{ id: "zai-glm-4.7", name: "GLM 4.7 (Cerebras)" },
|
|
2587
|
+
{ id: "zai-glm-4.6", name: "GLM 4.6 (Cerebras)" }
|
|
2588
|
+
]
|
|
2589
|
+
}
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
}
|
|
2593
|
+
```
|
|
2594
|
+
|
|
2595
|
+
Notes:
|
|
2596
|
+
- Use `cerebras/zai-glm-4.7` for Cerebras; use `zai/glm-4.7` for Z.AI direct.
|
|
2597
|
+
- Set `CEREBRAS_API_KEY` in the environment or config.
|
|
2598
|
+
|
|
2599
|
+
Notes:
|
|
2600
|
+
- Supported APIs: `openai-completions`, `openai-responses`, `anthropic-messages`,
|
|
2601
|
+
`google-generative-ai`
|
|
2602
|
+
- Use `authHeader: true` + `headers` for custom auth needs.
|
|
2603
|
+
- Override the agent config root with `CLAWDBOT_AGENT_DIR` (or `PI_CODING_AGENT_DIR`)
|
|
2604
|
+
if you want `models.json` stored elsewhere (default: `~/.clawdbot/agents/main/agent`).
|
|
2605
|
+
|
|
2606
|
+
### `session`
|
|
2607
|
+
|
|
2608
|
+
Controls session scoping, reset policy, reset triggers, and where the session store is written.
|
|
2609
|
+
|
|
2610
|
+
```json5
|
|
2611
|
+
{
|
|
2612
|
+
session: {
|
|
2613
|
+
scope: "per-sender",
|
|
2614
|
+
dmScope: "main",
|
|
2615
|
+
identityLinks: {
|
|
2616
|
+
alice: ["telegram:123456789", "discord:987654321012345678"]
|
|
2617
|
+
},
|
|
2618
|
+
reset: {
|
|
2619
|
+
mode: "daily",
|
|
2620
|
+
atHour: 4,
|
|
2621
|
+
idleMinutes: 60
|
|
2622
|
+
},
|
|
2623
|
+
resetByType: {
|
|
2624
|
+
thread: { mode: "daily", atHour: 4 },
|
|
2625
|
+
dm: { mode: "idle", idleMinutes: 240 },
|
|
2626
|
+
group: { mode: "idle", idleMinutes: 120 }
|
|
2627
|
+
},
|
|
2628
|
+
resetTriggers: ["/new", "/reset"],
|
|
2629
|
+
// Default is already per-agent under ~/.clawdbot/agents/<agentId>/sessions/sessions.json
|
|
2630
|
+
// You can override with {agentId} templating:
|
|
2631
|
+
store: "~/.clawdbot/agents/{agentId}/sessions/sessions.json",
|
|
2632
|
+
// Direct chats collapse to agent:<agentId>:<mainKey> (default: "main").
|
|
2633
|
+
mainKey: "main",
|
|
2634
|
+
agentToAgent: {
|
|
2635
|
+
// Max ping-pong reply turns between requester/target (0–5).
|
|
2636
|
+
maxPingPongTurns: 5
|
|
2637
|
+
},
|
|
2638
|
+
sendPolicy: {
|
|
2639
|
+
rules: [
|
|
2640
|
+
{ action: "deny", match: { channel: "discord", chatType: "group" } }
|
|
2641
|
+
],
|
|
2642
|
+
default: "allow"
|
|
2643
|
+
}
|
|
2644
|
+
}
|
|
2645
|
+
}
|
|
2646
|
+
```
|
|
2647
|
+
|
|
2648
|
+
Fields:
|
|
2649
|
+
- `mainKey`: direct-chat bucket key (default: `"main"`). Useful when you want to “rename” the primary DM thread without changing `agentId`.
|
|
2650
|
+
- Sandbox note: `agents.defaults.sandbox.mode: "non-main"` uses this key to detect the main session. Any session key that does not match `mainKey` (groups/channels) is sandboxed.
|
|
2651
|
+
- `dmScope`: how DM sessions are grouped (default: `"main"`).
|
|
2652
|
+
- `main`: all DMs share the main session for continuity.
|
|
2653
|
+
- `per-peer`: isolate DMs by sender id across channels.
|
|
2654
|
+
- `per-channel-peer`: isolate DMs per channel + sender (recommended for multi-user inboxes).
|
|
2655
|
+
- `identityLinks`: map canonical ids to provider-prefixed peers so the same person shares a DM session across channels when using `per-peer` or `per-channel-peer`.
|
|
2656
|
+
- Example: `alice: ["telegram:123456789", "discord:987654321012345678"]`.
|
|
2657
|
+
- `reset`: primary reset policy. Defaults to daily resets at 4:00 AM local time on the gateway host.
|
|
2658
|
+
- `mode`: `daily` or `idle` (default: `daily` when `reset` is present).
|
|
2659
|
+
- `atHour`: local hour (0-23) for the daily reset boundary.
|
|
2660
|
+
- `idleMinutes`: sliding idle window in minutes. When daily + idle are both configured, whichever expires first wins.
|
|
2661
|
+
- `resetByType`: per-session overrides for `dm`, `group`, and `thread`.
|
|
2662
|
+
- If you only set legacy `session.idleMinutes` without any `reset`/`resetByType`, Clawdbot stays in idle-only mode for backward compatibility.
|
|
2663
|
+
- `heartbeatIdleMinutes`: optional idle override for heartbeat checks (daily reset still applies when enabled).
|
|
2664
|
+
- `agentToAgent.maxPingPongTurns`: max reply-back turns between requester/target (0–5, default 5).
|
|
2665
|
+
- `sendPolicy.default`: `allow` or `deny` fallback when no rule matches.
|
|
2666
|
+
- `sendPolicy.rules[]`: match by `channel`, `chatType` (`direct|group|room`), or `keyPrefix` (e.g. `cron:`). First deny wins; otherwise allow.
|
|
2667
|
+
|
|
2668
|
+
### `skills` (skills config)
|
|
2669
|
+
|
|
2670
|
+
Controls bundled allowlist, install preferences, extra skill folders, and per-skill
|
|
2671
|
+
overrides. Applies to **bundled** skills and `~/.clawdbot/skills` (workspace skills
|
|
2672
|
+
still win on name conflicts).
|
|
2673
|
+
|
|
2674
|
+
Fields:
|
|
2675
|
+
- `allowBundled`: optional allowlist for **bundled** skills only. If set, only those
|
|
2676
|
+
bundled skills are eligible (managed/workspace skills unaffected).
|
|
2677
|
+
- `load.extraDirs`: additional skill directories to scan (lowest precedence).
|
|
2678
|
+
- `install.preferBrew`: prefer brew installers when available (default: true).
|
|
2679
|
+
- `install.nodeManager`: node installer preference (`npm` | `pnpm` | `yarn`, default: npm).
|
|
2680
|
+
- `entries.<skillKey>`: per-skill config overrides.
|
|
2681
|
+
|
|
2682
|
+
Per-skill fields:
|
|
2683
|
+
- `enabled`: set `false` to disable a skill even if it’s bundled/installed.
|
|
2684
|
+
- `env`: environment variables injected for the agent run (only if not already set).
|
|
2685
|
+
- `apiKey`: optional convenience for skills that declare a primary env var (e.g. `nano-banana-pro` → `GEMINI_API_KEY`).
|
|
2686
|
+
|
|
2687
|
+
Example:
|
|
2688
|
+
|
|
2689
|
+
```json5
|
|
2690
|
+
{
|
|
2691
|
+
skills: {
|
|
2692
|
+
allowBundled: ["gemini", "peekaboo"],
|
|
2693
|
+
load: {
|
|
2694
|
+
extraDirs: [
|
|
2695
|
+
"~/Projects/agent-scripts/skills",
|
|
2696
|
+
"~/Projects/oss/some-skill-pack/skills"
|
|
2697
|
+
]
|
|
2698
|
+
},
|
|
2699
|
+
install: {
|
|
2700
|
+
preferBrew: true,
|
|
2701
|
+
nodeManager: "npm"
|
|
2702
|
+
},
|
|
2703
|
+
entries: {
|
|
2704
|
+
"nano-banana-pro": {
|
|
2705
|
+
apiKey: "GEMINI_KEY_HERE",
|
|
2706
|
+
env: {
|
|
2707
|
+
GEMINI_API_KEY: "GEMINI_KEY_HERE"
|
|
2708
|
+
}
|
|
2709
|
+
},
|
|
2710
|
+
peekaboo: { enabled: true },
|
|
2711
|
+
sag: { enabled: false }
|
|
2712
|
+
}
|
|
2713
|
+
}
|
|
2714
|
+
}
|
|
2715
|
+
```
|
|
2716
|
+
|
|
2717
|
+
### `plugins` (extensions)
|
|
2718
|
+
|
|
2719
|
+
Controls plugin discovery, allow/deny, and per-plugin config. Plugins are loaded
|
|
2720
|
+
from `~/.clawdbot/extensions`, `<workspace>/.clawdbot/extensions`, plus any
|
|
2721
|
+
`plugins.load.paths` entries. **Config changes require a gateway restart.**
|
|
2722
|
+
See [/plugin](/plugin) for full usage.
|
|
2723
|
+
|
|
2724
|
+
Fields:
|
|
2725
|
+
- `enabled`: master toggle for plugin loading (default: true).
|
|
2726
|
+
- `allow`: optional allowlist of plugin ids; when set, only listed plugins load.
|
|
2727
|
+
- `deny`: optional denylist of plugin ids (deny wins).
|
|
2728
|
+
- `load.paths`: extra plugin files or directories to load (absolute or `~`).
|
|
2729
|
+
- `entries.<pluginId>`: per-plugin overrides.
|
|
2730
|
+
- `enabled`: set `false` to disable.
|
|
2731
|
+
- `config`: plugin-specific config object (validated by the plugin if provided).
|
|
2732
|
+
|
|
2733
|
+
Example:
|
|
2734
|
+
|
|
2735
|
+
```json5
|
|
2736
|
+
{
|
|
2737
|
+
plugins: {
|
|
2738
|
+
enabled: true,
|
|
2739
|
+
allow: ["voice-call"],
|
|
2740
|
+
load: {
|
|
2741
|
+
paths: ["~/Projects/oss/voice-call-extension"]
|
|
2742
|
+
},
|
|
2743
|
+
entries: {
|
|
2744
|
+
"voice-call": {
|
|
2745
|
+
enabled: true,
|
|
2746
|
+
config: {
|
|
2747
|
+
provider: "twilio"
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2750
|
+
}
|
|
2751
|
+
}
|
|
2752
|
+
}
|
|
2753
|
+
```
|
|
2754
|
+
|
|
2755
|
+
### `browser` (clawd-managed browser)
|
|
2756
|
+
|
|
2757
|
+
Clawdbot can start a **dedicated, isolated** Chrome/Brave/Edge/Chromium instance for clawd and expose a small loopback control server.
|
|
2758
|
+
Profiles can point at a **remote** Chromium-based browser via `profiles.<name>.cdpUrl`. Remote
|
|
2759
|
+
profiles are attach-only (start/stop/reset are disabled).
|
|
2760
|
+
|
|
2761
|
+
`browser.cdpUrl` remains for legacy single-profile configs and as the base
|
|
2762
|
+
scheme/host for profiles that only set `cdpPort`.
|
|
2763
|
+
|
|
2764
|
+
Defaults:
|
|
2765
|
+
- enabled: `true`
|
|
2766
|
+
- control URL: `http://127.0.0.1:18791` (CDP uses `18792`)
|
|
2767
|
+
- CDP URL: `http://127.0.0.1:18792` (control URL + 1, legacy single-profile)
|
|
2768
|
+
- profile color: `#FF4500` (lobster-orange)
|
|
2769
|
+
- Note: the control server is started by the running gateway (Clawdbot.app menubar, or `clawdbot gateway`).
|
|
2770
|
+
- Auto-detect order: default browser if Chromium-based; otherwise Chrome → Brave → Edge → Chromium → Chrome Canary.
|
|
2771
|
+
|
|
2772
|
+
```json5
|
|
2773
|
+
{
|
|
2774
|
+
browser: {
|
|
2775
|
+
enabled: true,
|
|
2776
|
+
controlUrl: "http://127.0.0.1:18791",
|
|
2777
|
+
// cdpUrl: "http://127.0.0.1:18792", // legacy single-profile override
|
|
2778
|
+
defaultProfile: "chrome",
|
|
2779
|
+
profiles: {
|
|
2780
|
+
clawd: { cdpPort: 18800, color: "#FF4500" },
|
|
2781
|
+
work: { cdpPort: 18801, color: "#0066CC" },
|
|
2782
|
+
remote: { cdpUrl: "http://10.0.0.42:9222", color: "#00AA00" }
|
|
2783
|
+
},
|
|
2784
|
+
color: "#FF4500",
|
|
2785
|
+
// Advanced:
|
|
2786
|
+
// headless: false,
|
|
2787
|
+
// noSandbox: false,
|
|
2788
|
+
// executablePath: "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser",
|
|
2789
|
+
// attachOnly: false, // set true when tunneling a remote CDP to localhost
|
|
2790
|
+
}
|
|
2791
|
+
}
|
|
2792
|
+
```
|
|
2793
|
+
|
|
2794
|
+
### `ui` (Appearance)
|
|
2795
|
+
|
|
2796
|
+
Optional accent color used by the native apps for UI chrome (e.g. Talk Mode bubble tint).
|
|
2797
|
+
|
|
2798
|
+
If unset, clients fall back to a muted light-blue.
|
|
2799
|
+
|
|
2800
|
+
```json5
|
|
2801
|
+
{
|
|
2802
|
+
ui: {
|
|
2803
|
+
seamColor: "#FF4500", // hex (RRGGBB or #RRGGBB)
|
|
2804
|
+
// Optional: Control UI assistant identity override.
|
|
2805
|
+
// If unset, the Control UI uses the active agent identity (config or IDENTITY.md).
|
|
2806
|
+
assistant: {
|
|
2807
|
+
name: "Clawdbot",
|
|
2808
|
+
avatar: "CB" // emoji, short text, or image URL/data URI
|
|
2809
|
+
}
|
|
2810
|
+
}
|
|
2811
|
+
}
|
|
2812
|
+
```
|
|
2813
|
+
|
|
2814
|
+
### `gateway` (Gateway server mode + bind)
|
|
2815
|
+
|
|
2816
|
+
Use `gateway.mode` to explicitly declare whether this machine should run the Gateway.
|
|
2817
|
+
|
|
2818
|
+
Defaults:
|
|
2819
|
+
- mode: **unset** (treated as “do not auto-start”)
|
|
2820
|
+
- bind: `loopback`
|
|
2821
|
+
- port: `18789` (single port for WS + HTTP)
|
|
2822
|
+
|
|
2823
|
+
```json5
|
|
2824
|
+
{
|
|
2825
|
+
gateway: {
|
|
2826
|
+
mode: "local", // or "remote"
|
|
2827
|
+
port: 18789, // WS + HTTP multiplex
|
|
2828
|
+
bind: "loopback",
|
|
2829
|
+
// controlUi: { enabled: true, basePath: "/clawdbot" }
|
|
2830
|
+
// auth: { mode: "token", token: "your-token" } // token gates WS + Control UI access
|
|
2831
|
+
// tailscale: { mode: "off" | "serve" | "funnel" }
|
|
2832
|
+
}
|
|
2833
|
+
}
|
|
2834
|
+
```
|
|
2835
|
+
|
|
2836
|
+
Control UI base path:
|
|
2837
|
+
- `gateway.controlUi.basePath` sets the URL prefix where the Control UI is served.
|
|
2838
|
+
- Examples: `"/ui"`, `"/clawdbot"`, `"/apps/clawdbot"`.
|
|
2839
|
+
- Default: root (`/`) (unchanged).
|
|
2840
|
+
- `gateway.controlUi.allowInsecureAuth` allows token-only auth for the Control UI when
|
|
2841
|
+
device identity is omitted (typically over HTTP). Default: `false`. Prefer HTTPS
|
|
2842
|
+
(Tailscale Serve) or `127.0.0.1`.
|
|
2843
|
+
- `gateway.controlUi.dangerouslyDisableDeviceAuth` disables device identity checks for the
|
|
2844
|
+
Control UI (token/password only). Default: `false`. Break-glass only.
|
|
2845
|
+
|
|
2846
|
+
Related docs:
|
|
2847
|
+
- [Control UI](/web/control-ui)
|
|
2848
|
+
- [Web overview](/web)
|
|
2849
|
+
- [Tailscale](/gateway/tailscale)
|
|
2850
|
+
- [Remote access](/gateway/remote)
|
|
2851
|
+
|
|
2852
|
+
Trusted proxies:
|
|
2853
|
+
- `gateway.trustedProxies`: list of reverse proxy IPs that terminate TLS in front of the Gateway.
|
|
2854
|
+
- When a connection comes from one of these IPs, Clawdbot uses `x-forwarded-for` (or `x-real-ip`) to determine the client IP for local pairing checks and HTTP auth/local checks.
|
|
2855
|
+
- Only list proxies you fully control, and ensure they **overwrite** incoming `x-forwarded-for`.
|
|
2856
|
+
|
|
2857
|
+
Notes:
|
|
2858
|
+
- `clawdbot gateway` refuses to start unless `gateway.mode` is set to `local` (or you pass the override flag).
|
|
2859
|
+
- `gateway.port` controls the single multiplexed port used for WebSocket + HTTP (control UI, hooks, A2UI).
|
|
2860
|
+
- OpenAI Chat Completions endpoint: **disabled by default**; enable with `gateway.http.endpoints.chatCompletions.enabled: true`.
|
|
2861
|
+
- Precedence: `--port` > `CLAWDBOT_GATEWAY_PORT` > `gateway.port` > default `18789`.
|
|
2862
|
+
- Gateway auth is required by default (token/password or Tailscale Serve identity). Non-loopback binds require a shared token/password.
|
|
2863
|
+
- The onboarding wizard generates a gateway token by default (even on loopback).
|
|
2864
|
+
- `gateway.remote.token` is **only** for remote CLI calls; it does not enable local gateway auth. `gateway.token` is ignored.
|
|
2865
|
+
|
|
2866
|
+
Auth and Tailscale:
|
|
2867
|
+
- `gateway.auth.mode` sets the handshake requirements (`token` or `password`). When unset, token auth is assumed.
|
|
2868
|
+
- `gateway.auth.token` stores the shared token for token auth (used by the CLI on the same machine).
|
|
2869
|
+
- When `gateway.auth.mode` is set, only that method is accepted (plus optional Tailscale headers).
|
|
2870
|
+
- `gateway.auth.password` can be set here, or via `CLAWDBOT_GATEWAY_PASSWORD` (recommended).
|
|
2871
|
+
- `gateway.auth.allowTailscale` allows Tailscale Serve identity headers
|
|
2872
|
+
(`tailscale-user-login`) to satisfy auth when the request arrives on loopback
|
|
2873
|
+
with `x-forwarded-for`, `x-forwarded-proto`, and `x-forwarded-host`. Clawdbot
|
|
2874
|
+
verifies the identity by resolving the `x-forwarded-for` address via
|
|
2875
|
+
`tailscale whois` before accepting it. When `true`, Serve requests do not need
|
|
2876
|
+
a token/password; set `false` to require explicit credentials. Defaults to
|
|
2877
|
+
`true` when `tailscale.mode = "serve"` and auth mode is not `password`.
|
|
2878
|
+
- `gateway.tailscale.mode: "serve"` uses Tailscale Serve (tailnet only, loopback bind).
|
|
2879
|
+
- `gateway.tailscale.mode: "funnel"` exposes the dashboard publicly; requires auth.
|
|
2880
|
+
- `gateway.tailscale.resetOnExit` resets Serve/Funnel config on shutdown.
|
|
2881
|
+
|
|
2882
|
+
Remote client defaults (CLI):
|
|
2883
|
+
- `gateway.remote.url` sets the default Gateway WebSocket URL for CLI calls when `gateway.mode = "remote"`.
|
|
2884
|
+
- `gateway.remote.transport` selects the macOS remote transport (`ssh` default, `direct` for ws/wss). When `direct`, `gateway.remote.url` must be `ws://` or `wss://`. `ws://host` defaults to port `18789`.
|
|
2885
|
+
- `gateway.remote.token` supplies the token for remote calls (leave unset for no auth).
|
|
2886
|
+
- `gateway.remote.password` supplies the password for remote calls (leave unset for no auth).
|
|
2887
|
+
|
|
2888
|
+
macOS app behavior:
|
|
2889
|
+
- Clawdbot.app watches `~/.clawdbot/clawdbot.json` and switches modes live when `gateway.mode` or `gateway.remote.url` changes.
|
|
2890
|
+
- If `gateway.mode` is unset but `gateway.remote.url` is set, the macOS app treats it as remote mode.
|
|
2891
|
+
- When you change connection mode in the macOS app, it writes `gateway.mode` (and `gateway.remote.url` + `gateway.remote.transport` in remote mode) back to the config file.
|
|
2892
|
+
|
|
2893
|
+
```json5
|
|
2894
|
+
{
|
|
2895
|
+
gateway: {
|
|
2896
|
+
mode: "remote",
|
|
2897
|
+
remote: {
|
|
2898
|
+
url: "ws://gateway.tailnet:18789",
|
|
2899
|
+
token: "your-token",
|
|
2900
|
+
password: "your-password"
|
|
2901
|
+
}
|
|
2902
|
+
}
|
|
2903
|
+
}
|
|
2904
|
+
```
|
|
2905
|
+
|
|
2906
|
+
Direct transport example (macOS app):
|
|
2907
|
+
|
|
2908
|
+
```json5
|
|
2909
|
+
{
|
|
2910
|
+
gateway: {
|
|
2911
|
+
mode: "remote",
|
|
2912
|
+
remote: {
|
|
2913
|
+
transport: "direct",
|
|
2914
|
+
url: "wss://gateway.example.ts.net",
|
|
2915
|
+
token: "your-token"
|
|
2916
|
+
}
|
|
2917
|
+
}
|
|
2918
|
+
}
|
|
2919
|
+
```
|
|
2920
|
+
|
|
2921
|
+
### `gateway.reload` (Config hot reload)
|
|
2922
|
+
|
|
2923
|
+
The Gateway watches `~/.clawdbot/clawdbot.json` (or `CLAWDBOT_CONFIG_PATH`) and applies changes automatically.
|
|
2924
|
+
|
|
2925
|
+
Modes:
|
|
2926
|
+
- `hybrid` (default): hot-apply safe changes; restart the Gateway for critical changes.
|
|
2927
|
+
- `hot`: only apply hot-safe changes; log when a restart is required.
|
|
2928
|
+
- `restart`: restart the Gateway on any config change.
|
|
2929
|
+
- `off`: disable hot reload.
|
|
2930
|
+
|
|
2931
|
+
```json5
|
|
2932
|
+
{
|
|
2933
|
+
gateway: {
|
|
2934
|
+
reload: {
|
|
2935
|
+
mode: "hybrid",
|
|
2936
|
+
debounceMs: 300
|
|
2937
|
+
}
|
|
2938
|
+
}
|
|
2939
|
+
}
|
|
2940
|
+
```
|
|
2941
|
+
|
|
2942
|
+
#### Hot reload matrix (files + impact)
|
|
2943
|
+
|
|
2944
|
+
Files watched:
|
|
2945
|
+
- `~/.clawdbot/clawdbot.json` (or `CLAWDBOT_CONFIG_PATH`)
|
|
2946
|
+
|
|
2947
|
+
Hot-applied (no full gateway restart):
|
|
2948
|
+
- `hooks` (webhook auth/path/mappings) + `hooks.gmail` (Gmail watcher restarted)
|
|
2949
|
+
- `browser` (browser control server restart)
|
|
2950
|
+
- `cron` (cron service restart + concurrency update)
|
|
2951
|
+
- `agents.defaults.heartbeat` (heartbeat runner restart)
|
|
2952
|
+
- `web` (WhatsApp web channel restart)
|
|
2953
|
+
- `telegram`, `discord`, `signal`, `imessage` (channel restarts)
|
|
2954
|
+
- `agent`, `models`, `routing`, `messages`, `session`, `whatsapp`, `logging`, `skills`, `ui`, `talk`, `identity`, `wizard` (dynamic reads)
|
|
2955
|
+
|
|
2956
|
+
Requires full Gateway restart:
|
|
2957
|
+
- `gateway` (port/bind/auth/control UI/tailscale)
|
|
2958
|
+
- `bridge` (legacy)
|
|
2959
|
+
- `discovery`
|
|
2960
|
+
- `canvasHost`
|
|
2961
|
+
- `plugins`
|
|
2962
|
+
- Any unknown/unsupported config path (defaults to restart for safety)
|
|
2963
|
+
|
|
2964
|
+
### Multi-instance isolation
|
|
2965
|
+
|
|
2966
|
+
To run multiple gateways on one host (for redundancy or a rescue bot), isolate per-instance state + config and use unique ports:
|
|
2967
|
+
- `CLAWDBOT_CONFIG_PATH` (per-instance config)
|
|
2968
|
+
- `CLAWDBOT_STATE_DIR` (sessions/creds)
|
|
2969
|
+
- `agents.defaults.workspace` (memories)
|
|
2970
|
+
- `gateway.port` (unique per instance)
|
|
2971
|
+
|
|
2972
|
+
Convenience flags (CLI):
|
|
2973
|
+
- `clawdbot --dev …` → uses `~/.clawdbot-dev` + shifts ports from base `19001`
|
|
2974
|
+
- `clawdbot --profile <name> …` → uses `~/.clawdbot-<name>` (port via config/env/flags)
|
|
2975
|
+
|
|
2976
|
+
See [Gateway runbook](/gateway) for the derived port mapping (gateway/browser/canvas).
|
|
2977
|
+
See [Multiple gateways](/gateway/multiple-gateways) for browser/CDP port isolation details.
|
|
2978
|
+
|
|
2979
|
+
Example:
|
|
2980
|
+
```bash
|
|
2981
|
+
CLAWDBOT_CONFIG_PATH=~/.clawdbot/a.json \
|
|
2982
|
+
CLAWDBOT_STATE_DIR=~/.clawdbot-a \
|
|
2983
|
+
clawdbot gateway --port 19001
|
|
2984
|
+
```
|
|
2985
|
+
|
|
2986
|
+
### `hooks` (Gateway webhooks)
|
|
2987
|
+
|
|
2988
|
+
Enable a simple HTTP webhook endpoint on the Gateway HTTP server.
|
|
2989
|
+
|
|
2990
|
+
Defaults:
|
|
2991
|
+
- enabled: `false`
|
|
2992
|
+
- path: `/hooks`
|
|
2993
|
+
- maxBodyBytes: `262144` (256 KB)
|
|
2994
|
+
|
|
2995
|
+
```json5
|
|
2996
|
+
{
|
|
2997
|
+
hooks: {
|
|
2998
|
+
enabled: true,
|
|
2999
|
+
token: "shared-secret",
|
|
3000
|
+
path: "/hooks",
|
|
3001
|
+
presets: ["gmail"],
|
|
3002
|
+
transformsDir: "~/.clawdbot/hooks",
|
|
3003
|
+
mappings: [
|
|
3004
|
+
{
|
|
3005
|
+
match: { path: "gmail" },
|
|
3006
|
+
action: "agent",
|
|
3007
|
+
wakeMode: "now",
|
|
3008
|
+
name: "Gmail",
|
|
3009
|
+
sessionKey: "hook:gmail:{{messages[0].id}}",
|
|
3010
|
+
messageTemplate:
|
|
3011
|
+
"From: {{messages[0].from}}\nSubject: {{messages[0].subject}}\n{{messages[0].snippet}}",
|
|
3012
|
+
deliver: true,
|
|
3013
|
+
channel: "last",
|
|
3014
|
+
model: "openai/gpt-5.2-mini",
|
|
3015
|
+
},
|
|
3016
|
+
],
|
|
3017
|
+
}
|
|
3018
|
+
}
|
|
3019
|
+
```
|
|
3020
|
+
|
|
3021
|
+
Requests must include the hook token:
|
|
3022
|
+
- `Authorization: Bearer <token>` **or**
|
|
3023
|
+
- `x-clawdbot-token: <token>` **or**
|
|
3024
|
+
- `?token=<token>`
|
|
3025
|
+
|
|
3026
|
+
Endpoints:
|
|
3027
|
+
- `POST /hooks/wake` → `{ text, mode?: "now"|"next-heartbeat" }`
|
|
3028
|
+
- `POST /hooks/agent` → `{ message, name?, sessionKey?, wakeMode?, deliver?, channel?, to?, model?, thinking?, timeoutSeconds? }`
|
|
3029
|
+
- `POST /hooks/<name>` → resolved via `hooks.mappings`
|
|
3030
|
+
|
|
3031
|
+
`/hooks/agent` always posts a summary into the main session (and can optionally trigger an immediate heartbeat via `wakeMode: "now"`).
|
|
3032
|
+
|
|
3033
|
+
Mapping notes:
|
|
3034
|
+
- `match.path` matches the sub-path after `/hooks` (e.g. `/hooks/gmail` → `gmail`).
|
|
3035
|
+
- `match.source` matches a payload field (e.g. `{ source: "gmail" }`) so you can use a generic `/hooks/ingest` path.
|
|
3036
|
+
- Templates like `{{messages[0].subject}}` read from the payload.
|
|
3037
|
+
- `transform` can point to a JS/TS module that returns a hook action.
|
|
3038
|
+
- `deliver: true` sends the final reply to a channel; `channel` defaults to `last` (falls back to WhatsApp).
|
|
3039
|
+
- If there is no prior delivery route, set `channel` + `to` explicitly (required for Telegram/Discord/Google Chat/Slack/Signal/iMessage/MS Teams).
|
|
3040
|
+
- `model` overrides the LLM for this hook run (`provider/model` or alias; must be allowed if `agents.defaults.models` is set).
|
|
3041
|
+
|
|
3042
|
+
Gmail helper config (used by `clawdbot webhooks gmail setup` / `run`):
|
|
3043
|
+
|
|
3044
|
+
```json5
|
|
3045
|
+
{
|
|
3046
|
+
hooks: {
|
|
3047
|
+
gmail: {
|
|
3048
|
+
account: "clawdbot@gmail.com",
|
|
3049
|
+
topic: "projects/<project-id>/topics/gog-gmail-watch",
|
|
3050
|
+
subscription: "gog-gmail-watch-push",
|
|
3051
|
+
pushToken: "shared-push-token",
|
|
3052
|
+
hookUrl: "http://127.0.0.1:18789/hooks/gmail",
|
|
3053
|
+
includeBody: true,
|
|
3054
|
+
maxBytes: 20000,
|
|
3055
|
+
renewEveryMinutes: 720,
|
|
3056
|
+
serve: { bind: "127.0.0.1", port: 8788, path: "/" },
|
|
3057
|
+
tailscale: { mode: "funnel", path: "/gmail-pubsub" },
|
|
3058
|
+
|
|
3059
|
+
// Optional: use a cheaper model for Gmail hook processing
|
|
3060
|
+
// Falls back to agents.defaults.model.fallbacks, then primary, on auth/rate-limit/timeout
|
|
3061
|
+
model: "openrouter/meta-llama/llama-3.3-70b-instruct:free",
|
|
3062
|
+
// Optional: default thinking level for Gmail hooks
|
|
3063
|
+
thinking: "off",
|
|
3064
|
+
}
|
|
3065
|
+
}
|
|
3066
|
+
}
|
|
3067
|
+
```
|
|
3068
|
+
|
|
3069
|
+
Model override for Gmail hooks:
|
|
3070
|
+
- `hooks.gmail.model` specifies a model to use for Gmail hook processing (defaults to session primary).
|
|
3071
|
+
- Accepts `provider/model` refs or aliases from `agents.defaults.models`.
|
|
3072
|
+
- Falls back to `agents.defaults.model.fallbacks`, then `agents.defaults.model.primary`, on auth/rate-limit/timeouts.
|
|
3073
|
+
- If `agents.defaults.models` is set, include the hooks model in the allowlist.
|
|
3074
|
+
- At startup, warns if the configured model is not in the model catalog or allowlist.
|
|
3075
|
+
- `hooks.gmail.thinking` sets the default thinking level for Gmail hooks and is overridden by per-hook `thinking`.
|
|
3076
|
+
|
|
3077
|
+
Gateway auto-start:
|
|
3078
|
+
- If `hooks.enabled=true` and `hooks.gmail.account` is set, the Gateway starts
|
|
3079
|
+
`gog gmail watch serve` on boot and auto-renews the watch.
|
|
3080
|
+
- Set `CLAWDBOT_SKIP_GMAIL_WATCHER=1` to disable the auto-start (for manual runs).
|
|
3081
|
+
- Avoid running a separate `gog gmail watch serve` alongside the Gateway; it will
|
|
3082
|
+
fail with `listen tcp 127.0.0.1:8788: bind: address already in use`.
|
|
3083
|
+
|
|
3084
|
+
Note: when `tailscale.mode` is on, Clawdbot defaults `serve.path` to `/` so
|
|
3085
|
+
Tailscale can proxy `/gmail-pubsub` correctly (it strips the set-path prefix).
|
|
3086
|
+
If you need the backend to receive the prefixed path, set
|
|
3087
|
+
`hooks.gmail.tailscale.target` to a full URL (and align `serve.path`).
|
|
3088
|
+
|
|
3089
|
+
### `canvasHost` (LAN/tailnet Canvas file server + live reload)
|
|
3090
|
+
|
|
3091
|
+
The Gateway serves a directory of HTML/CSS/JS over HTTP so iOS/Android nodes can simply `canvas.navigate` to it.
|
|
3092
|
+
|
|
3093
|
+
Default root: `~/clawd/canvas`
|
|
3094
|
+
Default port: `18793` (chosen to avoid the clawd browser CDP port `18792`)
|
|
3095
|
+
The server listens on the **gateway bind host** (LAN or Tailnet) so nodes can reach it.
|
|
3096
|
+
|
|
3097
|
+
The server:
|
|
3098
|
+
- serves files under `canvasHost.root`
|
|
3099
|
+
- injects a tiny live-reload client into served HTML
|
|
3100
|
+
- watches the directory and broadcasts reloads over a WebSocket endpoint at `/__clawdbot/ws`
|
|
3101
|
+
- auto-creates a starter `index.html` when the directory is empty (so you see something immediately)
|
|
3102
|
+
- also serves A2UI at `/__clawdbot__/a2ui/` and is advertised to nodes as `canvasHostUrl`
|
|
3103
|
+
(always used by nodes for Canvas/A2UI)
|
|
3104
|
+
|
|
3105
|
+
Disable live reload (and file watching) if the directory is large or you hit `EMFILE`:
|
|
3106
|
+
- config: `canvasHost: { liveReload: false }`
|
|
3107
|
+
|
|
3108
|
+
```json5
|
|
3109
|
+
{
|
|
3110
|
+
canvasHost: {
|
|
3111
|
+
root: "~/clawd/canvas",
|
|
3112
|
+
port: 18793,
|
|
3113
|
+
liveReload: true
|
|
3114
|
+
}
|
|
3115
|
+
}
|
|
3116
|
+
```
|
|
3117
|
+
|
|
3118
|
+
Changes to `canvasHost.*` require a gateway restart (config reload will restart).
|
|
3119
|
+
|
|
3120
|
+
Disable with:
|
|
3121
|
+
- config: `canvasHost: { enabled: false }`
|
|
3122
|
+
- env: `CLAWDBOT_SKIP_CANVAS_HOST=1`
|
|
3123
|
+
|
|
3124
|
+
### `bridge` (legacy TCP bridge, removed)
|
|
3125
|
+
|
|
3126
|
+
Current builds no longer include the TCP bridge listener; `bridge.*` config keys are ignored.
|
|
3127
|
+
Nodes connect over the Gateway WebSocket. This section is kept for historical reference.
|
|
3128
|
+
|
|
3129
|
+
Legacy behavior:
|
|
3130
|
+
- The Gateway could expose a simple TCP bridge for nodes (iOS/Android), typically on port `18790`.
|
|
3131
|
+
|
|
3132
|
+
Defaults:
|
|
3133
|
+
- enabled: `true`
|
|
3134
|
+
- port: `18790`
|
|
3135
|
+
- bind: `lan` (binds to `0.0.0.0`)
|
|
3136
|
+
|
|
3137
|
+
Bind modes:
|
|
3138
|
+
- `lan`: `0.0.0.0` (reachable on any interface, including LAN/Wi‑Fi and Tailscale)
|
|
3139
|
+
- `tailnet`: bind only to the machine’s Tailscale IP (recommended for Vienna ⇄ London)
|
|
3140
|
+
- `loopback`: `127.0.0.1` (local only)
|
|
3141
|
+
- `auto`: prefer tailnet IP if present, else `lan`
|
|
3142
|
+
|
|
3143
|
+
TLS:
|
|
3144
|
+
- `bridge.tls.enabled`: enable TLS for bridge connections (TLS-only when enabled).
|
|
3145
|
+
- `bridge.tls.autoGenerate`: generate a self-signed cert when no cert/key are present (default: true).
|
|
3146
|
+
- `bridge.tls.certPath` / `bridge.tls.keyPath`: PEM paths for the bridge certificate + private key.
|
|
3147
|
+
- `bridge.tls.caPath`: optional PEM CA bundle (custom roots or future mTLS).
|
|
3148
|
+
|
|
3149
|
+
When TLS is enabled, the Gateway advertises `bridgeTls=1` and `bridgeTlsSha256` in discovery TXT
|
|
3150
|
+
records so nodes can pin the certificate. Manual connections use trust-on-first-use if no
|
|
3151
|
+
fingerprint is stored yet.
|
|
3152
|
+
Auto-generated certs require `openssl` on PATH; if generation fails, the bridge will not start.
|
|
3153
|
+
|
|
3154
|
+
```json5
|
|
3155
|
+
{
|
|
3156
|
+
bridge: {
|
|
3157
|
+
enabled: true,
|
|
3158
|
+
port: 18790,
|
|
3159
|
+
bind: "tailnet",
|
|
3160
|
+
tls: {
|
|
3161
|
+
enabled: true,
|
|
3162
|
+
// Uses ~/.clawdbot/bridge/tls/bridge-{cert,key}.pem when omitted.
|
|
3163
|
+
// certPath: "~/.clawdbot/bridge/tls/bridge-cert.pem",
|
|
3164
|
+
// keyPath: "~/.clawdbot/bridge/tls/bridge-key.pem"
|
|
3165
|
+
}
|
|
3166
|
+
}
|
|
3167
|
+
}
|
|
3168
|
+
```
|
|
3169
|
+
|
|
3170
|
+
### `discovery.mdns` (Bonjour / mDNS broadcast mode)
|
|
3171
|
+
|
|
3172
|
+
Controls LAN mDNS discovery broadcasts (`_clawdbot-gw._tcp`).
|
|
3173
|
+
|
|
3174
|
+
- `minimal` (default): omit `cliPath` + `sshPort` from TXT records
|
|
3175
|
+
- `full`: include `cliPath` + `sshPort` in TXT records
|
|
3176
|
+
- `off`: disable mDNS broadcasts entirely
|
|
3177
|
+
|
|
3178
|
+
```json5
|
|
3179
|
+
{
|
|
3180
|
+
discovery: { mdns: { mode: "minimal" } }
|
|
3181
|
+
}
|
|
3182
|
+
```
|
|
3183
|
+
|
|
3184
|
+
### `discovery.wideArea` (Wide-Area Bonjour / unicast DNS‑SD)
|
|
3185
|
+
|
|
3186
|
+
When enabled, the Gateway writes a unicast DNS-SD zone for `_clawdbot-bridge._tcp` under `~/.clawdbot/dns/` using the standard discovery domain `clawdbot.internal.`
|
|
3187
|
+
|
|
3188
|
+
To make iOS/Android discover across networks (Vienna ⇄ London), pair this with:
|
|
3189
|
+
- a DNS server on the gateway host serving `clawdbot.internal.` (CoreDNS is recommended)
|
|
3190
|
+
- Tailscale **split DNS** so clients resolve `clawdbot.internal` via that server
|
|
3191
|
+
|
|
3192
|
+
One-time setup helper (gateway host):
|
|
3193
|
+
|
|
3194
|
+
```bash
|
|
3195
|
+
clawdbot dns setup --apply
|
|
3196
|
+
```
|
|
3197
|
+
|
|
3198
|
+
```json5
|
|
3199
|
+
{
|
|
3200
|
+
discovery: { wideArea: { enabled: true } }
|
|
3201
|
+
}
|
|
3202
|
+
```
|
|
3203
|
+
|
|
3204
|
+
## Template variables
|
|
3205
|
+
|
|
3206
|
+
Template placeholders are expanded in `tools.media.*.models[].args` and `tools.media.models[].args` (and any future templated argument fields).
|
|
3207
|
+
|
|
3208
|
+
| Variable | Description |
|
|
3209
|
+
|----------|-------------|
|
|
3210
|
+
| `{{Body}}` | Full inbound message body |
|
|
3211
|
+
| `{{RawBody}}` | Raw inbound message body (no history/sender wrappers; best for command parsing) |
|
|
3212
|
+
| `{{BodyStripped}}` | Body with group mentions stripped (best default for agents) |
|
|
3213
|
+
| `{{From}}` | Sender identifier (E.164 for WhatsApp; may differ per channel) |
|
|
3214
|
+
| `{{To}}` | Destination identifier |
|
|
3215
|
+
| `{{MessageSid}}` | Channel message id (when available) |
|
|
3216
|
+
| `{{SessionId}}` | Current session UUID |
|
|
3217
|
+
| `{{IsNewSession}}` | `"true"` when a new session was created |
|
|
3218
|
+
| `{{MediaUrl}}` | Inbound media pseudo-URL (if present) |
|
|
3219
|
+
| `{{MediaPath}}` | Local media path (if downloaded) |
|
|
3220
|
+
| `{{MediaType}}` | Media type (image/audio/document/…) |
|
|
3221
|
+
| `{{Transcript}}` | Audio transcript (when enabled) |
|
|
3222
|
+
| `{{Prompt}}` | Resolved media prompt for CLI entries |
|
|
3223
|
+
| `{{MaxChars}}` | Resolved max output chars for CLI entries |
|
|
3224
|
+
| `{{ChatType}}` | `"direct"` or `"group"` |
|
|
3225
|
+
| `{{GroupSubject}}` | Group subject (best effort) |
|
|
3226
|
+
| `{{GroupMembers}}` | Group members preview (best effort) |
|
|
3227
|
+
| `{{SenderName}}` | Sender display name (best effort) |
|
|
3228
|
+
| `{{SenderE164}}` | Sender phone number (best effort) |
|
|
3229
|
+
| `{{Provider}}` | Provider hint (whatsapp|telegram|discord|googlechat|slack|signal|imessage|msteams|webchat|…) |
|
|
3230
|
+
|
|
3231
|
+
## Cron (Gateway scheduler)
|
|
3232
|
+
|
|
3233
|
+
Cron is a Gateway-owned scheduler for wakeups and scheduled jobs. See [Cron jobs](/automation/cron-jobs) for the feature overview and CLI examples.
|
|
3234
|
+
|
|
3235
|
+
```json5
|
|
3236
|
+
{
|
|
3237
|
+
cron: {
|
|
3238
|
+
enabled: true,
|
|
3239
|
+
maxConcurrentRuns: 2
|
|
3240
|
+
}
|
|
3241
|
+
}
|
|
3242
|
+
```
|
|
3243
|
+
|
|
3244
|
+
---
|
|
3245
|
+
|
|
3246
|
+
*Next: [Agent Runtime](/concepts/agent)* 🦞
|