Compare commits
308
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e8779ac329 | ||
|
|
36725ce153 | ||
|
|
0d537ece10 | ||
|
|
f825dd2897 | ||
|
|
9faa95d558 | ||
|
|
365cbe8d50 | ||
|
|
9a322d52e2 | ||
|
|
89013efbca | ||
|
|
3a90335b5a | ||
|
|
676b64e8a3 | ||
|
|
9007920695 | ||
|
|
2887376646 | ||
|
|
e48d452c63 | ||
|
|
165841ae79 | ||
|
|
76acdb7ae7 | ||
|
|
dfbe4041f5 | ||
|
|
4fd1a6dec3 | ||
|
|
aa394d0e14 | ||
|
|
d5b17d344b | ||
|
|
8111e18dbd | ||
|
|
ba7d12f205 | ||
|
|
ef66ad3b52 | ||
|
|
69e4339af9 | ||
|
|
779904657f | ||
|
|
cb0f6cefa4 | ||
|
|
25ef01b74a | ||
|
|
6db0201fcd | ||
|
|
40e508823f | ||
|
|
3368284b2a | ||
|
|
ece01d89fe | ||
|
|
9c0c4f50ec | ||
|
|
6729637f61 | ||
|
|
18d22aa426 | ||
|
|
a3641526ab | ||
|
|
f50e06a1b6 | ||
|
|
2ae3b45ac1 | ||
|
|
780a43711f | ||
|
|
d682b604de | ||
|
|
721a6bf0f9 | ||
|
|
25a5f1cb96 | ||
|
|
fa75d84b75 | ||
|
|
bb2df13be0 | ||
|
|
5918def440 | ||
|
|
1fdd3592d3 | ||
|
|
a96d299971 | ||
|
|
42ff634a9d | ||
|
|
b45d7c3256 | ||
|
|
77ca508274 | ||
|
|
61b7398cb7 | ||
|
|
0321d5ed74 | ||
|
|
78627ce7c2 | ||
|
|
c851bdd47a | ||
|
|
9ec0016258 | ||
|
|
01776e0569 | ||
|
|
d8f14078f0 | ||
|
|
38244b8e94 | ||
|
|
9308762d0b | ||
|
|
8eb1c76337 | ||
|
|
f94ad21f1e | ||
|
|
8d640ccc68 | ||
|
|
f566e6451f | ||
|
|
75a7855223 | ||
|
|
8f105288d2 | ||
|
|
696a6ec4d4 | ||
|
|
3271ff1d6e | ||
|
|
0efcfc0864 | ||
|
|
0aba911912 | ||
|
|
4efb5cc18e | ||
|
|
57db3f22a1 | ||
|
|
9b44c80b30 | ||
|
|
7c7f4d0eb7 | ||
|
|
ccc24e2c26 | ||
|
|
62bdbe1821 | ||
|
|
58d1d11762 | ||
|
|
8a9096cd52 | ||
|
|
b70298fbca | ||
|
|
7616b02bb1 | ||
|
|
d4c205f8e1 | ||
|
|
0ba60ff69c | ||
|
|
755a7e1b20 | ||
|
|
3061d8e057 | ||
|
|
ea5597b483 | ||
|
|
b41e75a15d | ||
|
|
bfdbaa5ab6 | ||
|
|
93ae3b8405 | ||
|
|
f249a82383 | ||
|
|
ea9486ae2d | ||
|
|
da95b58a2a | ||
|
|
e15d5d0533 | ||
|
|
1cf45f8439 | ||
|
|
2a9ef806a0 | ||
|
|
32115a8b98 | ||
|
|
7ce902b096 | ||
|
|
c4e8b60d2c | ||
|
|
c9fdd68232 | ||
|
|
50260fd385 | ||
|
|
0822f5610a | ||
|
|
2c2ca7f03b | ||
|
|
c4014c0092 | ||
|
|
c08441c42c | ||
|
|
980f274fc9 | ||
|
|
9f1f65f0e3 | ||
|
|
cddd836909 | ||
|
|
bab7eeaf91 | ||
|
|
d45915d39f | ||
|
|
fcc814accd | ||
|
|
78a3d965e0 | ||
|
|
66ad8a9289 | ||
|
|
df6634727e | ||
|
|
8b5cd97ceb | ||
|
|
25297ce3f5 | ||
|
|
3800fea962 | ||
|
|
ecb91bbb1a | ||
|
|
ab993904d7 | ||
|
|
2467a103b2 | ||
|
|
68569afb4b | ||
|
|
67d0ab3030 | ||
|
|
4024bca55d | ||
|
|
b928b96af5 | ||
|
|
cb871a3fc1 | ||
|
|
da0a062fa7 | ||
|
|
ba316a10cc | ||
|
|
4086408b10 | ||
|
|
c1f82d9ec1 | ||
|
|
eb6cace60f | ||
|
|
00f4331343 | ||
|
|
cb469ecf45 | ||
|
|
46a694bbc7 | ||
|
|
56c406b19e | ||
|
|
79a6506593 | ||
|
|
99a6fcf3f7 | ||
|
|
abe9440096 | ||
|
|
542c8020ec | ||
|
|
8edf2146ae | ||
|
|
3c8d0083cb | ||
|
|
28248f9602 | ||
|
|
d225c4a7d1 | ||
|
|
e05a8477b9 | ||
|
|
357a6e340a | ||
|
|
a87d37f26d | ||
|
|
958a4fd414 | ||
|
|
a27efd57bd | ||
|
|
d57db17300 | ||
|
|
4f1c6e76fd | ||
|
|
2111d0c653 | ||
|
|
642e6acf49 | ||
|
|
88716d8d2a | ||
|
|
c2e37c78ff | ||
|
|
5a2688c7b5 | ||
|
|
ba1d80bd00 | ||
|
|
4dfcd56893 | ||
|
|
e0ddc488d0 | ||
|
|
c012019a8a | ||
|
|
7896b30489 | ||
|
|
ffc465394e | ||
|
|
0edbdb1948 | ||
|
|
5dc187f00c | ||
|
|
231d2d5fdf | ||
|
|
20ba8d4891 | ||
|
|
b32f6a0e00 | ||
|
|
e5c77315ce | ||
|
|
dd8f7552ad | ||
|
|
95ed49ce9a | ||
|
|
92760de472 | ||
|
|
24190d09da | ||
|
|
07bdb8af7e | ||
|
|
6a48688c09 | ||
|
|
c03a745f61 | ||
|
|
48fdf3775d | ||
|
|
e5708d443a | ||
|
|
e2ea20f862 | ||
|
|
1eb924739b | ||
|
|
350f956f2c | ||
|
|
1f3ae2346e | ||
|
|
4f3bedfdb7 | ||
|
|
6f75feaeb8 | ||
|
|
e949cc383f | ||
|
|
a4bd960880 | ||
|
|
3636a2bf51 | ||
|
|
103003d9ff | ||
|
|
ce23c70855 | ||
|
|
c5fa757ef6 | ||
|
|
bb9a9633a8 | ||
|
|
ca98f87b2f | ||
|
|
df64771ecf | ||
|
|
cbe11e3de0 | ||
|
|
daa753112c | ||
|
|
2e654e8d63 | ||
|
|
cf92099d40 | ||
|
|
a55c880191 | ||
|
|
a8680f9a09 | ||
|
|
2e08a868a7 | ||
|
|
2785009c6f | ||
|
|
73d9469bf8 | ||
|
|
72100ba3ab | ||
|
|
ec5099db89 | ||
|
|
209380edf8 | ||
|
|
cf8251bb81 | ||
|
|
6ed2d69ff9 | ||
|
|
e7e544174f | ||
|
|
9b0d9db3a3 | ||
|
|
fd768334a9 | ||
|
|
9f90d0721a | ||
|
|
1920138122 | ||
|
|
27d940f5b6 | ||
|
|
7ba72aeb6c | ||
|
|
f19d37c7bb | ||
|
|
9d5bf38416 | ||
|
|
e0c1f2fdc0 | ||
|
|
08fdac0561 | ||
|
|
d3eeddfc2f | ||
|
|
0a24bc0427 | ||
|
|
9da97d1a41 | ||
|
|
29b7b2068a | ||
|
|
f4ab057807 | ||
|
|
cb35db0c7e | ||
|
|
f13db1c836 | ||
|
|
59063a7c15 | ||
|
|
5bc4971432 | ||
|
|
59c8d2d17f | ||
|
|
21405b0dfc | ||
|
|
256304037e | ||
|
|
d8ae905d54 | ||
|
|
bbc34215a2 | ||
|
|
583fc4fb11 | ||
|
|
0b2b8c7c52 | ||
|
|
5d83be76c9 | ||
|
|
877bc61b53 | ||
|
|
fcaeee7073 | ||
|
|
6857f16609 | ||
|
|
2faf7cea93 | ||
|
|
26d5cca97c | ||
|
|
99fea64823 | ||
|
|
42c17adb5e | ||
|
|
3467b0ba07 | ||
|
|
490cb834e5 | ||
|
|
cd12ad8aab | ||
|
|
eceb41f6f7 | ||
|
|
6f496b7739 | ||
|
|
e961e02f71 | ||
|
|
36a02b3e67 | ||
|
|
b73042500e | ||
|
|
6406ed869a | ||
|
|
f839d949b2 | ||
|
|
d4f7dc067e | ||
|
|
3dbfe65eea | ||
|
|
ddd4b55cf6 | ||
|
|
298c6eea1f | ||
|
|
74806aa5e3 | ||
|
|
55aeb8a0d3 | ||
|
|
86ea00dc21 | ||
|
|
a0a7e74a62 | ||
|
|
bb7397c636 | ||
|
|
7dc44b04c1 | ||
|
|
45232137a2 | ||
|
|
b1c3e38df0 | ||
|
|
0be62c3542 | ||
|
|
523f91758d | ||
|
|
5baba5f84e | ||
|
|
ffbcd83d1e | ||
|
|
1baf9f6a83 | ||
|
|
77b20377cc | ||
|
|
3ffb9a3b5e | ||
|
|
29807119d5 | ||
|
|
b88ea39b83 | ||
|
|
0a2dcd844b | ||
|
|
2ed95634fe | ||
|
|
9526f9861a | ||
|
|
7b93356fb7 | ||
|
|
17ff25bd20 | ||
|
|
d24de1ec3b | ||
|
|
44e1f271c8 | ||
|
|
8ff09f8337 | ||
|
|
e91aa0657e | ||
|
|
14801b46fc | ||
|
|
99a7548c07 | ||
|
|
35bbc2ba87 | ||
|
|
cf78d28d74 | ||
|
|
eeca541dde | ||
|
|
4bba49770d | ||
|
|
f5d5661adf | ||
|
|
f83fb70360 | ||
|
|
355c13564c | ||
|
|
f1dd59bf82 | ||
|
|
fd1e959c2d | ||
|
|
1b2c1545a0 | ||
|
|
05ac67c520 | ||
|
|
f5ee2b3a4f | ||
|
|
8afdf75e2b | ||
|
|
6aed3c0fd3 | ||
|
|
f0fbd8b012 | ||
|
|
5a3eb5ad62 | ||
|
|
79beb20ba2 | ||
|
|
3da1afed68 | ||
|
|
717a259056 | ||
|
|
adaa30c73a | ||
|
|
ff292e67ce | ||
|
|
31752aa944 | ||
|
|
bf11a42c37 | ||
|
|
8049f33435 | ||
|
|
115591c5b6 | ||
|
|
a3938d62f6 | ||
|
|
3c7a8579ad | ||
|
|
f5a9421b10 | ||
|
|
562d0e3b5f | ||
|
|
bf7e813573 | ||
|
|
c69abe08eb | ||
|
|
5a29ec78ca |
No files matched your search
@@ -1,4 +1,6 @@
|
|||||||
# Repository Guidelines
|
# Repository Guidelines
|
||||||
|
- Repo: https://github.com/clawdbot/clawdbot
|
||||||
|
- GitHub issues: use literal multiline strings or $'...' for newlines; avoid "\\n" escapes in `gh issue create/edit`.
|
||||||
|
|
||||||
## Project Structure & Module Organization
|
## Project Structure & Module Organization
|
||||||
- Source code: `src/` (CLI wiring in `src/cli`, commands in `src/commands`, web provider in `src/provider-web.ts`, infra in `src/infra`, media pipeline in `src/media`).
|
- Source code: `src/` (CLI wiring in `src/cli`, commands in `src/commands`, web provider in `src/provider-web.ts`, infra in `src/infra`, media pipeline in `src/media`).
|
||||||
@@ -11,6 +13,7 @@
|
|||||||
- Internal doc links in `docs/**/*.md`: root-relative, no `.md`/`.mdx` (example: `[Config](/configuration)`).
|
- Internal doc links in `docs/**/*.md`: root-relative, no `.md`/`.mdx` (example: `[Config](/configuration)`).
|
||||||
- Section cross-references: use anchors on root-relative paths (example: `[Hooks](/configuration#hooks)`).
|
- Section cross-references: use anchors on root-relative paths (example: `[Hooks](/configuration#hooks)`).
|
||||||
- When Peter asks for links, reply with full `https://docs.clawd.bot/...` URLs (not root-relative).
|
- When Peter asks for links, reply with full `https://docs.clawd.bot/...` URLs (not root-relative).
|
||||||
|
- When you touch docs, end the reply with the `https://docs.clawd.bot/...` URLs you referenced.
|
||||||
- README (GitHub): keep absolute docs URLs (`https://docs.clawd.bot/...`) so links work on GitHub.
|
- README (GitHub): keep absolute docs URLs (`https://docs.clawd.bot/...`) so links work on GitHub.
|
||||||
- Docs content must be generic: no personal device names/hostnames/paths; use placeholders like `user@gateway-host` and “gateway host”.
|
- Docs content must be generic: no personal device names/hostnames/paths; use placeholders like `user@gateway-host` and “gateway host”.
|
||||||
|
|
||||||
@@ -97,6 +100,7 @@
|
|||||||
- **Multi-agent safety:** focus reports on your edits; avoid guard-rail disclaimers unless truly blocked; when multiple agents touch the same file, continue if safe; end with a brief “other files present” note only if relevant.
|
- **Multi-agent safety:** focus reports on your edits; avoid guard-rail disclaimers unless truly blocked; when multiple agents touch the same file, continue if safe; end with a brief “other files present” note only if relevant.
|
||||||
- Bug investigations: read source code of relevant npm dependencies and all related local code before concluding; aim for high-confidence root cause.
|
- Bug investigations: read source code of relevant npm dependencies and all related local code before concluding; aim for high-confidence root cause.
|
||||||
- Code style: add brief comments for tricky logic; keep files under ~500 LOC when feasible (split/refactor as needed).
|
- Code style: add brief comments for tricky logic; keep files under ~500 LOC when feasible (split/refactor as needed).
|
||||||
|
- Tool schema guardrails (google-antigravity): avoid `Type.Union` in tool input schemas; no `anyOf`/`oneOf`/`allOf`. Use `stringEnum`/`optionalStringEnum` (Type.Unsafe enum) for string lists, and `Type.Optional(...)` instead of `... | null`. Keep top-level tool schema as `type: "object"` with `properties`.
|
||||||
- When asked to open a “session” file, open the Pi session logs under `~/.clawdbot/agents/main/sessions/*.jsonl` (newest unless a specific ID is given), not the default `sessions.json`. If logs are needed from another machine, SSH via Tailscale and read the same path there.
|
- When asked to open a “session” file, open the Pi session logs under `~/.clawdbot/agents/main/sessions/*.jsonl` (newest unless a specific ID is given), not the default `sessions.json`. If logs are needed from another machine, SSH via Tailscale and read the same path there.
|
||||||
- Menubar dimming + restart flow mirrors Trimmy: use `scripts/restart-mac.sh` (kills all Clawdbot variants, runs `swift build`, packages, relaunches). Icon dimming depends on MenuBarExtraAccess wiring in AppMain; keep `appearsDisabled` updates intact when touching the status item.
|
- Menubar dimming + restart flow mirrors Trimmy: use `scripts/restart-mac.sh` (kills all Clawdbot variants, runs `swift build`, packages, relaunches). Icon dimming depends on MenuBarExtraAccess wiring in AppMain; keep `appearsDisabled` updates intact when touching the status item.
|
||||||
- Do not rebuild the macOS app over SSH; rebuilds must be run directly on the Mac.
|
- Do not rebuild the macOS app over SSH; rebuilds must be run directly on the Mac.
|
||||||
|
|||||||
+49
-30
@@ -1,15 +1,55 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## 2026.1.11-2
|
## 2025.1.12 (Unreleased)
|
||||||
|
|
||||||
|
### Highlights
|
||||||
|
- Memory: add vector search for agent memories (Markdown-only) with SQLite index, chunking, lazy sync + file watch, and per-agent enablement/fallback.
|
||||||
|
- Plugins: restore full voice-call plugin parity (Telnyx/Twilio, streaming, inbound policies, tools/CLI).
|
||||||
|
- Models: add Synthetic provider plus Moonshot Kimi K2 0905 + turbo/thinking variants (with docs).
|
||||||
|
- Cron: one-shot schedules accept ISO timestamps (UTC) with optional delete-after-run; cron jobs can target a specific agent (CLI + macOS/Control UI).
|
||||||
|
- Agents: add compaction mode config with optional safeguard summarization and per-agent model fallbacks.
|
||||||
|
|
||||||
|
### New & Improved
|
||||||
|
- Memory: add custom OpenAI-compatible embedding endpoints; support OpenAI/local `node-llama-cpp` embeddings with per-agent overrides and provider metadata in tools/CLI.
|
||||||
|
- Memory: new `clawdbot memory` CLI plus `memory_search`/`memory_get` tools with snippets + line ranges; index stored under `~/.clawdbot/memory/{agentId}.sqlite` with watch-on-by-default.
|
||||||
|
- Agents: strengthen memory recall guidance; make workspace bootstrap truncation configurable (default 20k) with warnings; add default sub-agent model config.
|
||||||
|
- Tools/Sandbox: add tool profiles + group shorthands; support tool-policy groups in `tools.sandbox.tools`; drop legacy `memory` shorthand; allow Docker bind mounts via `docker.binds`.
|
||||||
|
- Tools: add browser `scrollintoview` action; allow Claude/Gemini tool param aliases; allow thinking `xhigh` for GPT-5.2/Codex with safe downgrades.
|
||||||
|
- Gateway/CLI: add Tailscale binary discovery, custom bind mode, and probe auth retry; add `clawdbot dashboard` auto-open flow; default native slash commands to `"auto"` with per-provider overrides.
|
||||||
|
- Auth/Onboarding: add Chutes OAuth (PKCE + refresh + onboarding choice); normalize API key inputs; default TUI onboarding to `deliver: false`.
|
||||||
|
- Providers: add `discord.allowBots`; trim legacy MiniMax M2 from default catalogs; route MiniMax vision to the Coding Plan VLM endpoint (also accepts `@/path/to/file.png` inputs).
|
||||||
|
- Gateway: allow Tailscale Serve identity headers to satisfy token auth; rebuild Control UI assets when protocol schema is newer.
|
||||||
|
- Heartbeat: default `ackMaxChars` to 300 so short `HEARTBEAT_OK` replies stay internal.
|
||||||
|
|
||||||
|
### Installer
|
||||||
|
- Install: run `clawdbot doctor --non-interactive` after git installs/updates and nudge daemon restarts when detected.
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
- Installer: ensure the CLI entrypoint is executable after npm installs.
|
- Doctor: warn on pnpm workspace mismatches, missing Control UI assets, and missing tsx binaries; offer UI rebuilds.
|
||||||
- Packaging: include `dist/plugins/` in the npm package to avoid missing module errors.
|
- Models/Providers: treat credential validation failures as auth errors to trigger fallback; normalize `${ENV_VAR}` apiKey values and auto-fill missing provider keys; preserve explicit GitHub Copilot provider config + agent-dir auth profiles.
|
||||||
|
- Auth: drop invalid auth profiles from ordering so environment keys can still be used for providers like MiniMax.
|
||||||
|
- Gemini: normalize Gemini 3 ids to preview variants; strip Gemini CLI tool call/response ids; downgrade missing `thought_signature`; strip Claude `msg_*` thought_signature fields to avoid base64 decode errors.
|
||||||
|
- Agents: auto-recover from compaction context overflow by resetting the session and retrying; propagate overflow details from embedded runs so callers can recover.
|
||||||
|
- MiniMax: strip malformed tool invocation XML; include `MiniMax-VL-01` in implicit provider for image pairing.
|
||||||
|
- Onboarding/Auth: honor `CLAWDBOT_AGENT_DIR` / `PI_CODING_AGENT_DIR` when writing auth profiles (MiniMax). (#829) — thanks @roshanasingh4.
|
||||||
|
- Anthropic: handle `overloaded_error` with a friendly message and failover classification. (#832) — thanks @danielz1z.
|
||||||
|
- Anthropic: merge consecutive user turns (preserve newest metadata) before validation to avoid incorrect role errors.
|
||||||
|
- Messaging: enforce context isolation for message tool sends; keep typing indicators alive during tool execution.
|
||||||
|
- Auto-reply: `/status` allowlist behavior, reasoning-tag enforcement on fallback, and system-event enqueueing for elevated/reasoning toggles.
|
||||||
|
- Auto-reply: resolve ambiguous `/model` matches; fix streaming block reply media handling; keep >300 char heartbeat replies instead of dropping.
|
||||||
|
- Discord/Slack: centralize reply-thread planning; fix autoThread routing + add per-channel autoThread; avoid duplicate listeners; keep reasoning italics intact; allow clearing channel parents via message tool.
|
||||||
|
- Telegram: preserve forum topic thread ids, persist polling offsets, respect account bindings in webhook mode, and show typing indicator in General topics.
|
||||||
|
- Slack: accept slash commands with or without leading `/` for custom command configs.
|
||||||
|
- Cron: persist disabled jobs correctly; accept `jobId` aliases for update/run/remove params.
|
||||||
|
- Gateway/CLI: honor `CLAWDBOT_LAUNCHD_LABEL` / `CLAWDBOT_SYSTEMD_UNIT` overrides; `agents.list` respects explicit config; reduce noisy loopback WS logs during tests; run `clawdbot doctor --non-interactive` during updates.
|
||||||
|
- Onboarding/Control UI: refuse invalid configs (run doctor first); quote Windows browser URLs for OAuth; keep chat scroll position unless the user is near the bottom.
|
||||||
|
- Tools/UI: harden tool input schemas for strict providers; drop null-only union variants for Gemini schema cleanup; treat `maxChars: 0` as unlimited; keep TUI last streamed response instead of "(no output)".
|
||||||
|
- Connections UI: polish multi-account account cards.
|
||||||
|
|
||||||
## 2026.1.11-1
|
### Maintenance
|
||||||
|
- Dependencies: bump Pi packages to 0.45.3 and refresh patched pi-ai.
|
||||||
### Fixes
|
- Testing: update Vitest + browser-playwright to 4.0.17.
|
||||||
- Installer: include `patches/` in the npm package so postinstall patching works for npm/bun installs.
|
- Docs: add Amazon Bedrock provider notes and link from models/FAQ.
|
||||||
|
|
||||||
## 2026.1.11
|
## 2026.1.11
|
||||||
|
|
||||||
@@ -20,9 +60,6 @@
|
|||||||
- Agents: automatic pre-compaction memory flush turn to store durable memories before compaction.
|
- Agents: automatic pre-compaction memory flush turn to store durable memories before compaction.
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
- Deps: update pi-agent-core/pi-ai/pi-coding-agent/pi-tui and refresh the pi-ai patch.
|
|
||||||
- Dev: bump @types/node.
|
|
||||||
- macOS: add wizard debug CLI and share wizard parsing helpers.
|
|
||||||
- CLI/Onboarding: simplify MiniMax auth choice to a single M2.1 option.
|
- CLI/Onboarding: simplify MiniMax auth choice to a single M2.1 option.
|
||||||
- CLI: configure section selection now loops until Continue.
|
- CLI: configure section selection now loops until Continue.
|
||||||
- Docs: explain MiniMax vs MiniMax Lightning (speed vs cost) and restore LM Studio example.
|
- Docs: explain MiniMax vs MiniMax Lightning (speed vs cost) and restore LM Studio example.
|
||||||
@@ -30,20 +67,16 @@
|
|||||||
- Onboarding/CLI: group model/auth choice by provider and label Z.AI as GLM 4.7.
|
- Onboarding/CLI: group model/auth choice by provider and label Z.AI as GLM 4.7.
|
||||||
- Onboarding/Docs: add Moonshot AI (Kimi K2) auth choice + config example.
|
- Onboarding/Docs: add Moonshot AI (Kimi K2) auth choice + config example.
|
||||||
- CLI/Onboarding: prompt to reuse detected API keys for Moonshot/MiniMax/Z.AI/Gemini/Anthropic/OpenCode.
|
- CLI/Onboarding: prompt to reuse detected API keys for Moonshot/MiniMax/Z.AI/Gemini/Anthropic/OpenCode.
|
||||||
- CLI/Onboarding: move MiniMax to the top of the provider list.
|
|
||||||
- CLI/Onboarding: add MiniMax M2.1 Lightning auth choice.
|
|
||||||
- CLI/Onboarding: show key previews when reusing detected API keys.
|
|
||||||
- Auto-reply: add compact `/model` picker (models + available providers) and show provider endpoints in `/model status`.
|
- Auto-reply: add compact `/model` picker (models + available providers) and show provider endpoints in `/model status`.
|
||||||
- Control UI: add Config tab model presets (MiniMax M2.1, GLM 4.7, Kimi) for one-click setup.
|
- Control UI: add Config tab model presets (MiniMax M2.1, GLM 4.7, Kimi) for one-click setup.
|
||||||
- Plugins: add extension loader (tools/RPC/CLI/services), discovery paths, and config schema + Control UI labels (uiHints).
|
- Plugins: add extension loader (tools/RPC/CLI/services), discovery paths, and config schema + Control UI labels (uiHints).
|
||||||
- Plugins: add `clawdbot plugins install` (path/tgz/npm), plus `list|info|enable|disable|doctor` UX.
|
- Plugins: add `clawdbot plugins install` (path/tgz/npm), plus `list|info|enable|disable|doctor` UX.
|
||||||
- Plugins: voice-call plugin now real (Twilio/log), adds start/status RPC/CLI/tool + tests.
|
- Plugins: voice-call plugin now real (Twilio/log), adds start/status RPC/CLI/tool + tests.
|
||||||
- Docs: add plugins doc + cross-links from tools/skills/gateway config.
|
- Docs: add plugins doc + cross-links from tools/skills/gateway config.
|
||||||
- Docs: clarify memory flush behavior + writable workspace requirement in Memory/Session/FAQ.
|
|
||||||
- Docs: add beginner-friendly plugin quick start + expand Voice Call plugin docs.
|
- Docs: add beginner-friendly plugin quick start + expand Voice Call plugin docs.
|
||||||
- Tests: add Docker plugin loader + tgz-install smoke test.
|
- Tests: add Docker plugin loader + tgz-install smoke test.
|
||||||
- Tests: extend Docker plugin E2E to cover installing from local folders (`plugins.load.paths`) and `file:` npm specs.
|
- Tests: extend Docker plugin E2E to cover installing from local folders (`plugins.load.paths`) and `file:` npm specs.
|
||||||
- Tests: add coverage for pre-compaction memory flush settings (including read-only/CLI skips).
|
- Tests: add coverage for pre-compaction memory flush settings.
|
||||||
- Tests: modernize live model smoke selection for current releases and enforce tools/images/thinking-high coverage. (#769) — thanks @steipete.
|
- Tests: modernize live model smoke selection for current releases and enforce tools/images/thinking-high coverage. (#769) — thanks @steipete.
|
||||||
- Agents/Tools: add `apply_patch` tool for multi-file edits (experimental; gated by tools.exec.applyPatch; OpenAI-only).
|
- Agents/Tools: add `apply_patch` tool for multi-file edits (experimental; gated by tools.exec.applyPatch; OpenAI-only).
|
||||||
- Agents/Tools: rename the bash tool to exec (config alias maintained). (#748) — thanks @myfunc.
|
- Agents/Tools: rename the bash tool to exec (config alias maintained). (#748) — thanks @myfunc.
|
||||||
@@ -70,17 +103,9 @@
|
|||||||
- Installer UX: add `--install-method git|npm` and auto-detect source checkouts (prompt to update git checkout vs migrate to npm).
|
- Installer UX: add `--install-method git|npm` and auto-detect source checkouts (prompt to update git checkout vs migrate to npm).
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
- Control UI: flatten nav into a single horizontal scroll row on tablet/mobile (and always show collapsed group items). (#771) — thanks @carlulsoe.
|
|
||||||
- macOS: start + await local gateway before onboarding wizard begins.
|
|
||||||
- macOS: cancel onboarding wizard on close, recover if the gateway drops the session, and time out stalled gateway connects.
|
|
||||||
- macOS: wizard debug CLI now surfaces error status instead of exiting as complete.
|
|
||||||
- Models/Onboarding: configure MiniMax (minimax.io) via Anthropic-compatible `/anthropic` endpoint by default (keep `minimax-api` as a legacy alias).
|
- Models/Onboarding: configure MiniMax (minimax.io) via Anthropic-compatible `/anthropic` endpoint by default (keep `minimax-api` as a legacy alias).
|
||||||
- Agents/Browser: cap Playwright AI snapshots for tool calls (maxChars); CLI snapshots remain full. (#763) — thanks @thesash.
|
|
||||||
- Models: normalize Gemini 3 Pro/Flash IDs to preview names for live model lookups. (#769) — thanks @steipete.
|
- Models: normalize Gemini 3 Pro/Flash IDs to preview names for live model lookups. (#769) — thanks @steipete.
|
||||||
- CLI: fix guardCancel typing for configure prompts. (#769) — thanks @steipete.
|
- CLI: fix guardCancel typing for configure prompts. (#769) — thanks @steipete.
|
||||||
- Providers: default groupPolicy to allowlist across providers and warn in doctor when groups are open.
|
|
||||||
- MS Teams: add groupPolicy/groupAllowFrom gating for group chats and warn when groups are open.
|
|
||||||
- Providers: strip tool call/result ids from Gemini CLI payloads to avoid API 400s. (#756)
|
|
||||||
- Gateway/WebChat: include handshake validation details in the WebSocket close reason for easier debugging; preserve close codes.
|
- Gateway/WebChat: include handshake validation details in the WebSocket close reason for easier debugging; preserve close codes.
|
||||||
- Gateway/Auth: send invalid connect responses before closing the handshake; stabilize invalid-connect auth test.
|
- Gateway/Auth: send invalid connect responses before closing the handshake; stabilize invalid-connect auth test.
|
||||||
- Gateway: tighten gateway listener detection.
|
- Gateway: tighten gateway listener detection.
|
||||||
@@ -92,23 +117,17 @@
|
|||||||
- Config: expand `~` in `CLAWDBOT_CONFIG_PATH` and common path-like config fields (including `plugins.load.paths`); guard invalid `$include` paths. (#731) — thanks @pasogott.
|
- Config: expand `~` in `CLAWDBOT_CONFIG_PATH` and common path-like config fields (including `plugins.load.paths`); guard invalid `$include` paths. (#731) — thanks @pasogott.
|
||||||
- Agents: stop pre-creating session transcripts so first user messages persist in JSONL history.
|
- Agents: stop pre-creating session transcripts so first user messages persist in JSONL history.
|
||||||
- Agents: skip pre-compaction memory flush when the session workspace is read-only.
|
- Agents: skip pre-compaction memory flush when the session workspace is read-only.
|
||||||
- Auto-reply: allow inline `/status` for allowlisted senders (stripped before the model); unauthorized senders see it as plain text.
|
|
||||||
- Auto-reply: include config-only allowlisted models in `/model` even when the catalog is partial.
|
|
||||||
- Auto-reply: allow fuzzy `/model` matches (e.g. `/model kimi` or `/model moonshot/kimi`) when unambiguous.
|
|
||||||
- Auto-reply: ignore inline `/status` directives unless the message is directive-only.
|
- Auto-reply: ignore inline `/status` directives unless the message is directive-only.
|
||||||
- CLI/Configure: enter the selected section immediately, then return to the section picker.
|
|
||||||
- CLI/Configure: apply the chosen auth model as default (skip the extra picker) and refresh the model catalog for new providers.
|
|
||||||
- Auto-reply: align `/think` default display with model reasoning defaults. (#751) — thanks @gabriel-trigo.
|
- Auto-reply: align `/think` default display with model reasoning defaults. (#751) — thanks @gabriel-trigo.
|
||||||
- Auto-reply: flush block reply buffers on tool boundaries. (#750) — thanks @sebslight.
|
- Auto-reply: flush block reply buffers on tool boundaries. (#750) — thanks @sebslight.
|
||||||
- Auto-reply: allow sender fallback for command authorization when `SenderId` is empty (WhatsApp self-chat). (#755) — thanks @juanpablodlc.
|
- Auto-reply: allow sender fallback for command authorization when `SenderId` is empty (WhatsApp self-chat). (#755) — thanks @juanpablodlc.
|
||||||
|
- Auto-reply: treat whitespace-only sender ids as missing for command authorization (WhatsApp self-chat). (#766) — thanks @steipete.
|
||||||
- Heartbeat: refresh prompt text for updated defaults.
|
- Heartbeat: refresh prompt text for updated defaults.
|
||||||
- Agents/Tools: use PowerShell on Windows to capture system utility output. (#748) — thanks @myfunc.
|
- Agents/Tools: use PowerShell on Windows to capture system utility output. (#748) — thanks @myfunc.
|
||||||
- Agents/Tools: normalize Claude Code-style read/write/edit params (file_path/old_string/new_string) and keep sandbox guards in place. (#768) — thanks @hsrvc.
|
|
||||||
- Docker: tolerate unset optional env vars in docker-setup.sh under strict mode. (#725) — thanks @petradonka.
|
- Docker: tolerate unset optional env vars in docker-setup.sh under strict mode. (#725) — thanks @petradonka.
|
||||||
- CLI/Update: preserve base environment when passing overrides to update subprocesses. (#713) — thanks @danielz1z.
|
- CLI/Update: preserve base environment when passing overrides to update subprocesses. (#713) — thanks @danielz1z.
|
||||||
- Agents: treat message tool errors as failures so fallback replies still send; require `to` + `message` for `action=send`. (#717) — thanks @theglove44.
|
- Agents: treat message tool errors as failures so fallback replies still send; require `to` + `message` for `action=send`. (#717) — thanks @theglove44.
|
||||||
- Agents: preserve reasoning items on tool-only turns.
|
- Agents: preserve reasoning items on tool-only turns.
|
||||||
- Agents: enforce `<final>` gating for reasoning-tag providers to prevent tag/reasoning leaks. (#754) — thanks @mcinteerj.
|
|
||||||
- Agents/Subagents: wait for completion before announcing, align wait timeout with run timeout, and make announce prompts more emphatic.
|
- Agents/Subagents: wait for completion before announcing, align wait timeout with run timeout, and make announce prompts more emphatic.
|
||||||
- Agents: route subagent transcripts to the target agent sessions directory and add regression coverage. (#708) — thanks @xMikeMickelson.
|
- Agents: route subagent transcripts to the target agent sessions directory and add regression coverage. (#708) — thanks @xMikeMickelson.
|
||||||
- Agents/Tools: preserve action enums when flattening tool schemas. (#708) — thanks @xMikeMickelson.
|
- Agents/Tools: preserve action enums when flattening tool schemas. (#708) — thanks @xMikeMickelson.
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
**Clawdbot** is a *personal AI assistant* you run on your own devices.
|
**Clawdbot** is a *personal AI assistant* you run on your own devices.
|
||||||
It answers you on the providers you already use (WhatsApp, Telegram, Slack, Discord, Signal, iMessage, WebChat), can speak and listen on macOS/iOS/Android, and can render a live Canvas you control. The Gateway is just the control plane — the product is the assistant.
|
It answers you on the providers you already use (WhatsApp, Telegram, Slack, Discord, Signal, iMessage, Microsoft Teams, WebChat), can speak and listen on macOS/iOS/Android, and can render a live Canvas you control. The Gateway is just the control plane — the product is the assistant.
|
||||||
|
|
||||||
If you want a personal, single-user assistant that feels local, fast, and always-on, this is it.
|
If you want a personal, single-user assistant that feels local, fast, and always-on, this is it.
|
||||||
|
|
||||||
@@ -64,7 +64,7 @@ clawdbot gateway --port 18789 --verbose
|
|||||||
# Send a message
|
# Send a message
|
||||||
clawdbot message send --to +1234567890 --message "Hello from Clawdbot"
|
clawdbot message send --to +1234567890 --message "Hello from Clawdbot"
|
||||||
|
|
||||||
# Talk to the assistant (optionally deliver back to WhatsApp/Telegram/Slack/Discord)
|
# Talk to the assistant (optionally deliver back to WhatsApp/Telegram/Slack/Discord/Microsoft Teams)
|
||||||
clawdbot agent --message "Ship checklist" --thinking high
|
clawdbot agent --message "Ship checklist" --thinking high
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -96,7 +96,7 @@ Clawdbot connects to real messaging surfaces. Treat inbound DMs as **untrusted i
|
|||||||
|
|
||||||
Full security guide: [Security](https://docs.clawd.bot/gateway/security)
|
Full security guide: [Security](https://docs.clawd.bot/gateway/security)
|
||||||
|
|
||||||
Default behavior on Telegram/WhatsApp/Signal/iMessage/Discord/Slack:
|
Default behavior on Telegram/WhatsApp/Signal/iMessage/Microsoft Teams/Discord/Slack:
|
||||||
- **DM pairing** (`dmPolicy="pairing"` / `discord.dm.policy="pairing"` / `slack.dm.policy="pairing"`): unknown senders receive a short pairing code and the bot does not process their message.
|
- **DM pairing** (`dmPolicy="pairing"` / `discord.dm.policy="pairing"` / `slack.dm.policy="pairing"`): unknown senders receive a short pairing code and the bot does not process their message.
|
||||||
- Approve with: `clawdbot pairing approve <provider> <code>` (then the sender is added to a local allowlist store).
|
- Approve with: `clawdbot pairing approve <provider> <code>` (then the sender is added to a local allowlist store).
|
||||||
- Public inbound DMs require an explicit opt-in: set `dmPolicy="open"` and include `"*"` in the provider allowlist (`allowFrom` / `discord.dm.allowFrom` / `slack.dm.allowFrom`).
|
- Public inbound DMs require an explicit opt-in: set `dmPolicy="open"` and include `"*"` in the provider allowlist (`allowFrom` / `discord.dm.allowFrom` / `slack.dm.allowFrom`).
|
||||||
@@ -106,7 +106,7 @@ Run `clawdbot doctor` to surface risky/misconfigured DM policies.
|
|||||||
## Highlights
|
## Highlights
|
||||||
|
|
||||||
- **[Local-first Gateway](https://docs.clawd.bot/gateway)** — single control plane for sessions, providers, tools, and events.
|
- **[Local-first Gateway](https://docs.clawd.bot/gateway)** — single control plane for sessions, providers, tools, and events.
|
||||||
- **[Multi-provider inbox](https://docs.clawd.bot/providers)** — WhatsApp, Telegram, Slack, Discord, Signal, iMessage, WebChat, macOS, iOS/Android.
|
- **[Multi-provider inbox](https://docs.clawd.bot/providers)** — WhatsApp, Telegram, Slack, Discord, Signal, iMessage, Microsoft Teams, WebChat, macOS, iOS/Android.
|
||||||
- **[Multi-agent routing](https://docs.clawd.bot/gateway/configuration)** — route inbound providers/accounts/peers to isolated agents (workspaces + per-agent sessions).
|
- **[Multi-agent routing](https://docs.clawd.bot/gateway/configuration)** — route inbound providers/accounts/peers to isolated agents (workspaces + per-agent sessions).
|
||||||
- **[Voice Wake](https://docs.clawd.bot/nodes/voicewake) + [Talk Mode](https://docs.clawd.bot/nodes/talk)** — always-on speech for macOS/iOS/Android with ElevenLabs.
|
- **[Voice Wake](https://docs.clawd.bot/nodes/voicewake) + [Talk Mode](https://docs.clawd.bot/nodes/talk)** — always-on speech for macOS/iOS/Android with ElevenLabs.
|
||||||
- **[Live Canvas](https://docs.clawd.bot/platforms/mac/canvas)** — agent-driven visual workspace with [A2UI](https://docs.clawd.bot/platforms/mac/canvas#canvas-a2ui).
|
- **[Live Canvas](https://docs.clawd.bot/platforms/mac/canvas)** — agent-driven visual workspace with [A2UI](https://docs.clawd.bot/platforms/mac/canvas#canvas-a2ui).
|
||||||
@@ -114,6 +114,10 @@ Run `clawdbot doctor` to surface risky/misconfigured DM policies.
|
|||||||
- **[Companion apps](https://docs.clawd.bot/platforms/macos)** — macOS menu bar app + iOS/Android [nodes](https://docs.clawd.bot/nodes).
|
- **[Companion apps](https://docs.clawd.bot/platforms/macos)** — macOS menu bar app + iOS/Android [nodes](https://docs.clawd.bot/nodes).
|
||||||
- **[Onboarding](https://docs.clawd.bot/start/wizard) + [skills](https://docs.clawd.bot/tools/skills)** — wizard-driven setup with bundled/managed/workspace skills.
|
- **[Onboarding](https://docs.clawd.bot/start/wizard) + [skills](https://docs.clawd.bot/tools/skills)** — wizard-driven setup with bundled/managed/workspace skills.
|
||||||
|
|
||||||
|
## Star History
|
||||||
|
|
||||||
|
[](https://www.star-history.com/#clawdbot/clawdbot&type=date&legend=top-left)
|
||||||
|
|
||||||
## Everything we built so far
|
## Everything we built so far
|
||||||
|
|
||||||
### Core platform
|
### Core platform
|
||||||
@@ -124,7 +128,7 @@ Run `clawdbot doctor` to surface risky/misconfigured DM policies.
|
|||||||
- [Media pipeline](https://docs.clawd.bot/nodes/images): images/audio/video, transcription hooks, size caps, temp file lifecycle. Audio details: [Audio](https://docs.clawd.bot/nodes/audio).
|
- [Media pipeline](https://docs.clawd.bot/nodes/images): images/audio/video, transcription hooks, size caps, temp file lifecycle. Audio details: [Audio](https://docs.clawd.bot/nodes/audio).
|
||||||
|
|
||||||
### Providers
|
### Providers
|
||||||
- [Providers](https://docs.clawd.bot/providers): [WhatsApp](https://docs.clawd.bot/providers/whatsapp) (Baileys), [Telegram](https://docs.clawd.bot/providers/telegram) (grammY), [Slack](https://docs.clawd.bot/providers/slack) (Bolt), [Discord](https://docs.clawd.bot/providers/discord) (discord.js), [Signal](https://docs.clawd.bot/providers/signal) (signal-cli), [iMessage](https://docs.clawd.bot/providers/imessage) (imsg), [WebChat](https://docs.clawd.bot/web/webchat).
|
- [Providers](https://docs.clawd.bot/providers): [WhatsApp](https://docs.clawd.bot/providers/whatsapp) (Baileys), [Telegram](https://docs.clawd.bot/providers/telegram) (grammY), [Slack](https://docs.clawd.bot/providers/slack) (Bolt), [Discord](https://docs.clawd.bot/providers/discord) (discord.js), [Signal](https://docs.clawd.bot/providers/signal) (signal-cli), [iMessage](https://docs.clawd.bot/providers/imessage) (imsg), [Microsoft Teams](https://docs.clawd.bot/providers/msteams) (Bot Framework), [WebChat](https://docs.clawd.bot/web/webchat).
|
||||||
- [Group routing](https://docs.clawd.bot/concepts/group-messages): mention gating, reply tags, per-provider chunking and routing. Provider rules: [Providers](https://docs.clawd.bot/providers).
|
- [Group routing](https://docs.clawd.bot/concepts/group-messages): mention gating, reply tags, per-provider chunking and routing. Provider rules: [Providers](https://docs.clawd.bot/providers).
|
||||||
|
|
||||||
### Apps + nodes
|
### Apps + nodes
|
||||||
@@ -155,7 +159,7 @@ Run `clawdbot doctor` to surface risky/misconfigured DM policies.
|
|||||||
## How it works (short)
|
## How it works (short)
|
||||||
|
|
||||||
```
|
```
|
||||||
WhatsApp / Telegram / Slack / Discord / Signal / iMessage / WebChat
|
WhatsApp / Telegram / Slack / Discord / Signal / iMessage / Microsoft Teams / WebChat
|
||||||
│
|
│
|
||||||
▼
|
▼
|
||||||
┌───────────────────────────────┐
|
┌───────────────────────────────┐
|
||||||
@@ -238,12 +242,12 @@ ClawdHub is a minimal skill registry. With ClawdHub enabled, the agent can searc
|
|||||||
|
|
||||||
## Chat commands
|
## Chat commands
|
||||||
|
|
||||||
Send these in WhatsApp/Telegram/Slack/WebChat (group commands are owner-only):
|
Send these in WhatsApp/Telegram/Slack/Microsoft Teams/WebChat (group commands are owner-only):
|
||||||
|
|
||||||
- `/status` — compact session status (model + tokens, cost when available)
|
- `/status` — compact session status (model + tokens, cost when available)
|
||||||
- `/new` or `/reset` — reset the session
|
- `/new` or `/reset` — reset the session
|
||||||
- `/compact` — compact session context (summary)
|
- `/compact` — compact session context (summary)
|
||||||
- `/think <level>` — off|minimal|low|medium|high
|
- `/think <level>` — off|minimal|low|medium|high|xhigh (GPT-5.2 + Codex models only)
|
||||||
- `/verbose on|off`
|
- `/verbose on|off`
|
||||||
- `/cost on|off` — append per-response token/cost usage lines
|
- `/cost on|off` — append per-response token/cost usage lines
|
||||||
- `/restart` — restart the gateway (owner-only in groups)
|
- `/restart` — restart the gateway (owner-only in groups)
|
||||||
@@ -356,6 +360,11 @@ Details: [Security guide](https://docs.clawd.bot/gateway/security) · [Docker +
|
|||||||
- macOS only; Messages must be signed in.
|
- macOS only; Messages must be signed in.
|
||||||
- If `imessage.groups` is set, it becomes a group allowlist; include `"*"` to allow all.
|
- If `imessage.groups` is set, it becomes a group allowlist; include `"*"` to allow all.
|
||||||
|
|
||||||
|
### [Microsoft Teams](https://docs.clawd.bot/providers/msteams)
|
||||||
|
|
||||||
|
- Configure a Teams app + Bot Framework, then add a `msteams` config section.
|
||||||
|
- Allowlist who can talk via `msteams.allowFrom`; group access via `msteams.groupAllowFrom` or `msteams.groupPolicy: "open"`.
|
||||||
|
|
||||||
### [WebChat](https://docs.clawd.bot/web/webchat)
|
### [WebChat](https://docs.clawd.bot/web/webchat)
|
||||||
|
|
||||||
- Uses the Gateway WebSocket; no separate WebChat port/config.
|
- Uses the Gateway WebSocket; no separate WebChat port/config.
|
||||||
@@ -458,20 +467,21 @@ Special thanks to @andrewting19 for the Anthropic OAuth tool-name fix.
|
|||||||
Thanks to all clawtributors:
|
Thanks to all clawtributors:
|
||||||
|
|
||||||
<p align="left">
|
<p align="left">
|
||||||
<a href="https://github.com/steipete"><img src="https://avatars.githubusercontent.com/u/58493?v=4&s=48" width="48" height="48" alt="steipete" title="steipete"/></a> <a href="https://github.com/joaohlisboa"><img src="https://avatars.githubusercontent.com/u/8200873?v=4&s=48" width="48" height="48" alt="joaohlisboa" title="joaohlisboa"/></a> <a href="https://github.com/mneves75"><img src="https://avatars.githubusercontent.com/u/2423436?v=4&s=48" width="48" height="48" alt="mneves75" title="mneves75"/></a> <a href="https://github.com/rahthakor"><img src="https://avatars.githubusercontent.com/u/8470553?v=4&s=48" width="48" height="48" alt="rahthakor" title="rahthakor"/></a> <a href="https://github.com/joshp123"><img src="https://avatars.githubusercontent.com/u/1497361?v=4&s=48" width="48" height="48" alt="joshp123" title="joshp123"/></a> <a href="https://github.com/mukhtharcm"><img src="https://avatars.githubusercontent.com/u/56378562?v=4&s=48" width="48" height="48" alt="mukhtharcm" title="mukhtharcm"/></a> <a href="https://github.com/maxsumrall"><img src="https://avatars.githubusercontent.com/u/628843?v=4&s=48" width="48" height="48" alt="maxsumrall" title="maxsumrall"/></a> <a href="https://github.com/xadenryan"><img src="https://avatars.githubusercontent.com/u/165437834?v=4&s=48" width="48" height="48" alt="xadenryan" title="xadenryan"/></a> <a href="https://github.com/tobiasbischoff"><img src="https://avatars.githubusercontent.com/u/711564?v=4&s=48" width="48" height="48" alt="Tobias Bischoff" title="Tobias Bischoff"/></a> <a href="https://github.com/magimetal"><img src="https://avatars.githubusercontent.com/u/36491250?v=4&s=48" width="48" height="48" alt="magimetal" title="magimetal"/></a>
|
<a href="https://github.com/steipete"><img src="https://avatars.githubusercontent.com/u/58493?v=4&s=48" width="48" height="48" alt="steipete" title="steipete"/></a> <a href="https://github.com/joaohlisboa"><img src="https://avatars.githubusercontent.com/u/8200873?v=4&s=48" width="48" height="48" alt="joaohlisboa" title="joaohlisboa"/></a> <a href="https://github.com/mneves75"><img src="https://avatars.githubusercontent.com/u/2423436?v=4&s=48" width="48" height="48" alt="mneves75" title="mneves75"/></a> <a href="https://github.com/rahthakor"><img src="https://avatars.githubusercontent.com/u/8470553?v=4&s=48" width="48" height="48" alt="rahthakor" title="rahthakor"/></a> <a href="https://github.com/joshp123"><img src="https://avatars.githubusercontent.com/u/1497361?v=4&s=48" width="48" height="48" alt="joshp123" title="joshp123"/></a> <a href="https://github.com/mukhtharcm"><img src="https://avatars.githubusercontent.com/u/56378562?v=4&s=48" width="48" height="48" alt="mukhtharcm" title="mukhtharcm"/></a> <a href="https://github.com/maxsumrall"><img src="https://avatars.githubusercontent.com/u/628843?v=4&s=48" width="48" height="48" alt="maxsumrall" title="maxsumrall"/></a> <a href="https://github.com/xadenryan"><img src="https://avatars.githubusercontent.com/u/165437834?v=4&s=48" width="48" height="48" alt="xadenryan" title="xadenryan"/></a> <a href="https://github.com/tobiasbischoff"><img src="https://avatars.githubusercontent.com/u/711564?v=4&s=48" width="48" height="48" alt="Tobias Bischoff" title="Tobias Bischoff"/></a> <a href="https://github.com/jeffersonwarrior"><img src="https://avatars.githubusercontent.com/u/89030989?v=4&s=48" width="48" height="48" alt="jeffersonwarrior" title="jeffersonwarrior"/></a>
|
||||||
<a href="https://github.com/NicholasSpisak"><img src="https://avatars.githubusercontent.com/u/129075147?v=4&s=48" width="48" height="48" alt="NicholasSpisak" title="NicholasSpisak"/></a> <a href="https://github.com/hsrvc"><img src="https://avatars.githubusercontent.com/u/129702169?v=4&s=48" width="48" height="48" alt="hsrvc" title="hsrvc"/></a> <a href="https://github.com/claude"><img src="https://avatars.githubusercontent.com/u/81847?v=4&s=48" width="48" height="48" alt="claude" title="claude"/></a> <a href="https://github.com/jamesgroat"><img src="https://avatars.githubusercontent.com/u/2634024?v=4&s=48" width="48" height="48" alt="jamesgroat" title="jamesgroat"/></a> <a href="https://github.com/dantelex"><img src="https://avatars.githubusercontent.com/u/631543?v=4&s=48" width="48" height="48" alt="dantelex" title="dantelex"/></a> <a href="https://github.com/daveonkels"><img src="https://avatars.githubusercontent.com/u/533642?v=4&s=48" width="48" height="48" alt="daveonkels" title="daveonkels"/></a> <a href="https://github.com/radek-paclt"><img src="https://avatars.githubusercontent.com/u/50451445?v=4&s=48" width="48" height="48" alt="radek-paclt" title="radek-paclt"/></a> <a href="https://github.com/jeffersonwarrior"><img src="https://avatars.githubusercontent.com/u/89030989?v=4&s=48" width="48" height="48" alt="jeffersonwarrior" title="jeffersonwarrior"/></a> <a href="https://github.com/mteam88"><img src="https://avatars.githubusercontent.com/u/84196639?v=4&s=48" width="48" height="48" alt="mteam88" title="mteam88"/></a> <a href="https://github.com/omniwired"><img src="https://avatars.githubusercontent.com/u/322761?v=4&s=48" width="48" height="48" alt="Eng. Juan Combetto" title="Eng. Juan Combetto"/></a>
|
<a href="https://github.com/hsrvc"><img src="https://avatars.githubusercontent.com/u/129702169?v=4&s=48" width="48" height="48" alt="hsrvc" title="hsrvc"/></a> <a href="https://github.com/magimetal"><img src="https://avatars.githubusercontent.com/u/36491250?v=4&s=48" width="48" height="48" alt="magimetal" title="magimetal"/></a> <a href="https://github.com/meaningfool"><img src="https://avatars.githubusercontent.com/u/2862331?v=4&s=48" width="48" height="48" alt="meaningfool" title="meaningfool"/></a> <a href="https://github.com/NicholasSpisak"><img src="https://avatars.githubusercontent.com/u/129075147?v=4&s=48" width="48" height="48" alt="NicholasSpisak" title="NicholasSpisak"/></a> <a href="https://github.com/AbhisekBasu1"><img src="https://avatars.githubusercontent.com/u/40645221?v=4&s=48" width="48" height="48" alt="abhisekbasu1" title="abhisekbasu1"/></a> <a href="https://github.com/claude"><img src="https://avatars.githubusercontent.com/u/81847?v=4&s=48" width="48" height="48" alt="claude" title="claude"/></a> <a href="https://github.com/jamesgroat"><img src="https://avatars.githubusercontent.com/u/2634024?v=4&s=48" width="48" height="48" alt="jamesgroat" title="jamesgroat"/></a> <a href="https://github.com/dantelex"><img src="https://avatars.githubusercontent.com/u/631543?v=4&s=48" width="48" height="48" alt="dantelex" title="dantelex"/></a> <a href="https://github.com/daveonkels"><img src="https://avatars.githubusercontent.com/u/533642?v=4&s=48" width="48" height="48" alt="daveonkels" title="daveonkels"/></a> <a href="https://github.com/vrknetha"><img src="https://avatars.githubusercontent.com/u/20596261?v=4&s=48" width="48" height="48" alt="vrknetha" title="vrknetha"/></a>
|
||||||
<a href="https://github.com/mbelinky"><img src="https://avatars.githubusercontent.com/u/132747814?v=4&s=48" width="48" height="48" alt="Mariano Belinky" title="Mariano Belinky"/></a> <a href="https://github.com/julianengel"><img src="https://avatars.githubusercontent.com/u/10634231?v=4&s=48" width="48" height="48" alt="julianengel" title="julianengel"/></a> <a href="https://github.com/benithors"><img src="https://avatars.githubusercontent.com/u/20652882?v=4&s=48" width="48" height="48" alt="benithors" title="benithors"/></a> <a href="https://github.com/sreekaransrinath"><img src="https://avatars.githubusercontent.com/u/50989977?v=4&s=48" width="48" height="48" alt="sreekaransrinath" title="sreekaransrinath"/></a> <a href="https://github.com/dbhurley"><img src="https://avatars.githubusercontent.com/u/5251425?v=4&s=48" width="48" height="48" alt="dbhurley" title="dbhurley"/></a> <a href="https://github.com/gupsammy"><img src="https://avatars.githubusercontent.com/u/20296019?v=4&s=48" width="48" height="48" alt="gupsammy" title="gupsammy"/></a> <a href="https://github.com/cristip73"><img src="https://avatars.githubusercontent.com/u/24499421?v=4&s=48" width="48" height="48" alt="cristip73" title="cristip73"/></a> <a href="https://github.com/nachoiacovino"><img src="https://avatars.githubusercontent.com/u/50103937?v=4&s=48" width="48" height="48" alt="nachoiacovino" title="nachoiacovino"/></a> <a href="https://github.com/vsabavat"><img src="https://avatars.githubusercontent.com/u/50385532?v=4&s=48" width="48" height="48" alt="Vasanth Rao Naik Sabavat" title="Vasanth Rao Naik Sabavat"/></a> <a href="https://github.com/lc0rp"><img src="https://avatars.githubusercontent.com/u/2609441?v=4&s=48" width="48" height="48" alt="lc0rp" title="lc0rp"/></a>
|
<a href="https://github.com/radek-paclt"><img src="https://avatars.githubusercontent.com/u/50451445?v=4&s=48" width="48" height="48" alt="radek-paclt" title="radek-paclt"/></a> <a href="https://github.com/mteam88"><img src="https://avatars.githubusercontent.com/u/84196639?v=4&s=48" width="48" height="48" alt="mteam88" title="mteam88"/></a> <a href="https://github.com/omniwired"><img src="https://avatars.githubusercontent.com/u/322761?v=4&s=48" width="48" height="48" alt="Eng. Juan Combetto" title="Eng. Juan Combetto"/></a> <a href="https://github.com/dbhurley"><img src="https://avatars.githubusercontent.com/u/5251425?v=4&s=48" width="48" height="48" alt="dbhurley" title="dbhurley"/></a> <a href="https://github.com/mbelinky"><img src="https://avatars.githubusercontent.com/u/132747814?v=4&s=48" width="48" height="48" alt="Mariano Belinky" title="Mariano Belinky"/></a> <a href="https://github.com/julianengel"><img src="https://avatars.githubusercontent.com/u/10634231?v=4&s=48" width="48" height="48" alt="julianengel" title="julianengel"/></a> <a href="https://github.com/benithors"><img src="https://avatars.githubusercontent.com/u/20652882?v=4&s=48" width="48" height="48" alt="benithors" title="benithors"/></a> <a href="https://github.com/sreekaransrinath"><img src="https://avatars.githubusercontent.com/u/50989977?v=4&s=48" width="48" height="48" alt="sreekaransrinath" title="sreekaransrinath"/></a> <a href="https://github.com/gupsammy"><img src="https://avatars.githubusercontent.com/u/20296019?v=4&s=48" width="48" height="48" alt="gupsammy" title="gupsammy"/></a> <a href="https://github.com/cristip73"><img src="https://avatars.githubusercontent.com/u/24499421?v=4&s=48" width="48" height="48" alt="cristip73" title="cristip73"/></a>
|
||||||
<a href="https://github.com/scald"><img src="https://avatars.githubusercontent.com/u/1215913?v=4&s=48" width="48" height="48" alt="scald" title="scald"/></a> <a href="https://github.com/andranik-sahakyan"><img src="https://avatars.githubusercontent.com/u/8908029?v=4&s=48" width="48" height="48" alt="andranik-sahakyan" title="andranik-sahakyan"/></a> <a href="https://github.com/Nachx639"><img src="https://avatars.githubusercontent.com/u/71144023?v=4&s=48" width="48" height="48" alt="nachx639" title="nachx639"/></a> <a href="https://github.com/sircrumpet"><img src="https://avatars.githubusercontent.com/u/4436535?v=4&s=48" width="48" height="48" alt="sircrumpet" title="sircrumpet"/></a> <a href="https://github.com/peschee"><img src="https://avatars.githubusercontent.com/u/63866?v=4&s=48" width="48" height="48" alt="peschee" title="peschee"/></a> <a href="https://github.com/rafaelreis-r"><img src="https://avatars.githubusercontent.com/u/57492577?v=4&s=48" width="48" height="48" alt="rafaelreis-r" title="rafaelreis-r"/></a> <a href="https://github.com/meaningfool"><img src="https://avatars.githubusercontent.com/u/2862331?v=4&s=48" width="48" height="48" alt="meaningfool" title="meaningfool"/></a> <a href="https://github.com/ratulsarna"><img src="https://avatars.githubusercontent.com/u/105903728?v=4&s=48" width="48" height="48" alt="ratulsarna" title="ratulsarna"/></a> <a href="https://github.com/lutr0"><img src="https://avatars.githubusercontent.com/u/76906369?v=4&s=48" width="48" height="48" alt="lutr0" title="lutr0"/></a> <a href="https://github.com/AbhisekBasu1"><img src="https://avatars.githubusercontent.com/u/40645221?v=4&s=48" width="48" height="48" alt="abhisekbasu1" title="abhisekbasu1"/></a>
|
<a href="https://github.com/nachoiacovino"><img src="https://avatars.githubusercontent.com/u/50103937?v=4&s=48" width="48" height="48" alt="nachoiacovino" title="nachoiacovino"/></a> <a href="https://github.com/vsabavat"><img src="https://avatars.githubusercontent.com/u/50385532?v=4&s=48" width="48" height="48" alt="Vasanth Rao Naik Sabavat" title="Vasanth Rao Naik Sabavat"/></a> <a href="https://github.com/lc0rp"><img src="https://avatars.githubusercontent.com/u/2609441?v=4&s=48" width="48" height="48" alt="lc0rp" title="lc0rp"/></a> <a href="https://github.com/scald"><img src="https://avatars.githubusercontent.com/u/1215913?v=4&s=48" width="48" height="48" alt="scald" title="scald"/></a> <a href="https://github.com/andranik-sahakyan"><img src="https://avatars.githubusercontent.com/u/8908029?v=4&s=48" width="48" height="48" alt="andranik-sahakyan" title="andranik-sahakyan"/></a> <a href="https://github.com/Nachx639"><img src="https://avatars.githubusercontent.com/u/71144023?v=4&s=48" width="48" height="48" alt="nachx639" title="nachx639"/></a> <a href="https://github.com/davidguttman"><img src="https://avatars.githubusercontent.com/u/431696?v=4&s=48" width="48" height="48" alt="davidguttman" title="davidguttman"/></a> <a href="https://github.com/sircrumpet"><img src="https://avatars.githubusercontent.com/u/4436535?v=4&s=48" width="48" height="48" alt="sircrumpet" title="sircrumpet"/></a> <a href="https://github.com/peschee"><img src="https://avatars.githubusercontent.com/u/63866?v=4&s=48" width="48" height="48" alt="peschee" title="peschee"/></a> <a href="https://github.com/rafaelreis-r"><img src="https://avatars.githubusercontent.com/u/57492577?v=4&s=48" width="48" height="48" alt="rafaelreis-r" title="rafaelreis-r"/></a>
|
||||||
<a href="https://github.com/thewilloftheshadow"><img src="https://avatars.githubusercontent.com/u/35580099?v=4&s=48" width="48" height="48" alt="thewilloftheshadow" title="thewilloftheshadow"/></a> <a href="https://github.com/emanuelst"><img src="https://avatars.githubusercontent.com/u/9994339?v=4&s=48" width="48" height="48" alt="emanuelst" title="emanuelst"/></a> <a href="https://github.com/KristijanJovanovski"><img src="https://avatars.githubusercontent.com/u/8942284?v=4&s=48" width="48" height="48" alt="KristijanJovanovski" title="KristijanJovanovski"/></a> <a href="https://github.com/osolmaz"><img src="https://avatars.githubusercontent.com/u/2453968?v=4&s=48" width="48" height="48" alt="osolmaz" title="osolmaz"/></a> <a href="https://github.com/kiranjd"><img src="https://avatars.githubusercontent.com/u/25822851?v=4&s=48" width="48" height="48" alt="kiranjd" title="kiranjd"/></a> <a href="https://github.com/sebslight"><img src="https://avatars.githubusercontent.com/u/19554889?v=4&s=48" width="48" height="48" alt="Sebastian Barrios" title="Sebastian Barrios"/></a> <a href="https://github.com/search?q=sheeek"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="sheeek" title="sheeek"/></a> <a href="https://github.com/onutc"><img src="https://avatars.githubusercontent.com/u/152018508?v=4&s=48" width="48" height="48" alt="onutc" title="onutc"/></a> <a href="https://github.com/CashWilliams"><img src="https://avatars.githubusercontent.com/u/613573?v=4&s=48" width="48" height="48" alt="CashWilliams" title="CashWilliams"/></a> <a href="https://github.com/ManuelHettich"><img src="https://avatars.githubusercontent.com/u/17690367?v=4&s=48" width="48" height="48" alt="manuelhettich" title="manuelhettich"/></a>
|
<a href="https://github.com/lutr0"><img src="https://avatars.githubusercontent.com/u/76906369?v=4&s=48" width="48" height="48" alt="lutr0" title="lutr0"/></a> <a href="https://github.com/thewilloftheshadow"><img src="https://avatars.githubusercontent.com/u/35580099?v=4&s=48" width="48" height="48" alt="thewilloftheshadow" title="thewilloftheshadow"/></a> <a href="https://github.com/emanuelst"><img src="https://avatars.githubusercontent.com/u/9994339?v=4&s=48" width="48" height="48" alt="emanuelst" title="emanuelst"/></a> <a href="https://github.com/KristijanJovanovski"><img src="https://avatars.githubusercontent.com/u/8942284?v=4&s=48" width="48" height="48" alt="KristijanJovanovski" title="KristijanJovanovski"/></a> <a href="https://github.com/osolmaz"><img src="https://avatars.githubusercontent.com/u/2453968?v=4&s=48" width="48" height="48" alt="osolmaz" title="osolmaz"/></a> <a href="https://github.com/kiranjd"><img src="https://avatars.githubusercontent.com/u/25822851?v=4&s=48" width="48" height="48" alt="kiranjd" title="kiranjd"/></a> <a href="https://github.com/sebslight"><img src="https://avatars.githubusercontent.com/u/19554889?v=4&s=48" width="48" height="48" alt="Sebastian Barrios" title="Sebastian Barrios"/></a> <a href="https://github.com/search?q=sheeek"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="sheeek" title="sheeek"/></a> <a href="https://github.com/onutc"><img src="https://avatars.githubusercontent.com/u/152018508?v=4&s=48" width="48" height="48" alt="onutc" title="onutc"/></a> <a href="https://github.com/CashWilliams"><img src="https://avatars.githubusercontent.com/u/613573?v=4&s=48" width="48" height="48" alt="CashWilliams" title="CashWilliams"/></a>
|
||||||
<a href="https://github.com/minghinmatthewlam"><img src="https://avatars.githubusercontent.com/u/14224566?v=4&s=48" width="48" height="48" alt="minghinmatthewlam" title="minghinmatthewlam"/></a> <a href="https://github.com/myfunc"><img src="https://avatars.githubusercontent.com/u/19294627?v=4&s=48" width="48" height="48" alt="myfunc" title="myfunc"/></a> <a href="https://github.com/buddyh"><img src="https://avatars.githubusercontent.com/u/31752869?v=4&s=48" width="48" height="48" alt="buddyh" title="buddyh"/></a> <a href="https://github.com/mcinteerj"><img src="https://avatars.githubusercontent.com/u/3613653?v=4&s=48" width="48" height="48" alt="mcinteerj" title="mcinteerj"/></a> <a href="https://github.com/timkrase"><img src="https://avatars.githubusercontent.com/u/38947626?v=4&s=48" width="48" height="48" alt="timkrase" title="timkrase"/></a> <a href="https://github.com/azade-c"><img src="https://avatars.githubusercontent.com/u/252790079?v=4&s=48" width="48" height="48" alt="azade-c" title="azade-c"/></a> <a href="https://github.com/obviyus"><img src="https://avatars.githubusercontent.com/u/22031114?v=4&s=48" width="48" height="48" alt="obviyus" title="obviyus"/></a> <a href="https://github.com/bjesuiter"><img src="https://avatars.githubusercontent.com/u/2365676?v=4&s=48" width="48" height="48" alt="bjesuiter" title="bjesuiter"/></a> <a href="https://github.com/superman32432432"><img src="https://avatars.githubusercontent.com/u/7228420?v=4&s=48" width="48" height="48" alt="superman32432432" title="superman32432432"/></a> <a href="https://github.com/search?q=Yurii%20Chukhlib"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Yurii Chukhlib" title="Yurii Chukhlib"/></a>
|
<a href="https://github.com/ManuelHettich"><img src="https://avatars.githubusercontent.com/u/17690367?v=4&s=48" width="48" height="48" alt="manuelhettich" title="manuelhettich"/></a> <a href="https://github.com/minghinmatthewlam"><img src="https://avatars.githubusercontent.com/u/14224566?v=4&s=48" width="48" height="48" alt="minghinmatthewlam" title="minghinmatthewlam"/></a> <a href="https://github.com/myfunc"><img src="https://avatars.githubusercontent.com/u/19294627?v=4&s=48" width="48" height="48" alt="myfunc" title="myfunc"/></a> <a href="https://github.com/buddyh"><img src="https://avatars.githubusercontent.com/u/31752869?v=4&s=48" width="48" height="48" alt="buddyh" title="buddyh"/></a> <a href="https://github.com/mcinteerj"><img src="https://avatars.githubusercontent.com/u/3613653?v=4&s=48" width="48" height="48" alt="mcinteerj" title="mcinteerj"/></a> <a href="https://github.com/timkrase"><img src="https://avatars.githubusercontent.com/u/38947626?v=4&s=48" width="48" height="48" alt="timkrase" title="timkrase"/></a> <a href="https://github.com/obviyus"><img src="https://avatars.githubusercontent.com/u/22031114?v=4&s=48" width="48" height="48" alt="obviyus" title="obviyus"/></a> <a href="https://github.com/azade-c"><img src="https://avatars.githubusercontent.com/u/252790079?v=4&s=48" width="48" height="48" alt="azade-c" title="azade-c"/></a> <a href="https://github.com/bjesuiter"><img src="https://avatars.githubusercontent.com/u/2365676?v=4&s=48" width="48" height="48" alt="bjesuiter" title="bjesuiter"/></a> <a href="https://github.com/superman32432432"><img src="https://avatars.githubusercontent.com/u/7228420?v=4&s=48" width="48" height="48" alt="superman32432432" title="superman32432432"/></a>
|
||||||
<a href="https://github.com/antons"><img src="https://avatars.githubusercontent.com/u/129705?v=4&s=48" width="48" height="48" alt="antons" title="antons"/></a> <a href="https://github.com/austinm911"><img src="https://avatars.githubusercontent.com/u/31991302?v=4&s=48" width="48" height="48" alt="austinm911" title="austinm911"/></a> <a href="https://github.com/apps/blacksmith-sh"><img src="https://avatars.githubusercontent.com/in/807020?v=4&s=48" width="48" height="48" alt="blacksmith-sh[bot]" title="blacksmith-sh[bot]"/></a> <a href="https://github.com/imfing"><img src="https://avatars.githubusercontent.com/u/5097752?v=4&s=48" width="48" height="48" alt="imfing" title="imfing"/></a> <a href="https://github.com/jarvis-medmatic"><img src="https://avatars.githubusercontent.com/u/252428873?v=4&s=48" width="48" height="48" alt="jarvis-medmatic" title="jarvis-medmatic"/></a> <a href="https://github.com/mahmoudashraf93"><img src="https://avatars.githubusercontent.com/u/9130129?v=4&s=48" width="48" height="48" alt="mahmoudashraf93" title="mahmoudashraf93"/></a> <a href="https://github.com/petter-b"><img src="https://avatars.githubusercontent.com/u/62076402?v=4&s=48" width="48" height="48" alt="petter-b" title="petter-b"/></a> <a href="https://github.com/pkrmf"><img src="https://avatars.githubusercontent.com/u/1714267?v=4&s=48" width="48" height="48" alt="pkrmf" title="pkrmf"/></a> <a href="https://github.com/RandyVentures"><img src="https://avatars.githubusercontent.com/u/149904821?v=4&s=48" width="48" height="48" alt="RandyVentures" title="RandyVentures"/></a> <a href="https://github.com/dan-dr"><img src="https://avatars.githubusercontent.com/u/6669808?v=4&s=48" width="48" height="48" alt="dan-dr" title="dan-dr"/></a>
|
<a href="https://github.com/search?q=Yurii%20Chukhlib"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Yurii Chukhlib" title="Yurii Chukhlib"/></a> <a href="https://github.com/antons"><img src="https://avatars.githubusercontent.com/u/129705?v=4&s=48" width="48" height="48" alt="antons" title="antons"/></a> <a href="https://github.com/austinm911"><img src="https://avatars.githubusercontent.com/u/31991302?v=4&s=48" width="48" height="48" alt="austinm911" title="austinm911"/></a> <a href="https://github.com/apps/blacksmith-sh"><img src="https://avatars.githubusercontent.com/in/807020?v=4&s=48" width="48" height="48" alt="blacksmith-sh[bot]" title="blacksmith-sh[bot]"/></a> <a href="https://github.com/HeimdallStrategy"><img src="https://avatars.githubusercontent.com/u/223014405?v=4&s=48" width="48" height="48" alt="HeimdallStrategy" title="HeimdallStrategy"/></a> <a href="https://github.com/imfing"><img src="https://avatars.githubusercontent.com/u/5097752?v=4&s=48" width="48" height="48" alt="imfing" title="imfing"/></a> <a href="https://github.com/jarvis-medmatic"><img src="https://avatars.githubusercontent.com/u/252428873?v=4&s=48" width="48" height="48" alt="jarvis-medmatic" title="jarvis-medmatic"/></a> <a href="https://github.com/mahmoudashraf93"><img src="https://avatars.githubusercontent.com/u/9130129?v=4&s=48" width="48" height="48" alt="mahmoudashraf93" title="mahmoudashraf93"/></a> <a href="https://github.com/petter-b"><img src="https://avatars.githubusercontent.com/u/62076402?v=4&s=48" width="48" height="48" alt="petter-b" title="petter-b"/></a> <a href="https://github.com/pkrmf"><img src="https://avatars.githubusercontent.com/u/1714267?v=4&s=48" width="48" height="48" alt="pkrmf" title="pkrmf"/></a>
|
||||||
<a href="https://github.com/HeimdallStrategy"><img src="https://avatars.githubusercontent.com/u/223014405?v=4&s=48" width="48" height="48" alt="HeimdallStrategy" title="HeimdallStrategy"/></a> <a href="https://github.com/jalehman"><img src="https://avatars.githubusercontent.com/u/550978?v=4&s=48" width="48" height="48" alt="jalehman" title="jalehman"/></a> <a href="https://github.com/jonasjancarik"><img src="https://avatars.githubusercontent.com/u/2459191?v=4&s=48" width="48" height="48" alt="jonasjancarik" title="jonasjancarik"/></a> <a href="https://github.com/neist"><img src="https://avatars.githubusercontent.com/u/1029724?v=4&s=48" width="48" height="48" alt="neist" title="neist"/></a> <a href="https://github.com/Iamadig"><img src="https://avatars.githubusercontent.com/u/102129234?v=4&s=48" width="48" height="48" alt="iamadig" title="iamadig"/></a> <a href="https://github.com/koala73"><img src="https://avatars.githubusercontent.com/u/996596?v=4&s=48" width="48" height="48" alt="koala73" title="koala73"/></a> <a href="https://github.com/manmal"><img src="https://avatars.githubusercontent.com/u/142797?v=4&s=48" width="48" height="48" alt="manmal" title="manmal"/></a> <a href="https://github.com/ogulcancelik"><img src="https://avatars.githubusercontent.com/u/7064011?v=4&s=48" width="48" height="48" alt="ogulcancelik" title="ogulcancelik"/></a> <a href="https://github.com/pasogott"><img src="https://avatars.githubusercontent.com/u/23458152?v=4&s=48" width="48" height="48" alt="pasogott" title="pasogott"/></a> <a href="https://github.com/petradonka"><img src="https://avatars.githubusercontent.com/u/7353770?v=4&s=48" width="48" height="48" alt="petradonka" title="petradonka"/></a>
|
<a href="https://github.com/RandyVentures"><img src="https://avatars.githubusercontent.com/u/149904821?v=4&s=48" width="48" height="48" alt="RandyVentures" title="RandyVentures"/></a> <a href="https://github.com/dan-dr"><img src="https://avatars.githubusercontent.com/u/6669808?v=4&s=48" width="48" height="48" alt="dan-dr" title="dan-dr"/></a> <a href="https://github.com/jalehman"><img src="https://avatars.githubusercontent.com/u/550978?v=4&s=48" width="48" height="48" alt="jalehman" title="jalehman"/></a> <a href="https://github.com/jonasjancarik"><img src="https://avatars.githubusercontent.com/u/2459191?v=4&s=48" width="48" height="48" alt="jonasjancarik" title="jonasjancarik"/></a> <a href="https://github.com/search?q=Keith%20the%20Silly%20Goose"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Keith the Silly Goose" title="Keith the Silly Goose"/></a> <a href="https://github.com/search?q=L36%20Server"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="L36 Server" title="L36 Server"/></a> <a href="https://github.com/mitschabaude-bot"><img src="https://avatars.githubusercontent.com/u/247582884?v=4&s=48" width="48" height="48" alt="mitschabaude-bot" title="mitschabaude-bot"/></a> <a href="https://github.com/neist"><img src="https://avatars.githubusercontent.com/u/1029724?v=4&s=48" width="48" height="48" alt="neist" title="neist"/></a> <a href="https://github.com/search?q=Friederike%20Seiler"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Friederike Seiler" title="Friederike Seiler"/></a> <a href="https://github.com/gabriel-trigo"><img src="https://avatars.githubusercontent.com/u/38991125?v=4&s=48" width="48" height="48" alt="gabriel-trigo" title="gabriel-trigo"/></a>
|
||||||
<a href="https://github.com/VACInc"><img src="https://avatars.githubusercontent.com/u/3279061?v=4&s=48" width="48" height="48" alt="VACInc" title="VACInc"/></a> <a href="https://github.com/zats"><img src="https://avatars.githubusercontent.com/u/2688806?v=4&s=48" width="48" height="48" alt="zats" title="zats"/></a> <a href="https://github.com/search?q=Chris%20Taylor"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Chris Taylor" title="Chris Taylor"/></a> <a href="https://github.com/djangonavarro220"><img src="https://avatars.githubusercontent.com/u/251162586?v=4&s=48" width="48" height="48" alt="Django Navarro" title="Django Navarro"/></a> <a href="https://github.com/gabriel-trigo"><img src="https://avatars.githubusercontent.com/u/38991125?v=4&s=48" width="48" height="48" alt="gabriel-trigo" title="gabriel-trigo"/></a> <a href="https://github.com/search?q=Kit"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Kit" title="Kit"/></a> <a href="https://github.com/search?q=L36%20Server"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="L36 Server" title="L36 Server"/></a> <a href="https://github.com/ngutman"><img src="https://avatars.githubusercontent.com/u/1540134?v=4&s=48" width="48" height="48" alt="ngutman" title="ngutman"/></a> <a href="https://github.com/pcty-nextgen-service-account"><img src="https://avatars.githubusercontent.com/u/112553441?v=4&s=48" width="48" height="48" alt="pcty-nextgen-service-account" title="pcty-nextgen-service-account"/></a> <a href="https://github.com/rubyrunsstuff"><img src="https://avatars.githubusercontent.com/u/246602379?v=4&s=48" width="48" height="48" alt="rubyrunsstuff" title="rubyrunsstuff"/></a>
|
<a href="https://github.com/Iamadig"><img src="https://avatars.githubusercontent.com/u/102129234?v=4&s=48" width="48" height="48" alt="iamadig" title="iamadig"/></a> <a href="https://github.com/search?q=Kit"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Kit" title="Kit"/></a> <a href="https://github.com/koala73"><img src="https://avatars.githubusercontent.com/u/996596?v=4&s=48" width="48" height="48" alt="koala73" title="koala73"/></a> <a href="https://github.com/manmal"><img src="https://avatars.githubusercontent.com/u/142797?v=4&s=48" width="48" height="48" alt="manmal" title="manmal"/></a> <a href="https://github.com/ogulcancelik"><img src="https://avatars.githubusercontent.com/u/7064011?v=4&s=48" width="48" height="48" alt="ogulcancelik" title="ogulcancelik"/></a> <a href="https://github.com/pasogott"><img src="https://avatars.githubusercontent.com/u/23458152?v=4&s=48" width="48" height="48" alt="pasogott" title="pasogott"/></a> <a href="https://github.com/petradonka"><img src="https://avatars.githubusercontent.com/u/7353770?v=4&s=48" width="48" height="48" alt="petradonka" title="petradonka"/></a> <a href="https://github.com/roshanasingh4"><img src="https://avatars.githubusercontent.com/u/88576930?v=4&s=48" width="48" height="48" alt="roshanasingh4" title="roshanasingh4"/></a> <a href="https://github.com/VACInc"><img src="https://avatars.githubusercontent.com/u/3279061?v=4&s=48" width="48" height="48" alt="VACInc" title="VACInc"/></a> <a href="https://github.com/zats"><img src="https://avatars.githubusercontent.com/u/2688806?v=4&s=48" width="48" height="48" alt="zats" title="zats"/></a>
|
||||||
<a href="https://github.com/Syhids"><img src="https://avatars.githubusercontent.com/u/671202?v=4&s=48" width="48" height="48" alt="Syhids" title="Syhids"/></a> <a href="https://github.com/danielz1z"><img src="https://avatars.githubusercontent.com/u/235270390?v=4&s=48" width="48" height="48" alt="danielz1z" title="danielz1z"/></a> <a href="https://github.com/erik-agens"><img src="https://avatars.githubusercontent.com/u/80908960?v=4&s=48" width="48" height="48" alt="erik-agens" title="erik-agens"/></a> <a href="https://github.com/erikpr1994"><img src="https://avatars.githubusercontent.com/u/6299331?v=4&s=48" width="48" height="48" alt="erikpr1994" title="erikpr1994"/></a> <a href="https://github.com/fcatuhe"><img src="https://avatars.githubusercontent.com/u/17382215?v=4&s=48" width="48" height="48" alt="fcatuhe" title="fcatuhe"/></a> <a href="https://github.com/henrino3"><img src="https://avatars.githubusercontent.com/u/4260288?v=4&s=48" width="48" height="48" alt="henrino3" title="henrino3"/></a> <a href="https://github.com/jayhickey"><img src="https://avatars.githubusercontent.com/u/1676460?v=4&s=48" width="48" height="48" alt="jayhickey" title="jayhickey"/></a> <a href="https://github.com/jdrhyne"><img src="https://avatars.githubusercontent.com/u/7828464?v=4&s=48" width="48" height="48" alt="Jonathan D. Rhyne (DJ-D)" title="Jonathan D. Rhyne (DJ-D)"/></a> <a href="https://github.com/juanpablodlc"><img src="https://avatars.githubusercontent.com/u/92012363?v=4&s=48" width="48" height="48" alt="juanpablodlc" title="juanpablodlc"/></a> <a href="https://github.com/jverdi"><img src="https://avatars.githubusercontent.com/u/345050?v=4&s=48" width="48" height="48" alt="jverdi" title="jverdi"/></a>
|
<a href="https://github.com/search?q=Chris%20Taylor"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Chris Taylor" title="Chris Taylor"/></a> <a href="https://github.com/djangonavarro220"><img src="https://avatars.githubusercontent.com/u/251162586?v=4&s=48" width="48" height="48" alt="Django Navarro" title="Django Navarro"/></a> <a href="https://github.com/ngutman"><img src="https://avatars.githubusercontent.com/u/1540134?v=4&s=48" width="48" height="48" alt="ngutman" title="ngutman"/></a> <a href="https://github.com/pcty-nextgen-service-account"><img src="https://avatars.githubusercontent.com/u/112553441?v=4&s=48" width="48" height="48" alt="pcty-nextgen-service-account" title="pcty-nextgen-service-account"/></a> <a href="https://github.com/rubyrunsstuff"><img src="https://avatars.githubusercontent.com/u/246602379?v=4&s=48" width="48" height="48" alt="rubyrunsstuff" title="rubyrunsstuff"/></a> <a href="https://github.com/Syhids"><img src="https://avatars.githubusercontent.com/u/671202?v=4&s=48" width="48" height="48" alt="Syhids" title="Syhids"/></a> <a href="https://github.com/search?q=Aaron%20Konyer"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Aaron Konyer" title="Aaron Konyer"/></a> <a href="https://github.com/danielz1z"><img src="https://avatars.githubusercontent.com/u/235270390?v=4&s=48" width="48" height="48" alt="danielz1z" title="danielz1z"/></a> <a href="https://github.com/erik-agens"><img src="https://avatars.githubusercontent.com/u/80908960?v=4&s=48" width="48" height="48" alt="erik-agens" title="erik-agens"/></a> <a href="https://github.com/erikpr1994"><img src="https://avatars.githubusercontent.com/u/6299331?v=4&s=48" width="48" height="48" alt="erikpr1994" title="erikpr1994"/></a>
|
||||||
<a href="https://github.com/search?q=Keith%20the%20Silly%20Goose"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Keith the Silly Goose" title="Keith the Silly Goose"/></a> <a href="https://github.com/mitschabaude-bot"><img src="https://avatars.githubusercontent.com/u/247582884?v=4&s=48" width="48" height="48" alt="mitschabaude-bot" title="mitschabaude-bot"/></a> <a href="https://github.com/mjrussell"><img src="https://avatars.githubusercontent.com/u/1641895?v=4&s=48" width="48" height="48" alt="mjrussell" title="mjrussell"/></a> <a href="https://github.com/oswalpalash"><img src="https://avatars.githubusercontent.com/u/6431196?v=4&s=48" width="48" height="48" alt="oswalpalash" title="oswalpalash"/></a> <a href="https://github.com/p6l-richard"><img src="https://avatars.githubusercontent.com/u/18185649?v=4&s=48" width="48" height="48" alt="p6l-richard" title="p6l-richard"/></a> <a href="https://github.com/philipp-spiess"><img src="https://avatars.githubusercontent.com/u/458591?v=4&s=48" width="48" height="48" alt="philipp-spiess" title="philipp-spiess"/></a> <a href="https://github.com/search?q=Sash%20Catanzarite"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Sash Catanzarite" title="Sash Catanzarite"/></a> <a href="https://github.com/search?q=VAC"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="VAC" title="VAC"/></a> <a href="https://github.com/adam91holt"><img src="https://avatars.githubusercontent.com/u/9592417?v=4&s=48" width="48" height="48" alt="adam91holt" title="adam91holt"/></a> <a href="https://github.com/search?q=alejandro%20maza"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="alejandro maza" title="alejandro maza"/></a>
|
<a href="https://github.com/fcatuhe"><img src="https://avatars.githubusercontent.com/u/17382215?v=4&s=48" width="48" height="48" alt="fcatuhe" title="fcatuhe"/></a> <a href="https://github.com/gumadeiras"><img src="https://avatars.githubusercontent.com/u/5599352?v=4&s=48" width="48" height="48" alt="gumadeiras" title="gumadeiras"/></a> <a href="https://github.com/henrino3"><img src="https://avatars.githubusercontent.com/u/4260288?v=4&s=48" width="48" height="48" alt="henrino3" title="henrino3"/></a> <a href="https://github.com/jayhickey"><img src="https://avatars.githubusercontent.com/u/1676460?v=4&s=48" width="48" height="48" alt="jayhickey" title="jayhickey"/></a> <a href="https://github.com/jdrhyne"><img src="https://avatars.githubusercontent.com/u/7828464?v=4&s=48" width="48" height="48" alt="Jonathan D. Rhyne (DJ-D)" title="Jonathan D. Rhyne (DJ-D)"/></a> <a href="https://github.com/juanpablodlc"><img src="https://avatars.githubusercontent.com/u/92012363?v=4&s=48" width="48" height="48" alt="juanpablodlc" title="juanpablodlc"/></a> <a href="https://github.com/jverdi"><img src="https://avatars.githubusercontent.com/u/345050?v=4&s=48" width="48" height="48" alt="jverdi" title="jverdi"/></a> <a href="https://github.com/mickahouan"><img src="https://avatars.githubusercontent.com/u/31423109?v=4&s=48" width="48" height="48" alt="mickahouan" title="mickahouan"/></a> <a href="https://github.com/mjrussell"><img src="https://avatars.githubusercontent.com/u/1641895?v=4&s=48" width="48" height="48" alt="mjrussell" title="mjrussell"/></a> <a href="https://github.com/oswalpalash"><img src="https://avatars.githubusercontent.com/u/6431196?v=4&s=48" width="48" height="48" alt="oswalpalash" title="oswalpalash"/></a>
|
||||||
<a href="https://github.com/andrewting19"><img src="https://avatars.githubusercontent.com/u/10536704?v=4&s=48" width="48" height="48" alt="andrewting19" title="andrewting19"/></a> <a href="https://github.com/Asleep123"><img src="https://avatars.githubusercontent.com/u/122379135?v=4&s=48" width="48" height="48" alt="Asleep123" title="Asleep123"/></a> <a href="https://github.com/bolismauro"><img src="https://avatars.githubusercontent.com/u/771999?v=4&s=48" width="48" height="48" alt="bolismauro" title="bolismauro"/></a> <a href="https://github.com/cash-echo-bot"><img src="https://avatars.githubusercontent.com/u/252747386?v=4&s=48" width="48" height="48" alt="cash-echo-bot" title="cash-echo-bot"/></a> <a href="https://github.com/search?q=Clawd"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Clawd" title="Clawd"/></a> <a href="https://github.com/conhecendocontato"><img src="https://avatars.githubusercontent.com/u/82890727?v=4&s=48" width="48" height="48" alt="conhecendocontato" title="conhecendocontato"/></a> <a href="https://github.com/evalexpr"><img src="https://avatars.githubusercontent.com/u/23485511?v=4&s=48" width="48" height="48" alt="evalexpr" title="evalexpr"/></a> <a href="https://github.com/gtsifrikas"><img src="https://avatars.githubusercontent.com/u/8904378?v=4&s=48" width="48" height="48" alt="gtsifrikas" title="gtsifrikas"/></a> <a href="https://github.com/HazAT"><img src="https://avatars.githubusercontent.com/u/363802?v=4&s=48" width="48" height="48" alt="HazAT" title="HazAT"/></a> <a href="https://github.com/hrdwdmrbl"><img src="https://avatars.githubusercontent.com/u/554881?v=4&s=48" width="48" height="48" alt="hrdwdmrbl" title="hrdwdmrbl"/></a>
|
<a href="https://github.com/p6l-richard"><img src="https://avatars.githubusercontent.com/u/18185649?v=4&s=48" width="48" height="48" alt="p6l-richard" title="p6l-richard"/></a> <a href="https://github.com/philipp-spiess"><img src="https://avatars.githubusercontent.com/u/458591?v=4&s=48" width="48" height="48" alt="philipp-spiess" title="philipp-spiess"/></a> <a href="https://github.com/search?q=Sash%20Catanzarite"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Sash Catanzarite" title="Sash Catanzarite"/></a> <a href="https://github.com/search?q=VAC"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="VAC" title="VAC"/></a> <a href="https://github.com/zknicker"><img src="https://avatars.githubusercontent.com/u/1164085?v=4&s=48" width="48" height="48" alt="zknicker" title="zknicker"/></a> <a href="https://github.com/adam91holt"><img src="https://avatars.githubusercontent.com/u/9592417?v=4&s=48" width="48" height="48" alt="adam91holt" title="adam91holt"/></a> <a href="https://github.com/search?q=alejandro%20maza"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="alejandro maza" title="alejandro maza"/></a> <a href="https://github.com/andrewting19"><img src="https://avatars.githubusercontent.com/u/10536704?v=4&s=48" width="48" height="48" alt="andrewting19" title="andrewting19"/></a> <a href="https://github.com/Asleep123"><img src="https://avatars.githubusercontent.com/u/122379135?v=4&s=48" width="48" height="48" alt="Asleep123" title="Asleep123"/></a> <a href="https://github.com/bolismauro"><img src="https://avatars.githubusercontent.com/u/771999?v=4&s=48" width="48" height="48" alt="bolismauro" title="bolismauro"/></a>
|
||||||
<a href="https://github.com/hugobarauna"><img src="https://avatars.githubusercontent.com/u/2719?v=4&s=48" width="48" height="48" alt="hugobarauna" title="hugobarauna"/></a> <a href="https://github.com/search?q=Jarvis"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Jarvis" title="Jarvis"/></a> <a href="https://github.com/kitze"><img src="https://avatars.githubusercontent.com/u/1160594?v=4&s=48" width="48" height="48" alt="kitze" title="kitze"/></a> <a href="https://github.com/kkarimi"><img src="https://avatars.githubusercontent.com/u/875218?v=4&s=48" width="48" height="48" alt="kkarimi" title="kkarimi"/></a> <a href="https://github.com/levifig"><img src="https://avatars.githubusercontent.com/u/1605?v=4&s=48" width="48" height="48" alt="levifig" title="levifig"/></a> <a href="https://github.com/search?q=Lloyd"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Lloyd" title="Lloyd"/></a> <a href="https://github.com/loukotal"><img src="https://avatars.githubusercontent.com/u/18210858?v=4&s=48" width="48" height="48" alt="loukotal" title="loukotal"/></a> <a href="https://github.com/martinpucik"><img src="https://avatars.githubusercontent.com/u/5503097?v=4&s=48" width="48" height="48" alt="martinpucik" title="martinpucik"/></a> <a href="https://github.com/mickahouan"><img src="https://avatars.githubusercontent.com/u/31423109?v=4&s=48" width="48" height="48" alt="mickahouan" title="mickahouan"/></a> <a href="https://github.com/search?q=Miles"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Miles" title="Miles"/></a>
|
<a href="https://github.com/cash-echo-bot"><img src="https://avatars.githubusercontent.com/u/252747386?v=4&s=48" width="48" height="48" alt="cash-echo-bot" title="cash-echo-bot"/></a> <a href="https://github.com/search?q=Clawd"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Clawd" title="Clawd"/></a> <a href="https://github.com/conhecendocontato"><img src="https://avatars.githubusercontent.com/u/82890727?v=4&s=48" width="48" height="48" alt="conhecendocontato" title="conhecendocontato"/></a> <a href="https://github.com/search?q=Drake%20Thomsen"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Drake Thomsen" title="Drake Thomsen"/></a> <a href="https://github.com/evalexpr"><img src="https://avatars.githubusercontent.com/u/23485511?v=4&s=48" width="48" height="48" alt="evalexpr" title="evalexpr"/></a> <a href="https://github.com/gtsifrikas"><img src="https://avatars.githubusercontent.com/u/8904378?v=4&s=48" width="48" height="48" alt="gtsifrikas" title="gtsifrikas"/></a> <a href="https://github.com/HazAT"><img src="https://avatars.githubusercontent.com/u/363802?v=4&s=48" width="48" height="48" alt="HazAT" title="HazAT"/></a> <a href="https://github.com/hrdwdmrbl"><img src="https://avatars.githubusercontent.com/u/554881?v=4&s=48" width="48" height="48" alt="hrdwdmrbl" title="hrdwdmrbl"/></a> <a href="https://github.com/hugobarauna"><img src="https://avatars.githubusercontent.com/u/2719?v=4&s=48" width="48" height="48" alt="hugobarauna" title="hugobarauna"/></a> <a href="https://github.com/search?q=Jarvis"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Jarvis" title="Jarvis"/></a>
|
||||||
<a href="https://github.com/mrdbstn"><img src="https://avatars.githubusercontent.com/u/58957632?v=4&s=48" width="48" height="48" alt="mrdbstn" title="mrdbstn"/></a> <a href="https://github.com/MSch"><img src="https://avatars.githubusercontent.com/u/7475?v=4&s=48" width="48" height="48" alt="MSch" title="MSch"/></a> <a href="https://github.com/nexty5870"><img src="https://avatars.githubusercontent.com/u/3869659?v=4&s=48" width="48" height="48" alt="nexty5870" title="nexty5870"/></a> <a href="https://github.com/prathamdby"><img src="https://avatars.githubusercontent.com/u/134331217?v=4&s=48" width="48" height="48" alt="prathamdby" title="prathamdby"/></a> <a href="https://github.com/reeltimeapps"><img src="https://avatars.githubusercontent.com/u/637338?v=4&s=48" width="48" height="48" alt="reeltimeapps" title="reeltimeapps"/></a> <a href="https://github.com/RLTCmpe"><img src="https://avatars.githubusercontent.com/u/10762242?v=4&s=48" width="48" height="48" alt="RLTCmpe" title="RLTCmpe"/></a> <a href="https://github.com/search?q=Rolf%20Fredheim"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Rolf Fredheim" title="Rolf Fredheim"/></a> <a href="https://github.com/roshanasingh4"><img src="https://avatars.githubusercontent.com/u/88576930?v=4&s=48" width="48" height="48" alt="roshanasingh4" title="roshanasingh4"/></a> <a href="https://github.com/search?q=Samrat%20Jha"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Samrat Jha" title="Samrat Jha"/></a> <a href="https://github.com/snopoke"><img src="https://avatars.githubusercontent.com/u/249606?v=4&s=48" width="48" height="48" alt="snopoke" title="snopoke"/></a>
|
<a href="https://github.com/kitze"><img src="https://avatars.githubusercontent.com/u/1160594?v=4&s=48" width="48" height="48" alt="kitze" title="kitze"/></a> <a href="https://github.com/kkarimi"><img src="https://avatars.githubusercontent.com/u/875218?v=4&s=48" width="48" height="48" alt="kkarimi" title="kkarimi"/></a> <a href="https://github.com/levifig"><img src="https://avatars.githubusercontent.com/u/1605?v=4&s=48" width="48" height="48" alt="levifig" title="levifig"/></a> <a href="https://github.com/search?q=Lloyd"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Lloyd" title="Lloyd"/></a> <a href="https://github.com/loukotal"><img src="https://avatars.githubusercontent.com/u/18210858?v=4&s=48" width="48" height="48" alt="loukotal" title="loukotal"/></a> <a href="https://github.com/search?q=Marc"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Marc" title="Marc"/></a> <a href="https://github.com/martinpucik"><img src="https://avatars.githubusercontent.com/u/5503097?v=4&s=48" width="48" height="48" alt="martinpucik" title="martinpucik"/></a> <a href="https://github.com/search?q=Miles"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Miles" title="Miles"/></a> <a href="https://github.com/mrdbstn"><img src="https://avatars.githubusercontent.com/u/58957632?v=4&s=48" width="48" height="48" alt="mrdbstn" title="mrdbstn"/></a> <a href="https://github.com/MSch"><img src="https://avatars.githubusercontent.com/u/7475?v=4&s=48" width="48" height="48" alt="MSch" title="MSch"/></a>
|
||||||
<a href="https://github.com/search?q=The%20Admiral"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="The Admiral" title="The Admiral"/></a> <a href="https://github.com/wes-davis"><img src="https://avatars.githubusercontent.com/u/16506720?v=4&s=48" width="48" height="48" alt="wes-davis" title="wes-davis"/></a> <a href="https://github.com/wstock"><img src="https://avatars.githubusercontent.com/u/1394687?v=4&s=48" width="48" height="48" alt="wstock" title="wstock"/></a> <a href="https://github.com/YuriNachos"><img src="https://avatars.githubusercontent.com/u/19365375?v=4&s=48" width="48" height="48" alt="YuriNachos" title="YuriNachos"/></a> <a href="https://github.com/search?q=Zach%20Knickerbocker"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Zach Knickerbocker" title="Zach Knickerbocker"/></a> <a href="https://github.com/zknicker"><img src="https://avatars.githubusercontent.com/u/1164085?v=4&s=48" width="48" height="48" alt="zknicker" title="zknicker"/></a> <a href="https://github.com/search?q=Azade"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Azade" title="Azade"/></a> <a href="https://github.com/carlulsoe"><img src="https://avatars.githubusercontent.com/u/34673973?v=4&s=48" width="48" height="48" alt="carlulsoe" title="carlulsoe"/></a> <a href="https://github.com/search?q=ddyo"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="ddyo" title="ddyo"/></a> <a href="https://github.com/search?q=Erik"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Erik" title="Erik"/></a>
|
<a href="https://github.com/search?q=Mustafa%20Tag%20Eldeen"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Mustafa Tag Eldeen" title="Mustafa Tag Eldeen"/></a> <a href="https://github.com/nexty5870"><img src="https://avatars.githubusercontent.com/u/3869659?v=4&s=48" width="48" height="48" alt="nexty5870" title="nexty5870"/></a> <a href="https://github.com/prathamdby"><img src="https://avatars.githubusercontent.com/u/134331217?v=4&s=48" width="48" height="48" alt="prathamdby" title="prathamdby"/></a> <a href="https://github.com/reeltimeapps"><img src="https://avatars.githubusercontent.com/u/637338?v=4&s=48" width="48" height="48" alt="reeltimeapps" title="reeltimeapps"/></a> <a href="https://github.com/RLTCmpe"><img src="https://avatars.githubusercontent.com/u/10762242?v=4&s=48" width="48" height="48" alt="RLTCmpe" title="RLTCmpe"/></a> <a href="https://github.com/search?q=Rolf%20Fredheim"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Rolf Fredheim" title="Rolf Fredheim"/></a> <a href="https://github.com/search?q=Rony%20Kelner"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Rony Kelner" title="Rony Kelner"/></a> <a href="https://github.com/search?q=Samrat%20Jha"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Samrat Jha" title="Samrat Jha"/></a> <a href="https://github.com/siraht"><img src="https://avatars.githubusercontent.com/u/73152895?v=4&s=48" width="48" height="48" alt="siraht" title="siraht"/></a> <a href="https://github.com/snopoke"><img src="https://avatars.githubusercontent.com/u/249606?v=4&s=48" width="48" height="48" alt="snopoke" title="snopoke"/></a>
|
||||||
<a href="https://github.com/latitudeki5223"><img src="https://avatars.githubusercontent.com/u/119656367?v=4&s=48" width="48" height="48" alt="latitudeki5223" title="latitudeki5223"/></a> <a href="https://github.com/search?q=Manuel%20Maly"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Manuel Maly" title="Manuel Maly"/></a> <a href="https://github.com/search?q=Mourad%20Boustani"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Mourad Boustani" title="Mourad Boustani"/></a> <a href="https://github.com/pcty-nextgen-ios-builder"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="pcty-nextgen-ios-builder" title="pcty-nextgen-ios-builder"/></a> <a href="https://github.com/search?q=Quentin"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Quentin" title="Quentin"/></a> <a href="https://github.com/search?q=Randy%20Torres"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Randy Torres" title="Randy Torres"/></a> <a href="https://github.com/thesash"><img src="https://avatars.githubusercontent.com/u/1166151?v=4&s=48" width="48" height="48" alt="thesash" title="thesash"/></a> <a href="https://github.com/search?q=William%20Stock"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="William Stock" title="William Stock"/></a>
|
<a href="https://github.com/search?q=The%20Admiral"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="The Admiral" title="The Admiral"/></a> <a href="https://github.com/wes-davis"><img src="https://avatars.githubusercontent.com/u/16506720?v=4&s=48" width="48" height="48" alt="wes-davis" title="wes-davis"/></a> <a href="https://github.com/wstock"><img src="https://avatars.githubusercontent.com/u/1394687?v=4&s=48" width="48" height="48" alt="wstock" title="wstock"/></a> <a href="https://github.com/YuriNachos"><img src="https://avatars.githubusercontent.com/u/19365375?v=4&s=48" width="48" height="48" alt="YuriNachos" title="YuriNachos"/></a> <a href="https://github.com/search?q=Zach%20Knickerbocker"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Zach Knickerbocker" title="Zach Knickerbocker"/></a> <a href="https://github.com/search?q=Azade"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Azade" title="Azade"/></a> <a href="https://github.com/carlulsoe"><img src="https://avatars.githubusercontent.com/u/34673973?v=4&s=48" width="48" height="48" alt="carlulsoe" title="carlulsoe"/></a> <a href="https://github.com/search?q=ddyo"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="ddyo" title="ddyo"/></a> <a href="https://github.com/search?q=Erik"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Erik" title="Erik"/></a> <a href="https://github.com/latitudeki5223"><img src="https://avatars.githubusercontent.com/u/119656367?v=4&s=48" width="48" height="48" alt="latitudeki5223" title="latitudeki5223"/></a>
|
||||||
|
<a href="https://github.com/search?q=Manuel%20Maly"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Manuel Maly" title="Manuel Maly"/></a> <a href="https://github.com/search?q=Mourad%20Boustani"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Mourad Boustani" title="Mourad Boustani"/></a> <a href="https://github.com/pcty-nextgen-ios-builder"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="pcty-nextgen-ios-builder" title="pcty-nextgen-ios-builder"/></a> <a href="https://github.com/search?q=Quentin"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Quentin" title="Quentin"/></a> <a href="https://github.com/search?q=Randy%20Torres"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="Randy Torres" title="Randy Torres"/></a> <a href="https://github.com/ratulsarna"><img src="https://avatars.githubusercontent.com/u/105903728?v=4&s=48" width="48" height="48" alt="ratulsarna" title="ratulsarna"/></a> <a href="https://github.com/thesash"><img src="https://avatars.githubusercontent.com/u/1166151?v=4&s=48" width="48" height="48" alt="thesash" title="thesash"/></a> <a href="https://github.com/search?q=William%20Stock"><img src="assets/avatar-placeholder.svg" width="48" height="48" alt="William Stock" title="William Stock"/></a>
|
||||||
</p>
|
</p>
|
||||||
+17
-123
@@ -2,6 +2,23 @@
|
|||||||
<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" version="2.0">
|
<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" version="2.0">
|
||||||
<channel>
|
<channel>
|
||||||
<title>Clawdbot</title>
|
<title>Clawdbot</title>
|
||||||
|
<item>
|
||||||
|
<title>2026.1.11-3</title>
|
||||||
|
<pubDate>Mon, 12 Jan 2026 10:40:23 +0000</pubDate>
|
||||||
|
<link>https://raw.githubusercontent.com/clawdbot/clawdbot/main/appcast.xml</link>
|
||||||
|
<sparkle:version>5212</sparkle:version>
|
||||||
|
<sparkle:shortVersionString>2026.1.11-3</sparkle:shortVersionString>
|
||||||
|
<sparkle:minimumSystemVersion>15.0</sparkle:minimumSystemVersion>
|
||||||
|
<description><![CDATA[<h2>Clawdbot 2026.1.11-3</h2>
|
||||||
|
<h3>Fixes</h3>
|
||||||
|
<ul>
|
||||||
|
<li>CLI: avoid top-level await warnings in the entrypoint on fresh installs.</li>
|
||||||
|
<li>CLI: show a commit hash in the banner for npm installs (package.json gitHead fallback).</li>
|
||||||
|
</ul>
|
||||||
|
<p><a href="https://github.com/clawdbot/clawdbot/blob/main/CHANGELOG.md">View full changelog</a></p>
|
||||||
|
]]></description>
|
||||||
|
<enclosure url="https://github.com/clawdbot/clawdbot/releases/download/v2026.1.11-3/Clawdbot-2026.1.11-3.zip" length="19860758" type="application/octet-stream" sparkle:edSignature="LbvGUSjc3jGO7aVo2UVA0nEkaJbb3O4iwRBo1TBqoapdTtxnDlS3s6N+Z4vOSLRAoAm22EoZOwbpK9085c7HAQ=="/>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<title>2026.1.11-2</title>
|
<title>2026.1.11-2</title>
|
||||||
<pubDate>Mon, 12 Jan 2026 10:25:53 +0000</pubDate>
|
<pubDate>Mon, 12 Jan 2026 10:25:53 +0000</pubDate>
|
||||||
@@ -35,128 +52,5 @@
|
|||||||
]]></description>
|
]]></description>
|
||||||
<enclosure url="https://github.com/clawdbot/clawdbot/releases/download/v2026.1.11-1/Clawdbot-2026.1.11-1.zip" length="19860761" type="application/octet-stream" sparkle:edSignature="CXKzzha/s6cGBeF0TMz+cV8/pfqoAL9ZyNVacYRLnnHEwA1cMbOWRftpGRhYe4HknVQYYBgNQqZK2lBxpOZgBg=="/>
|
<enclosure url="https://github.com/clawdbot/clawdbot/releases/download/v2026.1.11-1/Clawdbot-2026.1.11-1.zip" length="19860761" type="application/octet-stream" sparkle:edSignature="CXKzzha/s6cGBeF0TMz+cV8/pfqoAL9ZyNVacYRLnnHEwA1cMbOWRftpGRhYe4HknVQYYBgNQqZK2lBxpOZgBg=="/>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<title>2026.1.11</title>
|
|
||||||
<pubDate>Mon, 12 Jan 2026 09:37:49 +0000</pubDate>
|
|
||||||
<link>https://raw.githubusercontent.com/clawdbot/clawdbot/main/appcast.xml</link>
|
|
||||||
<sparkle:version>5205</sparkle:version>
|
|
||||||
<sparkle:shortVersionString>2026.1.11</sparkle:shortVersionString>
|
|
||||||
<sparkle:minimumSystemVersion>15.0</sparkle:minimumSystemVersion>
|
|
||||||
<description><![CDATA[<h2>Clawdbot 2026.1.11</h2>
|
|
||||||
<h3>Highlights</h3>
|
|
||||||
<ul>
|
|
||||||
<li>Plugins are now first-class: loader + CLI management, plus the new Voice Call plugin.</li>
|
|
||||||
<li>Config: modular <code>$include</code> support for split config files. (#731) — thanks @pasogott.</li>
|
|
||||||
<li>Agents/Pi: reserve compaction headroom so pre-compaction memory writes can run before auto-compaction.</li>
|
|
||||||
<li>Agents: automatic pre-compaction memory flush turn to store durable memories before compaction.</li>
|
|
||||||
</ul>
|
|
||||||
<h3>Changes</h3>
|
|
||||||
<ul>
|
|
||||||
<li>Deps: update pi-agent-core/pi-ai/pi-coding-agent/pi-tui and refresh the pi-ai patch.</li>
|
|
||||||
<li>Dev: bump @types/node.</li>
|
|
||||||
<li>macOS: add wizard debug CLI and share wizard parsing helpers.</li>
|
|
||||||
<li>CLI/Onboarding: simplify MiniMax auth choice to a single M2.1 option.</li>
|
|
||||||
<li>CLI: configure section selection now loops until Continue.</li>
|
|
||||||
<li>Docs: explain MiniMax vs MiniMax Lightning (speed vs cost) and restore LM Studio example.</li>
|
|
||||||
<li>Docs: add Cerebras GLM 4.6/4.7 config example (OpenAI-compatible endpoint).</li>
|
|
||||||
<li>Onboarding/CLI: group model/auth choice by provider and label Z.AI as GLM 4.7.</li>
|
|
||||||
<li>Onboarding/Docs: add Moonshot AI (Kimi K2) auth choice + config example.</li>
|
|
||||||
<li>CLI/Onboarding: prompt to reuse detected API keys for Moonshot/MiniMax/Z.AI/Gemini/Anthropic/OpenCode.</li>
|
|
||||||
<li>CLI/Onboarding: move MiniMax to the top of the provider list.</li>
|
|
||||||
<li>CLI/Onboarding: add MiniMax M2.1 Lightning auth choice.</li>
|
|
||||||
<li>CLI/Onboarding: show key previews when reusing detected API keys.</li>
|
|
||||||
<li>Auto-reply: add compact <code>/model</code> picker (models + available providers) and show provider endpoints in <code>/model status</code>.</li>
|
|
||||||
<li>Control UI: add Config tab model presets (MiniMax M2.1, GLM 4.7, Kimi) for one-click setup.</li>
|
|
||||||
<li>Plugins: add extension loader (tools/RPC/CLI/services), discovery paths, and config schema + Control UI labels (uiHints).</li>
|
|
||||||
<li>Plugins: add <code>clawdbot plugins install</code> (path/tgz/npm), plus <code>list|info|enable|disable|doctor</code> UX.</li>
|
|
||||||
<li>Plugins: voice-call plugin now real (Twilio/log), adds start/status RPC/CLI/tool + tests.</li>
|
|
||||||
<li>Docs: add plugins doc + cross-links from tools/skills/gateway config.</li>
|
|
||||||
<li>Docs: clarify memory flush behavior + writable workspace requirement in Memory/Session/FAQ.</li>
|
|
||||||
<li>Docs: add beginner-friendly plugin quick start + expand Voice Call plugin docs.</li>
|
|
||||||
<li>Tests: add Docker plugin loader + tgz-install smoke test.</li>
|
|
||||||
<li>Tests: extend Docker plugin E2E to cover installing from local folders (<code>plugins.load.paths</code>) and <code>file:</code> npm specs.</li>
|
|
||||||
<li>Tests: add coverage for pre-compaction memory flush settings (including read-only/CLI skips).</li>
|
|
||||||
<li>Tests: modernize live model smoke selection for current releases and enforce tools/images/thinking-high coverage. (#769) — thanks @steipete.</li>
|
|
||||||
<li>Agents/Tools: add <code>apply_patch</code> tool for multi-file edits (experimental; gated by tools.exec.applyPatch; OpenAI-only).</li>
|
|
||||||
<li>Agents/Tools: rename the bash tool to exec (config alias maintained). (#748) — thanks @myfunc.</li>
|
|
||||||
<li>Agents: add pre-compaction memory flush config (<code>agents.defaults.compaction.*</code>) with a soft threshold + system prompt.</li>
|
|
||||||
<li>Config: add <code>$include</code> directive for modular config files. (#731) — thanks @pasogott.</li>
|
|
||||||
<li>Build: set pnpm minimum release age to 2880 minutes (2 days). (#718) — thanks @dan-dr.</li>
|
|
||||||
<li>macOS: prompt to install the global <code>clawdbot</code> CLI when missing in local mode; install via <code>clawd.bot/install-cli.sh</code> (no onboarding) and use external launchd/CLI instead of the embedded gateway runtime.</li>
|
|
||||||
<li>Docs: add gog calendar event color IDs from <code>gog calendar colors</code>. (#715) — thanks @mjrussell.</li>
|
|
||||||
<li>Cron/CLI: add <code>--model</code> flag to cron add/edit commands. (#711) — thanks @mjrussell.</li>
|
|
||||||
<li>Cron/CLI: trim model overrides on cron edits and document main-session guidance. (#711) — thanks @mjrussell.</li>
|
|
||||||
<li>Skills: bundle <code>skill-creator</code> to guide creating and packaging skills.</li>
|
|
||||||
<li>Providers: add per-DM history limit overrides (<code>dmHistoryLimit</code>) with provider-level config. (#728) — thanks @pkrmf.</li>
|
|
||||||
<li>Discord: expose channel/category management actions in the message tool. (#730) — thanks @NicholasSpisak.</li>
|
|
||||||
<li>Docs: rename README “macOS app” section to “Apps”. (#733) — thanks @AbhisekBasu1.</li>
|
|
||||||
<li>Gateway: require <code>client.id</code> in WebSocket connect params; use <code>client.instanceId</code> for presence de-dupe; update docs/tests.</li>
|
|
||||||
<li>macOS: remove the attach-only gateway setting; local mode now always manages launchd while still attaching to an existing gateway if present.</li>
|
|
||||||
</ul>
|
|
||||||
<h3>Installer</h3>
|
|
||||||
<ul>
|
|
||||||
<li>Postinstall: replace <code>git apply</code> with builtin JS patcher (works npm/pnpm/bun; no git dependency) plus regression tests.</li>
|
|
||||||
<li>Postinstall: skip pnpm patch fallback when the new patcher is active.</li>
|
|
||||||
<li>Installer tests: add root+non-root docker smokes, CI workflow to fetch clawd.bot scripts and run install sh/cli with onboarding skipped.</li>
|
|
||||||
<li>Installer UX: support <code>CLAWDBOT_NO_ONBOARD=1</code> for non-interactive installs; fix npm prefix on Linux and auto-install git.</li>
|
|
||||||
<li>Installer UX: add <code>install.sh --help</code> with flags/env and git install hint.</li>
|
|
||||||
<li>Installer UX: add <code>--install-method git|npm</code> and auto-detect source checkouts (prompt to update git checkout vs migrate to npm).</li>
|
|
||||||
</ul>
|
|
||||||
<h3>Fixes</h3>
|
|
||||||
<ul>
|
|
||||||
<li>Control UI: flatten nav into a single horizontal scroll row on tablet/mobile (and always show collapsed group items). (#771) — thanks @carlulsoe.</li>
|
|
||||||
<li>macOS: start + await local gateway before onboarding wizard begins.</li>
|
|
||||||
<li>macOS: cancel onboarding wizard on close, recover if the gateway drops the session, and time out stalled gateway connects.</li>
|
|
||||||
<li>macOS: wizard debug CLI now surfaces error status instead of exiting as complete.</li>
|
|
||||||
<li>Models/Onboarding: configure MiniMax (minimax.io) via Anthropic-compatible <code>/anthropic</code> endpoint by default (keep <code>minimax-api</code> as a legacy alias).</li>
|
|
||||||
<li>Agents/Browser: cap Playwright AI snapshots for tool calls (maxChars); CLI snapshots remain full. (#763) — thanks @thesash.</li>
|
|
||||||
<li>Models: normalize Gemini 3 Pro/Flash IDs to preview names for live model lookups. (#769) — thanks @steipete.</li>
|
|
||||||
<li>CLI: fix guardCancel typing for configure prompts. (#769) — thanks @steipete.</li>
|
|
||||||
<li>Providers: default groupPolicy to allowlist across providers and warn in doctor when groups are open.</li>
|
|
||||||
<li>MS Teams: add groupPolicy/groupAllowFrom gating for group chats and warn when groups are open.</li>
|
|
||||||
<li>Providers: strip tool call/result ids from Gemini CLI payloads to avoid API 400s. (#756)</li>
|
|
||||||
<li>Gateway/WebChat: include handshake validation details in the WebSocket close reason for easier debugging; preserve close codes.</li>
|
|
||||||
<li>Gateway/Auth: send invalid connect responses before closing the handshake; stabilize invalid-connect auth test.</li>
|
|
||||||
<li>Gateway: tighten gateway listener detection.</li>
|
|
||||||
<li>Control UI: hide onboarding chat when configured and guard the mobile chat sidebar overlay.</li>
|
|
||||||
<li>Auth: read Codex keychain credentials and make the lookup platform-aware.</li>
|
|
||||||
<li>macOS/Release: avoid bundling dist artifacts in relay builds and generate appcasts from zip-only sources.</li>
|
|
||||||
<li>Doctor: surface plugin diagnostics in the report.</li>
|
|
||||||
<li>Plugins: treat <code>plugins.load.paths</code> directory entries as package roots when they contain <code>package.json</code> + <code>clawdbot.extensions</code>; load plugin packages from config dirs; extract archives without system tar.</li>
|
|
||||||
<li>Config: expand <code>~</code> in <code>CLAWDBOT_CONFIG_PATH</code> and common path-like config fields (including <code>plugins.load.paths</code>); guard invalid <code>$include</code> paths. (#731) — thanks @pasogott.</li>
|
|
||||||
<li>Agents: stop pre-creating session transcripts so first user messages persist in JSONL history.</li>
|
|
||||||
<li>Agents: skip pre-compaction memory flush when the session workspace is read-only.</li>
|
|
||||||
<li>Auto-reply: allow inline <code>/status</code> for allowlisted senders (stripped before the model); unauthorized senders see it as plain text.</li>
|
|
||||||
<li>Auto-reply: include config-only allowlisted models in <code>/model</code> even when the catalog is partial.</li>
|
|
||||||
<li>Auto-reply: allow fuzzy <code>/model</code> matches (e.g. <code>/model kimi</code> or <code>/model moonshot/kimi</code>) when unambiguous.</li>
|
|
||||||
<li>Auto-reply: ignore inline <code>/status</code> directives unless the message is directive-only.</li>
|
|
||||||
<li>CLI/Configure: enter the selected section immediately, then return to the section picker.</li>
|
|
||||||
<li>CLI/Configure: apply the chosen auth model as default (skip the extra picker) and refresh the model catalog for new providers.</li>
|
|
||||||
<li>Auto-reply: align <code>/think</code> default display with model reasoning defaults. (#751) — thanks @gabriel-trigo.</li>
|
|
||||||
<li>Auto-reply: flush block reply buffers on tool boundaries. (#750) — thanks @sebslight.</li>
|
|
||||||
<li>Auto-reply: allow sender fallback for command authorization when <code>SenderId</code> is empty (WhatsApp self-chat). (#755) — thanks @juanpablodlc.</li>
|
|
||||||
<li>Heartbeat: refresh prompt text for updated defaults.</li>
|
|
||||||
<li>Agents/Tools: use PowerShell on Windows to capture system utility output. (#748) — thanks @myfunc.</li>
|
|
||||||
<li>Agents/Tools: normalize Claude Code-style read/write/edit params (file_path/old_string/new_string) and keep sandbox guards in place. (#768) — thanks @hsrvc.</li>
|
|
||||||
<li>Docker: tolerate unset optional env vars in docker-setup.sh under strict mode. (#725) — thanks @petradonka.</li>
|
|
||||||
<li>CLI/Update: preserve base environment when passing overrides to update subprocesses. (#713) — thanks @danielz1z.</li>
|
|
||||||
<li>Agents: treat message tool errors as failures so fallback replies still send; require <code>to</code> + <code>message</code> for <code>action=send</code>. (#717) — thanks @theglove44.</li>
|
|
||||||
<li>Agents: preserve reasoning items on tool-only turns.</li>
|
|
||||||
<li>Agents: enforce <code><final></code> gating for reasoning-tag providers to prevent tag/reasoning leaks. (#754) — thanks @mcinteerj.</li>
|
|
||||||
<li>Agents/Subagents: wait for completion before announcing, align wait timeout with run timeout, and make announce prompts more emphatic.</li>
|
|
||||||
<li>Agents: route subagent transcripts to the target agent sessions directory and add regression coverage. (#708) — thanks @xMikeMickelson.</li>
|
|
||||||
<li>Agents/Tools: preserve action enums when flattening tool schemas. (#708) — thanks @xMikeMickelson.</li>
|
|
||||||
<li>Gateway/Agents: canonicalize main session aliases for store writes and add regression coverage. (#709) — thanks @xMikeMickelson.</li>
|
|
||||||
<li>Agents: reset sessions and retry when auto-compaction overflows instead of crashing the gateway.</li>
|
|
||||||
<li>Providers/Telegram: normalize command mentions for consistent parsing. (#729) — thanks @obviyus.</li>
|
|
||||||
<li>Providers: skip DM history limit handling for non-DM sessions. (#728) — thanks @pkrmf.</li>
|
|
||||||
<li>Sandbox: fix non-main mode incorrectly sandboxing the main DM session and align <code>/status</code> runtime reporting with effective sandbox state.</li>
|
|
||||||
<li>Sandbox/Gateway: treat <code>agent:<id>:main</code> as a main-session alias when <code>session.mainKey</code> is customized (backwards compatible).</li>
|
|
||||||
<li>Auto-reply: fast-path allowlisted slash commands (inline <code>/help</code>/<code>/commands</code>/<code>/status</code>/<code>/whoami</code> stripped before model).</li>
|
|
||||||
</ul>
|
|
||||||
<p><a href="https://github.com/clawdbot/clawdbot/blob/main/CHANGELOG.md">View full changelog</a></p>
|
|
||||||
]]></description>
|
|
||||||
<enclosure url="https://github.com/clawdbot/clawdbot/releases/download/v2026.1.11/Clawdbot-2026.1.11.zip" length="19860746" type="application/octet-stream" sparkle:edSignature="zmN6RovfpvPNm7PPYKDQ2c8nUtlq4k1+S6c3fvZwEHFRwKOxjhQtaW0phriDJwcqfguU3ibAQd/cpRtP4LYdCQ=="/>
|
|
||||||
</item>
|
|
||||||
</channel>
|
</channel>
|
||||||
</rss>
|
</rss>
|
||||||
@@ -21,8 +21,8 @@ android {
|
|||||||
applicationId = "com.clawdbot.android"
|
applicationId = "com.clawdbot.android"
|
||||||
minSdk = 31
|
minSdk = 31
|
||||||
targetSdk = 36
|
targetSdk = 36
|
||||||
versionCode = 202601112
|
versionCode = 202601114
|
||||||
versionName = "2026.1.11-2"
|
versionName = "2026.1.11-4"
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
|||||||
@@ -19,9 +19,9 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>2026.1.11-2</string>
|
<string>2026.1.11-4</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>202601112</string>
|
<string>202601113</string>
|
||||||
<key>NSAppTransportSecurity</key>
|
<key>NSAppTransportSecurity</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>NSAllowsArbitraryLoadsInWebContent</key>
|
<key>NSAllowsArbitraryLoadsInWebContent</key>
|
||||||
|
|||||||
@@ -17,8 +17,8 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>BNDL</string>
|
<string>BNDL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>2026.1.11-2</string>
|
<string>2026.1.11-4</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>202601112</string>
|
<string>202601113</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
@@ -204,7 +204,7 @@ final class AppState {
|
|||||||
private var earBoostTask: Task<Void, Never>?
|
private var earBoostTask: Task<Void, Never>?
|
||||||
|
|
||||||
init(preview: Bool = false) {
|
init(preview: Bool = false) {
|
||||||
self.isPreview = preview
|
self.isPreview = preview || ProcessInfo.processInfo.isRunningTests
|
||||||
let onboardingSeen = UserDefaults.standard.bool(forKey: "clawdbot.onboardingSeen")
|
let onboardingSeen = UserDefaults.standard.bool(forKey: "clawdbot.onboardingSeen")
|
||||||
self.isPaused = UserDefaults.standard.bool(forKey: pauseDefaultsKey)
|
self.isPaused = UserDefaults.standard.bool(forKey: pauseDefaultsKey)
|
||||||
self.launchAtLogin = false
|
self.launchAtLogin = false
|
||||||
|
|||||||
@@ -13,7 +13,9 @@ extension CronJobEditor {
|
|||||||
guard let job else { return }
|
guard let job else { return }
|
||||||
self.name = job.name
|
self.name = job.name
|
||||||
self.description = job.description ?? ""
|
self.description = job.description ?? ""
|
||||||
|
self.agentId = job.agentId ?? ""
|
||||||
self.enabled = job.enabled
|
self.enabled = job.enabled
|
||||||
|
self.deleteAfterRun = job.deleteAfterRun ?? false
|
||||||
self.sessionTarget = job.sessionTarget
|
self.sessionTarget = job.sessionTarget
|
||||||
self.wakeMode = job.wakeMode
|
self.wakeMode = job.wakeMode
|
||||||
|
|
||||||
@@ -59,18 +61,60 @@ extension CronJobEditor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func buildPayload() throws -> [String: AnyCodable] {
|
func buildPayload() throws -> [String: AnyCodable] {
|
||||||
let name = self.name.trimmingCharacters(in: .whitespacesAndNewlines)
|
let name = try self.requireName()
|
||||||
|
let description = self.trimmed(self.description)
|
||||||
|
let agentId = self.trimmed(self.agentId)
|
||||||
|
let schedule = try self.buildSchedule()
|
||||||
|
let payload = try self.buildSelectedPayload()
|
||||||
|
|
||||||
|
try self.validateSessionTarget(payload)
|
||||||
|
try self.validatePayloadRequiredFields(payload)
|
||||||
|
|
||||||
|
var root: [String: Any] = [
|
||||||
|
"name": name,
|
||||||
|
"enabled": self.enabled,
|
||||||
|
"schedule": schedule,
|
||||||
|
"sessionTarget": self.sessionTarget.rawValue,
|
||||||
|
"wakeMode": self.wakeMode.rawValue,
|
||||||
|
"payload": payload,
|
||||||
|
]
|
||||||
|
self.applyDeleteAfterRun(to: &root)
|
||||||
|
if !description.isEmpty { root["description"] = description }
|
||||||
|
if !agentId.isEmpty {
|
||||||
|
root["agentId"] = agentId
|
||||||
|
} else if self.job?.agentId != nil {
|
||||||
|
root["agentId"] = NSNull()
|
||||||
|
}
|
||||||
|
|
||||||
|
if self.sessionTarget == .isolated {
|
||||||
|
let trimmed = self.postPrefix.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||||
|
root["isolation"] = [
|
||||||
|
"postToMainPrefix": trimmed.isEmpty ? "Cron" : trimmed,
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
return root.mapValues { AnyCodable($0) }
|
||||||
|
}
|
||||||
|
|
||||||
|
func trimmed(_ value: String) -> String {
|
||||||
|
value.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||||
|
}
|
||||||
|
|
||||||
|
func requireName() throws -> String {
|
||||||
|
let name = self.trimmed(self.name)
|
||||||
if name.isEmpty {
|
if name.isEmpty {
|
||||||
throw NSError(
|
throw NSError(
|
||||||
domain: "Cron",
|
domain: "Cron",
|
||||||
code: 0,
|
code: 0,
|
||||||
userInfo: [NSLocalizedDescriptionKey: "Name is required."])
|
userInfo: [NSLocalizedDescriptionKey: "Name is required."])
|
||||||
}
|
}
|
||||||
let description = self.description.trimmingCharacters(in: .whitespacesAndNewlines)
|
return name
|
||||||
let schedule: [String: Any]
|
}
|
||||||
|
|
||||||
|
func buildSchedule() throws -> [String: Any] {
|
||||||
switch self.scheduleKind {
|
switch self.scheduleKind {
|
||||||
case .at:
|
case .at:
|
||||||
schedule = ["kind": "at", "atMs": Int(self.atDate.timeIntervalSince1970 * 1000)]
|
return ["kind": "at", "atMs": Int(self.atDate.timeIntervalSince1970 * 1000)]
|
||||||
case .every:
|
case .every:
|
||||||
guard let ms = Self.parseDurationMs(self.everyText) else {
|
guard let ms = Self.parseDurationMs(self.everyText) else {
|
||||||
throw NSError(
|
throw NSError(
|
||||||
@@ -78,34 +122,35 @@ extension CronJobEditor {
|
|||||||
code: 0,
|
code: 0,
|
||||||
userInfo: [NSLocalizedDescriptionKey: "Invalid every duration (use 10m, 1h, 1d)."])
|
userInfo: [NSLocalizedDescriptionKey: "Invalid every duration (use 10m, 1h, 1d)."])
|
||||||
}
|
}
|
||||||
schedule = ["kind": "every", "everyMs": ms]
|
return ["kind": "every", "everyMs": ms]
|
||||||
case .cron:
|
case .cron:
|
||||||
let expr = self.cronExpr.trimmingCharacters(in: .whitespacesAndNewlines)
|
let expr = self.trimmed(self.cronExpr)
|
||||||
if expr.isEmpty {
|
if expr.isEmpty {
|
||||||
throw NSError(
|
throw NSError(
|
||||||
domain: "Cron",
|
domain: "Cron",
|
||||||
code: 0,
|
code: 0,
|
||||||
userInfo: [NSLocalizedDescriptionKey: "Cron expression is required."])
|
userInfo: [NSLocalizedDescriptionKey: "Cron expression is required."])
|
||||||
}
|
}
|
||||||
let tz = self.cronTz.trimmingCharacters(in: .whitespacesAndNewlines)
|
let tz = self.trimmed(self.cronTz)
|
||||||
if tz.isEmpty {
|
if tz.isEmpty {
|
||||||
schedule = ["kind": "cron", "expr": expr]
|
return ["kind": "cron", "expr": expr]
|
||||||
} else {
|
|
||||||
schedule = ["kind": "cron", "expr": expr, "tz": tz]
|
|
||||||
}
|
}
|
||||||
|
return ["kind": "cron", "expr": expr, "tz": tz]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let payload: [String: Any] = {
|
func buildSelectedPayload() throws -> [String: Any] {
|
||||||
if self.sessionTarget == .isolated { return self.buildAgentTurnPayload() }
|
if self.sessionTarget == .isolated { return self.buildAgentTurnPayload() }
|
||||||
switch self.payloadKind {
|
switch self.payloadKind {
|
||||||
case .systemEvent:
|
case .systemEvent:
|
||||||
let text = self.systemEventText.trimmingCharacters(in: .whitespacesAndNewlines)
|
let text = self.trimmed(self.systemEventText)
|
||||||
return ["kind": "systemEvent", "text": text]
|
return ["kind": "systemEvent", "text": text]
|
||||||
case .agentTurn:
|
case .agentTurn:
|
||||||
return self.buildAgentTurnPayload()
|
return self.buildAgentTurnPayload()
|
||||||
}
|
}
|
||||||
}()
|
}
|
||||||
|
|
||||||
|
func validateSessionTarget(_ payload: [String: Any]) throws {
|
||||||
if self.sessionTarget == .main, payload["kind"] as? String == "agentTurn" {
|
if self.sessionTarget == .main, payload["kind"] as? String == "agentTurn" {
|
||||||
throw NSError(
|
throw NSError(
|
||||||
domain: "Cron",
|
domain: "Cron",
|
||||||
@@ -122,7 +167,9 @@ extension CronJobEditor {
|
|||||||
code: 0,
|
code: 0,
|
||||||
userInfo: [NSLocalizedDescriptionKey: "Isolated jobs require agentTurn payloads."])
|
userInfo: [NSLocalizedDescriptionKey: "Isolated jobs require agentTurn payloads."])
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func validatePayloadRequiredFields(_ payload: [String: Any]) throws {
|
||||||
if payload["kind"] as? String == "systemEvent" {
|
if payload["kind"] as? String == "systemEvent" {
|
||||||
if (payload["text"] as? String ?? "").isEmpty {
|
if (payload["text"] as? String ?? "").isEmpty {
|
||||||
throw NSError(
|
throw NSError(
|
||||||
@@ -130,7 +177,8 @@ extension CronJobEditor {
|
|||||||
code: 0,
|
code: 0,
|
||||||
userInfo: [NSLocalizedDescriptionKey: "System event text is required."])
|
userInfo: [NSLocalizedDescriptionKey: "System event text is required."])
|
||||||
}
|
}
|
||||||
} else if payload["kind"] as? String == "agentTurn" {
|
}
|
||||||
|
if payload["kind"] as? String == "agentTurn" {
|
||||||
if (payload["message"] as? String ?? "").isEmpty {
|
if (payload["message"] as? String ?? "").isEmpty {
|
||||||
throw NSError(
|
throw NSError(
|
||||||
domain: "Cron",
|
domain: "Cron",
|
||||||
@@ -138,25 +186,14 @@ extension CronJobEditor {
|
|||||||
userInfo: [NSLocalizedDescriptionKey: "Agent message is required."])
|
userInfo: [NSLocalizedDescriptionKey: "Agent message is required."])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var root: [String: Any] = [
|
func applyDeleteAfterRun(to root: inout [String: Any]) {
|
||||||
"name": name,
|
if self.scheduleKind == .at {
|
||||||
"enabled": self.enabled,
|
root["deleteAfterRun"] = self.deleteAfterRun
|
||||||
"schedule": schedule,
|
} else if self.job?.deleteAfterRun != nil {
|
||||||
"sessionTarget": self.sessionTarget.rawValue,
|
root["deleteAfterRun"] = false
|
||||||
"wakeMode": self.wakeMode.rawValue,
|
|
||||||
"payload": payload,
|
|
||||||
]
|
|
||||||
if !description.isEmpty { root["description"] = description }
|
|
||||||
|
|
||||||
if self.sessionTarget == .isolated {
|
|
||||||
let trimmed = self.postPrefix.trimmingCharacters(in: .whitespacesAndNewlines)
|
|
||||||
root["isolation"] = [
|
|
||||||
"postToMainPrefix": trimmed.isEmpty ? "Cron" : trimmed,
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return root.mapValues { AnyCodable($0) }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func buildAgentTurnPayload() -> [String: Any] {
|
func buildAgentTurnPayload() -> [String: Any] {
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ extension CronJobEditor {
|
|||||||
mutating func exerciseForTesting() {
|
mutating func exerciseForTesting() {
|
||||||
self.name = "Test job"
|
self.name = "Test job"
|
||||||
self.description = "Test description"
|
self.description = "Test description"
|
||||||
|
self.agentId = "ops"
|
||||||
self.enabled = true
|
self.enabled = true
|
||||||
self.sessionTarget = .isolated
|
self.sessionTarget = .isolated
|
||||||
self.wakeMode = .now
|
self.wakeMode = .now
|
||||||
|
|||||||
@@ -27,9 +27,11 @@ struct CronJobEditor: View {
|
|||||||
|
|
||||||
@State var name: String = ""
|
@State var name: String = ""
|
||||||
@State var description: String = ""
|
@State var description: String = ""
|
||||||
|
@State var agentId: String = ""
|
||||||
@State var enabled: Bool = true
|
@State var enabled: Bool = true
|
||||||
@State var sessionTarget: CronSessionTarget = .main
|
@State var sessionTarget: CronSessionTarget = .main
|
||||||
@State var wakeMode: CronWakeMode = .nextHeartbeat
|
@State var wakeMode: CronWakeMode = .nextHeartbeat
|
||||||
|
@State var deleteAfterRun: Bool = false
|
||||||
|
|
||||||
enum ScheduleKind: String, CaseIterable, Identifiable { case at, every, cron; var id: String { rawValue } }
|
enum ScheduleKind: String, CaseIterable, Identifiable { case at, every, cron; var id: String { rawValue } }
|
||||||
@State var scheduleKind: ScheduleKind = .every
|
@State var scheduleKind: ScheduleKind = .every
|
||||||
@@ -77,6 +79,12 @@ struct CronJobEditor: View {
|
|||||||
.textFieldStyle(.roundedBorder)
|
.textFieldStyle(.roundedBorder)
|
||||||
.frame(maxWidth: .infinity)
|
.frame(maxWidth: .infinity)
|
||||||
}
|
}
|
||||||
|
GridRow {
|
||||||
|
self.gridLabel("Agent ID")
|
||||||
|
TextField("Optional (default agent)", text: self.$agentId)
|
||||||
|
.textFieldStyle(.roundedBorder)
|
||||||
|
.frame(maxWidth: .infinity)
|
||||||
|
}
|
||||||
GridRow {
|
GridRow {
|
||||||
self.gridLabel("Enabled")
|
self.gridLabel("Enabled")
|
||||||
Toggle("", isOn: self.$enabled)
|
Toggle("", isOn: self.$enabled)
|
||||||
@@ -149,6 +157,11 @@ struct CronJobEditor: View {
|
|||||||
.labelsHidden()
|
.labelsHidden()
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
}
|
}
|
||||||
|
GridRow {
|
||||||
|
self.gridLabel("Auto-delete")
|
||||||
|
Toggle("Delete after successful run", isOn: self.$deleteAfterRun)
|
||||||
|
.toggleStyle(.switch)
|
||||||
|
}
|
||||||
case .every:
|
case .every:
|
||||||
GridRow {
|
GridRow {
|
||||||
self.gridLabel("Every")
|
self.gridLabel("Every")
|
||||||
|
|||||||
@@ -145,9 +145,11 @@ struct CronJobState: Codable, Equatable {
|
|||||||
|
|
||||||
struct CronJob: Identifiable, Codable, Equatable {
|
struct CronJob: Identifiable, Codable, Equatable {
|
||||||
let id: String
|
let id: String
|
||||||
|
let agentId: String?
|
||||||
var name: String
|
var name: String
|
||||||
var description: String?
|
var description: String?
|
||||||
var enabled: Bool
|
var enabled: Bool
|
||||||
|
var deleteAfterRun: Bool?
|
||||||
let createdAtMs: Int
|
let createdAtMs: Int
|
||||||
let updatedAtMs: Int
|
let updatedAtMs: Int
|
||||||
let schedule: CronSchedule
|
let schedule: CronSchedule
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ extension CronSettings {
|
|||||||
HStack(spacing: 6) {
|
HStack(spacing: 6) {
|
||||||
StatusPill(text: job.sessionTarget.rawValue, tint: .secondary)
|
StatusPill(text: job.sessionTarget.rawValue, tint: .secondary)
|
||||||
StatusPill(text: job.wakeMode.rawValue, tint: .secondary)
|
StatusPill(text: job.wakeMode.rawValue, tint: .secondary)
|
||||||
|
if let agentId = job.agentId, !agentId.isEmpty {
|
||||||
|
StatusPill(text: "agent \(agentId)", tint: .secondary)
|
||||||
|
}
|
||||||
if let status = job.state.lastStatus {
|
if let status = job.state.lastStatus {
|
||||||
StatusPill(text: status, tint: status == "ok" ? .green : .orange)
|
StatusPill(text: status, tint: status == "ok" ? .green : .orange)
|
||||||
}
|
}
|
||||||
@@ -91,9 +94,15 @@ extension CronSettings {
|
|||||||
func detailCard(_ job: CronJob) -> some View {
|
func detailCard(_ job: CronJob) -> some View {
|
||||||
VStack(alignment: .leading, spacing: 10) {
|
VStack(alignment: .leading, spacing: 10) {
|
||||||
LabeledContent("Schedule") { Text(self.scheduleSummary(job.schedule)).font(.callout) }
|
LabeledContent("Schedule") { Text(self.scheduleSummary(job.schedule)).font(.callout) }
|
||||||
|
if case .at = job.schedule, job.deleteAfterRun == true {
|
||||||
|
LabeledContent("Auto-delete") { Text("after success") }
|
||||||
|
}
|
||||||
if let desc = job.description, !desc.isEmpty {
|
if let desc = job.description, !desc.isEmpty {
|
||||||
LabeledContent("Description") { Text(desc).font(.callout) }
|
LabeledContent("Description") { Text(desc).font(.callout) }
|
||||||
}
|
}
|
||||||
|
if let agentId = job.agentId, !agentId.isEmpty {
|
||||||
|
LabeledContent("Agent") { Text(agentId) }
|
||||||
|
}
|
||||||
LabeledContent("Session") { Text(job.sessionTarget.rawValue) }
|
LabeledContent("Session") { Text(job.sessionTarget.rawValue) }
|
||||||
LabeledContent("Wake") { Text(job.wakeMode.rawValue) }
|
LabeledContent("Wake") { Text(job.wakeMode.rawValue) }
|
||||||
LabeledContent("Next run") {
|
LabeledContent("Next run") {
|
||||||
|
|||||||
@@ -7,9 +7,11 @@ struct CronSettings_Previews: PreviewProvider {
|
|||||||
store.jobs = [
|
store.jobs = [
|
||||||
CronJob(
|
CronJob(
|
||||||
id: "job-1",
|
id: "job-1",
|
||||||
|
agentId: "ops",
|
||||||
name: "Daily summary",
|
name: "Daily summary",
|
||||||
description: nil,
|
description: nil,
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
deleteAfterRun: nil,
|
||||||
createdAtMs: 0,
|
createdAtMs: 0,
|
||||||
updatedAtMs: 0,
|
updatedAtMs: 0,
|
||||||
schedule: .every(everyMs: 86_400_000, anchorMs: nil),
|
schedule: .every(everyMs: 86_400_000, anchorMs: nil),
|
||||||
@@ -59,9 +61,11 @@ extension CronSettings {
|
|||||||
|
|
||||||
let job = CronJob(
|
let job = CronJob(
|
||||||
id: "job-1",
|
id: "job-1",
|
||||||
|
agentId: "ops",
|
||||||
name: "Daily summary",
|
name: "Daily summary",
|
||||||
description: "Summary job",
|
description: "Summary job",
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
deleteAfterRun: nil,
|
||||||
createdAtMs: 1_700_000_000_000,
|
createdAtMs: 1_700_000_000_000,
|
||||||
updatedAtMs: 1_700_000_100_000,
|
updatedAtMs: 1_700_000_100_000,
|
||||||
schedule: .cron(expr: "0 8 * * *", tz: "UTC"),
|
schedule: .cron(expr: "0 8 * * *", tz: "UTC"),
|
||||||
|
|||||||
@@ -149,8 +149,7 @@ final class OnboardingWizardModel {
|
|||||||
onboardingWizardLogger.error("wizard step decode failed")
|
onboardingWizardLogger.error("wizard step decode failed")
|
||||||
}
|
}
|
||||||
if res.done { self.currentStep = nil }
|
if res.done { self.currentStep = nil }
|
||||||
if res.done || status == "done" || status == "cancelled" || status == "error"
|
if res.done || status == "done" || status == "cancelled" || status == "error" {
|
||||||
{
|
|
||||||
self.sessionId = nil
|
self.sessionId = nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,9 +15,9 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>2026.1.11-2</string>
|
<string>2026.1.11-4</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>202601112</string>
|
<string>202601113</string>
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>Clawdbot</string>
|
<string>Clawdbot</string>
|
||||||
<key>CFBundleURLTypes</key>
|
<key>CFBundleURLTypes</key>
|
||||||
|
|||||||
@@ -1352,9 +1352,11 @@ public struct SkillsUpdateParams: Codable, Sendable {
|
|||||||
|
|
||||||
public struct CronJob: Codable, Sendable {
|
public struct CronJob: Codable, Sendable {
|
||||||
public let id: String
|
public let id: String
|
||||||
|
public let agentid: String?
|
||||||
public let name: String
|
public let name: String
|
||||||
public let description: String?
|
public let description: String?
|
||||||
public let enabled: Bool
|
public let enabled: Bool
|
||||||
|
public let deleteafterrun: Bool?
|
||||||
public let createdatms: Int
|
public let createdatms: Int
|
||||||
public let updatedatms: Int
|
public let updatedatms: Int
|
||||||
public let schedule: AnyCodable
|
public let schedule: AnyCodable
|
||||||
@@ -1366,9 +1368,11 @@ public struct CronJob: Codable, Sendable {
|
|||||||
|
|
||||||
public init(
|
public init(
|
||||||
id: String,
|
id: String,
|
||||||
|
agentid: String?,
|
||||||
name: String,
|
name: String,
|
||||||
description: String?,
|
description: String?,
|
||||||
enabled: Bool,
|
enabled: Bool,
|
||||||
|
deleteafterrun: Bool?,
|
||||||
createdatms: Int,
|
createdatms: Int,
|
||||||
updatedatms: Int,
|
updatedatms: Int,
|
||||||
schedule: AnyCodable,
|
schedule: AnyCodable,
|
||||||
@@ -1379,9 +1383,11 @@ public struct CronJob: Codable, Sendable {
|
|||||||
state: [String: AnyCodable]
|
state: [String: AnyCodable]
|
||||||
) {
|
) {
|
||||||
self.id = id
|
self.id = id
|
||||||
|
self.agentid = agentid
|
||||||
self.name = name
|
self.name = name
|
||||||
self.description = description
|
self.description = description
|
||||||
self.enabled = enabled
|
self.enabled = enabled
|
||||||
|
self.deleteafterrun = deleteafterrun
|
||||||
self.createdatms = createdatms
|
self.createdatms = createdatms
|
||||||
self.updatedatms = updatedatms
|
self.updatedatms = updatedatms
|
||||||
self.schedule = schedule
|
self.schedule = schedule
|
||||||
@@ -1393,9 +1399,11 @@ public struct CronJob: Codable, Sendable {
|
|||||||
}
|
}
|
||||||
private enum CodingKeys: String, CodingKey {
|
private enum CodingKeys: String, CodingKey {
|
||||||
case id
|
case id
|
||||||
|
case agentid = "agentId"
|
||||||
case name
|
case name
|
||||||
case description
|
case description
|
||||||
case enabled
|
case enabled
|
||||||
|
case deleteafterrun = "deleteAfterRun"
|
||||||
case createdatms = "createdAtMs"
|
case createdatms = "createdAtMs"
|
||||||
case updatedatms = "updatedAtMs"
|
case updatedatms = "updatedAtMs"
|
||||||
case schedule
|
case schedule
|
||||||
@@ -1425,8 +1433,10 @@ public struct CronStatusParams: Codable, Sendable {
|
|||||||
|
|
||||||
public struct CronAddParams: Codable, Sendable {
|
public struct CronAddParams: Codable, Sendable {
|
||||||
public let name: String
|
public let name: String
|
||||||
|
public let agentid: AnyCodable?
|
||||||
public let description: String?
|
public let description: String?
|
||||||
public let enabled: Bool?
|
public let enabled: Bool?
|
||||||
|
public let deleteafterrun: Bool?
|
||||||
public let schedule: AnyCodable
|
public let schedule: AnyCodable
|
||||||
public let sessiontarget: AnyCodable
|
public let sessiontarget: AnyCodable
|
||||||
public let wakemode: AnyCodable
|
public let wakemode: AnyCodable
|
||||||
@@ -1435,8 +1445,10 @@ public struct CronAddParams: Codable, Sendable {
|
|||||||
|
|
||||||
public init(
|
public init(
|
||||||
name: String,
|
name: String,
|
||||||
|
agentid: AnyCodable?,
|
||||||
description: String?,
|
description: String?,
|
||||||
enabled: Bool?,
|
enabled: Bool?,
|
||||||
|
deleteafterrun: Bool?,
|
||||||
schedule: AnyCodable,
|
schedule: AnyCodable,
|
||||||
sessiontarget: AnyCodable,
|
sessiontarget: AnyCodable,
|
||||||
wakemode: AnyCodable,
|
wakemode: AnyCodable,
|
||||||
@@ -1444,8 +1456,10 @@ public struct CronAddParams: Codable, Sendable {
|
|||||||
isolation: [String: AnyCodable]?
|
isolation: [String: AnyCodable]?
|
||||||
) {
|
) {
|
||||||
self.name = name
|
self.name = name
|
||||||
|
self.agentid = agentid
|
||||||
self.description = description
|
self.description = description
|
||||||
self.enabled = enabled
|
self.enabled = enabled
|
||||||
|
self.deleteafterrun = deleteafterrun
|
||||||
self.schedule = schedule
|
self.schedule = schedule
|
||||||
self.sessiontarget = sessiontarget
|
self.sessiontarget = sessiontarget
|
||||||
self.wakemode = wakemode
|
self.wakemode = wakemode
|
||||||
@@ -1454,8 +1468,10 @@ public struct CronAddParams: Codable, Sendable {
|
|||||||
}
|
}
|
||||||
private enum CodingKeys: String, CodingKey {
|
private enum CodingKeys: String, CodingKey {
|
||||||
case name
|
case name
|
||||||
|
case agentid = "agentId"
|
||||||
case description
|
case description
|
||||||
case enabled
|
case enabled
|
||||||
|
case deleteafterrun = "deleteAfterRun"
|
||||||
case schedule
|
case schedule
|
||||||
case sessiontarget = "sessionTarget"
|
case sessiontarget = "sessionTarget"
|
||||||
case wakemode = "wakeMode"
|
case wakemode = "wakeMode"
|
||||||
@@ -1464,70 +1480,6 @@ public struct CronAddParams: Codable, Sendable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public struct CronUpdateParams: Codable, Sendable {
|
|
||||||
public let id: String
|
|
||||||
public let patch: [String: AnyCodable]
|
|
||||||
|
|
||||||
public init(
|
|
||||||
id: String,
|
|
||||||
patch: [String: AnyCodable]
|
|
||||||
) {
|
|
||||||
self.id = id
|
|
||||||
self.patch = patch
|
|
||||||
}
|
|
||||||
private enum CodingKeys: String, CodingKey {
|
|
||||||
case id
|
|
||||||
case patch
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public struct CronRemoveParams: Codable, Sendable {
|
|
||||||
public let id: String
|
|
||||||
|
|
||||||
public init(
|
|
||||||
id: String
|
|
||||||
) {
|
|
||||||
self.id = id
|
|
||||||
}
|
|
||||||
private enum CodingKeys: String, CodingKey {
|
|
||||||
case id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public struct CronRunParams: Codable, Sendable {
|
|
||||||
public let id: String
|
|
||||||
public let mode: AnyCodable?
|
|
||||||
|
|
||||||
public init(
|
|
||||||
id: String,
|
|
||||||
mode: AnyCodable?
|
|
||||||
) {
|
|
||||||
self.id = id
|
|
||||||
self.mode = mode
|
|
||||||
}
|
|
||||||
private enum CodingKeys: String, CodingKey {
|
|
||||||
case id
|
|
||||||
case mode
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public struct CronRunsParams: Codable, Sendable {
|
|
||||||
public let id: String
|
|
||||||
public let limit: Int?
|
|
||||||
|
|
||||||
public init(
|
|
||||||
id: String,
|
|
||||||
limit: Int?
|
|
||||||
) {
|
|
||||||
self.id = id
|
|
||||||
self.limit = limit
|
|
||||||
}
|
|
||||||
private enum CodingKeys: String, CodingKey {
|
|
||||||
case id
|
|
||||||
case limit
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public struct CronRunLogEntry: Codable, Sendable {
|
public struct CronRunLogEntry: Codable, Sendable {
|
||||||
public let ts: Int
|
public let ts: Int
|
||||||
public let jobid: String
|
public let jobid: String
|
||||||
|
|||||||
@@ -22,17 +22,17 @@ struct WizardCliOptions {
|
|||||||
case "--json":
|
case "--json":
|
||||||
opts.json = true
|
opts.json = true
|
||||||
case "--url":
|
case "--url":
|
||||||
opts.url = nextValue(args, index: &i)
|
opts.url = self.nextValue(args, index: &i)
|
||||||
case "--token":
|
case "--token":
|
||||||
opts.token = nextValue(args, index: &i)
|
opts.token = self.nextValue(args, index: &i)
|
||||||
case "--password":
|
case "--password":
|
||||||
opts.password = nextValue(args, index: &i)
|
opts.password = self.nextValue(args, index: &i)
|
||||||
case "--mode":
|
case "--mode":
|
||||||
if let value = nextValue(args, index: &i) {
|
if let value = nextValue(args, index: &i) {
|
||||||
opts.mode = value
|
opts.mode = value
|
||||||
}
|
}
|
||||||
case "--workspace":
|
case "--workspace":
|
||||||
opts.workspace = nextValue(args, index: &i)
|
opts.workspace = self.nextValue(args, index: &i)
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@@ -118,7 +118,8 @@ private func printUsage() {
|
|||||||
clawdbot-mac-wizard
|
clawdbot-mac-wizard
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
clawdbot-mac-wizard [--url <ws://host:port>] [--token <token>] [--password <password>] [--mode <local|remote>] [--workspace <path>] [--json]
|
clawdbot-mac-wizard [--url <ws://host:port>] [--token <token>] [--password <password>]
|
||||||
|
[--mode <local|remote>] [--workspace <path>] [--json]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--url <url> Gateway WebSocket URL (overrides config)
|
--url <url> Gateway WebSocket URL (overrides config)
|
||||||
|
|||||||
@@ -23,8 +23,11 @@ struct CronJobEditorSmokeTests {
|
|||||||
@Test func cronJobEditorBuildsBodyForExistingJob() {
|
@Test func cronJobEditorBuildsBodyForExistingJob() {
|
||||||
let job = CronJob(
|
let job = CronJob(
|
||||||
id: "job-1",
|
id: "job-1",
|
||||||
|
agentId: "ops",
|
||||||
name: "Daily summary",
|
name: "Daily summary",
|
||||||
|
description: nil,
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
deleteAfterRun: nil,
|
||||||
createdAtMs: 1_700_000_000_000,
|
createdAtMs: 1_700_000_000_000,
|
||||||
updatedAtMs: 1_700_000_000_000,
|
updatedAtMs: 1_700_000_000_000,
|
||||||
schedule: .every(everyMs: 3_600_000, anchorMs: 1_700_000_000_000),
|
schedule: .every(everyMs: 3_600_000, anchorMs: 1_700_000_000_000),
|
||||||
@@ -65,4 +68,24 @@ struct CronJobEditorSmokeTests {
|
|||||||
onSave: { _ in })
|
onSave: { _ in })
|
||||||
view.exerciseForTesting()
|
view.exerciseForTesting()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test func cronJobEditorIncludesDeleteAfterRunForAtSchedule() throws {
|
||||||
|
var view = CronJobEditor(
|
||||||
|
job: nil,
|
||||||
|
isSaving: .constant(false),
|
||||||
|
error: .constant(nil),
|
||||||
|
onCancel: {},
|
||||||
|
onSave: { _ in })
|
||||||
|
view.name = "One-shot"
|
||||||
|
view.sessionTarget = .main
|
||||||
|
view.payloadKind = .systemEvent
|
||||||
|
view.systemEventText = "hello"
|
||||||
|
view.scheduleKind = .at
|
||||||
|
view.atDate = Date(timeIntervalSince1970: 1_700_000_000)
|
||||||
|
view.deleteAfterRun = true
|
||||||
|
|
||||||
|
let payload = try view.buildPayload()
|
||||||
|
let raw = payload["deleteAfterRun"]?.value as? Bool
|
||||||
|
#expect(raw == true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -39,6 +39,27 @@ struct CronModelsTests {
|
|||||||
#expect(decoded == payload)
|
#expect(decoded == payload)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test func jobEncodesAndDecodesDeleteAfterRun() throws {
|
||||||
|
let job = CronJob(
|
||||||
|
id: "job-1",
|
||||||
|
agentId: nil,
|
||||||
|
name: "One-shot",
|
||||||
|
description: nil,
|
||||||
|
enabled: true,
|
||||||
|
deleteAfterRun: true,
|
||||||
|
createdAtMs: 0,
|
||||||
|
updatedAtMs: 0,
|
||||||
|
schedule: .at(atMs: 1_700_000_000_000),
|
||||||
|
sessionTarget: .main,
|
||||||
|
wakeMode: .now,
|
||||||
|
payload: .systemEvent(text: "ping"),
|
||||||
|
isolation: nil,
|
||||||
|
state: CronJobState())
|
||||||
|
let data = try JSONEncoder().encode(job)
|
||||||
|
let decoded = try JSONDecoder().decode(CronJob.self, from: data)
|
||||||
|
#expect(decoded.deleteAfterRun == true)
|
||||||
|
}
|
||||||
|
|
||||||
@Test func scheduleDecodeRejectsUnknownKind() {
|
@Test func scheduleDecodeRejectsUnknownKind() {
|
||||||
let json = """
|
let json = """
|
||||||
{"kind":"wat","atMs":1}
|
{"kind":"wat","atMs":1}
|
||||||
@@ -60,9 +81,11 @@ struct CronModelsTests {
|
|||||||
@Test func displayNameTrimsWhitespaceAndFallsBack() {
|
@Test func displayNameTrimsWhitespaceAndFallsBack() {
|
||||||
let base = CronJob(
|
let base = CronJob(
|
||||||
id: "x",
|
id: "x",
|
||||||
|
agentId: nil,
|
||||||
name: " hello ",
|
name: " hello ",
|
||||||
description: nil,
|
description: nil,
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
deleteAfterRun: nil,
|
||||||
createdAtMs: 0,
|
createdAtMs: 0,
|
||||||
updatedAtMs: 0,
|
updatedAtMs: 0,
|
||||||
schedule: .at(atMs: 0),
|
schedule: .at(atMs: 0),
|
||||||
@@ -81,9 +104,11 @@ struct CronModelsTests {
|
|||||||
@Test func nextRunDateAndLastRunDateDeriveFromState() {
|
@Test func nextRunDateAndLastRunDateDeriveFromState() {
|
||||||
let job = CronJob(
|
let job = CronJob(
|
||||||
id: "x",
|
id: "x",
|
||||||
|
agentId: nil,
|
||||||
name: "t",
|
name: "t",
|
||||||
description: nil,
|
description: nil,
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
deleteAfterRun: nil,
|
||||||
createdAtMs: 0,
|
createdAtMs: 0,
|
||||||
updatedAtMs: 0,
|
updatedAtMs: 0,
|
||||||
schedule: .at(atMs: 0),
|
schedule: .at(atMs: 0),
|
||||||
|
|||||||
@@ -19,22 +19,19 @@ import Testing
|
|||||||
error: "gateway connect failed",
|
error: "gateway connect failed",
|
||||||
elapsedMs: 12,
|
elapsedMs: 12,
|
||||||
bot: nil,
|
bot: nil,
|
||||||
webhook: nil
|
webhook: nil),
|
||||||
),
|
lastProbeAt: 0),
|
||||||
lastProbeAt: 0
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
providerOrder: ["whatsapp"],
|
providerOrder: ["whatsapp"],
|
||||||
providerLabels: ["whatsapp": "WhatsApp"],
|
providerLabels: ["whatsapp": "WhatsApp"],
|
||||||
heartbeatSeconds: 60,
|
heartbeatSeconds: 60,
|
||||||
sessions: .init(path: "/tmp/sessions.json", count: 0, recent: [])
|
sessions: .init(path: "/tmp/sessions.json", count: 0, recent: []))
|
||||||
)
|
|
||||||
|
|
||||||
let store = HealthStore.shared
|
let store = HealthStore.shared
|
||||||
store.__setSnapshotForTest(snap, lastError: nil)
|
store.__setSnapshotForTest(snap, lastError: nil)
|
||||||
|
|
||||||
switch store.state {
|
switch store.state {
|
||||||
case .degraded(let message):
|
case let .degraded(message):
|
||||||
#expect(!message.isEmpty)
|
#expect(!message.isEmpty)
|
||||||
default:
|
default:
|
||||||
Issue.record("Expected degraded state when probe fails for linked provider")
|
Issue.record("Expected degraded state when probe fails for linked provider")
|
||||||
@@ -43,4 +40,3 @@ import Testing
|
|||||||
#expect(store.summaryLine.contains("probe degraded"))
|
#expect(store.summaryLine.contains("probe degraded"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -12,9 +12,11 @@ struct SettingsViewSmokeTests {
|
|||||||
|
|
||||||
let job1 = CronJob(
|
let job1 = CronJob(
|
||||||
id: "job-1",
|
id: "job-1",
|
||||||
|
agentId: "ops",
|
||||||
name: " Morning Check-in ",
|
name: " Morning Check-in ",
|
||||||
description: nil,
|
description: nil,
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
deleteAfterRun: nil,
|
||||||
createdAtMs: 1_700_000_000_000,
|
createdAtMs: 1_700_000_000_000,
|
||||||
updatedAtMs: 1_700_000_100_000,
|
updatedAtMs: 1_700_000_100_000,
|
||||||
schedule: .cron(expr: "0 8 * * *", tz: "UTC"),
|
schedule: .cron(expr: "0 8 * * *", tz: "UTC"),
|
||||||
@@ -32,9 +34,11 @@ struct SettingsViewSmokeTests {
|
|||||||
|
|
||||||
let job2 = CronJob(
|
let job2 = CronJob(
|
||||||
id: "job-2",
|
id: "job-2",
|
||||||
|
agentId: nil,
|
||||||
name: "",
|
name: "",
|
||||||
description: nil,
|
description: nil,
|
||||||
enabled: false,
|
enabled: false,
|
||||||
|
deleteAfterRun: nil,
|
||||||
createdAtMs: 1_700_000_000_000,
|
createdAtMs: 1_700_000_000_000,
|
||||||
updatedAtMs: 1_700_000_100_000,
|
updatedAtMs: 1_700_000_100_000,
|
||||||
schedule: .every(everyMs: 30000, anchorMs: nil),
|
schedule: .every(everyMs: 30000, anchorMs: nil),
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 254 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 79 KiB |
@@ -20,6 +20,24 @@ cron is the mechanism.
|
|||||||
- **Isolated**: run a dedicated agent turn in `cron:<jobId>`, optionally deliver output.
|
- **Isolated**: run a dedicated agent turn in `cron:<jobId>`, optionally deliver output.
|
||||||
- Wakeups are first-class: a job can request “wake now” vs “next heartbeat”.
|
- Wakeups are first-class: a job can request “wake now” vs “next heartbeat”.
|
||||||
|
|
||||||
|
## Beginner-friendly overview
|
||||||
|
Think of a cron job as: **when** to run + **what** to do.
|
||||||
|
|
||||||
|
1) **Choose a schedule**
|
||||||
|
- One-shot reminder → `schedule.kind = "at"` (CLI: `--at`)
|
||||||
|
- Repeating job → `schedule.kind = "every"` or `schedule.kind = "cron"`
|
||||||
|
- If your ISO timestamp omits a timezone, it is treated as **UTC**.
|
||||||
|
|
||||||
|
2) **Choose where it runs**
|
||||||
|
- `sessionTarget: "main"` → run during the next heartbeat with main context.
|
||||||
|
- `sessionTarget: "isolated"` → run a dedicated agent turn in `cron:<jobId>`.
|
||||||
|
|
||||||
|
3) **Choose the payload**
|
||||||
|
- Main session → `payload.kind = "systemEvent"`
|
||||||
|
- Isolated session → `payload.kind = "agentTurn"`
|
||||||
|
|
||||||
|
Optional: `deleteAfterRun: true` removes successful one-shot jobs from the store.
|
||||||
|
|
||||||
## Concepts
|
## Concepts
|
||||||
|
|
||||||
### Jobs
|
### Jobs
|
||||||
@@ -27,13 +45,16 @@ A cron job is a stored record with:
|
|||||||
- a **schedule** (when it should run),
|
- a **schedule** (when it should run),
|
||||||
- a **payload** (what it should do),
|
- a **payload** (what it should do),
|
||||||
- optional **delivery** (where output should be sent).
|
- optional **delivery** (where output should be sent).
|
||||||
|
- optional **agent binding** (`agentId`): run the job under a specific agent; if
|
||||||
|
missing or unknown, the gateway falls back to the default agent.
|
||||||
|
|
||||||
Jobs are identified by a stable `jobId` (used by CLI/Gateway APIs).
|
Jobs are identified by a stable `jobId` (used by CLI/Gateway APIs).
|
||||||
In agent tool calls, `jobId` is canonical; legacy `id` is accepted for compatibility.
|
In agent tool calls, `jobId` is canonical; legacy `id` is accepted for compatibility.
|
||||||
|
Jobs can optionally auto-delete after a successful one-shot run via `deleteAfterRun: true`.
|
||||||
|
|
||||||
### Schedules
|
### Schedules
|
||||||
Cron supports three schedule kinds:
|
Cron supports three schedule kinds:
|
||||||
- `at`: one-shot timestamp (ms since epoch).
|
- `at`: one-shot timestamp (ms since epoch). Gateway accepts ISO 8601 and coerces to UTC.
|
||||||
- `every`: fixed interval (ms).
|
- `every`: fixed interval (ms).
|
||||||
- `cron`: 5-field cron expression with optional IANA timezone.
|
- `cron`: 5-field cron expression with optional IANA timezone.
|
||||||
|
|
||||||
@@ -84,7 +105,7 @@ Isolation options (only for `session=isolated`):
|
|||||||
### Model and thinking overrides
|
### Model and thinking overrides
|
||||||
Isolated jobs (`agentTurn`) can override the model and thinking level:
|
Isolated jobs (`agentTurn`) can override the model and thinking level:
|
||||||
- `model`: Provider/model string (e.g., `anthropic/claude-sonnet-4-20250514`) or alias (e.g., `opus`)
|
- `model`: Provider/model string (e.g., `anthropic/claude-sonnet-4-20250514`) or alias (e.g., `opus`)
|
||||||
- `thinking`: Thinking level (`off`, `minimal`, `low`, `medium`, `high`)
|
- `thinking`: Thinking level (`off`, `minimal`, `low`, `medium`, `high`, `xhigh`; GPT-5.2 + Codex models only)
|
||||||
|
|
||||||
Note: You can set `model` on main-session jobs too, but it changes the shared main
|
Note: You can set `model` on main-session jobs too, but it changes the shared main
|
||||||
session model. We recommend model overrides only for isolated jobs to avoid
|
session model. We recommend model overrides only for isolated jobs to avoid
|
||||||
@@ -141,6 +162,17 @@ Disable cron entirely:
|
|||||||
|
|
||||||
## CLI quickstart
|
## CLI quickstart
|
||||||
|
|
||||||
|
One-shot reminder (UTC ISO, auto-delete after success):
|
||||||
|
```bash
|
||||||
|
clawdbot cron add \
|
||||||
|
--name "Send reminder" \
|
||||||
|
--at "2026-01-12T18:00:00Z" \
|
||||||
|
--session main \
|
||||||
|
--system-event "Reminder: submit expense report." \
|
||||||
|
--wake now \
|
||||||
|
--delete-after-run
|
||||||
|
```
|
||||||
|
|
||||||
One-shot reminder (main session, wake immediately):
|
One-shot reminder (main session, wake immediately):
|
||||||
```bash
|
```bash
|
||||||
clawdbot cron add \
|
clawdbot cron add \
|
||||||
@@ -190,6 +222,16 @@ clawdbot cron add \
|
|||||||
--deliver \
|
--deliver \
|
||||||
--provider whatsapp \
|
--provider whatsapp \
|
||||||
--to "+15551234567"
|
--to "+15551234567"
|
||||||
|
|
||||||
|
Agent selection (multi-agent setups):
|
||||||
|
```bash
|
||||||
|
# Pin a job to agent "ops" (falls back to default if that agent is missing)
|
||||||
|
clawdbot cron add --name "Ops sweep" --cron "0 6 * * *" --session isolated --message "Check ops queue" --agent ops
|
||||||
|
|
||||||
|
# Switch or clear the agent on an existing job
|
||||||
|
clawdbot cron edit <jobId> --agent ops
|
||||||
|
clawdbot cron edit <jobId> --clear-agent
|
||||||
|
```
|
||||||
```
|
```
|
||||||
|
|
||||||
Manual run (debug):
|
Manual run (debug):
|
||||||
|
|||||||
@@ -0,0 +1,71 @@
|
|||||||
|
---
|
||||||
|
summary: "Use Amazon Bedrock (Converse API) models with Clawdbot"
|
||||||
|
read_when:
|
||||||
|
- You want to use Amazon Bedrock models with Clawdbot
|
||||||
|
- You need AWS credential/region setup for model calls
|
||||||
|
---
|
||||||
|
# Amazon Bedrock
|
||||||
|
|
||||||
|
Clawdbot can use **Amazon Bedrock** models via pi‑ai’s **Bedrock Converse**
|
||||||
|
streaming provider. Bedrock auth uses the **AWS SDK default credential chain**,
|
||||||
|
not an API key.
|
||||||
|
|
||||||
|
## What pi‑ai supports
|
||||||
|
|
||||||
|
- Provider: `amazon-bedrock`
|
||||||
|
- API: `bedrock-converse-stream`
|
||||||
|
- Auth: AWS credentials (env vars, shared config, or instance role)
|
||||||
|
- Region: `AWS_REGION` or `AWS_DEFAULT_REGION` (default: `us-east-1`)
|
||||||
|
|
||||||
|
## Setup (manual)
|
||||||
|
|
||||||
|
1) Ensure AWS credentials are available on the **gateway host**:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
export AWS_ACCESS_KEY_ID="AKIA..."
|
||||||
|
export AWS_SECRET_ACCESS_KEY="..."
|
||||||
|
export AWS_REGION="us-east-1"
|
||||||
|
# Optional:
|
||||||
|
export AWS_SESSION_TOKEN="..."
|
||||||
|
export AWS_PROFILE="your-profile"
|
||||||
|
```
|
||||||
|
|
||||||
|
2) Add a Bedrock provider and model to your config:
|
||||||
|
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
models: {
|
||||||
|
providers: {
|
||||||
|
"amazon-bedrock": {
|
||||||
|
baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com",
|
||||||
|
api: "bedrock-converse-stream",
|
||||||
|
models: [
|
||||||
|
{
|
||||||
|
id: "anthropic.claude-3-7-sonnet-20250219-v1:0",
|
||||||
|
name: "Claude 3.7 Sonnet (Bedrock)",
|
||||||
|
reasoning: true,
|
||||||
|
input: ["text"],
|
||||||
|
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
||||||
|
contextWindow: 200000,
|
||||||
|
maxTokens: 8192
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
agents: {
|
||||||
|
defaults: {
|
||||||
|
model: { primary: "amazon-bedrock/anthropic.claude-3-7-sonnet-20250219-v1:0" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
|
||||||
|
- Bedrock requires **model access** enabled in your AWS account/region.
|
||||||
|
- If you use profiles, set `AWS_PROFILE` on the gateway host.
|
||||||
|
- Reasoning support depends on the model; check the Bedrock model card for
|
||||||
|
current capabilities.
|
||||||
|
- If you prefer a managed key flow, you can also place an OpenAI‑compatible
|
||||||
|
proxy in front of Bedrock and configure it as an OpenAI provider instead.
|
||||||
+16
-4
@@ -70,6 +70,10 @@ clawdbot [--dev] [--profile <name>] <command>
|
|||||||
enable
|
enable
|
||||||
disable
|
disable
|
||||||
doctor
|
doctor
|
||||||
|
memory
|
||||||
|
status
|
||||||
|
index
|
||||||
|
search
|
||||||
message
|
message
|
||||||
agent
|
agent
|
||||||
agents
|
agents
|
||||||
@@ -188,6 +192,14 @@ Manage extensions and their config:
|
|||||||
|
|
||||||
Most plugin changes require a gateway restart. See [/plugin](/plugin).
|
Most plugin changes require a gateway restart. See [/plugin](/plugin).
|
||||||
|
|
||||||
|
## Memory
|
||||||
|
|
||||||
|
Vector search over `MEMORY.md` + `memory/*.md`:
|
||||||
|
|
||||||
|
- `clawdbot memory status` — show index stats.
|
||||||
|
- `clawdbot memory index` — reindex memory files.
|
||||||
|
- `clawdbot memory search "<query>"` — semantic search over memory.
|
||||||
|
|
||||||
## Chat slash commands
|
## Chat slash commands
|
||||||
|
|
||||||
Chat messages support `/...` commands (text and native). See [/tools/slash-commands](/tools/slash-commands).
|
Chat messages support `/...` commands (text and native). See [/tools/slash-commands](/tools/slash-commands).
|
||||||
@@ -245,12 +257,12 @@ Options:
|
|||||||
- `--tailscale-reset-on-exit`
|
- `--tailscale-reset-on-exit`
|
||||||
- `--install-daemon`
|
- `--install-daemon`
|
||||||
- `--no-install-daemon` (alias: `--skip-daemon`)
|
- `--no-install-daemon` (alias: `--skip-daemon`)
|
||||||
- `--daemon-runtime <node|bun>`
|
- `--daemon-runtime <node|bun>` (bun not recommended for WhatsApp/Telegram)
|
||||||
- `--skip-providers`
|
- `--skip-providers`
|
||||||
- `--skip-skills`
|
- `--skip-skills`
|
||||||
- `--skip-health`
|
- `--skip-health`
|
||||||
- `--skip-ui`
|
- `--skip-ui`
|
||||||
- `--node-manager <npm|pnpm|bun>`
|
- `--node-manager <npm|pnpm|bun>` (pnpm recommended; bun not recommended for Gateway runtime)
|
||||||
- `--json`
|
- `--json`
|
||||||
|
|
||||||
### `configure` / `config`
|
### `configure` / `config`
|
||||||
@@ -386,7 +398,7 @@ Required:
|
|||||||
Options:
|
Options:
|
||||||
- `--to <dest>` (for session key and optional delivery)
|
- `--to <dest>` (for session key and optional delivery)
|
||||||
- `--session-id <id>`
|
- `--session-id <id>`
|
||||||
- `--thinking <off|minimal|low|medium|high>`
|
- `--thinking <off|minimal|low|medium|high|xhigh>` (GPT-5.2 + Codex models only)
|
||||||
- `--verbose <on|off>`
|
- `--verbose <on|off>`
|
||||||
- `--provider <whatsapp|telegram|discord|slack|signal|imessage>`
|
- `--provider <whatsapp|telegram|discord|slack|signal|imessage>`
|
||||||
- `--local`
|
- `--local`
|
||||||
@@ -537,7 +549,7 @@ Notes:
|
|||||||
- `daemon status` supports `--no-probe`, `--deep`, and `--json` for scripting.
|
- `daemon status` supports `--no-probe`, `--deep`, and `--json` for scripting.
|
||||||
- `daemon status` also surfaces legacy or extra gateway services when it can detect them (`--deep` adds system-level scans). Profile-named Clawdbot services are treated as first-class and aren't flagged as "extra".
|
- `daemon status` also surfaces legacy or extra gateway services when it can detect them (`--deep` adds system-level scans). Profile-named Clawdbot services are treated as first-class and aren't flagged as "extra".
|
||||||
- `daemon status` prints which config path the CLI uses vs which config the daemon likely uses (service env), plus the resolved probe target URL.
|
- `daemon status` prints which config path the CLI uses vs which config the daemon likely uses (service env), plus the resolved probe target URL.
|
||||||
- `daemon install` defaults to Node runtime; use `--runtime bun` only when WhatsApp is disabled.
|
- `daemon install` defaults to Node runtime; bun is **not recommended** (WhatsApp/Telegram bugs).
|
||||||
- `daemon install` options: `--port`, `--runtime`, `--token`, `--force`.
|
- `daemon install` options: `--port`, `--runtime`, `--token`, `--force`.
|
||||||
|
|
||||||
### `logs`
|
### `logs`
|
||||||
|
|||||||
+2
-2
@@ -46,7 +46,7 @@ Target formats (`--to`):
|
|||||||
- Providers: WhatsApp/Telegram/Discord/Slack/Signal/iMessage/MS Teams
|
- Providers: WhatsApp/Telegram/Discord/Slack/Signal/iMessage/MS Teams
|
||||||
- Required: `--to`, `--message`
|
- Required: `--to`, `--message`
|
||||||
- Optional: `--media`, `--reply-to`, `--thread-id`, `--gif-playback`
|
- Optional: `--media`, `--reply-to`, `--thread-id`, `--gif-playback`
|
||||||
- Telegram only: `--buttons-json` (requires `"inlineButtons"` in `telegram.capabilities` or `telegram.accounts.<id>.capabilities`)
|
- Telegram only: `--buttons` (requires `"inlineButtons"` in `telegram.capabilities` or `telegram.accounts.<id>.capabilities`)
|
||||||
- Telegram only: `--thread-id` (forum topic id)
|
- Telegram only: `--thread-id` (forum topic id)
|
||||||
- Slack only: `--thread-id` (thread timestamp; `--reply-to` uses the same field)
|
- Slack only: `--thread-id` (thread timestamp; `--reply-to` uses the same field)
|
||||||
- WhatsApp only: `--gif-playback`
|
- WhatsApp only: `--gif-playback`
|
||||||
@@ -206,5 +206,5 @@ clawdbot message react --provider slack \
|
|||||||
Send Telegram inline buttons:
|
Send Telegram inline buttons:
|
||||||
```
|
```
|
||||||
clawdbot message send --provider telegram --to @mychat --message "Choose:" \
|
clawdbot message send --provider telegram --to @mychat --message "Choose:" \
|
||||||
--buttons-json '[ [{"text":"Yes","callback_data":"cmd:yes"}], [{"text":"No","callback_data":"cmd:no"}] ]'
|
--buttons '[ [{"text":"Yes","callback_data":"cmd:yes"}], [{"text":"No","callback_data":"cmd:no"}] ]'
|
||||||
```
|
```
|
||||||
+2
-2
@@ -9,7 +9,7 @@ read_when:
|
|||||||
|
|
||||||
Safely update a **source checkout** (git install) of Clawdbot.
|
Safely update a **source checkout** (git install) of Clawdbot.
|
||||||
|
|
||||||
If you installed via **npm/pnpm/bun** (global install, no git metadata), use the package manager flow in [Updating](/install/updating).
|
If you installed via **npm/pnpm** (global install, no git metadata), use the package manager flow in [Updating](/install/updating).
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@ High-level:
|
|||||||
|
|
||||||
1. Requires a clean worktree (no uncommitted changes).
|
1. Requires a clean worktree (no uncommitted changes).
|
||||||
2. Fetches and rebases against `@{upstream}`.
|
2. Fetches and rebases against `@{upstream}`.
|
||||||
3. Installs deps (pnpm/bun/npm depending on the checkout).
|
3. Installs deps (pnpm preferred; npm fallback).
|
||||||
4. Builds + builds the Control UI.
|
4. Builds + builds the Control UI.
|
||||||
5. Runs `clawdbot doctor` as the final “safe update” check.
|
5. Runs `clawdbot doctor` as the final “safe update” check.
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
---
|
||||||
|
summary: "Compaction modes and configuration"
|
||||||
|
read_when:
|
||||||
|
- You want to configure compaction summarization behavior
|
||||||
|
- You are tuning compaction settings in clawdbot.json
|
||||||
|
---
|
||||||
|
# Compaction
|
||||||
|
|
||||||
|
Compaction summarizes older session history so the conversation stays within the model context window. The summary is stored in the session JSONL history and combined with the most recent messages.
|
||||||
|
|
||||||
|
## Modes
|
||||||
|
|
||||||
|
`agents.defaults.compaction.mode` controls how summaries are generated.
|
||||||
|
|
||||||
|
- `default` (default): use the built-in compaction summarizer.
|
||||||
|
- `safeguard`: uses a chunked summarization pass to avoid context overflow for very long histories. If chunked summarization fails, Clawdbot falls back to a minimal summary plus file-operation metadata.
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
agents: {
|
||||||
|
defaults: {
|
||||||
|
compaction: {
|
||||||
|
mode: "safeguard",
|
||||||
|
reserveTokensFloor: 20000,
|
||||||
|
memoryFlush: {
|
||||||
|
enabled: true,
|
||||||
|
softThresholdTokens: 4000
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Related docs
|
||||||
|
|
||||||
|
- [Context window + compaction behavior](/concepts/compaction)
|
||||||
|
- [Gateway configuration reference](/gateway/configuration)
|
||||||
@@ -109,8 +109,10 @@ See [Memory](/concepts/memory) for the workflow and automatic memory flush.
|
|||||||
- Canvas UI files for node displays (for example `canvas/index.html`).
|
- Canvas UI files for node displays (for example `canvas/index.html`).
|
||||||
|
|
||||||
If any bootstrap file is missing, Clawdbot injects a "missing file" marker into
|
If any bootstrap file is missing, Clawdbot injects a "missing file" marker into
|
||||||
the session and continues. `clawdbot setup` can recreate missing defaults
|
the session and continues. Large bootstrap files are truncated when injected;
|
||||||
without overwriting existing files.
|
adjust the limit with `agents.defaults.bootstrapMaxChars` (default: 20000).
|
||||||
|
`clawdbot setup` can recreate missing defaults without overwriting existing
|
||||||
|
files.
|
||||||
|
|
||||||
## What is NOT in the workspace
|
## What is NOT in the workspace
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,9 @@ Compaction **summarizes older conversation** into a compact summary entry and ke
|
|||||||
|
|
||||||
Compaction **persists** in the session’s JSONL history.
|
Compaction **persists** in the session’s JSONL history.
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
See [Compaction config & modes](/compaction) for the `agents.defaults.compaction` settings.
|
||||||
|
|
||||||
## Auto-compaction (default on)
|
## Auto-compaction (default on)
|
||||||
When a session nears or exceeds the model’s context window, Clawdbot triggers auto-compaction and may retry the original request using the compacted context.
|
When a session nears or exceeds the model’s context window, Clawdbot triggers auto-compaction and may retry the original request using the compacted context.
|
||||||
|
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ Group inbound payloads set:
|
|||||||
- `WasMentioned` (mention gating result)
|
- `WasMentioned` (mention gating result)
|
||||||
- Telegram forum topics also include `MessageThreadId` and `IsForum`.
|
- Telegram forum topics also include `MessageThreadId` and `IsForum`.
|
||||||
|
|
||||||
The agent system prompt includes a group intro on the first turn of a new group session.
|
The agent system prompt includes a group intro on the first turn of a new group session. It reminds the model to respond like a human, avoid Markdown tables, and avoid typing literal `\n` sequences.
|
||||||
|
|
||||||
## iMessage specifics
|
## iMessage specifics
|
||||||
- Prefer `chat_id:<id>` when routing or allowlisting.
|
- Prefer `chat_id:<id>` when routing or allowlisting.
|
||||||
|
|||||||
@@ -67,3 +67,110 @@ Details:
|
|||||||
|
|
||||||
For the full compaction lifecycle, see
|
For the full compaction lifecycle, see
|
||||||
[Session management + compaction](/reference/session-management-compaction).
|
[Session management + compaction](/reference/session-management-compaction).
|
||||||
|
|
||||||
|
## Vector memory search
|
||||||
|
|
||||||
|
Clawdbot can build a small vector index over `MEMORY.md` and `memory/*.md` so
|
||||||
|
semantic queries can find related notes even when wording differs.
|
||||||
|
|
||||||
|
Defaults:
|
||||||
|
- Enabled by default.
|
||||||
|
- Watches memory files for changes (debounced).
|
||||||
|
- Uses remote embeddings (OpenAI) unless configured for local.
|
||||||
|
- Local mode uses node-llama-cpp and may require `pnpm approve-builds`.
|
||||||
|
|
||||||
|
Remote embeddings **require** an API key for the embedding provider. By default
|
||||||
|
this is OpenAI (`OPENAI_API_KEY` or `models.providers.openai.apiKey`). Codex
|
||||||
|
OAuth only covers chat/completions and does **not** satisfy embeddings for
|
||||||
|
memory search. When using a custom OpenAI-compatible endpoint, set
|
||||||
|
`memorySearch.remote.apiKey` (and optional `memorySearch.remote.headers`).
|
||||||
|
|
||||||
|
If you want to use a **custom OpenAI-compatible endpoint** (like Gemini, OpenRouter, or a proxy),
|
||||||
|
you can use the `remote` configuration:
|
||||||
|
|
||||||
|
```json5
|
||||||
|
agents: {
|
||||||
|
defaults: {
|
||||||
|
memorySearch: {
|
||||||
|
provider: "openai",
|
||||||
|
model: "text-embedding-3-small",
|
||||||
|
remote: {
|
||||||
|
baseUrl: "https://generativelanguage.googleapis.com/v1beta/openai/",
|
||||||
|
apiKey: "YOUR_GEMINI_API_KEY",
|
||||||
|
headers: { "X-Custom-Header": "value" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
If you don't want to set an API key, use `memorySearch.provider = "local"` or set
|
||||||
|
`memorySearch.fallback = "none"`.
|
||||||
|
|
||||||
|
Config example:
|
||||||
|
|
||||||
|
```json5
|
||||||
|
agents: {
|
||||||
|
defaults: {
|
||||||
|
memorySearch: {
|
||||||
|
provider: "openai",
|
||||||
|
model: "text-embedding-3-small",
|
||||||
|
fallback: "openai",
|
||||||
|
sync: { watch: true }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Tools:
|
||||||
|
- `memory_search` — returns snippets with file + line ranges.
|
||||||
|
- `memory_get` — read memory file content by path.
|
||||||
|
|
||||||
|
Local mode:
|
||||||
|
- Set `agents.defaults.memorySearch.provider = "local"`.
|
||||||
|
- Provide `agents.defaults.memorySearch.local.modelPath` (GGUF or `hf:` URI).
|
||||||
|
- Optional: set `agents.defaults.memorySearch.fallback = "none"` to avoid remote fallback.
|
||||||
|
|
||||||
|
### How the memory tools work
|
||||||
|
|
||||||
|
- `memory_search` semantically searches Markdown chunks (~400 token target, 80-token overlap) from `MEMORY.md` + `memory/**/*.md`. It returns snippet text (capped ~700 chars), file path, line range, score, provider/model, and whether we fell back from local → remote embeddings. No full file payload is returned.
|
||||||
|
- `memory_get` reads a specific memory Markdown file (workspace-relative), optionally from a starting line and for N lines. Paths outside `MEMORY.md` / `memory/` are rejected.
|
||||||
|
- Both tools are enabled only when `memorySearch.enabled` resolves true for the agent.
|
||||||
|
|
||||||
|
### What gets indexed (and when)
|
||||||
|
|
||||||
|
- File type: Markdown only (`MEMORY.md`, `memory/**/*.md`).
|
||||||
|
- Index storage: per-agent SQLite at `~/.clawdbot/state/memory/<agentId>.sqlite` (configurable via `agents.defaults.memorySearch.store.path`, supports `{agentId}` token).
|
||||||
|
- Freshness: watcher on `MEMORY.md` + `memory/` marks the index dirty (debounce 1.5s). Sync runs on session start, on first search when dirty, and optionally on an interval. Reindex triggers when embedding model/provider or chunk sizes change.
|
||||||
|
|
||||||
|
### Local embedding auto-download
|
||||||
|
|
||||||
|
- Default local embedding model: `hf:ggml-org/embeddinggemma-300M-GGUF/embeddinggemma-300M-Q8_0.gguf` (~0.6 GB).
|
||||||
|
- When `memorySearch.provider = "local"`, `node-llama-cpp` resolves `modelPath`; if the GGUF is missing it **auto-downloads** to the cache (or `local.modelCacheDir` if set), then loads it. Downloads resume on retry.
|
||||||
|
- Native build requirement: run `pnpm approve-builds`, pick `node-llama-cpp`, then `pnpm rebuild node-llama-cpp`.
|
||||||
|
- Fallback: if local setup fails and `memorySearch.fallback = "openai"`, we automatically switch to remote embeddings (`openai/text-embedding-3-small` unless overridden) and record the reason.
|
||||||
|
|
||||||
|
### Custom OpenAI-compatible endpoint example
|
||||||
|
|
||||||
|
```json5
|
||||||
|
agents: {
|
||||||
|
defaults: {
|
||||||
|
memorySearch: {
|
||||||
|
provider: "openai",
|
||||||
|
model: "text-embedding-3-small",
|
||||||
|
remote: {
|
||||||
|
baseUrl: "https://api.example.com/v1/",
|
||||||
|
apiKey: "YOUR_REMOTE_API_KEY",
|
||||||
|
headers: {
|
||||||
|
"X-Organization": "org-id",
|
||||||
|
"X-Project": "project-id"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Notes:
|
||||||
|
- `remote.*` takes precedence over `models.providers.openai.*`.
|
||||||
|
- `remote.headers` merge with OpenAI headers; remote wins on key conflicts. Omit `remote.headers` to use the OpenAI defaults.
|
||||||
@@ -117,8 +117,13 @@ Moonshot uses OpenAI-compatible endpoints, so configure it as a custom provider:
|
|||||||
- Provider: `moonshot`
|
- Provider: `moonshot`
|
||||||
- Auth: `MOONSHOT_API_KEY`
|
- Auth: `MOONSHOT_API_KEY`
|
||||||
- Example model: `moonshot/kimi-k2-0905-preview`
|
- Example model: `moonshot/kimi-k2-0905-preview`
|
||||||
- CLI: `clawdbot onboard --auth-choice moonshot-api-key`
|
- Kimi K2 model IDs:
|
||||||
|
{/* moonshot-kimi-k2-model-refs:start */}
|
||||||
|
- `moonshot/kimi-k2-0905-preview`
|
||||||
|
- `moonshot/kimi-k2-turbo-preview`
|
||||||
|
- `moonshot/kimi-k2-thinking`
|
||||||
|
- `moonshot/kimi-k2-thinking-turbo`
|
||||||
|
{/* moonshot-kimi-k2-model-refs:end */}
|
||||||
```json5
|
```json5
|
||||||
{
|
{
|
||||||
agents: {
|
agents: {
|
||||||
@@ -138,6 +143,34 @@ Moonshot uses OpenAI-compatible endpoints, so configure it as a custom provider:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Synthetic
|
||||||
|
|
||||||
|
Synthetic provides Anthropic-compatible models behind the `synthetic` provider:
|
||||||
|
|
||||||
|
- Provider: `synthetic`
|
||||||
|
- Auth: `SYNTHETIC_API_KEY`
|
||||||
|
- Example model: `synthetic/hf:MiniMaxAI/MiniMax-M2.1`
|
||||||
|
- CLI: `clawdbot onboard --auth-choice synthetic-api-key`
|
||||||
|
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
agents: {
|
||||||
|
defaults: { model: { primary: "synthetic/hf:MiniMaxAI/MiniMax-M2.1" } }
|
||||||
|
},
|
||||||
|
models: {
|
||||||
|
mode: "merge",
|
||||||
|
providers: {
|
||||||
|
synthetic: {
|
||||||
|
baseUrl: "https://api.synthetic.new/anthropic",
|
||||||
|
apiKey: "${SYNTHETIC_API_KEY}",
|
||||||
|
api: "anthropic-messages",
|
||||||
|
models: [{ id: "hf:MiniMaxAI/MiniMax-M2.1", name: "MiniMax M2.1" }]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### MiniMax
|
### MiniMax
|
||||||
|
|
||||||
MiniMax is configured via `models.providers` because it uses custom endpoints:
|
MiniMax is configured via `models.providers` because it uses custom endpoints:
|
||||||
|
|||||||
@@ -92,6 +92,9 @@ This maps to:
|
|||||||
`*.blockStreaming` is explicitly set to `true`. Telegram can stream drafts
|
`*.blockStreaming` is explicitly set to `true`. Telegram can stream drafts
|
||||||
(`telegram.streamMode`) without block replies.
|
(`telegram.streamMode`) without block replies.
|
||||||
|
|
||||||
|
Config location reminder: the `blockStreaming*` defaults live under
|
||||||
|
`agents.defaults`, not the root config.
|
||||||
|
|
||||||
## Telegram draft streaming (token-ish)
|
## Telegram draft streaming (token-ish)
|
||||||
|
|
||||||
Telegram is the only provider with draft streaming:
|
Telegram is the only provider with draft streaming:
|
||||||
|
|||||||
@@ -38,7 +38,9 @@ Bootstrap files are trimmed and appended under **Project Context** so the model
|
|||||||
- `HEARTBEAT.md`
|
- `HEARTBEAT.md`
|
||||||
- `BOOTSTRAP.md` (only on brand-new workspaces)
|
- `BOOTSTRAP.md` (only on brand-new workspaces)
|
||||||
|
|
||||||
Large files are truncated with a marker. Missing files inject a short missing-file marker.
|
Large files are truncated with a marker. The max per-file size is controlled by
|
||||||
|
`agents.defaults.bootstrapMaxChars` (default: 20000). Missing files inject a
|
||||||
|
short missing-file marker.
|
||||||
|
|
||||||
## Time handling
|
## Time handling
|
||||||
|
|
||||||
|
|||||||
+74
-2
@@ -45,6 +45,70 @@
|
|||||||
"source": "/messages/",
|
"source": "/messages/",
|
||||||
"destination": "/concepts/messages"
|
"destination": "/concepts/messages"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"source": "/minimax",
|
||||||
|
"destination": "/providers/minimax"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "/minimax/",
|
||||||
|
"destination": "/providers/minimax"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "/openai",
|
||||||
|
"destination": "/providers/openai"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "/openai/",
|
||||||
|
"destination": "/providers/openai"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "/anthropic",
|
||||||
|
"destination": "/providers/anthropic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "/anthropic/",
|
||||||
|
"destination": "/providers/anthropic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "/moonshot",
|
||||||
|
"destination": "/providers/moonshot"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "/moonshot/",
|
||||||
|
"destination": "/providers/moonshot"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "/openrouter",
|
||||||
|
"destination": "/providers/openrouter"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "/openrouter/",
|
||||||
|
"destination": "/providers/openrouter"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "/opencode",
|
||||||
|
"destination": "/providers/opencode"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "/opencode/",
|
||||||
|
"destination": "/providers/opencode"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "/glm",
|
||||||
|
"destination": "/providers/glm"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "/glm/",
|
||||||
|
"destination": "/providers/glm"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "/zai",
|
||||||
|
"destination": "/providers/zai"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "/zai/",
|
||||||
|
"destination": "/providers/zai"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"source": "/message",
|
"source": "/message",
|
||||||
"destination": "/cli/message"
|
"destination": "/cli/message"
|
||||||
@@ -675,14 +739,22 @@
|
|||||||
{
|
{
|
||||||
"group": "Providers",
|
"group": "Providers",
|
||||||
"pages": [
|
"pages": [
|
||||||
"providers/whatsapp",
|
"providers/openai",
|
||||||
"broadcast-groups",
|
"providers/anthropic",
|
||||||
|
"providers/moonshot",
|
||||||
|
"providers/minimax",
|
||||||
|
"providers/openrouter",
|
||||||
|
"providers/opencode",
|
||||||
|
"providers/glm",
|
||||||
|
"providers/zai",
|
||||||
"providers/telegram",
|
"providers/telegram",
|
||||||
"providers/grammy",
|
"providers/grammy",
|
||||||
"providers/discord",
|
"providers/discord",
|
||||||
"providers/slack",
|
"providers/slack",
|
||||||
"providers/signal",
|
"providers/signal",
|
||||||
"providers/imessage",
|
"providers/imessage",
|
||||||
|
"providers/whatsapp",
|
||||||
|
"broadcast-groups",
|
||||||
"providers/msteams",
|
"providers/msteams",
|
||||||
"providers/troubleshooting",
|
"providers/troubleshooting",
|
||||||
"providers/location"
|
"providers/location"
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ Add `hooks.gmail.model` config option to specify an optional cheaper model for G
|
|||||||
| Field | Type | Default | Description |
|
| Field | Type | Default | Description |
|
||||||
|-------|------|---------|-------------|
|
|-------|------|---------|-------------|
|
||||||
| `hooks.gmail.model` | `string` | (none) | Model to use for Gmail hook processing. Accepts `provider/model` refs or aliases from `agents.defaults.models`. |
|
| `hooks.gmail.model` | `string` | (none) | Model to use for Gmail hook processing. Accepts `provider/model` refs or aliases from `agents.defaults.models`. |
|
||||||
| `hooks.gmail.thinking` | `string` | (inherited) | Thinking level override (`off`, `minimal`, `low`, `medium`, `high`). If unset, inherits from `agents.defaults.thinkingDefault` or model's default. |
|
| `hooks.gmail.thinking` | `string` | (inherited) | Thinking level override (`off`, `minimal`, `low`, `medium`, `high`, `xhigh`; GPT-5.2 + Codex models only). If unset, inherits from `agents.defaults.thinkingDefault` or model's default. |
|
||||||
|
|
||||||
### Alias Support
|
### Alias Support
|
||||||
|
|
||||||
|
|||||||
@@ -239,7 +239,15 @@ Save to `~/.clawdbot/clawdbot.json` and you can DM the bot from that number.
|
|||||||
target: "last",
|
target: "last",
|
||||||
to: "+15555550123",
|
to: "+15555550123",
|
||||||
prompt: "HEARTBEAT",
|
prompt: "HEARTBEAT",
|
||||||
ackMaxChars: 30
|
ackMaxChars: 300
|
||||||
|
},
|
||||||
|
memorySearch: {
|
||||||
|
provider: "openai",
|
||||||
|
model: "text-embedding-004",
|
||||||
|
remote: {
|
||||||
|
baseUrl: "https://generativelanguage.googleapis.com/v1beta/openai/",
|
||||||
|
apiKey: "${GEMINI_API_KEY}"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
sandbox: {
|
sandbox: {
|
||||||
mode: "non-main",
|
mode: "non-main",
|
||||||
|
|||||||
+124
-26
@@ -569,7 +569,9 @@ Inbound messages are routed to an agent via bindings.
|
|||||||
- `name`: display name for the agent.
|
- `name`: display name for the agent.
|
||||||
- `workspace`: default `~/clawd-<agentId>` (for `main`, falls back to `agents.defaults.workspace`).
|
- `workspace`: default `~/clawd-<agentId>` (for `main`, falls back to `agents.defaults.workspace`).
|
||||||
- `agentDir`: default `~/.clawdbot/agents/<agentId>/agent`.
|
- `agentDir`: default `~/.clawdbot/agents/<agentId>/agent`.
|
||||||
- `model`: per-agent default model (provider/model), overrides `agents.defaults.model` for that agent.
|
- `model`: per-agent default model, overrides `agents.defaults.model` for that agent.
|
||||||
|
- string form: `"provider/model"`, overrides only `agents.defaults.model.primary`
|
||||||
|
- object form: `{ primary, fallbacks }` (fallbacks override `agents.defaults.model.fallbacks`; `[]` disables global fallbacks for that agent)
|
||||||
- `identity`: per-agent name/theme/emoji (used for mention patterns + ack reactions).
|
- `identity`: per-agent name/theme/emoji (used for mention patterns + ack reactions).
|
||||||
- `groupChat`: per-agent mention-gating (`mentionPatterns`).
|
- `groupChat`: per-agent mention-gating (`mentionPatterns`).
|
||||||
- `sandbox`: per-agent sandbox config (overrides `agents.defaults.sandbox`).
|
- `sandbox`: per-agent sandbox config (overrides `agents.defaults.sandbox`).
|
||||||
@@ -583,6 +585,7 @@ Inbound messages are routed to an agent via bindings.
|
|||||||
- `subagents`: per-agent sub-agent defaults.
|
- `subagents`: per-agent sub-agent defaults.
|
||||||
- `allowAgents`: allowlist of agent ids for `sessions_spawn` from this agent (`["*"]` = allow any; default: only same agent)
|
- `allowAgents`: allowlist of agent ids for `sessions_spawn` from this agent (`["*"]` = allow any; default: only same agent)
|
||||||
- `tools`: per-agent tool restrictions (applied before sandbox tool policy).
|
- `tools`: per-agent tool restrictions (applied before sandbox tool policy).
|
||||||
|
- `profile`: base tool profile (applied before allow/deny)
|
||||||
- `allow`: array of allowed tool names
|
- `allow`: array of allowed tool names
|
||||||
- `deny`: array of denied tool names (deny wins)
|
- `deny`: array of denied tool names (deny wins)
|
||||||
- `agents.defaults`: shared agent defaults (model, workspace, sandbox, etc.).
|
- `agents.defaults`: shared agent defaults (model, workspace, sandbox, etc.).
|
||||||
@@ -743,8 +746,10 @@ Controls how chat commands are enabled across connectors.
|
|||||||
```json5
|
```json5
|
||||||
{
|
{
|
||||||
commands: {
|
commands: {
|
||||||
native: false, // register native commands when supported
|
native: "auto", // register native commands when supported (auto)
|
||||||
text: true, // parse slash commands in chat messages
|
text: true, // parse slash commands in chat messages
|
||||||
|
bash: false, // allow ! (alias: /bash) (host-only; requires tools.elevated allowlists)
|
||||||
|
bashForegroundMs: 2000, // bash foreground window (0 backgrounds immediately)
|
||||||
config: false, // allow /config (writes to disk)
|
config: false, // allow /config (writes to disk)
|
||||||
debug: false, // allow /debug (runtime-only overrides)
|
debug: false, // allow /debug (runtime-only overrides)
|
||||||
restart: false, // allow /restart + gateway restart tool
|
restart: false, // allow /restart + gateway restart tool
|
||||||
@@ -756,8 +761,10 @@ Controls how chat commands are enabled across connectors.
|
|||||||
Notes:
|
Notes:
|
||||||
- Text commands must be sent as a **standalone** message and use the leading `/` (no plain-text aliases).
|
- Text commands must be sent as a **standalone** message and use the leading `/` (no plain-text aliases).
|
||||||
- `commands.text: false` disables parsing chat messages for commands.
|
- `commands.text: false` disables parsing chat messages for commands.
|
||||||
- `commands.native: true` registers native commands on supported connectors (Discord/Slack/Telegram). Platforms without native commands still rely on text commands.
|
- `commands.native: "auto"` (default) turns on native commands for Discord/Telegram and leaves Slack off; unsupported providers stay text-only.
|
||||||
- `commands.native: false` skips native registration; Discord/Telegram clear previously registered commands on startup. Slack commands are managed in the Slack app.
|
- Set `commands.native: true|false` to force all, or override per provider with `discord.commands.native`, `telegram.commands.native`, `slack.commands.native` (bool or `"auto"`). `false` clears previously registered commands on Discord/Telegram at startup; Slack commands are managed in the Slack app.
|
||||||
|
- `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.<provider>`.
|
||||||
|
- `commands.bashForegroundMs` controls how long bash waits before backgrounding. While a bash job is running, new `! <cmd>` requests are rejected (one at a time).
|
||||||
- `commands.config: true` enables `/config` (reads/writes `clawdbot.json`).
|
- `commands.config: true` enables `/config` (reads/writes `clawdbot.json`).
|
||||||
- `commands.debug: true` enables `/debug` (runtime-only overrides).
|
- `commands.debug: true` enables `/debug` (runtime-only overrides).
|
||||||
- `commands.restart: true` enables `/restart` and the gateway tool restart action.
|
- `commands.restart: true` enables `/restart` and the gateway tool restart action.
|
||||||
@@ -852,6 +859,7 @@ Multi-account support lives under `discord.accounts` (see the multi-account sect
|
|||||||
enabled: true,
|
enabled: true,
|
||||||
token: "your-bot-token",
|
token: "your-bot-token",
|
||||||
mediaMaxMb: 8, // clamp inbound media size
|
mediaMaxMb: 8, // clamp inbound media size
|
||||||
|
allowBots: false, // allow bot-authored messages
|
||||||
actions: { // tool action gates (false disables)
|
actions: { // tool action gates (false disables)
|
||||||
reactions: true,
|
reactions: true,
|
||||||
stickers: true,
|
stickers: true,
|
||||||
@@ -910,6 +918,7 @@ Multi-account support lives under `discord.accounts` (see the multi-account sect
|
|||||||
|
|
||||||
Clawdbot starts Discord only when a `discord` config section exists. The token is resolved from `DISCORD_BOT_TOKEN` or `discord.token` (unless `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.
|
Clawdbot starts Discord only when a `discord` config section exists. The token is resolved from `DISCORD_BOT_TOKEN` or `discord.token` (unless `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.
|
||||||
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.
|
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.
|
||||||
|
Bot-authored messages are ignored by default. Enable with `discord.allowBots` (own messages are still filtered to prevent self-reply loops).
|
||||||
Reaction notification modes:
|
Reaction notification modes:
|
||||||
- `off`: no reaction events.
|
- `off`: no reaction events.
|
||||||
- `own`: reactions on the bot's own messages (default).
|
- `own`: reactions on the bot's own messages (default).
|
||||||
@@ -1073,6 +1082,20 @@ Use this for pre-seeded deployments where your workspace files come from a repo.
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### `agents.defaults.bootstrapMaxChars`
|
||||||
|
|
||||||
|
Max characters of each workspace bootstrap file injected into the system prompt
|
||||||
|
before truncation. Default: `20000`.
|
||||||
|
|
||||||
|
When a file exceeds this limit, Clawdbot logs a warning and injects a truncated
|
||||||
|
head/tail with a marker.
|
||||||
|
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
agents: { defaults: { bootstrapMaxChars: 20000 } }
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### `agents.defaults.userTimezone`
|
### `agents.defaults.userTimezone`
|
||||||
|
|
||||||
Sets the user’s timezone for **system prompt context** (not for timestamps in
|
Sets the user’s timezone for **system prompt context** (not for timestamps in
|
||||||
@@ -1194,6 +1217,27 @@ is already present in `agents.defaults.models`:
|
|||||||
|
|
||||||
If you configure the same alias name (case-insensitive) yourself, your value wins (defaults never override).
|
If you configure the same alias name (case-insensitive) yourself, your value wins (defaults never override).
|
||||||
|
|
||||||
|
Example: Opus 4.5 primary with MiniMax M2.1 fallback (hosted MiniMax):
|
||||||
|
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
agents: {
|
||||||
|
defaults: {
|
||||||
|
models: {
|
||||||
|
"anthropic/claude-opus-4-5": { alias: "opus" },
|
||||||
|
"minimax/MiniMax-M2.1": { alias: "minimax" }
|
||||||
|
},
|
||||||
|
model: {
|
||||||
|
primary: "anthropic/claude-opus-4-5",
|
||||||
|
fallbacks: ["minimax/MiniMax-M2.1"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
MiniMax auth: set `MINIMAX_API_KEY` (env) or configure `models.providers.minimax`.
|
||||||
|
|
||||||
#### `agents.defaults.cliBackends` (CLI fallback)
|
#### `agents.defaults.cliBackends` (CLI fallback)
|
||||||
|
|
||||||
Optional CLI backends for text-only fallback runs (no tool calls). These are useful as a
|
Optional CLI backends for text-only fallback runs (no tool calls). These are useful as a
|
||||||
@@ -1276,6 +1320,7 @@ Example:
|
|||||||
},
|
},
|
||||||
maxConcurrent: 3,
|
maxConcurrent: 3,
|
||||||
subagents: {
|
subagents: {
|
||||||
|
model: "minimax/MiniMax-M2.1",
|
||||||
maxConcurrent: 1,
|
maxConcurrent: 1,
|
||||||
archiveAfterMinutes: 60
|
archiveAfterMinutes: 60
|
||||||
},
|
},
|
||||||
@@ -1375,6 +1420,8 @@ See [/concepts/session-pruning](/concepts/session-pruning) for behavior details.
|
|||||||
|
|
||||||
#### `agents.defaults.compaction` (reserve headroom + memory flush)
|
#### `agents.defaults.compaction` (reserve headroom + memory flush)
|
||||||
|
|
||||||
|
`agents.defaults.compaction.mode` selects the compaction summarization strategy. Defaults to `default`; set `safeguard` to enable chunked summarization for very long histories. See [/compaction](/compaction).
|
||||||
|
|
||||||
`agents.defaults.compaction.reserveTokensFloor` enforces a minimum `reserveTokens`
|
`agents.defaults.compaction.reserveTokensFloor` enforces a minimum `reserveTokens`
|
||||||
value for Pi compaction (default: `20000`). Set it to `0` to disable the floor.
|
value for Pi compaction (default: `20000`). Set it to `0` to disable the floor.
|
||||||
|
|
||||||
@@ -1396,6 +1443,7 @@ Example (tuned):
|
|||||||
agents: {
|
agents: {
|
||||||
defaults: {
|
defaults: {
|
||||||
compaction: {
|
compaction: {
|
||||||
|
mode: "safeguard",
|
||||||
reserveTokensFloor: 24000,
|
reserveTokensFloor: 24000,
|
||||||
memoryFlush: {
|
memoryFlush: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
@@ -1463,7 +1511,7 @@ Z.AI models are available as `zai/<model>` (e.g. `zai/glm-4.7`) and require
|
|||||||
- `target`: optional delivery provider (`last`, `whatsapp`, `telegram`, `discord`, `slack`, `signal`, `imessage`, `none`). Default: `last`.
|
- `target`: optional delivery provider (`last`, `whatsapp`, `telegram`, `discord`, `slack`, `signal`, `imessage`, `none`). Default: `last`.
|
||||||
- `to`: optional recipient override (provider-specific id, e.g. E.164 for WhatsApp, chat id for Telegram).
|
- `to`: optional recipient override (provider-specific id, e.g. E.164 for WhatsApp, chat id for Telegram).
|
||||||
- `prompt`: optional override for the heartbeat body (default: `Read HEARTBEAT.md if exists. Consider outstanding tasks. Checkup sometimes on your human during (user local) day time.`). Overrides are sent verbatim; include a `Read HEARTBEAT.md if exists` line if you still want the file read.
|
- `prompt`: optional override for the heartbeat body (default: `Read HEARTBEAT.md if exists. Consider outstanding tasks. Checkup sometimes on your human during (user local) day time.`). Overrides are sent verbatim; include a `Read HEARTBEAT.md if exists` line if you still want the file read.
|
||||||
- `ackMaxChars`: max chars allowed after `HEARTBEAT_OK` before delivery (default: 30).
|
- `ackMaxChars`: max chars allowed after `HEARTBEAT_OK` before delivery (default: 300).
|
||||||
|
|
||||||
Heartbeats run full agent turns. Shorter intervals burn more tokens; be mindful
|
Heartbeats run full agent turns. Shorter intervals burn more tokens; be mindful
|
||||||
of `every`, keep `HEARTBEAT.md` tiny, and/or choose a cheaper `model`.
|
of `every`, keep `HEARTBEAT.md` tiny, and/or choose a cheaper `model`.
|
||||||
@@ -1478,10 +1526,39 @@ Note: `applyPatch` is only under `tools.exec` (no `tools.bash` alias).
|
|||||||
Legacy: `tools.bash` is still accepted as an alias.
|
Legacy: `tools.bash` is still accepted as an alias.
|
||||||
|
|
||||||
`agents.defaults.subagents` configures sub-agent defaults:
|
`agents.defaults.subagents` configures sub-agent defaults:
|
||||||
|
- `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.
|
||||||
- `maxConcurrent`: max concurrent sub-agent runs (default 1)
|
- `maxConcurrent`: max concurrent sub-agent runs (default 1)
|
||||||
- `archiveAfterMinutes`: auto-archive sub-agent sessions after N minutes (default 60; set `0` to disable)
|
- `archiveAfterMinutes`: auto-archive sub-agent sessions after N minutes (default 60; set `0` to disable)
|
||||||
- Per-subagent tool policy: `tools.subagents.tools.allow` / `tools.subagents.tools.deny` (deny wins)
|
- Per-subagent tool policy: `tools.subagents.tools.allow` / `tools.subagents.tools.deny` (deny wins)
|
||||||
|
|
||||||
|
`tools.profile` sets a **base tool allowlist** before `tools.allow`/`tools.deny`:
|
||||||
|
- `minimal`: `session_status` only
|
||||||
|
- `coding`: `group:fs`, `group:runtime`, `group:sessions`, `group:memory`, `image`
|
||||||
|
- `messaging`: `group:messaging`, `sessions_list`, `sessions_history`, `sessions_send`, `session_status`
|
||||||
|
- `full`: no restriction (same as unset)
|
||||||
|
|
||||||
|
Per-agent override: `agents.list[].tools.profile`.
|
||||||
|
|
||||||
|
Example (messaging-only by default, allow Slack + Discord tools too):
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
tools: {
|
||||||
|
profile: "messaging",
|
||||||
|
allow: ["slack", "discord"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Example (coding profile, but deny exec/process everywhere):
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
tools: {
|
||||||
|
profile: "coding",
|
||||||
|
deny: ["group:runtime"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
`tools.allow` / `tools.deny` configure a global tool allow/deny policy (deny wins).
|
`tools.allow` / `tools.deny` configure a global tool allow/deny policy (deny wins).
|
||||||
This is applied even when the Docker sandbox is **off**.
|
This is applied even when the Docker sandbox is **off**.
|
||||||
|
|
||||||
@@ -1492,6 +1569,17 @@ Example (disable browser/canvas everywhere):
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Tool groups (shorthands) work in **global** and **per-agent** tool policies:
|
||||||
|
- `group:runtime`: `exec`, `bash`, `process`
|
||||||
|
- `group:fs`: `read`, `write`, `edit`, `apply_patch`
|
||||||
|
- `group:sessions`: `sessions_list`, `sessions_history`, `sessions_send`, `sessions_spawn`, `session_status`
|
||||||
|
- `group:memory`: `memory_search`, `memory_get`
|
||||||
|
- `group:ui`: `browser`, `canvas`
|
||||||
|
- `group:automation`: `cron`, `gateway`
|
||||||
|
- `group:messaging`: `message`
|
||||||
|
- `group:nodes`: `nodes`
|
||||||
|
- `group:clawdbot`: all built-in Clawdbot tools (excludes provider plugins)
|
||||||
|
|
||||||
`tools.elevated` controls elevated (host) exec access:
|
`tools.elevated` controls elevated (host) exec access:
|
||||||
- `enabled`: allow elevated mode (default true)
|
- `enabled`: allow elevated mode (default true)
|
||||||
- `allowFrom`: per-provider allowlists (empty = disabled)
|
- `allowFrom`: per-provider allowlists (empty = disabled)
|
||||||
@@ -1560,6 +1648,7 @@ Defaults (if enabled):
|
|||||||
- auto-prune: idle > 24h OR age > 7d
|
- auto-prune: idle > 24h OR age > 7d
|
||||||
- tool policy: allow only `exec`, `process`, `read`, `write`, `edit`, `apply_patch`, `sessions_list`, `sessions_history`, `sessions_send`, `sessions_spawn`, `session_status` (deny wins)
|
- tool policy: allow only `exec`, `process`, `read`, `write`, `edit`, `apply_patch`, `sessions_list`, `sessions_history`, `sessions_send`, `sessions_spawn`, `session_status` (deny wins)
|
||||||
- configure via `tools.sandbox.tools`, override per-agent via `agents.list[].tools.sandbox.tools`
|
- configure via `tools.sandbox.tools`, override per-agent via `agents.list[].tools.sandbox.tools`
|
||||||
|
- 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))
|
||||||
- optional sandboxed browser (Chromium + CDP, noVNC observer)
|
- optional sandboxed browser (Chromium + CDP, noVNC observer)
|
||||||
- hardening knobs: `network`, `user`, `pidsLimit`, `memory`, `cpus`, `ulimits`, `seccompProfile`, `apparmorProfile`
|
- hardening knobs: `network`, `user`, `pidsLimit`, `memory`, `cpus`, `ulimits`, `seccompProfile`, `apparmorProfile`
|
||||||
|
|
||||||
@@ -1601,7 +1690,8 @@ Legacy: `perSession` is still supported (`true` → `scope: "session"`,
|
|||||||
seccompProfile: "/path/to/seccomp.json",
|
seccompProfile: "/path/to/seccomp.json",
|
||||||
apparmorProfile: "clawdbot-sandbox",
|
apparmorProfile: "clawdbot-sandbox",
|
||||||
dns: ["1.1.1.1", "8.8.8.8"],
|
dns: ["1.1.1.1", "8.8.8.8"],
|
||||||
extraHosts: ["internal.service:10.0.0.5"]
|
extraHosts: ["internal.service:10.0.0.5"],
|
||||||
|
binds: ["/var/run/docker.sock:/var/run/docker.sock", "/home/user/source:/source:rw"]
|
||||||
},
|
},
|
||||||
browser: {
|
browser: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
@@ -1647,6 +1737,8 @@ to `"bridge"` (or your custom network) if the agent needs outbound access.
|
|||||||
|
|
||||||
Note: inbound attachments are staged into the active workspace at `media/inbound/*`. With `workspaceAccess: "rw"`, that means files are written into the agent workspace.
|
Note: inbound attachments are staged into the active workspace at `media/inbound/*`. With `workspaceAccess: "rw"`, that means files are written into the agent workspace.
|
||||||
|
|
||||||
|
Note: `docker.binds` mounts additional host directories; global and per-agent binds are merged.
|
||||||
|
|
||||||
Build the optional browser image with:
|
Build the optional browser image with:
|
||||||
```bash
|
```bash
|
||||||
scripts/sandbox-browser-setup.sh
|
scripts/sandbox-browser-setup.sh
|
||||||
@@ -1811,38 +1903,35 @@ Notes:
|
|||||||
- Model ref: `moonshot/kimi-k2-0905-preview`.
|
- Model ref: `moonshot/kimi-k2-0905-preview`.
|
||||||
- Use `https://api.moonshot.cn/v1` if you need the China endpoint.
|
- Use `https://api.moonshot.cn/v1` if you need the China endpoint.
|
||||||
|
|
||||||
### Local models (LM Studio) — recommended setup
|
### Synthetic (Anthropic-compatible)
|
||||||
|
|
||||||
Best current local setup (what we’re running): **MiniMax M2.1** on a powerful local machine
|
Use Synthetic's Anthropic-compatible endpoint:
|
||||||
via **LM Studio** using the **Responses API**.
|
|
||||||
|
|
||||||
```json5
|
```json5
|
||||||
{
|
{
|
||||||
|
env: { SYNTHETIC_API_KEY: "sk-..." },
|
||||||
agents: {
|
agents: {
|
||||||
defaults: {
|
defaults: {
|
||||||
model: { primary: "lmstudio/minimax-m2.1-gs32" },
|
model: { primary: "synthetic/hf:MiniMaxAI/MiniMax-M2.1" },
|
||||||
models: {
|
models: { "synthetic/hf:MiniMaxAI/MiniMax-M2.1": { alias: "MiniMax M2.1" } }
|
||||||
"anthropic/claude-opus-4-5": { alias: "Opus" },
|
|
||||||
"lmstudio/minimax-m2.1-gs32": { alias: "Minimax" }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
models: {
|
models: {
|
||||||
mode: "merge",
|
mode: "merge",
|
||||||
providers: {
|
providers: {
|
||||||
lmstudio: {
|
synthetic: {
|
||||||
baseUrl: "http://127.0.0.1:1234/v1",
|
baseUrl: "https://api.synthetic.new/anthropic",
|
||||||
apiKey: "lmstudio",
|
apiKey: "${SYNTHETIC_API_KEY}",
|
||||||
api: "openai-responses",
|
api: "anthropic-messages",
|
||||||
models: [
|
models: [
|
||||||
{
|
{
|
||||||
id: "minimax-m2.1-gs32",
|
id: "hf:MiniMaxAI/MiniMax-M2.1",
|
||||||
name: "MiniMax M2.1 GS32",
|
name: "MiniMax M2.1",
|
||||||
reasoning: false,
|
reasoning: false,
|
||||||
input: ["text"],
|
input: ["text"],
|
||||||
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
||||||
contextWindow: 196608,
|
contextWindow: 192000,
|
||||||
maxTokens: 8192
|
maxTokens: 65536
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -1852,9 +1941,13 @@ via **LM Studio** using the **Responses API**.
|
|||||||
```
|
```
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
- LM Studio must have the model loaded and the local server enabled (default URL above).
|
- Set `SYNTHETIC_API_KEY` or use `clawdbot onboard --auth-choice synthetic-api-key`.
|
||||||
- Responses API enables clean reasoning/output separation; WhatsApp sees only final text.
|
- Model ref: `synthetic/hf:MiniMaxAI/MiniMax-M2.1`.
|
||||||
- Adjust `contextWindow`/`maxTokens` if your LM Studio context length differs.
|
- Base URL should omit `/v1` because the Anthropic client appends it.
|
||||||
|
|
||||||
|
### Local models (LM Studio) — recommended setup
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
### MiniMax M2.1
|
### MiniMax M2.1
|
||||||
|
|
||||||
@@ -2168,7 +2261,12 @@ Auth and Tailscale:
|
|||||||
- `gateway.auth.token` stores the shared token for token auth (used by the CLI on the same machine).
|
- `gateway.auth.token` stores the shared token for token auth (used by the CLI on the same machine).
|
||||||
- When `gateway.auth.mode` is set, only that method is accepted (plus optional Tailscale headers).
|
- When `gateway.auth.mode` is set, only that method is accepted (plus optional Tailscale headers).
|
||||||
- `gateway.auth.password` can be set here, or via `CLAWDBOT_GATEWAY_PASSWORD` (recommended).
|
- `gateway.auth.password` can be set here, or via `CLAWDBOT_GATEWAY_PASSWORD` (recommended).
|
||||||
- `gateway.auth.allowTailscale` controls whether Tailscale identity headers can satisfy auth.
|
- `gateway.auth.allowTailscale` allows Tailscale Serve identity headers
|
||||||
|
(`tailscale-user-login`) to satisfy auth when the request arrives on loopback
|
||||||
|
with `x-forwarded-for`, `x-forwarded-proto`, and `x-forwarded-host`. When
|
||||||
|
`true`, Serve requests do not need a token/password; set `false` to require
|
||||||
|
explicit credentials. Defaults to `true` when `tailscale.mode = "serve"` and
|
||||||
|
auth mode is not `password`.
|
||||||
- `gateway.tailscale.mode: "serve"` uses Tailscale Serve (tailnet only, loopback bind).
|
- `gateway.tailscale.mode: "serve"` uses Tailscale Serve (tailnet only, loopback bind).
|
||||||
- `gateway.tailscale.mode: "funnel"` exposes the dashboard publicly; requires auth.
|
- `gateway.tailscale.mode: "funnel"` exposes the dashboard publicly; requires auth.
|
||||||
- `gateway.tailscale.resetOnExit` resets Serve/Funnel config on shutdown.
|
- `gateway.tailscale.resetOnExit` resets Serve/Funnel config on shutdown.
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ cat ~/.clawdbot/clawdbot.json
|
|||||||
|
|
||||||
## What it does (summary)
|
## What it does (summary)
|
||||||
- Optional pre-flight update for git installs (interactive only).
|
- Optional pre-flight update for git installs (interactive only).
|
||||||
|
- UI protocol freshness check (rebuilds Control UI when the protocol schema is newer).
|
||||||
- Health check + restart prompt.
|
- Health check + restart prompt.
|
||||||
- Skills status summary (eligible/missing/blocked).
|
- Skills status summary (eligible/missing/blocked).
|
||||||
- Legacy config migration and normalization.
|
- Legacy config migration and normalization.
|
||||||
@@ -75,6 +76,7 @@ cat ~/.clawdbot/clawdbot.json
|
|||||||
- Security warnings for open DM policies.
|
- Security warnings for open DM policies.
|
||||||
- Gateway auth warnings when no `gateway.auth.token` is set (local mode; offers token generation).
|
- Gateway auth warnings when no `gateway.auth.token` is set (local mode; offers token generation).
|
||||||
- systemd linger check on Linux.
|
- systemd linger check on Linux.
|
||||||
|
- Source install checks (pnpm workspace mismatch, missing UI assets, missing tsx binary).
|
||||||
- Writes updated config + wizard metadata.
|
- Writes updated config + wizard metadata.
|
||||||
|
|
||||||
## Detailed behavior and rationale
|
## Detailed behavior and rationale
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ custom body (sent verbatim).
|
|||||||
- If nothing needs attention, reply with **`HEARTBEAT_OK`**.
|
- If nothing needs attention, reply with **`HEARTBEAT_OK`**.
|
||||||
- During heartbeat runs, Clawdbot treats `HEARTBEAT_OK` as an ack when it appears
|
- During heartbeat runs, Clawdbot treats `HEARTBEAT_OK` as an ack when it appears
|
||||||
at the **start or end** of the reply. The token is stripped and the reply is
|
at the **start or end** of the reply. The token is stripped and the reply is
|
||||||
dropped if the remaining content is **≤ `ackMaxChars`** (default: 30).
|
dropped if the remaining content is **≤ `ackMaxChars`** (default: 300).
|
||||||
- If `HEARTBEAT_OK` appears in the **middle** of a reply, it is not treated
|
- If `HEARTBEAT_OK` appears in the **middle** of a reply, it is not treated
|
||||||
specially.
|
specially.
|
||||||
- For alerts, **do not** include `HEARTBEAT_OK`; return only the alert text.
|
- For alerts, **do not** include `HEARTBEAT_OK`; return only the alert text.
|
||||||
@@ -78,7 +78,7 @@ and logged; a message that is only `HEARTBEAT_OK` is dropped.
|
|||||||
target: "last", // last | whatsapp | telegram | discord | slack | signal | imessage | none
|
target: "last", // last | whatsapp | telegram | discord | slack | signal | imessage | none
|
||||||
to: "+15551234567", // optional provider-specific override
|
to: "+15551234567", // optional provider-specific override
|
||||||
prompt: "Read HEARTBEAT.md if exists. Consider outstanding tasks. Checkup sometimes on your human during (user local) day time.",
|
prompt: "Read HEARTBEAT.md if exists. Consider outstanding tasks. Checkup sometimes on your human during (user local) day time.",
|
||||||
ackMaxChars: 30 // max chars allowed after HEARTBEAT_OK
|
ackMaxChars: 300 // max chars allowed after HEARTBEAT_OK
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,6 +49,8 @@ pnpm gateway:watch
|
|||||||
|
|
||||||
## Multiple gateways (same host)
|
## Multiple gateways (same host)
|
||||||
|
|
||||||
|
Usually unnecessary: one Gateway can serve multiple messaging channels and agents. Use multiple Gateways only for redundancy or strict isolation (ex: rescue bot).
|
||||||
|
|
||||||
Supported if you isolate state + config and use unique ports.
|
Supported if you isolate state + config and use unique ports.
|
||||||
|
|
||||||
Service names are profile-aware:
|
Service names are profile-aware:
|
||||||
@@ -96,6 +98,12 @@ Checklist per instance:
|
|||||||
- unique `agents.defaults.workspace`
|
- unique `agents.defaults.workspace`
|
||||||
- separate WhatsApp numbers (if using WA)
|
- separate WhatsApp numbers (if using WA)
|
||||||
|
|
||||||
|
Daemon install per profile:
|
||||||
|
```bash
|
||||||
|
clawdbot --profile main daemon install
|
||||||
|
clawdbot --profile rescue daemon install
|
||||||
|
```
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
```bash
|
```bash
|
||||||
CLAWDBOT_CONFIG_PATH=~/.clawdbot/a.json CLAWDBOT_STATE_DIR=~/.clawdbot-a clawdbot gateway --port 19001
|
CLAWDBOT_CONFIG_PATH=~/.clawdbot/a.json CLAWDBOT_STATE_DIR=~/.clawdbot-a clawdbot gateway --port 19001
|
||||||
|
|||||||
@@ -0,0 +1,146 @@
|
|||||||
|
---
|
||||||
|
summary: "Run Clawdbot on local LLMs (LM Studio, vLLM, LiteLLM, custom OpenAI endpoints)"
|
||||||
|
read_when:
|
||||||
|
- You want to serve models from your own GPU box
|
||||||
|
- You are wiring LM Studio or an OpenAI-compatible proxy
|
||||||
|
- You need the safest local model guidance
|
||||||
|
---
|
||||||
|
# Local models
|
||||||
|
|
||||||
|
Local is doable, but Clawdbot expects large context + strong defenses against prompt injection. Small cards truncate context and leak safety. Aim high: **≥2 maxed-out Mac Studios or equivalent GPU rig (~$30k+)**. A single **24 GB** GPU works only for lighter prompts with higher latency. Use the **largest / full-size model variant you can run**; aggressively quantized or “small” checkpoints raise prompt-injection risk (see [Security](/gateway/security)).
|
||||||
|
|
||||||
|
## Recommended: LM Studio + MiniMax M2.1 (Responses API, full-size)
|
||||||
|
|
||||||
|
Best current local stack. Load MiniMax M2.1 in LM Studio, enable the local server (default `http://127.0.0.1:1234`), and use Responses API to keep reasoning separate from final text.
|
||||||
|
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
agents: {
|
||||||
|
defaults: {
|
||||||
|
model: { primary: "lmstudio/minimax-m2.1-gs32" },
|
||||||
|
models: {
|
||||||
|
"anthropic/claude-opus-4-5": { alias: "Opus" },
|
||||||
|
"lmstudio/minimax-m2.1-gs32": { alias: "Minimax" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
models: {
|
||||||
|
mode: "merge",
|
||||||
|
providers: {
|
||||||
|
lmstudio: {
|
||||||
|
baseUrl: "http://127.0.0.1:1234/v1",
|
||||||
|
apiKey: "lmstudio",
|
||||||
|
api: "openai-responses",
|
||||||
|
models: [
|
||||||
|
{
|
||||||
|
id: "minimax-m2.1-gs32",
|
||||||
|
name: "MiniMax M2.1 GS32",
|
||||||
|
reasoning: false,
|
||||||
|
input: ["text"],
|
||||||
|
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
||||||
|
contextWindow: 196608,
|
||||||
|
maxTokens: 8192
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Setup checklist**
|
||||||
|
- Install LM Studio: https://lmstudio.ai
|
||||||
|
- In LM Studio, download the **largest MiniMax M2.1 build available** (avoid “small”/heavily quantized variants), start the server, confirm `http://127.0.0.1:1234/v1/models` lists it.
|
||||||
|
- Keep the model loaded; cold-load adds startup latency.
|
||||||
|
- Adjust `contextWindow`/`maxTokens` if your LM Studio build differs.
|
||||||
|
- For WhatsApp, stick to Responses API so only final text is sent.
|
||||||
|
|
||||||
|
Keep hosted models configured even when running local; use `models.mode: "merge"` so fallbacks stay available.
|
||||||
|
|
||||||
|
### Hybrid config: hosted primary, local fallback
|
||||||
|
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
agents: {
|
||||||
|
defaults: {
|
||||||
|
model: {
|
||||||
|
primary: "anthropic/claude-sonnet-4-5",
|
||||||
|
fallbacks: ["lmstudio/minimax-m2.1-gs32", "anthropic/claude-opus-4-5"]
|
||||||
|
},
|
||||||
|
models: {
|
||||||
|
"anthropic/claude-sonnet-4-5": { alias: "Sonnet" },
|
||||||
|
"lmstudio/minimax-m2.1-gs32": { alias: "MiniMax Local" },
|
||||||
|
"anthropic/claude-opus-4-5": { alias: "Opus" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
models: {
|
||||||
|
mode: "merge",
|
||||||
|
providers: {
|
||||||
|
lmstudio: {
|
||||||
|
baseUrl: "http://127.0.0.1:1234/v1",
|
||||||
|
apiKey: "lmstudio",
|
||||||
|
api: "openai-responses",
|
||||||
|
models: [
|
||||||
|
{
|
||||||
|
id: "minimax-m2.1-gs32",
|
||||||
|
name: "MiniMax M2.1 GS32",
|
||||||
|
reasoning: false,
|
||||||
|
input: ["text"],
|
||||||
|
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
||||||
|
contextWindow: 196608,
|
||||||
|
maxTokens: 8192
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Local-first with hosted safety net
|
||||||
|
|
||||||
|
Swap the primary and fallback order; keep the same providers block and `models.mode: "merge"` so you can fall back to Sonnet or Opus when the local box is down.
|
||||||
|
|
||||||
|
### Regional hosting / data routing
|
||||||
|
|
||||||
|
- Hosted MiniMax/Kimi/GLM variants also exist on OpenRouter with region-pinned endpoints (e.g., US-hosted). Pick the regional variant there to keep traffic in your chosen jurisdiction while still using `models.mode: "merge"` for Anthropic/OpenAI fallbacks.
|
||||||
|
- Local-only remains the strongest privacy path; hosted regional routing is the middle ground when you need provider features but want control over data flow.
|
||||||
|
|
||||||
|
## Other OpenAI-compatible local proxies
|
||||||
|
|
||||||
|
vLLM, LiteLLM, OAI-proxy, or custom gateways work if they expose an OpenAI-style `/v1` endpoint. Replace the provider block above with your endpoint and model ID:
|
||||||
|
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
models: {
|
||||||
|
mode: "merge",
|
||||||
|
providers: {
|
||||||
|
local: {
|
||||||
|
baseUrl: "http://127.0.0.1:8000/v1",
|
||||||
|
apiKey: "sk-local",
|
||||||
|
api: "openai-responses",
|
||||||
|
models: [
|
||||||
|
{
|
||||||
|
id: "my-local-model",
|
||||||
|
name: "Local Model",
|
||||||
|
reasoning: false,
|
||||||
|
input: ["text"],
|
||||||
|
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
||||||
|
contextWindow: 120000,
|
||||||
|
maxTokens: 8192
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Keep `models.mode: "merge"` so hosted models stay available as fallbacks.
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
- Gateway can reach the proxy? `curl http://127.0.0.1:1234/v1/models`.
|
||||||
|
- LM Studio model unloaded? Reload; cold start is a common “hanging” cause.
|
||||||
|
- Context errors? Lower `contextWindow` or raise your server limit.
|
||||||
|
- Safety: local models skip provider-side filters; keep agents narrow and compaction on to limit prompt injection blast radius.
|
||||||
@@ -39,9 +39,18 @@ Sandboxing is controlled by `agents.defaults.sandbox.mode`:
|
|||||||
|
|
||||||
See [Sandboxing](/gateway/sandboxing) for the full matrix (scope, workspace mounts, images).
|
See [Sandboxing](/gateway/sandboxing) for the full matrix (scope, workspace mounts, images).
|
||||||
|
|
||||||
|
### Bind mounts (security quick check)
|
||||||
|
|
||||||
|
- `docker.binds` *pierces* the sandbox filesystem: whatever you mount is visible inside the container with the mode you set (`:ro` or `:rw`).
|
||||||
|
- Default is read-write if you omit the mode; prefer `:ro` for source/secrets.
|
||||||
|
- `scope: "shared"` ignores per-agent binds (only global binds apply).
|
||||||
|
- Binding `/var/run/docker.sock` effectively hands host control to the sandbox; only do this intentionally.
|
||||||
|
- Workspace access (`workspaceAccess: "ro"`/`"rw"`) is independent of bind modes.
|
||||||
|
|
||||||
## Tool policy: which tools exist/are callable
|
## Tool policy: which tools exist/are callable
|
||||||
|
|
||||||
Two layers matter:
|
Two layers matter:
|
||||||
|
- **Tool profile**: `tools.profile` and `agents.list[].tools.profile` (base allowlist)
|
||||||
- **Global/per-agent tool policy**: `tools.allow`/`tools.deny` and `agents.list[].tools.allow`/`agents.list[].tools.deny`
|
- **Global/per-agent tool policy**: `tools.allow`/`tools.deny` and `agents.list[].tools.allow`/`agents.list[].tools.deny`
|
||||||
- **Sandbox tool policy** (only applies when sandboxed): `tools.sandbox.tools.allow`/`tools.sandbox.tools.deny` and `agents.list[].tools.sandbox.tools.*`
|
- **Sandbox tool policy** (only applies when sandboxed): `tools.sandbox.tools.allow`/`tools.sandbox.tools.deny` and `agents.list[].tools.sandbox.tools.*`
|
||||||
|
|
||||||
@@ -49,6 +58,33 @@ Rules of thumb:
|
|||||||
- `deny` always wins.
|
- `deny` always wins.
|
||||||
- If `allow` is non-empty, everything else is treated as blocked.
|
- If `allow` is non-empty, everything else is treated as blocked.
|
||||||
|
|
||||||
|
### Tool groups (shorthands)
|
||||||
|
|
||||||
|
Tool policies (global, agent, sandbox) support `group:*` entries that expand to multiple tools:
|
||||||
|
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
tools: {
|
||||||
|
sandbox: {
|
||||||
|
tools: {
|
||||||
|
allow: ["group:runtime", "group:fs", "group:sessions", "group:memory"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Available groups:
|
||||||
|
- `group:runtime`: `exec`, `bash`, `process`
|
||||||
|
- `group:fs`: `read`, `write`, `edit`, `apply_patch`
|
||||||
|
- `group:sessions`: `sessions_list`, `sessions_history`, `sessions_send`, `sessions_spawn`, `session_status`
|
||||||
|
- `group:memory`: `memory_search`, `memory_get`
|
||||||
|
- `group:ui`: `browser`, `canvas`
|
||||||
|
- `group:automation`: `cron`, `gateway`
|
||||||
|
- `group:messaging`: `message`
|
||||||
|
- `group:nodes`: `nodes`
|
||||||
|
- `group:clawdbot`: all built-in Clawdbot tools (excludes provider plugins)
|
||||||
|
|
||||||
## Elevated: exec-only “run on host”
|
## Elevated: exec-only “run on host”
|
||||||
|
|
||||||
Elevated does **not** grant extra tools; it only affects `exec`.
|
Elevated does **not** grant extra tools; it only affects `exec`.
|
||||||
|
|||||||
@@ -56,6 +56,47 @@ Clawdbot mirrors eligible skills into the sandbox workspace (`.../skills`) so
|
|||||||
they can be read. With `"rw"`, workspace skills are readable from
|
they can be read. With `"rw"`, workspace skills are readable from
|
||||||
`/workspace/skills`.
|
`/workspace/skills`.
|
||||||
|
|
||||||
|
## Custom bind mounts
|
||||||
|
`agents.defaults.sandbox.docker.binds` mounts additional host directories into the container.
|
||||||
|
Format: `host:container:mode` (e.g., `"/home/user/source:/source:rw"`).
|
||||||
|
|
||||||
|
Global and per-agent binds are **merged** (not replaced). Under `scope: "shared"`, per-agent binds are ignored.
|
||||||
|
|
||||||
|
Example (read-only source + docker socket):
|
||||||
|
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
agents: {
|
||||||
|
defaults: {
|
||||||
|
sandbox: {
|
||||||
|
docker: {
|
||||||
|
binds: [
|
||||||
|
"/home/user/source:/source:ro",
|
||||||
|
"/var/run/docker.sock:/var/run/docker.sock"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
list: [
|
||||||
|
{
|
||||||
|
id: "build",
|
||||||
|
sandbox: {
|
||||||
|
docker: {
|
||||||
|
binds: ["/mnt/cache:/cache:rw"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Security notes:
|
||||||
|
- Binds bypass the sandbox filesystem: they expose host paths with whatever mode you set (`:ro` or `:rw`).
|
||||||
|
- Sensitive mounts (e.g., `docker.sock`, secrets, SSH keys) should be `:ro` unless absolutely required.
|
||||||
|
- Combine with `workspaceAccess: "ro"` if you only need read access to the workspace; bind modes stay independent.
|
||||||
|
- See [Sandbox vs Tool Policy vs Elevated](/gateway/sandbox-vs-tool-policy-vs-elevated) for how binds interact with tool policy and elevated exec.
|
||||||
|
|
||||||
## Images + setup
|
## Images + setup
|
||||||
Default image: `clawdbot-sandbox:bookworm-slim`
|
Default image: `clawdbot-sandbox:bookworm-slim`
|
||||||
|
|
||||||
|
|||||||
@@ -145,6 +145,20 @@ Doctor can generate one for you: `clawdbot doctor --generate-gateway-token`.
|
|||||||
Note: `gateway.remote.token` is **only** for remote CLI calls; it does not
|
Note: `gateway.remote.token` is **only** for remote CLI calls; it does not
|
||||||
protect local WS access.
|
protect local WS access.
|
||||||
|
|
||||||
|
### 0.6) Tailscale Serve identity headers
|
||||||
|
|
||||||
|
When `gateway.auth.allowTailscale` is `true` (default for Serve), Clawdbot
|
||||||
|
accepts Tailscale Serve identity headers (`tailscale-user-login`) as
|
||||||
|
authentication. This only triggers for requests that hit loopback and include
|
||||||
|
`x-forwarded-for`, `x-forwarded-proto`, and `x-forwarded-host` as injected by
|
||||||
|
Tailscale.
|
||||||
|
|
||||||
|
**Security rule:** do not forward these headers from your own reverse proxy. If
|
||||||
|
you terminate TLS or proxy in front of the gateway, disable
|
||||||
|
`gateway.auth.allowTailscale` and use token/password auth instead.
|
||||||
|
|
||||||
|
See [Tailscale](/gateway/tailscale) and [Web overview](/web).
|
||||||
|
|
||||||
### 1) DMs: pairing by default
|
### 1) DMs: pairing by default
|
||||||
|
|
||||||
```json5
|
```json5
|
||||||
|
|||||||
@@ -23,9 +23,13 @@ Set `gateway.auth.mode` to control the handshake:
|
|||||||
- `token` (default when `CLAWDBOT_GATEWAY_TOKEN` is set)
|
- `token` (default when `CLAWDBOT_GATEWAY_TOKEN` is set)
|
||||||
- `password` (shared secret via `CLAWDBOT_GATEWAY_PASSWORD` or config)
|
- `password` (shared secret via `CLAWDBOT_GATEWAY_PASSWORD` or config)
|
||||||
|
|
||||||
When `tailscale.mode = "serve"`, the gateway trusts Tailscale identity headers by
|
When `tailscale.mode = "serve"` and `gateway.auth.allowTailscale` is `true`,
|
||||||
default unless you force `gateway.auth.mode` to `password` or set
|
valid Serve proxy requests can authenticate via Tailscale identity headers
|
||||||
`gateway.auth.allowTailscale: false`.
|
(`tailscale-user-login`) without supplying a token/password. Clawdbot only
|
||||||
|
treats a request as Serve when it arrives from loopback with Tailscale’s
|
||||||
|
`x-forwarded-for`, `x-forwarded-proto`, and `x-forwarded-host` headers.
|
||||||
|
To require explicit credentials, set `gateway.auth.allowTailscale: false` or
|
||||||
|
force `gateway.auth.mode: "password"`.
|
||||||
|
|
||||||
## Config examples
|
## Config examples
|
||||||
|
|
||||||
@@ -69,6 +73,8 @@ clawdbot gateway --tailscale funnel --auth password
|
|||||||
- `tailscale.mode: "funnel"` refuses to start unless auth mode is `password` to avoid public exposure.
|
- `tailscale.mode: "funnel"` refuses to start unless auth mode is `password` to avoid public exposure.
|
||||||
- Set `gateway.tailscale.resetOnExit` if you want Clawdbot to undo `tailscale serve`
|
- Set `gateway.tailscale.resetOnExit` if you want Clawdbot to undo `tailscale serve`
|
||||||
or `tailscale funnel` configuration on shutdown.
|
or `tailscale funnel` configuration on shutdown.
|
||||||
|
- Serve/Funnel only expose the **Gateway control UI + WS**. Node **bridge** traffic
|
||||||
|
uses the separate bridge port (default `18790`) and is **not** proxied by Serve.
|
||||||
|
|
||||||
## Tailscale prerequisites + limits
|
## Tailscale prerequisites + limits
|
||||||
|
|
||||||
|
|||||||
+6
-3
@@ -1,13 +1,16 @@
|
|||||||
---
|
---
|
||||||
summary: "Bun workflow (preferred): installs, patches, and gotchas vs pnpm"
|
summary: "Bun workflow (experimental): installs, patches, and gotchas vs pnpm"
|
||||||
read_when:
|
read_when:
|
||||||
- You want the fastest local dev loop (bun + watch)
|
- You want the fastest local dev loop (bun + watch)
|
||||||
- You hit Bun install/patch/lifecycle script issues
|
- You hit Bun install/patch/lifecycle script issues
|
||||||
---
|
---
|
||||||
|
|
||||||
# Bun
|
# Bun (experimental)
|
||||||
|
|
||||||
Goal: run this repo with **Bun** (optional) without losing pnpm patch behavior.
|
Goal: run this repo with **Bun** (optional, not recommended for WhatsApp/Telegram)
|
||||||
|
without losing pnpm patch behavior.
|
||||||
|
|
||||||
|
⚠️ **Not recommended for Gateway runtime** (WhatsApp/Telegram bugs). Use Node for production.
|
||||||
|
|
||||||
## Status
|
## Status
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ What it does (high level):
|
|||||||
- `git`: clone/build a source checkout and install a wrapper script
|
- `git`: clone/build a source checkout and install a wrapper script
|
||||||
- On Linux: avoid global npm permission errors by switching npm’s prefix to `~/.npm-global` when needed.
|
- On Linux: avoid global npm permission errors by switching npm’s prefix to `~/.npm-global` when needed.
|
||||||
- If upgrading an existing install: runs `clawdbot doctor --non-interactive` (best effort).
|
- If upgrading an existing install: runs `clawdbot doctor --non-interactive` (best effort).
|
||||||
|
- For git installs: runs `clawdbot doctor --non-interactive` after install/update (best effort).
|
||||||
- Mitigates `sharp` native install gotchas by defaulting `SHARP_IGNORE_GLOBAL_LIBVIPS=1` (avoids building against system libvips).
|
- Mitigates `sharp` native install gotchas by defaulting `SHARP_IGNORE_GLOBAL_LIBVIPS=1` (avoids building against system libvips).
|
||||||
|
|
||||||
If you *want* `sharp` to link against a globally-installed libvips (or you’re debugging), set:
|
If you *want* `sharp` to link against a globally-installed libvips (or you’re debugging), set:
|
||||||
|
|||||||
+23
-11
@@ -9,9 +9,28 @@ read_when:
|
|||||||
|
|
||||||
Clawdbot is moving fast (pre “1.0”). Treat updates like shipping infra: update → run checks → restart → verify.
|
Clawdbot is moving fast (pre “1.0”). Treat updates like shipping infra: update → run checks → restart → verify.
|
||||||
|
|
||||||
|
## Recommended: re-run the website installer (upgrade in place)
|
||||||
|
|
||||||
|
The **preferred** update path is to re-run the installer from the website. It
|
||||||
|
detects existing installs, upgrades in place, and runs `clawdbot doctor` when
|
||||||
|
needed.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -fsSL https://clawd.bot/install.sh | bash
|
||||||
|
```
|
||||||
|
|
||||||
|
Notes:
|
||||||
|
- Add `--no-onboard` if you don’t want the onboarding wizard to run again.
|
||||||
|
- For **source installs**, use:
|
||||||
|
```bash
|
||||||
|
curl -fsSL https://clawd.bot/install.sh | bash -s -- --install-method git --no-onboard
|
||||||
|
```
|
||||||
|
The installer will `git pull --rebase` **only** if the repo is clean.
|
||||||
|
- For **global installs**, the script uses `npm install -g clawdbot@latest` under the hood.
|
||||||
|
|
||||||
## Before you update
|
## Before you update
|
||||||
|
|
||||||
- Know how you installed: **global** (npm/pnpm/bun) vs **from source** (git clone).
|
- Know how you installed: **global** (npm/pnpm) vs **from source** (git clone).
|
||||||
- Know how your Gateway is running: **foreground terminal** vs **supervised service** (launchd/systemd).
|
- Know how your Gateway is running: **foreground terminal** vs **supervised service** (launchd/systemd).
|
||||||
- Snapshot your tailoring:
|
- Snapshot your tailoring:
|
||||||
- Config: `~/.clawdbot/clawdbot.json`
|
- Config: `~/.clawdbot/clawdbot.json`
|
||||||
@@ -29,10 +48,7 @@ npm i -g clawdbot@latest
|
|||||||
```bash
|
```bash
|
||||||
pnpm add -g clawdbot@latest
|
pnpm add -g clawdbot@latest
|
||||||
```
|
```
|
||||||
|
We do **not** recommend Bun for the Gateway runtime (WhatsApp/Telegram bugs).
|
||||||
```bash
|
|
||||||
bun add -g clawdbot@latest
|
|
||||||
```
|
|
||||||
|
|
||||||
Then:
|
Then:
|
||||||
|
|
||||||
@@ -59,7 +75,7 @@ It runs a safe-ish update flow:
|
|||||||
- Fetches + rebases against the configured upstream.
|
- Fetches + rebases against the configured upstream.
|
||||||
- Installs deps, builds, builds the Control UI, and runs `clawdbot doctor`.
|
- Installs deps, builds, builds the Control UI, and runs `clawdbot doctor`.
|
||||||
|
|
||||||
If you installed via **npm/pnpm/bun** (no git metadata), `clawdbot update` will skip. Use “Update (global install)” instead.
|
If you installed via **npm/pnpm** (no git metadata), `clawdbot update` will skip. Use “Update (global install)” instead.
|
||||||
|
|
||||||
## Update (Control UI / RPC)
|
## Update (Control UI / RPC)
|
||||||
|
|
||||||
@@ -93,7 +109,7 @@ pnpm clawdbot health
|
|||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
- `pnpm build` matters when you run the packaged `clawdbot` binary ([`dist/entry.js`](https://github.com/clawdbot/clawdbot/blob/main/dist/entry.js)) or use Node to run `dist/`.
|
- `pnpm build` matters when you run the packaged `clawdbot` binary ([`dist/entry.js`](https://github.com/clawdbot/clawdbot/blob/main/dist/entry.js)) or use Node to run `dist/`.
|
||||||
- If you run directly from TypeScript (`pnpm clawdbot ...` / `bun run clawdbot ...`), a rebuild is usually unnecessary, but **config migrations still apply** → run doctor.
|
- If you run directly from TypeScript (`pnpm clawdbot ...`), a rebuild is usually unnecessary, but **config migrations still apply** → run doctor.
|
||||||
- Switching between global and git installs is easy: install the other flavor, then run `clawdbot doctor` so the gateway service entrypoint is rewritten to the current install.
|
- Switching between global and git installs is easy: install the other flavor, then run `clawdbot doctor` so the gateway service entrypoint is rewritten to the current install.
|
||||||
|
|
||||||
## Always run: `clawdbot doctor`
|
## Always run: `clawdbot doctor`
|
||||||
@@ -145,10 +161,6 @@ npm i -g clawdbot@<version>
|
|||||||
pnpm add -g clawdbot@<version>
|
pnpm add -g clawdbot@<version>
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
|
||||||
bun add -g clawdbot@<version>
|
|
||||||
```
|
|
||||||
|
|
||||||
Tip: to see the current published version, run `npm view clawdbot version`.
|
Tip: to see the current published version, run `npm view clawdbot version`.
|
||||||
|
|
||||||
Then restart + re-run doctor:
|
Then restart + re-run doctor:
|
||||||
|
|||||||
@@ -106,6 +106,28 @@ For debugging “why is this blocked?”, see [Sandbox vs Tool Policy vs Elevate
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
### Example 2b: Global coding profile + messaging-only agent
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"tools": { "profile": "coding" },
|
||||||
|
"agents": {
|
||||||
|
"list": [
|
||||||
|
{
|
||||||
|
"id": "support",
|
||||||
|
"tools": { "profile": "messaging", "allow": ["slack"] }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Result:**
|
||||||
|
- default agents get coding tools
|
||||||
|
- `support` agent is messaging-only (+ Slack tool)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
### Example 3: Different Sandbox Modes per Agent
|
### Example 3: Different Sandbox Modes per Agent
|
||||||
|
|
||||||
```json
|
```json
|
||||||
@@ -165,13 +187,29 @@ agents.list[].sandbox.prune.* > agents.defaults.sandbox.prune.*
|
|||||||
|
|
||||||
### Tool Restrictions
|
### Tool Restrictions
|
||||||
The filtering order is:
|
The filtering order is:
|
||||||
1. **Global tool policy** (`tools.allow` / `tools.deny`)
|
1. **Tool profile** (`tools.profile` or `agents.list[].tools.profile`)
|
||||||
2. **Agent-specific tool policy** (`agents.list[].tools`)
|
2. **Global tool policy** (`tools.allow` / `tools.deny`)
|
||||||
3. **Sandbox tool policy** (`tools.sandbox.tools` or `agents.list[].tools.sandbox.tools`)
|
3. **Agent-specific tool policy** (`agents.list[].tools`)
|
||||||
4. **Subagent tool policy** (`tools.subagents.tools`, if applicable)
|
4. **Sandbox tool policy** (`tools.sandbox.tools` or `agents.list[].tools.sandbox.tools`)
|
||||||
|
5. **Subagent tool policy** (`tools.subagents.tools`, if applicable)
|
||||||
|
|
||||||
Each level can further restrict tools, but cannot grant back denied tools from earlier levels.
|
Each level can further restrict tools, but cannot grant back denied tools from earlier levels.
|
||||||
If `agents.list[].tools.sandbox.tools` is set, it replaces `tools.sandbox.tools` for that agent.
|
If `agents.list[].tools.sandbox.tools` is set, it replaces `tools.sandbox.tools` for that agent.
|
||||||
|
If `agents.list[].tools.profile` is set, it overrides `tools.profile` for that agent.
|
||||||
|
|
||||||
|
### Tool groups (shorthands)
|
||||||
|
|
||||||
|
Tool policies (global, agent, sandbox) support `group:*` entries that expand to multiple concrete tools:
|
||||||
|
|
||||||
|
- `group:runtime`: `exec`, `bash`, `process`
|
||||||
|
- `group:fs`: `read`, `write`, `edit`, `apply_patch`
|
||||||
|
- `group:sessions`: `sessions_list`, `sessions_history`, `sessions_send`, `sessions_spawn`, `session_status`
|
||||||
|
- `group:memory`: `memory_search`, `memory_get`
|
||||||
|
- `group:ui`: `browser`, `canvas`
|
||||||
|
- `group:automation`: `cron`, `gateway`
|
||||||
|
- `group:messaging`: `message`
|
||||||
|
- `group:nodes`: `nodes`
|
||||||
|
- `group:clawdbot`: all built-in Clawdbot tools (excludes provider plugins)
|
||||||
|
|
||||||
### Elevated Mode
|
### Elevated Mode
|
||||||
`tools.elevated` is the global baseline (sender-based allowlist). `agents.list[].tools.elevated` can further restrict elevated for specific agents (both must allow).
|
`tools.elevated` is the global baseline (sender-based allowlist). `agents.list[].tools.elevated` can further restrict elevated for specific agents (both must allow).
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ read_when:
|
|||||||
---
|
---
|
||||||
# Platforms
|
# Platforms
|
||||||
|
|
||||||
Clawdbot core is written in TypeScript, so the CLI + Gateway run anywhere Node or Bun runs.
|
Clawdbot core is written in TypeScript. **Node is the recommended runtime**.
|
||||||
|
Bun is not recommended for the Gateway (WhatsApp/Telegram bugs).
|
||||||
|
|
||||||
Companion apps exist for macOS (menu bar app) and mobile nodes (iOS/Android). Windows and
|
Companion apps exist for macOS (menu bar app) and mobile nodes (iOS/Android). Windows and
|
||||||
Linux companion apps are planned, but the Gateway is fully supported today.
|
Linux companion apps are planned, but the Gateway is fully supported today.
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ read_when:
|
|||||||
---
|
---
|
||||||
# Linux App
|
# Linux App
|
||||||
|
|
||||||
The Gateway is fully supported on Linux. The core is written in TypeScript, so it runs anywhere Node or Bun runs.
|
The Gateway is fully supported on Linux. **Node is the recommended runtime**.
|
||||||
|
Bun is not recommended for the Gateway (WhatsApp/Telegram bugs).
|
||||||
|
|
||||||
Native Linux companion apps are planned. Contributions are welcome if you want to help build one.
|
Native Linux companion apps are planned. Contributions are welcome if you want to help build one.
|
||||||
|
|
||||||
@@ -23,7 +24,7 @@ Step-by-step VPS guide: [exe.dev](/platforms/exe-dev)
|
|||||||
## Install
|
## Install
|
||||||
- [Getting Started](/start/getting-started)
|
- [Getting Started](/start/getting-started)
|
||||||
- [Install & updates](/install/updating)
|
- [Install & updates](/install/updating)
|
||||||
- Optional flows: [Bun](/install/bun), [Nix](/install/nix), [Docker](/install/docker)
|
- Optional flows: [Bun (experimental)](/install/bun), [Nix](/install/nix), [Docker](/install/docker)
|
||||||
|
|
||||||
## Gateway
|
## Gateway
|
||||||
- [Gateway runbook](/gateway)
|
- [Gateway runbook](/gateway)
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ You need Node 22+ on the Mac, then install `clawdbot` globally:
|
|||||||
npm install -g clawdbot@<version>
|
npm install -g clawdbot@<version>
|
||||||
```
|
```
|
||||||
|
|
||||||
The macOS app’s **Install CLI** button runs the same flow via npm/pnpm/bun.
|
The macOS app’s **Install CLI** button runs the same flow via npm/pnpm (bun not recommended for Gateway runtime).
|
||||||
|
|
||||||
## Launchd (Gateway as LaunchAgent)
|
## Launchd (Gateway as LaunchAgent)
|
||||||
|
|
||||||
|
|||||||
@@ -29,17 +29,17 @@ Notes:
|
|||||||
# From repo root; set release IDs so Sparkle feed is enabled.
|
# From repo root; set release IDs so Sparkle feed is enabled.
|
||||||
# APP_BUILD must be numeric + monotonic for Sparkle compare.
|
# APP_BUILD must be numeric + monotonic for Sparkle compare.
|
||||||
BUNDLE_ID=com.clawdbot.mac \
|
BUNDLE_ID=com.clawdbot.mac \
|
||||||
APP_VERSION=2026.1.11-2 \
|
APP_VERSION=2026.1.11-4 \
|
||||||
APP_BUILD="$(git rev-list --count HEAD)" \
|
APP_BUILD="$(git rev-list --count HEAD)" \
|
||||||
BUILD_CONFIG=release \
|
BUILD_CONFIG=release \
|
||||||
SIGN_IDENTITY="Developer ID Application: Peter Steinberger (Y5PE65HELJ)" \
|
SIGN_IDENTITY="Developer ID Application: Peter Steinberger (Y5PE65HELJ)" \
|
||||||
scripts/package-mac-app.sh
|
scripts/package-mac-app.sh
|
||||||
|
|
||||||
# Zip for distribution (includes resource forks for Sparkle delta support)
|
# Zip for distribution (includes resource forks for Sparkle delta support)
|
||||||
ditto -c -k --sequesterRsrc --keepParent dist/Clawdbot.app dist/Clawdbot-2026.1.11-2.zip
|
ditto -c -k --sequesterRsrc --keepParent dist/Clawdbot.app dist/Clawdbot-2026.1.11-4.zip
|
||||||
|
|
||||||
# Optional: also build a styled DMG for humans (drag to /Applications)
|
# Optional: also build a styled DMG for humans (drag to /Applications)
|
||||||
scripts/create-dmg.sh dist/Clawdbot.app dist/Clawdbot-2026.1.11-2.dmg
|
scripts/create-dmg.sh dist/Clawdbot.app dist/Clawdbot-2026.1.11-4.dmg
|
||||||
|
|
||||||
# Recommended: build + notarize/staple zip + DMG
|
# Recommended: build + notarize/staple zip + DMG
|
||||||
# First, create a keychain profile once:
|
# First, create a keychain profile once:
|
||||||
@@ -47,26 +47,26 @@ scripts/create-dmg.sh dist/Clawdbot.app dist/Clawdbot-2026.1.11-2.dmg
|
|||||||
# --apple-id "<apple-id>" --team-id "<team-id>" --password "<app-specific-password>"
|
# --apple-id "<apple-id>" --team-id "<team-id>" --password "<app-specific-password>"
|
||||||
NOTARIZE=1 NOTARYTOOL_PROFILE=clawdbot-notary \
|
NOTARIZE=1 NOTARYTOOL_PROFILE=clawdbot-notary \
|
||||||
BUNDLE_ID=com.clawdbot.mac \
|
BUNDLE_ID=com.clawdbot.mac \
|
||||||
APP_VERSION=2026.1.11-2 \
|
APP_VERSION=2026.1.11-4 \
|
||||||
APP_BUILD="$(git rev-list --count HEAD)" \
|
APP_BUILD="$(git rev-list --count HEAD)" \
|
||||||
BUILD_CONFIG=release \
|
BUILD_CONFIG=release \
|
||||||
SIGN_IDENTITY="Developer ID Application: Peter Steinberger (Y5PE65HELJ)" \
|
SIGN_IDENTITY="Developer ID Application: Peter Steinberger (Y5PE65HELJ)" \
|
||||||
scripts/package-mac-dist.sh
|
scripts/package-mac-dist.sh
|
||||||
|
|
||||||
# Optional: ship dSYM alongside the release
|
# Optional: ship dSYM alongside the release
|
||||||
ditto -c -k --keepParent apps/macos/.build/release/Clawdbot.app.dSYM dist/Clawdbot-2026.1.11-2.dSYM.zip
|
ditto -c -k --keepParent apps/macos/.build/release/Clawdbot.app.dSYM dist/Clawdbot-2026.1.11-4.dSYM.zip
|
||||||
```
|
```
|
||||||
|
|
||||||
## Appcast entry
|
## Appcast entry
|
||||||
Use the release note generator so Sparkle renders formatted HTML notes:
|
Use the release note generator so Sparkle renders formatted HTML notes:
|
||||||
```bash
|
```bash
|
||||||
SPARKLE_PRIVATE_KEY_FILE=/Users/steipete/Library/CloudStorage/Dropbox/Backup/Sparkle/ed25519-private-key scripts/make_appcast.sh dist/Clawdbot-2026.1.11-2.zip https://raw.githubusercontent.com/clawdbot/clawdbot/main/appcast.xml
|
SPARKLE_PRIVATE_KEY_FILE=/Users/steipete/Library/CloudStorage/Dropbox/Backup/Sparkle/ed25519-private-key scripts/make_appcast.sh dist/Clawdbot-2026.1.11-4.zip https://raw.githubusercontent.com/clawdbot/clawdbot/main/appcast.xml
|
||||||
```
|
```
|
||||||
Generates HTML release notes from `CHANGELOG.md` (via [`scripts/changelog-to-html.sh`](https://github.com/clawdbot/clawdbot/blob/main/scripts/changelog-to-html.sh)) and embeds them in the appcast entry.
|
Generates HTML release notes from `CHANGELOG.md` (via [`scripts/changelog-to-html.sh`](https://github.com/clawdbot/clawdbot/blob/main/scripts/changelog-to-html.sh)) and embeds them in the appcast entry.
|
||||||
Commit the updated `appcast.xml` alongside the release assets (zip + dSYM) when publishing.
|
Commit the updated `appcast.xml` alongside the release assets (zip + dSYM) when publishing.
|
||||||
|
|
||||||
## Publish & verify
|
## Publish & verify
|
||||||
- Upload `Clawdbot-2026.1.11-2.zip` (and `Clawdbot-2026.1.11-2.dSYM.zip`) to the GitHub release for tag `v2026.1.11-2`.
|
- Upload `Clawdbot-2026.1.11-4.zip` (and `Clawdbot-2026.1.11-4.dSYM.zip`) to the GitHub release for tag `v2026.1.11-4`.
|
||||||
- Ensure the raw appcast URL matches the baked feed: `https://raw.githubusercontent.com/clawdbot/clawdbot/main/appcast.xml`.
|
- Ensure the raw appcast URL matches the baked feed: `https://raw.githubusercontent.com/clawdbot/clawdbot/main/appcast.xml`.
|
||||||
- Sanity checks:
|
- Sanity checks:
|
||||||
- `curl -I https://raw.githubusercontent.com/clawdbot/clawdbot/main/appcast.xml` returns 200.
|
- `curl -I https://raw.githubusercontent.com/clawdbot/clawdbot/main/appcast.xml` returns 200.
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ node.
|
|||||||
- Runs or connects to the Gateway (local or remote).
|
- Runs or connects to the Gateway (local or remote).
|
||||||
- Exposes macOS‑only tools (Canvas, Camera, Screen Recording, `system.run`).
|
- Exposes macOS‑only tools (Canvas, Camera, Screen Recording, `system.run`).
|
||||||
- Optionally hosts **PeekabooBridge** for UI automation.
|
- Optionally hosts **PeekabooBridge** for UI automation.
|
||||||
- Installs the global CLI (`clawdbot`) via npm/pnpm/bun on request.
|
- Installs the global CLI (`clawdbot`) via npm/pnpm on request (bun not recommended for the Gateway runtime).
|
||||||
|
|
||||||
## Local vs remote mode
|
## Local vs remote mode
|
||||||
|
|
||||||
|
|||||||
@@ -148,6 +148,7 @@ export default {
|
|||||||
clawdbot plugins list
|
clawdbot plugins list
|
||||||
clawdbot plugins info <id>
|
clawdbot plugins info <id>
|
||||||
clawdbot plugins install <path> # add a local file/dir to plugins.load.paths
|
clawdbot plugins install <path> # add a local file/dir to plugins.load.paths
|
||||||
|
clawdbot plugins install ./extensions/voice-call # relative path ok
|
||||||
clawdbot plugins install ./plugin.tgz # install from a local tarball
|
clawdbot plugins install ./plugin.tgz # install from a local tarball
|
||||||
clawdbot plugins install @clawdbot/voice-call # install from npm
|
clawdbot plugins install @clawdbot/voice-call # install from npm
|
||||||
clawdbot plugins enable <id>
|
clawdbot plugins enable <id>
|
||||||
|
|||||||
+69
-65
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
summary: "Voice Call plugin: Twilio-backed outbound calls (plugin install + config + CLI)"
|
summary: "Voice Call plugin: outbound + inbound calls via Twilio/Telnyx (plugin install + config + CLI)"
|
||||||
read_when:
|
read_when:
|
||||||
- You want to place an outbound voice call from Clawdbot
|
- You want to place an outbound voice call from Clawdbot
|
||||||
- You are configuring or developing the voice-call plugin
|
- You are configuring or developing the voice-call plugin
|
||||||
@@ -7,20 +7,19 @@ read_when:
|
|||||||
|
|
||||||
# Voice Call (plugin)
|
# Voice Call (plugin)
|
||||||
|
|
||||||
Outbound voice calls for Clawdbot via a plugin.
|
Voice calls for Clawdbot via a plugin. Supports outbound notifications and
|
||||||
|
multi-turn conversations with inbound policies.
|
||||||
If you’re new to plugins, start with [Plugins](/plugin): what they are, where
|
|
||||||
they live on disk, and how install/config works.
|
|
||||||
|
|
||||||
Current providers:
|
Current providers:
|
||||||
- `twilio` (real calls)
|
- `twilio` (Programmable Voice + Media Streams)
|
||||||
- `log` (dev fallback; no network)
|
- `telnyx` (Call Control v2)
|
||||||
|
- `mock` (dev/no network)
|
||||||
|
|
||||||
Quick mental model:
|
Quick mental model:
|
||||||
- Install plugin
|
- Install plugin
|
||||||
- Restart Gateway
|
- Restart Gateway
|
||||||
- Configure under `plugins.entries.voice-call.config`
|
- Configure under `plugins.entries.voice-call.config`
|
||||||
- Use `clawdbot voicecall …` or the `voice_call` tool
|
- Use `clawdbot voicecall ...` or the `voice_call` tool
|
||||||
|
|
||||||
## Where it runs (local vs remote)
|
## Where it runs (local vs remote)
|
||||||
|
|
||||||
@@ -28,23 +27,6 @@ The Voice Call plugin runs **inside the Gateway process**.
|
|||||||
|
|
||||||
If you use a remote Gateway, install/configure the plugin on the **machine running the Gateway**, then restart the Gateway to load it.
|
If you use a remote Gateway, install/configure the plugin on the **machine running the Gateway**, then restart the Gateway to load it.
|
||||||
|
|
||||||
## Twilio setup (getting the credentials)
|
|
||||||
|
|
||||||
You’ll need:
|
|
||||||
- **Account SID** (`AC...`)
|
|
||||||
- **Auth Token** (treat like a password)
|
|
||||||
- A Twilio **Voice-capable phone number** to use as `from` (E.164, like `+15551234567`)
|
|
||||||
|
|
||||||
Steps:
|
|
||||||
1) Create/sign in to Twilio: `https://www.twilio.com/`
|
|
||||||
2) Open the Twilio Console: `https://console.twilio.com/`
|
|
||||||
3) Find your **Account SID** + **Auth Token** (typically on the Console dashboard / Account settings).
|
|
||||||
4) Buy (or select) a Twilio phone number with **Voice** capability:
|
|
||||||
- Console → Phone Numbers → Manage → Buy a number
|
|
||||||
5) (Trial accounts) You may need to verify the destination `to` numbers before Twilio allows outbound calling.
|
|
||||||
|
|
||||||
Tip: keep `twilio.authToken` out of git; store it in `~/.clawdbot/clawdbot.json` or your Control UI config, not in repo files.
|
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
### Option A: install from npm (recommended)
|
### Option A: install from npm (recommended)
|
||||||
@@ -53,34 +35,13 @@ Tip: keep `twilio.authToken` out of git; store it in `~/.clawdbot/clawdbot.json`
|
|||||||
clawdbot plugins install @clawdbot/voice-call
|
clawdbot plugins install @clawdbot/voice-call
|
||||||
```
|
```
|
||||||
|
|
||||||
This downloads the package, extracts it into `~/.clawdbot/extensions/`, and enables it in `clawdbot.json`.
|
|
||||||
|
|
||||||
Restart the Gateway afterwards.
|
Restart the Gateway afterwards.
|
||||||
|
|
||||||
### Option B: install from a local folder (dev, no copying)
|
### Option B: install from a local folder (dev, no copying)
|
||||||
|
|
||||||
This keeps the plugin in-place (great for iterating locally) and adds the folder
|
|
||||||
to `plugins.load.paths`.
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
clawdbot plugins install /absolute/path/to/voice-call
|
clawdbot plugins install ./extensions/voice-call
|
||||||
```
|
cd ./extensions/voice-call && pnpm install
|
||||||
|
|
||||||
If your plugin has dependencies, install them in that folder (so it has a
|
|
||||||
`node_modules`):
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cd /absolute/path/to/voice-call && pnpm install
|
|
||||||
```
|
|
||||||
|
|
||||||
Restart the Gateway afterwards.
|
|
||||||
|
|
||||||
### Option C: copy into the global extensions folder (dev)
|
|
||||||
|
|
||||||
```bash
|
|
||||||
mkdir -p ~/.clawdbot/extensions
|
|
||||||
cp -R extensions/voice-call ~/.clawdbot/extensions/voice-call
|
|
||||||
cd ~/.clawdbot/extensions/voice-call && pnpm install
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Restart the Gateway afterwards.
|
Restart the Gateway afterwards.
|
||||||
@@ -96,13 +57,33 @@ Set config under `plugins.entries.voice-call.config`:
|
|||||||
"voice-call": {
|
"voice-call": {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
config: {
|
config: {
|
||||||
provider: "twilio",
|
provider: "twilio", // or "telnyx" | "mock"
|
||||||
|
fromNumber: "+15550001234",
|
||||||
|
toNumber: "+15550005678",
|
||||||
|
|
||||||
twilio: {
|
twilio: {
|
||||||
accountSid: "ACxxxxxxxx",
|
accountSid: "ACxxxxxxxx",
|
||||||
authToken: "…",
|
authToken: "..."
|
||||||
from: "+15551234567",
|
},
|
||||||
statusCallbackUrl: "https://example.com/twilio-status", // optional
|
|
||||||
twimlUrl: "https://example.com/twiml" // optional
|
// Webhook server
|
||||||
|
serve: {
|
||||||
|
port: 3334,
|
||||||
|
path: "/voice/webhook"
|
||||||
|
},
|
||||||
|
|
||||||
|
// Public exposure (pick one)
|
||||||
|
// publicUrl: "https://example.ngrok.app/voice/webhook",
|
||||||
|
// tunnel: { provider: "ngrok" },
|
||||||
|
// tailscale: { mode: "funnel", path: "/voice/webhook" }
|
||||||
|
|
||||||
|
outbound: {
|
||||||
|
defaultMode: "notify" // notify | conversation
|
||||||
|
},
|
||||||
|
|
||||||
|
streaming: {
|
||||||
|
enabled: true,
|
||||||
|
streamPath: "/voice/stream"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -111,34 +92,57 @@ Set config under `plugins.entries.voice-call.config`:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Dev fallback:
|
Notes:
|
||||||
|
- Twilio/Telnyx require a **publicly reachable** webhook URL.
|
||||||
|
- `mock` is a local dev provider (no network calls).
|
||||||
|
- `skipSignatureVerification` is for local testing only.
|
||||||
|
|
||||||
|
## Inbound calls
|
||||||
|
|
||||||
|
Inbound policy defaults to `disabled`. To enable inbound calls, set:
|
||||||
|
|
||||||
```json5
|
```json5
|
||||||
{ provider: "log" }
|
{
|
||||||
|
inboundPolicy: "allowlist",
|
||||||
|
allowFrom: ["+15550001234"],
|
||||||
|
inboundGreeting: "Hello! How can I help?"
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Notes:
|
Auto-responses use the agent system. Tune with:
|
||||||
- `twilio.authToken` is treated as sensitive in the Control UI schema hints.
|
- `responseModel`
|
||||||
|
- `responseSystemPrompt`
|
||||||
|
- `responseTimeoutMs`
|
||||||
|
|
||||||
## CLI
|
## CLI
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
clawdbot voicecall start --to "+15555550123" --message "Hello from Clawdbot"
|
clawdbot voicecall call --to "+15555550123" --message "Hello from Clawdbot"
|
||||||
clawdbot voicecall status --sid CAxxxxxxxx
|
clawdbot voicecall continue --call-id <id> --message "Any questions?"
|
||||||
|
clawdbot voicecall speak --call-id <id> --message "One moment"
|
||||||
|
clawdbot voicecall end --call-id <id>
|
||||||
|
clawdbot voicecall status --call-id <id>
|
||||||
|
clawdbot voicecall tail
|
||||||
|
clawdbot voicecall expose --mode funnel
|
||||||
```
|
```
|
||||||
|
|
||||||
## Agent tool
|
## Agent tool
|
||||||
|
|
||||||
Tool name: `voice_call`
|
Tool name: `voice_call`
|
||||||
|
|
||||||
- `mode`: `"call" | "status"` (default: `call`)
|
Actions:
|
||||||
- `to`: required for `call`
|
- `initiate_call` (message, to?, mode?)
|
||||||
- `sid`: required for `status`
|
- `continue_call` (callId, message)
|
||||||
- `message`: optional
|
- `speak_to_user` (callId, message)
|
||||||
|
- `end_call` (callId)
|
||||||
|
- `get_status` (callId)
|
||||||
|
|
||||||
This repo ships a matching skill doc at `skills/voice-call/SKILL.md`.
|
This repo ships a matching skill doc at `skills/voice-call/SKILL.md`.
|
||||||
|
|
||||||
## Gateway RPC
|
## Gateway RPC
|
||||||
|
|
||||||
- `voicecall.start` (`to`, optional `message`)
|
- `voicecall.initiate` (`to?`, `message`, `mode?`)
|
||||||
- `voicecall.status` (`sid`)
|
- `voicecall.continue` (`callId`, `message`)
|
||||||
|
- `voicecall.speak` (`callId`, `message`)
|
||||||
|
- `voicecall.end` (`callId`)
|
||||||
|
- `voicecall.status` (`callId`)
|
||||||
@@ -47,7 +47,7 @@ Minimal config:
|
|||||||
- To ignore all DMs: set `discord.dm.enabled=false` or `discord.dm.policy="disabled"`.
|
- To ignore all DMs: set `discord.dm.enabled=false` or `discord.dm.policy="disabled"`.
|
||||||
8. Group DMs are ignored by default; enable via `discord.dm.groupEnabled` and optionally restrict by `discord.dm.groupChannels`.
|
8. Group DMs are ignored by default; enable via `discord.dm.groupEnabled` and optionally restrict by `discord.dm.groupChannels`.
|
||||||
9. Optional guild rules: set `discord.guilds` keyed by guild id (preferred) or slug, with per-channel rules.
|
9. Optional guild rules: set `discord.guilds` keyed by guild id (preferred) or slug, with per-channel rules.
|
||||||
10. Optional native commands: set `commands.native: true` to register native commands in Discord; set `commands.native: false` to clear previously registered native commands. Text commands are controlled by `commands.text` and must be sent as standalone `/...` messages. Use `commands.useAccessGroups: false` to bypass access-group checks for commands.
|
10. Optional native commands: `commands.native` defaults to `"auto"` (on for Discord/Telegram, off for Slack). Override with `discord.commands.native: true|false|"auto"`; `false` clears previously registered commands. Text commands are controlled by `commands.text` and must be sent as standalone `/...` messages. Use `commands.useAccessGroups: false` to bypass access-group checks for commands.
|
||||||
- Full command list + config: [Slash commands](/tools/slash-commands)
|
- Full command list + config: [Slash commands](/tools/slash-commands)
|
||||||
11. Optional guild context history: set `discord.historyLimit` (default 20, falls back to `messages.groupChat.historyLimit`) to include the last N guild messages as context when replying to a mention. Set `0` to disable.
|
11. Optional guild context history: set `discord.historyLimit` (default 20, falls back to `messages.groupChat.historyLimit`) to include the last N guild messages as context when replying to a mention. Set `0` to disable.
|
||||||
12. Reactions: the agent can trigger reactions via the `discord` tool (gated by `discord.actions.*`).
|
12. Reactions: the agent can trigger reactions via the `discord` tool (gated by `discord.actions.*`).
|
||||||
@@ -158,6 +158,8 @@ Notes:
|
|||||||
- `agents.list[].groupChat.mentionPatterns` (or `messages.groupChat.mentionPatterns`) also count as mentions for guild messages.
|
- `agents.list[].groupChat.mentionPatterns` (or `messages.groupChat.mentionPatterns`) also count as mentions for guild messages.
|
||||||
- Multi-agent override: set per-agent patterns on `agents.list[].groupChat.mentionPatterns`.
|
- Multi-agent override: set per-agent patterns on `agents.list[].groupChat.mentionPatterns`.
|
||||||
- If `channels` is present, any channel not listed is denied by default.
|
- If `channels` is present, any channel not listed is denied by default.
|
||||||
|
- Bot-authored messages are ignored by default; set `discord.allowBots=true` to allow them (own messages remain filtered).
|
||||||
|
- Warning: If you allow replies to other bots (`discord.allowBots=true`), prevent bot-to-bot reply loops with `requireMention`, `discord.guilds.*.channels.<id>.users` allowlists, and/or clear guardrails in `AGENTS.md` and `SOUL.md`.
|
||||||
|
|
||||||
### 6) Verify it works
|
### 6) Verify it works
|
||||||
1. Start the gateway.
|
1. Start the gateway.
|
||||||
@@ -172,6 +174,9 @@ Notes:
|
|||||||
- The bot lacks channel permissions (View/Send/Read History), or
|
- The bot lacks channel permissions (View/Send/Read History), or
|
||||||
- Your config requires mentions and you didn’t mention it, or
|
- Your config requires mentions and you didn’t mention it, or
|
||||||
- Your guild/channel allowlist denies the channel/user.
|
- Your guild/channel allowlist denies the channel/user.
|
||||||
|
- **`requireMention: false` but still no replies**:
|
||||||
|
- `discord.groupPolicy` defaults to **allowlist**; you must either set it to `"open"` or explicitly list the channel under `discord.guilds.<id>.channels`.
|
||||||
|
- `requireMention` must live under `discord.guilds` (or a specific channel). `discord.requireMention` at the top level is ignored.
|
||||||
- **Permission audits** (`providers status --probe`) only check numeric channel IDs. If you use slugs/names as `discord.guilds.*.channels` keys, the audit can’t verify permissions.
|
- **Permission audits** (`providers status --probe`) only check numeric channel IDs. If you use slugs/names as `discord.guilds.*.channels` keys, the audit can’t verify permissions.
|
||||||
- **DMs don’t work**: `discord.dm.enabled=false`, `discord.dm.policy="disabled"`, or you haven’t been approved yet (`discord.dm.policy="pairing"`).
|
- **DMs don’t work**: `discord.dm.enabled=false`, `discord.dm.policy="disabled"`, or you haven’t been approved yet (`discord.dm.policy="pairing"`).
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,9 @@ MiniMax highlights these improvements in M2.1:
|
|||||||
|
|
||||||
- **Speed:** Lightning is the “fast” variant in MiniMax’s pricing docs.
|
- **Speed:** Lightning is the “fast” variant in MiniMax’s pricing docs.
|
||||||
- **Cost:** Pricing shows the same input cost, but Lightning has higher output cost.
|
- **Cost:** Pricing shows the same input cost, but Lightning has higher output cost.
|
||||||
|
- **Coding plan routing:** The Lightning back-end isn’t directly available on the MiniMax
|
||||||
|
coding plan. MiniMax auto-routes most requests to Lightning, but falls back to the
|
||||||
|
regular M2.1 back-end during traffic spikes.
|
||||||
|
|
||||||
## Choose a setup
|
## Choose a setup
|
||||||
|
|
||||||
@@ -69,6 +72,28 @@ Configure via CLI:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### MiniMax M2.1 as fallback (Opus primary)
|
||||||
|
|
||||||
|
**Best for:** keep Opus 4.5 as primary, fail over to MiniMax M2.1.
|
||||||
|
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
env: { MINIMAX_API_KEY: "sk-..." },
|
||||||
|
agents: {
|
||||||
|
defaults: {
|
||||||
|
models: {
|
||||||
|
"anthropic/claude-opus-4-5": { alias: "opus" },
|
||||||
|
"minimax/MiniMax-M2.1": { alias: "minimax" }
|
||||||
|
},
|
||||||
|
model: {
|
||||||
|
primary: "anthropic/claude-opus-4-5",
|
||||||
|
fallbacks: ["minimax/MiniMax-M2.1"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### Optional: Local via LM Studio (manual)
|
### Optional: Local via LM Studio (manual)
|
||||||
|
|
||||||
**Best for:** local inference with LM Studio.
|
**Best for:** local inference with LM Studio.
|
||||||
@@ -131,5 +156,27 @@ Use the interactive config wizard to set MiniMax without editing JSON:
|
|||||||
|
|
||||||
- Model refs are `minimax/<model>`.
|
- Model refs are `minimax/<model>`.
|
||||||
- Update pricing values in `models.json` if you need exact cost tracking.
|
- Update pricing values in `models.json` if you need exact cost tracking.
|
||||||
|
- Referral link for MiniMax Coding Plan (10% off): https://platform.minimax.io/subscribe/coding-plan?code=DbXJTRClnb&source=link
|
||||||
- See [/concepts/model-providers](/concepts/model-providers) for provider rules.
|
- See [/concepts/model-providers](/concepts/model-providers) for provider rules.
|
||||||
- Use `clawdbot models list` and `clawdbot models set minimax/MiniMax-M2.1` to switch.
|
- Use `clawdbot models list` and `clawdbot models set minimax/MiniMax-M2.1` to switch.
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
### “Unknown model: minimax/MiniMax-M2.1”
|
||||||
|
|
||||||
|
This usually means the **MiniMax provider isn’t configured** (no provider entry
|
||||||
|
and no MiniMax auth profile/env key found). A fix for this detection is in
|
||||||
|
**2026.1.12** (unreleased at the time of writing). Fix by:
|
||||||
|
- Upgrading to **2026.1.12** (or run from source `main`), then restarting the gateway.
|
||||||
|
- Running `clawdbot configure` and selecting **MiniMax M2.1**, or
|
||||||
|
- Adding the `models.providers.minimax` block manually, or
|
||||||
|
- Setting `MINIMAX_API_KEY` (or a MiniMax auth profile) so the provider can be injected.
|
||||||
|
|
||||||
|
Make sure the model id is **case‑sensitive**:
|
||||||
|
- `minimax/MiniMax-M2.1`
|
||||||
|
- `minimax/MiniMax-M2.1-lightning`
|
||||||
|
|
||||||
|
Then recheck with:
|
||||||
|
```bash
|
||||||
|
clawdbot models list
|
||||||
|
```
|
||||||
@@ -26,10 +26,12 @@ model as `provider/model`.
|
|||||||
- [Anthropic (API + Claude CLI)](/providers/anthropic)
|
- [Anthropic (API + Claude CLI)](/providers/anthropic)
|
||||||
- [OpenRouter](/providers/openrouter)
|
- [OpenRouter](/providers/openrouter)
|
||||||
- [Moonshot AI (Kimi)](/providers/moonshot)
|
- [Moonshot AI (Kimi)](/providers/moonshot)
|
||||||
|
- [Synthetic](/providers/synthetic)
|
||||||
- [OpenCode Zen](/providers/opencode)
|
- [OpenCode Zen](/providers/opencode)
|
||||||
- [Z.AI](/providers/zai)
|
- [Z.AI](/providers/zai)
|
||||||
- [GLM models](/providers/glm)
|
- [GLM models](/providers/glm)
|
||||||
- [MiniMax](/providers/minimax)
|
- [MiniMax](/providers/minimax)
|
||||||
|
- [Amazon Bedrock](/bedrock)
|
||||||
|
|
||||||
For the full provider catalog (xAI, Groq, Mistral, etc.) and advanced configuration,
|
For the full provider catalog (xAI, Groq, Mistral, etc.) and advanced configuration,
|
||||||
see [Model providers](/concepts/model-providers).
|
see [Model providers](/concepts/model-providers).
|
||||||
@@ -9,7 +9,13 @@ read_when:
|
|||||||
Moonshot provides the Kimi API with OpenAI-compatible endpoints. Configure the
|
Moonshot provides the Kimi API with OpenAI-compatible endpoints. Configure the
|
||||||
provider and set the default model to `moonshot/kimi-k2-0905-preview`.
|
provider and set the default model to `moonshot/kimi-k2-0905-preview`.
|
||||||
|
|
||||||
## CLI setup
|
Current Kimi K2 model IDs:
|
||||||
|
{/* moonshot-kimi-k2-ids:start */}
|
||||||
|
- `kimi-k2-0905-preview`
|
||||||
|
- `kimi-k2-turbo-preview`
|
||||||
|
- `kimi-k2-thinking`
|
||||||
|
- `kimi-k2-thinking-turbo`
|
||||||
|
{/* moonshot-kimi-k2-ids:end */}
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
clawdbot onboard --auth-choice moonshot-api-key
|
clawdbot onboard --auth-choice moonshot-api-key
|
||||||
@@ -24,7 +30,12 @@ clawdbot onboard --auth-choice moonshot-api-key
|
|||||||
defaults: {
|
defaults: {
|
||||||
model: { primary: "moonshot/kimi-k2-0905-preview" },
|
model: { primary: "moonshot/kimi-k2-0905-preview" },
|
||||||
models: {
|
models: {
|
||||||
"moonshot/kimi-k2-0905-preview": { alias: "Kimi K2" }
|
// moonshot-kimi-k2-aliases:start
|
||||||
|
"moonshot/kimi-k2-0905-preview": { alias: "Kimi K2" },
|
||||||
|
"moonshot/kimi-k2-turbo-preview": { alias: "Kimi K2 Turbo" },
|
||||||
|
"moonshot/kimi-k2-thinking": { alias: "Kimi K2 Thinking" },
|
||||||
|
"moonshot/kimi-k2-thinking-turbo": { alias: "Kimi K2 Thinking Turbo" }
|
||||||
|
// moonshot-kimi-k2-aliases:end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -36,6 +47,7 @@ clawdbot onboard --auth-choice moonshot-api-key
|
|||||||
apiKey: "${MOONSHOT_API_KEY}",
|
apiKey: "${MOONSHOT_API_KEY}",
|
||||||
api: "openai-completions",
|
api: "openai-completions",
|
||||||
models: [
|
models: [
|
||||||
|
// moonshot-kimi-k2-models:start
|
||||||
{
|
{
|
||||||
id: "kimi-k2-0905-preview",
|
id: "kimi-k2-0905-preview",
|
||||||
name: "Kimi K2 0905 Preview",
|
name: "Kimi K2 0905 Preview",
|
||||||
@@ -44,7 +56,35 @@ clawdbot onboard --auth-choice moonshot-api-key
|
|||||||
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
||||||
contextWindow: 256000,
|
contextWindow: 256000,
|
||||||
maxTokens: 8192
|
maxTokens: 8192
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "kimi-k2-turbo-preview",
|
||||||
|
name: "Kimi K2 Turbo",
|
||||||
|
reasoning: false,
|
||||||
|
input: ["text"],
|
||||||
|
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
||||||
|
contextWindow: 256000,
|
||||||
|
maxTokens: 8192
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "kimi-k2-thinking",
|
||||||
|
name: "Kimi K2 Thinking",
|
||||||
|
reasoning: true,
|
||||||
|
input: ["text"],
|
||||||
|
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
||||||
|
contextWindow: 256000,
|
||||||
|
maxTokens: 8192
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "kimi-k2-thinking-turbo",
|
||||||
|
name: "Kimi K2 Thinking Turbo",
|
||||||
|
reasoning: true,
|
||||||
|
input: ["text"],
|
||||||
|
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
||||||
|
contextWindow: 256000,
|
||||||
|
maxTokens: 8192
|
||||||
}
|
}
|
||||||
|
// moonshot-kimi-k2-models:end
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -56,4 +96,6 @@ clawdbot onboard --auth-choice moonshot-api-key
|
|||||||
|
|
||||||
- Model refs use `moonshot/<modelId>`.
|
- Model refs use `moonshot/<modelId>`.
|
||||||
- Override pricing and context metadata in `models.providers` if needed.
|
- Override pricing and context metadata in `models.providers` if needed.
|
||||||
|
- If Moonshot publishes different context limits for a model, adjust
|
||||||
|
`contextWindow` accordingly.
|
||||||
- Use `https://api.moonshot.cn/v1` if you need the China endpoint.
|
- Use `https://api.moonshot.cn/v1` if you need the China endpoint.
|
||||||
@@ -33,7 +33,7 @@ Minimal config:
|
|||||||
- `channel_rename`
|
- `channel_rename`
|
||||||
- `pin_added`, `pin_removed`
|
- `pin_added`, `pin_removed`
|
||||||
5) Invite the bot to channels you want it to read.
|
5) Invite the bot to channels you want it to read.
|
||||||
6) Slash Commands → create `/clawd` if you use `slack.slashCommand`. If you enable `commands.native`, add slash commands for the built-in chat commands (same names as `/help`).
|
6) Slash Commands → create `/clawd` if you use `slack.slashCommand`. If you enable native commands, add one slash command per built-in command (same names as `/help`). Native defaults to off for Slack unless you set `slack.commands.native: true` (global `commands.native` is `"auto"` which leaves Slack off).
|
||||||
7) App Home → enable the **Messages Tab** so users can DM the bot.
|
7) App Home → enable the **Messages Tab** so users can DM the bot.
|
||||||
|
|
||||||
Use the manifest below so scopes and events stay in sync.
|
Use the manifest below so scopes and events stay in sync.
|
||||||
@@ -138,7 +138,7 @@ Use this Slack app manifest to create the app quickly (adjust the name/command i
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
If you enable `commands.native`, add one `slash_commands` entry per command you want to expose (matching the `/help` list).
|
If you enable native commands, add one `slash_commands` entry per command you want to expose (matching the `/help` list). Override with `slack.commands.native`.
|
||||||
|
|
||||||
## Scopes (current vs optional)
|
## Scopes (current vs optional)
|
||||||
Slack's Conversations API is type-scoped: you only need the scopes for the
|
Slack's Conversations API is type-scoped: you only need the scopes for the
|
||||||
@@ -257,7 +257,7 @@ For fine-grained control, use these tags in agent responses:
|
|||||||
- DMs share the `main` session (like WhatsApp/Telegram).
|
- DMs share the `main` session (like WhatsApp/Telegram).
|
||||||
- Channels map to `agent:<agentId>:slack:channel:<channelId>` sessions.
|
- Channels map to `agent:<agentId>:slack:channel:<channelId>` sessions.
|
||||||
- Slash commands use `agent:<agentId>:slack:slash:<userId>` sessions (prefix configurable via `slack.slashCommand.sessionPrefix`).
|
- Slash commands use `agent:<agentId>:slack:slash:<userId>` sessions (prefix configurable via `slack.slashCommand.sessionPrefix`).
|
||||||
- Native command registration is controlled by `commands.native`; text commands require standalone `/...` messages and can be disabled with `commands.text: false`. Slack slash commands are managed in the Slack app and are not removed automatically. Use `commands.useAccessGroups: false` to bypass access-group checks for commands.
|
- Native command registration uses `commands.native` (global default `"auto"` → Slack off) and can be overridden per-workspace with `slack.commands.native`. Text commands require standalone `/...` messages and can be disabled with `commands.text: false`. Slack slash commands are managed in the Slack app and are not removed automatically. Use `commands.useAccessGroups: false` to bypass access-group checks for commands.
|
||||||
- Full command list + config: [Slash commands](/tools/slash-commands)
|
- Full command list + config: [Slash commands](/tools/slash-commands)
|
||||||
|
|
||||||
## DM security (pairing)
|
## DM security (pairing)
|
||||||
@@ -299,5 +299,6 @@ Slack tool actions can be gated with `slack.actions.*`:
|
|||||||
- Multi-agent override: set per-agent patterns on `agents.list[].groupChat.mentionPatterns`.
|
- Multi-agent override: set per-agent patterns on `agents.list[].groupChat.mentionPatterns`.
|
||||||
- Reaction notifications follow `slack.reactionNotifications` (use `reactionAllowlist` with mode `allowlist`).
|
- Reaction notifications follow `slack.reactionNotifications` (use `reactionAllowlist` with mode `allowlist`).
|
||||||
- Bot-authored messages are ignored by default; enable via `slack.allowBots` or `slack.channels.<id>.allowBots`.
|
- Bot-authored messages are ignored by default; enable via `slack.allowBots` or `slack.channels.<id>.allowBots`.
|
||||||
|
- Warning: If you allow replies to other bots (`slack.allowBots=true` or `slack.channels.<id>.allowBots=true`), prevent bot-to-bot reply loops with `requireMention`, `slack.channels.<id>.users` allowlists, and/or clear guardrails in `AGENTS.md` and `SOUL.md`.
|
||||||
- For the Slack tool, reaction removal semantics are in [/tools/reactions](/tools/reactions).
|
- For the Slack tool, reaction removal semantics are in [/tools/reactions](/tools/reactions).
|
||||||
- Attachments are downloaded to the media store when permitted and under the size limit.
|
- Attachments are downloaded to the media store when permitted and under the size limit.
|
||||||
@@ -0,0 +1,97 @@
|
|||||||
|
---
|
||||||
|
summary: "Use Synthetic's Anthropic-compatible API in Clawdbot"
|
||||||
|
read_when:
|
||||||
|
- You want to use Synthetic as a model provider
|
||||||
|
- You need a Synthetic API key or base URL setup
|
||||||
|
---
|
||||||
|
# Synthetic
|
||||||
|
|
||||||
|
Synthetic exposes Anthropic-compatible endpoints. Clawdbot registers it as the
|
||||||
|
`synthetic` provider and uses the Anthropic Messages API.
|
||||||
|
|
||||||
|
## Quick setup
|
||||||
|
|
||||||
|
1) Set `SYNTHETIC_API_KEY` (or run the wizard below).
|
||||||
|
2) Run onboarding:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
clawdbot onboard --auth-choice synthetic-api-key
|
||||||
|
```
|
||||||
|
|
||||||
|
The default model is set to:
|
||||||
|
|
||||||
|
```
|
||||||
|
synthetic/hf:MiniMaxAI/MiniMax-M2.1
|
||||||
|
```
|
||||||
|
|
||||||
|
## Config example
|
||||||
|
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
env: { SYNTHETIC_API_KEY: "sk-..." },
|
||||||
|
agents: {
|
||||||
|
defaults: {
|
||||||
|
model: { primary: "synthetic/hf:MiniMaxAI/MiniMax-M2.1" },
|
||||||
|
models: { "synthetic/hf:MiniMaxAI/MiniMax-M2.1": { alias: "MiniMax M2.1" } }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
models: {
|
||||||
|
mode: "merge",
|
||||||
|
providers: {
|
||||||
|
synthetic: {
|
||||||
|
baseUrl: "https://api.synthetic.new/anthropic",
|
||||||
|
apiKey: "${SYNTHETIC_API_KEY}",
|
||||||
|
api: "anthropic-messages",
|
||||||
|
models: [
|
||||||
|
{
|
||||||
|
id: "hf:MiniMaxAI/MiniMax-M2.1",
|
||||||
|
name: "MiniMax M2.1",
|
||||||
|
reasoning: false,
|
||||||
|
input: ["text"],
|
||||||
|
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
||||||
|
contextWindow: 192000,
|
||||||
|
maxTokens: 65536
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Note: Clawdbot's Anthropic client appends `/v1` to the base URL, so use
|
||||||
|
`https://api.synthetic.new/anthropic` (not `/anthropic/v1`). If Synthetic changes
|
||||||
|
its base URL, override `models.providers.synthetic.baseUrl`.
|
||||||
|
|
||||||
|
## Model catalog
|
||||||
|
|
||||||
|
All models below use cost `0` (input/output/cache).
|
||||||
|
|
||||||
|
| Model ID | Context window | Max tokens | Reasoning | Input |
|
||||||
|
| --- | --- | --- | --- | --- |
|
||||||
|
| `hf:MiniMaxAI/MiniMax-M2.1` | 192000 | 65536 | false | text |
|
||||||
|
| `hf:moonshotai/Kimi-K2-Thinking` | 256000 | 8192 | true | text |
|
||||||
|
| `hf:zai-org/GLM-4.7` | 198000 | 128000 | false | text |
|
||||||
|
| `hf:deepseek-ai/DeepSeek-R1-0528` | 128000 | 8192 | false | text |
|
||||||
|
| `hf:deepseek-ai/DeepSeek-V3-0324` | 128000 | 8192 | false | text |
|
||||||
|
| `hf:deepseek-ai/DeepSeek-V3.1` | 128000 | 8192 | false | text |
|
||||||
|
| `hf:deepseek-ai/DeepSeek-V3.1-Terminus` | 128000 | 8192 | false | text |
|
||||||
|
| `hf:deepseek-ai/DeepSeek-V3.2` | 159000 | 8192 | false | text |
|
||||||
|
| `hf:meta-llama/Llama-3.3-70B-Instruct` | 128000 | 8192 | false | text |
|
||||||
|
| `hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8` | 524000 | 8192 | false | text |
|
||||||
|
| `hf:moonshotai/Kimi-K2-Instruct-0905` | 256000 | 8192 | false | text |
|
||||||
|
| `hf:openai/gpt-oss-120b` | 128000 | 8192 | false | text |
|
||||||
|
| `hf:Qwen/Qwen3-235B-A22B-Instruct-2507` | 256000 | 8192 | false | text |
|
||||||
|
| `hf:Qwen/Qwen3-Coder-480B-A35B-Instruct` | 256000 | 8192 | false | text |
|
||||||
|
| `hf:Qwen/Qwen3-VL-235B-A22B-Instruct` | 250000 | 8192 | false | text + image |
|
||||||
|
| `hf:zai-org/GLM-4.5` | 128000 | 128000 | false | text |
|
||||||
|
| `hf:zai-org/GLM-4.6` | 198000 | 128000 | false | text |
|
||||||
|
| `hf:deepseek-ai/DeepSeek-V3` | 128000 | 8192 | false | text |
|
||||||
|
| `hf:Qwen/Qwen3-235B-A22B-Thinking-2507` | 256000 | 8192 | true | text |
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
|
||||||
|
- Model refs use `synthetic/<modelId>`.
|
||||||
|
- If you enable a model allowlist (`agents.defaults.models`), add every model you
|
||||||
|
plan to use.
|
||||||
|
- See [Model providers](/concepts/model-providers) for provider rules.
|
||||||
@@ -174,7 +174,7 @@ Private chats can include `message_thread_id` in some edge cases. Clawdbot keeps
|
|||||||
- `clawdbot pairing list telegram`
|
- `clawdbot pairing list telegram`
|
||||||
- `clawdbot pairing approve telegram <CODE>`
|
- `clawdbot pairing approve telegram <CODE>`
|
||||||
- Pairing is the default token exchange used for Telegram DMs. Details: [Pairing](/start/pairing)
|
- Pairing is the default token exchange used for Telegram DMs. Details: [Pairing](/start/pairing)
|
||||||
- `telegram.allowFrom` accepts numeric user IDs (recommended) or `@username` entries.
|
- `telegram.allowFrom` accepts numeric user IDs (recommended) or `@username` entries. It is **not** the bot username; use the human sender’s ID (get it from `@userinfobot` or the `from.id` field in the gateway log).
|
||||||
|
|
||||||
### Group access
|
### Group access
|
||||||
|
|
||||||
@@ -315,5 +315,5 @@ Provider options:
|
|||||||
Related global options:
|
Related global options:
|
||||||
- `agents.list[].groupChat.mentionPatterns` (mention gating patterns).
|
- `agents.list[].groupChat.mentionPatterns` (mention gating patterns).
|
||||||
- `messages.groupChat.mentionPatterns` (global fallback).
|
- `messages.groupChat.mentionPatterns` (global fallback).
|
||||||
- `commands.native`, `commands.text`, `commands.useAccessGroups` (command behavior).
|
- `commands.native` (defaults to `"auto"` → on for Telegram/Discord, off for Slack), `commands.text`, `commands.useAccessGroups` (command behavior). Override with `telegram.commands.native`.
|
||||||
- `messages.responsePrefix`, `messages.ackReaction`, `messages.ackReactionScope`, `messages.removeAckAfterReply`.
|
- `messages.responsePrefix`, `messages.ackReaction`, `messages.ackReactionScope`, `messages.removeAckAfterReply`.
|
||||||
@@ -310,4 +310,5 @@ WhatsApp can automatically send emoji reactions to incoming messages immediately
|
|||||||
- Fix: `clawdbot doctor` (or restart the gateway). If it persists, relink via `providers login` and inspect `clawdbot logs --follow`.
|
- Fix: `clawdbot doctor` (or restart the gateway). If it persists, relink via `providers login` and inspect `clawdbot logs --follow`.
|
||||||
|
|
||||||
**Bun runtime**
|
**Bun runtime**
|
||||||
- WhatsApp uses Baileys; run the gateway with **Node** for WhatsApp. (See Getting Started runtime note.)
|
- Bun is **not recommended**. WhatsApp (Baileys) and Telegram are unreliable on Bun.
|
||||||
|
Run the gateway with **Node**. (See Getting Started runtime note.)
|
||||||
@@ -0,0 +1,127 @@
|
|||||||
|
---
|
||||||
|
summary: "Vector memory search design plan (per-agent, watch/lazy sync, storage)"
|
||||||
|
read_when:
|
||||||
|
- Designing or implementing vector memory search
|
||||||
|
- Adding embedding providers or sync behavior
|
||||||
|
---
|
||||||
|
|
||||||
|
# Vector Memory Search — Design Plan
|
||||||
|
|
||||||
|
Goal: semantic search over **agent memory files** only, with minimal deps and
|
||||||
|
good UX defaults. Default enabled. Per-agent overrides.
|
||||||
|
|
||||||
|
## Scope
|
||||||
|
- Sources: `MEMORY.md` + `memory/YYYY-MM-DD.md` inside the agent workspace.
|
||||||
|
- No indexing outside the workspace. No hidden paths.
|
||||||
|
- No QMD-style query expansion or rerank in v1.
|
||||||
|
|
||||||
|
## Config Shape
|
||||||
|
Location: `agents.defaults.memorySearch` + `agents.list[].memorySearch`.
|
||||||
|
|
||||||
|
```json5
|
||||||
|
agents: {
|
||||||
|
defaults: {
|
||||||
|
memorySearch: {
|
||||||
|
enabled: true,
|
||||||
|
provider: "openai", // "openai" | "local"
|
||||||
|
fallback: "openai", // "openai" | "none"
|
||||||
|
model: "text-embedding-3-small",
|
||||||
|
store: {
|
||||||
|
driver: "sqlite",
|
||||||
|
path: "~/.clawdbot/memory/{agentId}.sqlite"
|
||||||
|
},
|
||||||
|
chunking: {
|
||||||
|
tokens: 400,
|
||||||
|
overlap: 80
|
||||||
|
},
|
||||||
|
sync: {
|
||||||
|
onSessionStart: true,
|
||||||
|
onSearch: true, // LazySync
|
||||||
|
watch: true, // default on
|
||||||
|
watchDebounceMs: 1500,
|
||||||
|
intervalMinutes: 0
|
||||||
|
},
|
||||||
|
query: {
|
||||||
|
maxResults: 6,
|
||||||
|
minScore: 0.35
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
list: [
|
||||||
|
{ id: "peter", memorySearch: { provider: "local", sync: { watch: false } } }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Storage
|
||||||
|
Per-agent DB (default): `~/.clawdbot/memory/{agentId}.sqlite`.
|
||||||
|
|
||||||
|
Tables (v1):
|
||||||
|
- `files(path PRIMARY KEY, hash, mtime, size)`
|
||||||
|
- `chunks(id PRIMARY KEY, path, start_line, end_line, hash, text, embedding, updated_at)`
|
||||||
|
|
||||||
|
Notes:
|
||||||
|
- `hash` = content hash of chunk text.
|
||||||
|
- `embedding` stored as float[] (sqlite vec extension optional); if not using vec,
|
||||||
|
store as JSON and do linear scan in memory for small corpora.
|
||||||
|
|
||||||
|
## Embedding Providers
|
||||||
|
Interface (core):
|
||||||
|
- `embedQuery(text): number[]`
|
||||||
|
- `embedBatch(texts[]): number[][]`
|
||||||
|
|
||||||
|
Providers:
|
||||||
|
- `openai` (default): OpenAI embeddings via existing keys.
|
||||||
|
- `local` (optional): node-llama-cpp (GGUF).
|
||||||
|
- Fallback: when `provider: "local"` fails, fallback to OpenAI unless `fallback: "none"`.
|
||||||
|
|
||||||
|
## Index Pipeline
|
||||||
|
1) Resolve memory file list (workspace only).
|
||||||
|
2) Read file, compute file hash/mtime.
|
||||||
|
3) Chunk by headings + token cap (overlap).
|
||||||
|
4) Embed only changed chunks (hash compare).
|
||||||
|
5) Upsert `chunks` rows, prune deleted files.
|
||||||
|
|
||||||
|
Chunking:
|
||||||
|
- Prefer heading-aware splits.
|
||||||
|
- Max tokens + overlap; keep line ranges for snippets.
|
||||||
|
|
||||||
|
## Sync Strategy
|
||||||
|
Default: **watch + lazy + session-start**
|
||||||
|
- `watch`: chokidar on `MEMORY.md` + `memory/**/*.md` (debounced).
|
||||||
|
- `onSearch`: if dirty, sync before search (LazySync).
|
||||||
|
- `onSessionStart`: warm index once per session.
|
||||||
|
- `intervalMinutes`: optional for long-lived sessions.
|
||||||
|
|
||||||
|
If workspace access is read-only or missing: disable writes; return “not indexed”.
|
||||||
|
|
||||||
|
## Query Flow
|
||||||
|
1) Embed query.
|
||||||
|
2) Cosine similarity over all chunk embeddings.
|
||||||
|
3) Return top K with `{path, startLine, endLine, snippet, score}`.
|
||||||
|
4) Model may call `memory_get` when full context needed.
|
||||||
|
|
||||||
|
Optional v2: add FTS5 + RRF merge (FTS + vector) for quality.
|
||||||
|
|
||||||
|
## Tool + CLI
|
||||||
|
Tools:
|
||||||
|
- `memory_search { query, maxResults?, minScore? }`
|
||||||
|
- `memory_get { path, from?, lines? }`
|
||||||
|
|
||||||
|
CLI (optional):
|
||||||
|
- `clawdbot memory index|search|status`
|
||||||
|
|
||||||
|
## Security + Permissions
|
||||||
|
- Indexer reads only memory files in workspace.
|
||||||
|
- No scanning outside workspace; no “sneak” reads.
|
||||||
|
- Respect sandbox `workspaceAccess` (ro = read-only; none = disabled).
|
||||||
|
|
||||||
|
## Tests
|
||||||
|
- Chunking boundaries + line ranges.
|
||||||
|
- Hash-based incremental updates.
|
||||||
|
- Search ranking (cosine).
|
||||||
|
- Watcher debounce (fake fs).
|
||||||
|
|
||||||
|
## Rollout
|
||||||
|
- Default enabled; if no memory files, index is empty (silent).
|
||||||
|
- No migration needed.
|
||||||
@@ -88,7 +88,6 @@ git commit -m "Add Clawd workspace"
|
|||||||
- **Peekaboo** — Fast macOS screenshots with optional AI vision analysis.
|
- **Peekaboo** — Fast macOS screenshots with optional AI vision analysis.
|
||||||
- **camsnap** — Capture frames, clips, or motion alerts from RTSP/ONVIF security cams.
|
- **camsnap** — Capture frames, clips, or motion alerts from RTSP/ONVIF security cams.
|
||||||
- **oracle** — OpenAI-ready agent CLI with session replay and browser control.
|
- **oracle** — OpenAI-ready agent CLI with session replay and browser control.
|
||||||
- **qmd** — Hybrid markdown search (BM25 + vectors + rerank) with a local server for agents.
|
|
||||||
- **eightctl** — Control your sleep, from the terminal.
|
- **eightctl** — Control your sleep, from the terminal.
|
||||||
- **imsg** — Send, read, stream iMessage & SMS.
|
- **imsg** — Send, read, stream iMessage & SMS.
|
||||||
- **wacli** — WhatsApp CLI: sync, search, send.
|
- **wacli** — WhatsApp CLI: sync, search, send.
|
||||||
|
|||||||
@@ -46,16 +46,6 @@ Capture what matters. Decisions, context, things to remember. Skip the secrets u
|
|||||||
- When you make a mistake → document it so future-you doesn't repeat it
|
- When you make a mistake → document it so future-you doesn't repeat it
|
||||||
- **Text > Brain** 📝
|
- **Text > Brain** 📝
|
||||||
|
|
||||||
### 🧠 Memory Recall - Use qmd!
|
|
||||||
When you need to remember something from the past, use `qmd` instead of grepping files:
|
|
||||||
```bash
|
|
||||||
qmd query "what happened at Christmas" # Semantic search with reranking
|
|
||||||
qmd search "specific phrase" # BM25 keyword search
|
|
||||||
qmd vsearch "conceptual question" # Pure vector similarity
|
|
||||||
```
|
|
||||||
Index your memory folder: `qmd index memory/`
|
|
||||||
Vectors + BM25 + reranking finds things even with different wording.
|
|
||||||
|
|
||||||
## Safety
|
## Safety
|
||||||
|
|
||||||
- Don't exfiltrate private data. Ever.
|
- Don't exfiltrate private data. Ever.
|
||||||
|
|||||||
@@ -89,6 +89,8 @@ clawdbot gateway --port 18789
|
|||||||
|
|
||||||
Now message the assistant number from your allowlisted phone.
|
Now message the assistant number from your allowlisted phone.
|
||||||
|
|
||||||
|
When onboarding finishes, we auto-open the dashboard with your gateway token and print the tokenized link. To reopen later: `clawdbot dashboard`.
|
||||||
|
|
||||||
## Give the agent a workspace (AGENTS)
|
## Give the agent a workspace (AGENTS)
|
||||||
|
|
||||||
Clawd reads operating instructions and “memory” from its workspace directory.
|
Clawd reads operating instructions and “memory” from its workspace directory.
|
||||||
|
|||||||
+537
-11
@@ -5,6 +5,123 @@ summary: "Frequently asked questions about Clawdbot setup, configuration, and us
|
|||||||
|
|
||||||
Quick answers plus deeper troubleshooting for real-world setups (local dev, VPS, multi-agent, OAuth/API keys, model failover). For runtime diagnostics, see [Troubleshooting](/gateway/troubleshooting). For the full config reference, see [Configuration](/gateway/configuration).
|
Quick answers plus deeper troubleshooting for real-world setups (local dev, VPS, multi-agent, OAuth/API keys, model failover). For runtime diagnostics, see [Troubleshooting](/gateway/troubleshooting). For the full config reference, see [Configuration](/gateway/configuration).
|
||||||
|
|
||||||
|
## Table of contents
|
||||||
|
|
||||||
|
- [What is Clawdbot?](#what-is-clawdbot)
|
||||||
|
- [What is Clawdbot, in one paragraph?](#what-is-clawdbot-in-one-paragraph)
|
||||||
|
- [Quick start and first-run setup](#quick-start-and-first-run-setup)
|
||||||
|
- [What’s the recommended way to install and set up Clawdbot?](#whats-the-recommended-way-to-install-and-set-up-clawdbot)
|
||||||
|
- [How do I open the dashboard after onboarding?](#how-do-i-open-the-dashboard-after-onboarding)
|
||||||
|
- [How do I authenticate the dashboard (token) on localhost vs remote?](#how-do-i-authenticate-the-dashboard-token-on-localhost-vs-remote)
|
||||||
|
- [What runtime do I need?](#what-runtime-do-i-need)
|
||||||
|
- [What does the onboarding wizard actually do?](#what-does-the-onboarding-wizard-actually-do)
|
||||||
|
- [How does Anthropic "setup-token" auth work?](#how-does-anthropic-setup-token-auth-work)
|
||||||
|
- [Do you support Claude subscription auth (Claude Code OAuth)?](#do-you-support-claude-subscription-auth-claude-code-oauth)
|
||||||
|
- [Is AWS Bedrock supported?](#is-aws-bedrock-supported)
|
||||||
|
- [How does Codex auth work?](#how-does-codex-auth-work)
|
||||||
|
- [Is a local model OK for casual chats?](#is-a-local-model-ok-for-casual-chats)
|
||||||
|
- [How do I keep hosted model traffic in a specific region?](#how-do-i-keep-hosted-model-traffic-in-a-specific-region)
|
||||||
|
- [Can I use Bun?](#can-i-use-bun)
|
||||||
|
- [Telegram: what goes in `allowFrom`?](#telegram-what-goes-in-allowfrom)
|
||||||
|
- [Can multiple people use one WhatsApp number with different Clawdbots?](#can-multiple-people-use-one-whatsapp-number-with-different-clawdbots)
|
||||||
|
- [Can I run a "fast chat" agent and an "Opus for coding" agent?](#can-i-run-a-fast-chat-agent-and-an-opus-for-coding-agent)
|
||||||
|
- [Does Homebrew work on Linux?](#does-homebrew-work-on-linux)
|
||||||
|
- [Can I switch between npm and git installs later?](#can-i-switch-between-npm-and-git-installs-later)
|
||||||
|
- [Should I run the Gateway on my laptop or a VPS?](#should-i-run-the-gateway-on-my-laptop-or-a-vps)
|
||||||
|
- [Skills and automation](#skills-and-automation)
|
||||||
|
- [How do I customize skills without keeping the repo dirty?](#how-do-i-customize-skills-without-keeping-the-repo-dirty)
|
||||||
|
- [Can I load skills from a custom folder?](#can-i-load-skills-from-a-custom-folder)
|
||||||
|
- [How can I use different models for different tasks?](#how-can-i-use-different-models-for-different-tasks)
|
||||||
|
- [How do I install skills on Linux?](#how-do-i-install-skills-on-linux)
|
||||||
|
- [Do you have a Notion or HeyGen integration?](#do-you-have-a-notion-or-heygen-integration)
|
||||||
|
- [Sandboxing and memory](#sandboxing-and-memory)
|
||||||
|
- [Is there a dedicated sandboxing doc?](#is-there-a-dedicated-sandboxing-doc)
|
||||||
|
- [How do I bind a host folder into the sandbox?](#how-do-i-bind-a-host-folder-into-the-sandbox)
|
||||||
|
- [How does memory work?](#how-does-memory-work)
|
||||||
|
- [Does semantic memory search require an OpenAI API key?](#does-semantic-memory-search-require-an-openai-api-key)
|
||||||
|
- [Where things live on disk](#where-things-live-on-disk)
|
||||||
|
- [Where does Clawdbot store its data?](#where-does-clawdbot-store-its-data)
|
||||||
|
- [Where should AGENTS.md / SOUL.md / USER.md / MEMORY.md live?](#where-should-agentsmd--soulmd--usermd--memorymd-live)
|
||||||
|
- [How do I completely uninstall Clawdbot?](#how-do-i-completely-uninstall-clawdbot)
|
||||||
|
- [Can agents work outside the workspace?](#can-agents-work-outside-the-workspace)
|
||||||
|
- [I’m in remote mode — where is the session store?](#im-in-remote-mode-where-is-the-session-store)
|
||||||
|
- [Config basics](#config-basics)
|
||||||
|
- [What format is the config? Where is it?](#what-format-is-the-config-where-is-it)
|
||||||
|
- [I set `gateway.bind: "lan"` (or `"tailnet"`) and now nothing listens / the UI says unauthorized](#i-set-gatewaybind-lan-or-tailnet-and-now-nothing-listens-the-ui-says-unauthorized)
|
||||||
|
- [Why do I need a token on localhost now?](#why-do-i-need-a-token-on-localhost-now)
|
||||||
|
- [Do I have to restart after changing config?](#do-i-have-to-restart-after-changing-config)
|
||||||
|
- [How do I run a central Gateway with specialized workers across devices?](#how-do-i-run-a-central-gateway-with-specialized-workers-across-devices)
|
||||||
|
- [Can the Clawdbot browser run headless?](#can-the-clawdbot-browser-run-headless)
|
||||||
|
- [Remote gateways + nodes](#remote-gateways-nodes)
|
||||||
|
- [How do commands propagate between Telegram, the gateway, and nodes?](#how-do-commands-propagate-between-telegram-the-gateway-and-nodes)
|
||||||
|
- [Do nodes run a gateway daemon?](#do-nodes-run-a-gateway-daemon)
|
||||||
|
- [Is there an API / RPC way to apply config?](#is-there-an-api-rpc-way-to-apply-config)
|
||||||
|
- [What’s a minimal “sane” config for a first install?](#whats-a-minimal-sane-config-for-a-first-install)
|
||||||
|
- [How do I set up Tailscale on a VPS and connect from my Mac?](#how-do-i-set-up-tailscale-on-a-vps-and-connect-from-my-mac)
|
||||||
|
- [How do I connect a Mac node to a remote Gateway (Tailscale Serve)?](#how-do-i-connect-a-mac-node-to-a-remote-gateway-tailscale-serve)
|
||||||
|
- [Env vars and .env loading](#env-vars-and-env-loading)
|
||||||
|
- [How does Clawdbot load environment variables?](#how-does-clawdbot-load-environment-variables)
|
||||||
|
- [“I started the Gateway via a daemon and my env vars disappeared.” What now?](#i-started-the-gateway-via-a-daemon-and-my-env-vars-disappeared-what-now)
|
||||||
|
- [I set `COPILOT_GITHUB_TOKEN`, but models status shows “Shell env: off.” Why?](#i-set-copilot_github_token-but-models-status-shows-shell-env-off-why)
|
||||||
|
- [Sessions & multiple chats](#sessions-multiple-chats)
|
||||||
|
- [How do I start a fresh conversation?](#how-do-i-start-a-fresh-conversation)
|
||||||
|
- [How do I completely reset Clawdbot (but keep it installed)?](#how-do-i-completely-reset-clawdbot-but-keep-it-installed)
|
||||||
|
- [I’m getting “context too large” errors — how do I reset or compact?](#im-getting-context-too-large-errors-how-do-i-reset-or-compact)
|
||||||
|
- [Do I need to add a “bot account” to a WhatsApp group?](#do-i-need-to-add-a-bot-account-to-a-whatsapp-group)
|
||||||
|
- [Why doesn’t Clawdbot reply in a group?](#why-doesnt-clawdbot-reply-in-a-group)
|
||||||
|
- [Do groups/threads share context with DMs?](#do-groupsthreads-share-context-with-dms)
|
||||||
|
- [Models: defaults, selection, aliases, switching](#models-defaults-selection-aliases-switching)
|
||||||
|
- [What is the “default model”?](#what-is-the-default-model)
|
||||||
|
- [How do I switch models on the fly (without restarting)?](#how-do-i-switch-models-on-the-fly-without-restarting)
|
||||||
|
- [Why do I see “Model … is not allowed” and then no reply?](#why-do-i-see-model-is-not-allowed-and-then-no-reply)
|
||||||
|
- [Why do I see “Unknown model: minimax/MiniMax-M2.1”?](#why-do-i-see-unknown-model-minimaxminimax-m21)
|
||||||
|
- [Can I use MiniMax as my default and OpenAI for complex tasks?](#can-i-use-minimax-as-my-default-and-openai-for-complex-tasks)
|
||||||
|
- [Are opus / sonnet / gpt built‑in shortcuts?](#are-opus-sonnet-gpt-builtin-shortcuts)
|
||||||
|
- [How do I define/override model shortcuts (aliases)?](#how-do-i-defineoverride-model-shortcuts-aliases)
|
||||||
|
- [How do I add models from other providers like OpenRouter or Z.AI?](#how-do-i-add-models-from-other-providers-like-openrouter-or-zai)
|
||||||
|
- [Model failover and “All models failed”](#model-failover-and-all-models-failed)
|
||||||
|
- [How does failover work?](#how-does-failover-work)
|
||||||
|
- [What does this error mean?](#what-does-this-error-mean)
|
||||||
|
- [Fix checklist for `No credentials found for profile "anthropic:default"`](#fix-checklist-for-no-credentials-found-for-profile-anthropicdefault)
|
||||||
|
- [Why did it also try Google Gemini and fail?](#why-did-it-also-try-google-gemini-and-fail)
|
||||||
|
- [Auth profiles: what they are and how to manage them](#auth-profiles-what-they-are-and-how-to-manage-them)
|
||||||
|
- [What is an auth profile?](#what-is-an-auth-profile)
|
||||||
|
- [What are typical profile IDs?](#what-are-typical-profile-ids)
|
||||||
|
- [Can I control which auth profile is tried first?](#can-i-control-which-auth-profile-is-tried-first)
|
||||||
|
- [OAuth vs API key: what’s the difference?](#oauth-vs-api-key-whats-the-difference)
|
||||||
|
- [Gateway: ports, “already running”, and remote mode](#gateway-ports-already-running-and-remote-mode)
|
||||||
|
- [What port does the Gateway use?](#what-port-does-the-gateway-use)
|
||||||
|
- [Why does `clawdbot daemon status` say `Runtime: running` but `RPC probe: failed`?](#why-does-clawdbot-daemon-status-say-runtime-running-but-rpc-probe-failed)
|
||||||
|
- [Why does `clawdbot daemon status` show `Config (cli)` and `Config (daemon)` different?](#why-does-clawdbot-daemon-status-show-config-cli-and-config-daemon-different)
|
||||||
|
- [What does “another gateway instance is already listening” mean?](#what-does-another-gateway-instance-is-already-listening-mean)
|
||||||
|
- [How do I run Clawdbot in remote mode (client connects to a Gateway elsewhere)?](#how-do-i-run-clawdbot-in-remote-mode-client-connects-to-a-gateway-elsewhere)
|
||||||
|
- [The Control UI says “unauthorized” (or keeps reconnecting). What now?](#the-control-ui-says-unauthorized-or-keeps-reconnecting-what-now)
|
||||||
|
- [I set `gateway.bind: "tailnet"` but it can’t bind / nothing listens](#i-set-gatewaybind-tailnet-but-it-cant-bind-nothing-listens)
|
||||||
|
- [Can I run multiple Gateways on the same host?](#can-i-run-multiple-gateways-on-the-same-host)
|
||||||
|
- [What does “invalid handshake” / code 1008 mean?](#what-does-invalid-handshake--code-1008-mean)
|
||||||
|
- [Logging and debugging](#logging-and-debugging)
|
||||||
|
- [Where are logs?](#where-are-logs)
|
||||||
|
- [How do I start/stop/restart the Gateway daemon?](#how-do-i-startstoprestart-the-gateway-daemon)
|
||||||
|
- [What’s the fastest way to get more details when something fails?](#whats-the-fastest-way-to-get-more-details-when-something-fails)
|
||||||
|
- [Media & attachments](#media-attachments)
|
||||||
|
- [My skill generated an image/PDF, but nothing was sent](#my-skill-generated-an-imagepdf-but-nothing-was-sent)
|
||||||
|
- [Security and access control](#security-and-access-control)
|
||||||
|
- [Is it safe to expose Clawdbot to inbound DMs?](#is-it-safe-to-expose-clawdbot-to-inbound-dms)
|
||||||
|
- [WhatsApp: will it message my contacts? How does pairing work?](#whatsapp-will-it-message-my-contacts-how-does-pairing-work)
|
||||||
|
- [Chat commands, aborting tasks, and “it won’t stop”](#chat-commands-aborting-tasks-and-it-wont-stop)
|
||||||
|
- [How do I stop/cancel a running task?](#how-do-i-stopcancel-a-running-task)
|
||||||
|
- [Why does it feel like the bot “ignores” rapid‑fire messages?](#why-does-it-feel-like-the-bot-ignores-rapidfire-messages)
|
||||||
|
- [Common troubleshooting](#common-troubleshooting)
|
||||||
|
- [“All models failed” — what should I check first?](#all-models-failed-what-should-i-check-first)
|
||||||
|
- [I’m running on my personal WhatsApp number — why is self-chat weird?](#im-running-on-my-personal-whatsapp-number-why-is-self-chat-weird)
|
||||||
|
- [WhatsApp logged me out. How do I re‑auth?](#whatsapp-logged-me-out-how-do-i-reauth)
|
||||||
|
- [Build errors on `main` — what’s the standard fix path?](#build-errors-on-main-whats-the-standard-fix-path)
|
||||||
|
- [npm install fails (allow-build-scripts / missing tar or yargs). What now?](#npm-install-fails-allow-build-scripts--missing-tar-or-yargs-what-now)
|
||||||
|
- [How do I switch between git installs and npm installs?](#how-do-i-switch-between-git-installs-and-npm-installs)
|
||||||
|
- [Telegram block streaming isn’t splitting text between tool calls. Why?](#telegram-block-streaming-isnt-splitting-text-between-tool-calls-why)
|
||||||
|
- [Discord doesn’t reply in my server even with `requireMention: false`. Why?](#discord-doesnt-reply-in-my-server-even-with-requiremention-false-why)
|
||||||
|
- [Cloud Code Assist API error: invalid tool schema (400). What now?](#cloud-code-assist-api-error-invalid-tool-schema-400-what-now)
|
||||||
|
|
||||||
## First 60 seconds if something's broken
|
## First 60 seconds if something's broken
|
||||||
|
|
||||||
1) **Quick status (first check)**
|
1) **Quick status (first check)**
|
||||||
@@ -60,7 +177,7 @@ Quick answers plus deeper troubleshooting for real-world setups (local dev, VPS,
|
|||||||
|
|
||||||
Clawdbot is a personal AI assistant you run on your own devices. It replies on the messaging surfaces you already use (WhatsApp, Telegram, Slack, Discord, Signal, iMessage, WebChat) and can also do voice + a live Canvas on supported platforms. The **Gateway** is the always‑on control plane; the assistant is the product.
|
Clawdbot is a personal AI assistant you run on your own devices. It replies on the messaging surfaces you already use (WhatsApp, Telegram, Slack, Discord, Signal, iMessage, WebChat) and can also do voice + a live Canvas on supported platforms. The **Gateway** is the always‑on control plane; the assistant is the product.
|
||||||
|
|
||||||
## Quick start and first‑run setup
|
## Quick start and first-run setup
|
||||||
|
|
||||||
### What’s the recommended way to install and set up Clawdbot?
|
### What’s the recommended way to install and set up Clawdbot?
|
||||||
|
|
||||||
@@ -83,9 +200,27 @@ pnpm clawdbot onboard
|
|||||||
|
|
||||||
The wizard can also build UI assets automatically. After onboarding, you typically run the Gateway on port **18789**.
|
The wizard can also build UI assets automatically. After onboarding, you typically run the Gateway on port **18789**.
|
||||||
|
|
||||||
|
### How do I open the dashboard after onboarding?
|
||||||
|
|
||||||
|
The wizard now opens your browser with a tokenized dashboard URL right after onboarding and also prints the full link (with token) in the summary. Keep that tab open; if it didn’t launch, copy/paste the printed URL on the same machine. Tokens stay local to your host—nothing is fetched from the browser.
|
||||||
|
|
||||||
|
### How do I authenticate the dashboard (token) on localhost vs remote?
|
||||||
|
|
||||||
|
**Localhost (same machine):**
|
||||||
|
- Open `http://127.0.0.1:18789/`.
|
||||||
|
- If it asks for auth, run `clawdbot dashboard` and use the tokenized link (`?token=...`).
|
||||||
|
- The token is the same value as `gateway.auth.token` (or `CLAWDBOT_GATEWAY_TOKEN`) and is stored by the UI after first load.
|
||||||
|
|
||||||
|
**Not on localhost:**
|
||||||
|
- **Tailscale Serve** (recommended): keep bind loopback, run `clawdbot gateway --tailscale serve`, open `https://<magicdns>/`. If `gateway.auth.allowTailscale` is `true`, identity headers satisfy auth (no token).
|
||||||
|
- **Tailnet bind**: run `clawdbot gateway --bind tailnet --token "<token>"`, open `http://<tailscale-ip>:18789/`, paste token in dashboard settings.
|
||||||
|
- **SSH tunnel**: `ssh -N -L 18789:127.0.0.1:18789 user@host` then open `http://127.0.0.1:18789/?token=...` from `clawdbot dashboard`.
|
||||||
|
|
||||||
|
See [Dashboard](/web/dashboard) and [Web surfaces](/web) for bind modes and auth details.
|
||||||
|
|
||||||
### What runtime do I need?
|
### What runtime do I need?
|
||||||
|
|
||||||
Node **>= 22** is required. `pnpm` is recommended; `bun` is optional.
|
Node **>= 22** is required. `pnpm` is recommended. Bun is **not recommended** for the Gateway.
|
||||||
|
|
||||||
### What does the onboarding wizard actually do?
|
### What does the onboarding wizard actually do?
|
||||||
|
|
||||||
@@ -108,17 +243,35 @@ The wizard can run `claude setup-token` on the gateway host (or you run it yours
|
|||||||
|
|
||||||
Yes. Clawdbot can **reuse Claude Code CLI credentials** (OAuth) and also supports **setup-token**. If you have a Claude subscription, we recommend **setup-token** on the gateway host for the most reliable long‑running setup (requires Claude Pro/Max + the `claude` CLI). OAuth reuse is supported, but avoid logging in separately via Clawdbot and Claude Code to prevent token conflicts. See [Anthropic](/providers/anthropic) and [OAuth](/concepts/oauth).
|
Yes. Clawdbot can **reuse Claude Code CLI credentials** (OAuth) and also supports **setup-token**. If you have a Claude subscription, we recommend **setup-token** on the gateway host for the most reliable long‑running setup (requires Claude Pro/Max + the `claude` CLI). OAuth reuse is supported, but avoid logging in separately via Clawdbot and Claude Code to prevent token conflicts. See [Anthropic](/providers/anthropic) and [OAuth](/concepts/oauth).
|
||||||
|
|
||||||
|
Note: Claude subscription access is governed by Anthropic’s terms. For production or multi‑user workloads, API keys are usually the safer choice.
|
||||||
|
|
||||||
### Is AWS Bedrock supported?
|
### Is AWS Bedrock supported?
|
||||||
|
|
||||||
Not currently. Clawdbot doesn’t ship a Bedrock provider today. If you must use Bedrock, the common workaround is an OpenAI‑compatible proxy in front of Bedrock, then point Clawdbot at that endpoint. See [Model providers](/providers/models) and [Model providers (full list)](/concepts/model-providers).
|
Yes — via pi‑ai’s **Amazon Bedrock (Converse)** provider with **manual config**. You must supply AWS credentials/region on the gateway host and add a Bedrock provider entry in your models config. See [Amazon Bedrock](/bedrock) and [Model providers](/providers/models). If you prefer a managed key flow, an OpenAI‑compatible proxy in front of Bedrock is still a valid option.
|
||||||
|
|
||||||
### How does Codex auth work?
|
### How does Codex auth work?
|
||||||
|
|
||||||
Clawdbot supports **OpenAI Code (Codex)** via OAuth or by reusing your Codex CLI login (`~/.codex/auth.json`). The wizard can import the CLI login or run the OAuth flow and will set the default model to `openai-codex/gpt-5.2` when appropriate. See [Model providers](/concepts/model-providers) and [Wizard](/start/wizard).
|
Clawdbot supports **OpenAI Code (Codex)** via OAuth or by reusing your Codex CLI login (`~/.codex/auth.json`). The wizard can import the CLI login or run the OAuth flow and will set the default model to `openai-codex/gpt-5.2` when appropriate. See [Model providers](/concepts/model-providers) and [Wizard](/start/wizard).
|
||||||
|
|
||||||
|
### Is a local model OK for casual chats?
|
||||||
|
|
||||||
|
Usually no. Clawdbot needs large context + strong safety; small cards truncate and leak. If you must, run the **largest** MiniMax M2.1 build you can locally (LM Studio) and see [/gateway/local-models](/gateway/local-models). Smaller/quantized models increase prompt-injection risk — see [Security](/gateway/security).
|
||||||
|
|
||||||
|
### How do I keep hosted model traffic in a specific region?
|
||||||
|
|
||||||
|
Pick region-pinned endpoints. OpenRouter exposes US-hosted options for MiniMax, Kimi, and GLM; choose the US-hosted variant to keep data in-region. You can still list Anthropic/OpenAI alongside these by using `models.mode: "merge"` so fallbacks stay available while respecting the regioned provider you select.
|
||||||
|
|
||||||
### Can I use Bun?
|
### Can I use Bun?
|
||||||
|
|
||||||
Bun is supported for faster TypeScript execution, but **WhatsApp requires Node** in this ecosystem. The wizard lets you pick the runtime; choose **Node** if you use WhatsApp.
|
Bun is **not recommended**. We see runtime bugs, especially with WhatsApp and Telegram.
|
||||||
|
Use **Node** for stable gateways.
|
||||||
|
|
||||||
|
If you still want to experiment with Bun, do it on a non‑production gateway
|
||||||
|
without WhatsApp/Telegram.
|
||||||
|
|
||||||
|
### Telegram: what goes in `allowFrom`?
|
||||||
|
|
||||||
|
`telegram.allowFrom` is **the human sender’s Telegram user ID** (numeric, recommended) or `@username`. It is not the bot username. To find your ID, DM `@userinfobot` or read the `from.id` in the gateway log for a DM. See [/providers/telegram](/providers/telegram#access-control-dms--groups).
|
||||||
|
|
||||||
### Can multiple people use one WhatsApp number with different Clawdbots?
|
### Can multiple people use one WhatsApp number with different Clawdbots?
|
||||||
|
|
||||||
@@ -166,13 +319,46 @@ clawdbot daemon restart
|
|||||||
|
|
||||||
Doctor detects a gateway service entrypoint mismatch and offers to rewrite the service config to match the current install (use `--repair` in automation).
|
Doctor detects a gateway service entrypoint mismatch and offers to rewrite the service config to match the current install (use `--repair` in automation).
|
||||||
|
|
||||||
|
### Should I run the Gateway on my laptop or a VPS?
|
||||||
|
|
||||||
|
Short answer: **if you want 24/7 reliability, use a VPS**. If you want the
|
||||||
|
lowest friction and you’re okay with sleep/restarts, run it locally.
|
||||||
|
|
||||||
|
**Laptop (local Gateway)**
|
||||||
|
- **Pros:** no server cost, direct access to local files, live browser window.
|
||||||
|
- **Cons:** sleep/network drops = disconnects, OS updates/reboots interrupt, must stay awake.
|
||||||
|
|
||||||
|
**VPS / cloud**
|
||||||
|
- **Pros:** always‑on, stable network, no laptop sleep issues, easier to keep running.
|
||||||
|
- **Cons:** often run headless (use screenshots), remote file access only, you must SSH for updates.
|
||||||
|
|
||||||
|
**Clawdbot‑specific note:** WhatsApp/Telegram/Slack/Discord all work fine from a VPS. The only real trade‑off is **headless browser** vs a visible window. See [Browser](/tools/browser).
|
||||||
|
|
||||||
|
**Recommended default:** VPS if you had gateway disconnects before. Local is great when you’re actively using the Mac and want local file access or UI automation with a visible browser.
|
||||||
|
|
||||||
|
## Skills and automation
|
||||||
|
|
||||||
### How do I customize skills without keeping the repo dirty?
|
### How do I customize skills without keeping the repo dirty?
|
||||||
|
|
||||||
Use managed overrides instead of editing the repo copy. Put your changes in `~/.clawdbot/skills/<name>/SKILL.md` (or add a folder via `skills.load.extraDirs` in `~/.clawdbot/clawdbot.json`). Precedence is `<workspace>/skills` > `~/.clawdbot/skills` > bundled, so managed overrides win without touching git. Only upstream-worthy edits should live in the repo and go out as PRs.
|
Use managed overrides instead of editing the repo copy. Put your changes in `~/.clawdbot/skills/<name>/SKILL.md` (or add a folder via `skills.load.extraDirs` in `~/.clawdbot/clawdbot.json`). Precedence is `<workspace>/skills` > `~/.clawdbot/skills` > bundled, so managed overrides win without touching git. Only upstream-worthy edits should live in the repo and go out as PRs.
|
||||||
|
|
||||||
|
### Can I load skills from a custom folder?
|
||||||
|
|
||||||
|
Yes. Add extra directories via `skills.load.extraDirs` in `~/.clawdbot/clawdbot.json` (lowest precedence). Default precedence remains: `<workspace>/skills` → `~/.clawdbot/skills` → bundled → `skills.load.extraDirs`. `clawdhub` installs into `./skills` by default, which Clawdbot treats as `<workspace>/skills`.
|
||||||
|
|
||||||
|
### How can I use different models for different tasks?
|
||||||
|
|
||||||
|
Today the supported patterns are:
|
||||||
|
- **Cron jobs**: isolated jobs can set a `model` override per job.
|
||||||
|
- **Sub-agents**: route tasks to separate agents with different default models.
|
||||||
|
- **On-demand switch**: use `/model` to switch the current session model at any time.
|
||||||
|
|
||||||
|
See [Cron jobs](/automation/cron-jobs), [Multi-Agent Routing](/concepts/multi-agent), and [Slash commands](/tools/slash-commands).
|
||||||
|
|
||||||
### How do I install skills on Linux?
|
### How do I install skills on Linux?
|
||||||
|
|
||||||
Use **ClawdHub** (CLI) or drop skills into your workspace. The macOS Skills UI isn’t available on Linux.
|
Use **ClawdHub** (CLI) or drop skills into your workspace. The macOS Skills UI isn’t available on Linux.
|
||||||
|
Browse skills at https://clawdhub.com.
|
||||||
|
|
||||||
Install the ClawdHub CLI (pick one package manager):
|
Install the ClawdHub CLI (pick one package manager):
|
||||||
|
|
||||||
@@ -184,9 +370,20 @@ npm i -g clawdhub
|
|||||||
pnpm add -g clawdhub
|
pnpm add -g clawdhub
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
### Do you have a Notion or HeyGen integration?
|
||||||
bun add -g clawdhub
|
|
||||||
```
|
Not built‑in today.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
- **Custom skill / plugin:** best for reliable API access (Notion/HeyGen both have APIs).
|
||||||
|
- **Browser automation:** works without code but is slower and more fragile.
|
||||||
|
|
||||||
|
If you want to keep context per client (agency workflows), a simple pattern is:
|
||||||
|
- One Notion page per client (context + preferences + active work).
|
||||||
|
- Ask the agent to fetch that page at the start of a session.
|
||||||
|
|
||||||
|
If you want a native integration, open a feature request or build a skill
|
||||||
|
targeting those APIs.
|
||||||
|
|
||||||
Install skills:
|
Install skills:
|
||||||
|
|
||||||
@@ -195,12 +392,18 @@ clawdhub install <skill-slug>
|
|||||||
clawdhub update --all
|
clawdhub update --all
|
||||||
```
|
```
|
||||||
|
|
||||||
ClawdHub installs into `./skills` under your current directory; Clawdbot treats that as `<workspace>/skills` on the next session. For shared skills across agents, place them in `~/.clawdbot/skills/<name>/SKILL.md`. Some skills expect binaries installed via Homebrew; on Linux that means Linuxbrew (see the Homebrew Linux FAQ entry above). See [Skills](/tools/skills) and [ClawdHub](/tools/clawdhub).
|
ClawdHub installs into `./skills` under your current directory (or falls back to your configured Clawdbot workspace); Clawdbot treats that as `<workspace>/skills` on the next session. For shared skills across agents, place them in `~/.clawdbot/skills/<name>/SKILL.md`. Some skills expect binaries installed via Homebrew; on Linux that means Linuxbrew (see the Homebrew Linux FAQ entry above). See [Skills](/tools/skills) and [ClawdHub](/tools/clawdhub).
|
||||||
|
|
||||||
|
## Sandboxing and memory
|
||||||
|
|
||||||
### Is there a dedicated sandboxing doc?
|
### Is there a dedicated sandboxing doc?
|
||||||
|
|
||||||
Yes. See [Sandboxing](/gateway/sandboxing). For Docker-specific setup (full gateway in Docker or sandbox images), see [Docker](/install/docker).
|
Yes. See [Sandboxing](/gateway/sandboxing). For Docker-specific setup (full gateway in Docker or sandbox images), see [Docker](/install/docker).
|
||||||
|
|
||||||
|
### How do I bind a host folder into the sandbox?
|
||||||
|
|
||||||
|
Set `agents.defaults.sandbox.docker.binds` to `["host:path:mode"]` (e.g., `"/home/user/src:/src:ro"`). Global + per-agent binds merge; per-agent binds are ignored when `scope: "shared"`. Use `:ro` for anything sensitive and remember binds bypass the sandbox filesystem walls. See [Sandboxing](/gateway/sandboxing#custom-bind-mounts) and [Sandbox vs Tool Policy vs Elevated](/gateway/sandbox-vs-tool-policy-vs-elevated#bind-mounts-security-quick-check) for examples and safety notes.
|
||||||
|
|
||||||
### How does memory work?
|
### How does memory work?
|
||||||
|
|
||||||
Clawdbot memory is just Markdown files in the agent workspace:
|
Clawdbot memory is just Markdown files in the agent workspace:
|
||||||
@@ -211,6 +414,17 @@ Clawdbot also runs a **silent pre-compaction memory flush** to remind the model
|
|||||||
to write durable notes before auto-compaction. This only runs when the workspace
|
to write durable notes before auto-compaction. This only runs when the workspace
|
||||||
is writable (read-only sandboxes skip it). See [Memory](/concepts/memory).
|
is writable (read-only sandboxes skip it). See [Memory](/concepts/memory).
|
||||||
|
|
||||||
|
### Does semantic memory search require an OpenAI API key?
|
||||||
|
|
||||||
|
Only if you use **remote embeddings** (OpenAI). Codex OAuth covers
|
||||||
|
chat/completions and does **not** grant embeddings access, so **signing in with
|
||||||
|
Codex (OAuth or the Codex CLI login)** does not help for semantic memory search.
|
||||||
|
Remote memory search still needs a real OpenAI API key (`OPENAI_API_KEY` or
|
||||||
|
`models.providers.openai.apiKey`). If you’d rather stay local, set
|
||||||
|
`memorySearch.provider = "local"` (and optionally `memorySearch.fallback =
|
||||||
|
"none"`). We support **remote or local embedding models** — see [Memory](/concepts/memory)
|
||||||
|
for the setup details.
|
||||||
|
|
||||||
## Where things live on disk
|
## Where things live on disk
|
||||||
|
|
||||||
### Where does Clawdbot store its data?
|
### Where does Clawdbot store its data?
|
||||||
@@ -232,6 +446,29 @@ Legacy single‑agent path: `~/.clawdbot/agent/*` (migrated by `clawdbot doctor`
|
|||||||
|
|
||||||
Your **workspace** (AGENTS.md, memory files, skills, etc.) is separate and configured via `agents.defaults.workspace` (default: `~/clawd`).
|
Your **workspace** (AGENTS.md, memory files, skills, etc.) is separate and configured via `agents.defaults.workspace` (default: `~/clawd`).
|
||||||
|
|
||||||
|
### Where should AGENTS.md / SOUL.md / USER.md / MEMORY.md live?
|
||||||
|
|
||||||
|
These files live in the **agent workspace**, not `~/.clawdbot`.
|
||||||
|
|
||||||
|
- **Workspace (per agent)**: `AGENTS.md`, `SOUL.md`, `IDENTITY.md`, `USER.md`,
|
||||||
|
`MEMORY.md` (or `memory.md`), `memory/YYYY-MM-DD.md`, optional `HEARTBEAT.md`.
|
||||||
|
- **State dir (`~/.clawdbot`)**: config, credentials, auth profiles, sessions, logs,
|
||||||
|
and shared skills (`~/.clawdbot/skills`).
|
||||||
|
|
||||||
|
Default workspace is `~/clawd`, configurable via:
|
||||||
|
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
agents: { defaults: { workspace: "~/clawd" } }
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
If the bot “forgets” after a restart, confirm the Gateway is using the same
|
||||||
|
workspace on every launch (and remember: remote mode uses the **gateway host’s**
|
||||||
|
workspace, not your local laptop).
|
||||||
|
|
||||||
|
See [Agent workspace](/concepts/agent-workspace) and [Memory](/concepts/memory).
|
||||||
|
|
||||||
### How do I completely uninstall Clawdbot?
|
### How do I completely uninstall Clawdbot?
|
||||||
|
|
||||||
See the dedicated guide: [Uninstall](/install/uninstall).
|
See the dedicated guide: [Uninstall](/install/uninstall).
|
||||||
@@ -336,6 +573,11 @@ Yes. It’s a config option:
|
|||||||
|
|
||||||
Default is `false` (headful). Headless is more likely to trigger anti‑bot checks on some sites. See [Browser](/tools/browser).
|
Default is `false` (headful). Headless is more likely to trigger anti‑bot checks on some sites. See [Browser](/tools/browser).
|
||||||
|
|
||||||
|
Headless uses the **same Chromium engine** and works for most automation (forms, clicks, scraping, logins). The main differences:
|
||||||
|
- No visible browser window (use screenshots if you need visuals).
|
||||||
|
- Some sites are stricter about automation in headless mode (CAPTCHAs, anti‑bot).
|
||||||
|
For example, X/Twitter often blocks headless sessions.
|
||||||
|
|
||||||
## Remote gateways + nodes
|
## Remote gateways + nodes
|
||||||
|
|
||||||
### How do commands propagate between Telegram, the gateway, and nodes?
|
### How do commands propagate between Telegram, the gateway, and nodes?
|
||||||
@@ -369,6 +611,52 @@ Yes. `config.apply` validates + writes the full config and restarts the Gateway
|
|||||||
|
|
||||||
This sets your workspace and restricts who can trigger the bot.
|
This sets your workspace and restricts who can trigger the bot.
|
||||||
|
|
||||||
|
### How do I set up Tailscale on a VPS and connect from my Mac?
|
||||||
|
|
||||||
|
Minimal steps:
|
||||||
|
|
||||||
|
1) **Install + login on the VPS**
|
||||||
|
```bash
|
||||||
|
curl -fsSL https://tailscale.com/install.sh | sh
|
||||||
|
sudo tailscale up
|
||||||
|
```
|
||||||
|
2) **Install + login on your Mac**
|
||||||
|
- Use the Tailscale app and sign in to the same tailnet.
|
||||||
|
3) **Enable MagicDNS (recommended)**
|
||||||
|
- In the Tailscale admin console, enable MagicDNS so the VPS has a stable name.
|
||||||
|
4) **Use the tailnet hostname**
|
||||||
|
- SSH: `ssh user@your-vps.tailnet-xxxx.ts.net`
|
||||||
|
- Gateway WS: `ws://your-vps.tailnet-xxxx.ts.net:18789`
|
||||||
|
|
||||||
|
If you want the Control UI without SSH, use Tailscale Serve on the VPS:
|
||||||
|
```bash
|
||||||
|
clawdbot gateway --tailscale serve
|
||||||
|
```
|
||||||
|
This keeps the gateway bound to loopback and exposes HTTPS via Tailscale. See [Tailscale](/gateway/tailscale).
|
||||||
|
|
||||||
|
### How do I connect a Mac node to a remote Gateway (Tailscale Serve)?
|
||||||
|
|
||||||
|
Serve only exposes the **Gateway Control UI**. Nodes use the **bridge port**.
|
||||||
|
|
||||||
|
Recommended setup:
|
||||||
|
1) **Enable the bridge on the gateway host**:
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
bridge: { enabled: true, bind: "auto" }
|
||||||
|
}
|
||||||
|
```
|
||||||
|
`auto` prefers a tailnet IP when Tailscale is present.
|
||||||
|
2) **Make sure the VPS + Mac are on the same tailnet**.
|
||||||
|
3) **Use the macOS app in Remote mode** (SSH target can be the tailnet hostname).
|
||||||
|
The app will tunnel the bridge port and connect as a node.
|
||||||
|
4) **Approve the node** on the gateway:
|
||||||
|
```bash
|
||||||
|
clawdbot nodes pending
|
||||||
|
clawdbot nodes approve <requestId>
|
||||||
|
```
|
||||||
|
|
||||||
|
Docs: [Bridge protocol](/gateway/bridge-protocol), [Discovery](/gateway/discovery), [macOS remote mode](/platforms/mac/remote).
|
||||||
|
|
||||||
## Env vars and .env loading
|
## Env vars and .env loading
|
||||||
|
|
||||||
### How does Clawdbot load environment variables?
|
### How does Clawdbot load environment variables?
|
||||||
@@ -414,6 +702,30 @@ Two common fixes:
|
|||||||
This runs your login shell and imports only missing expected keys (never overrides). Env var equivalents:
|
This runs your login shell and imports only missing expected keys (never overrides). Env var equivalents:
|
||||||
`CLAWDBOT_LOAD_SHELL_ENV=1`, `CLAWDBOT_SHELL_ENV_TIMEOUT_MS=15000`.
|
`CLAWDBOT_LOAD_SHELL_ENV=1`, `CLAWDBOT_SHELL_ENV_TIMEOUT_MS=15000`.
|
||||||
|
|
||||||
|
### I set `COPILOT_GITHUB_TOKEN`, but models status shows “Shell env: off.” Why?
|
||||||
|
|
||||||
|
`clawdbot models status` reports whether **shell env import** is enabled. “Shell env: off”
|
||||||
|
does **not** mean your env vars are missing — it just means Clawdbot won’t load
|
||||||
|
your login shell automatically.
|
||||||
|
|
||||||
|
If the Gateway runs as a daemon (launchd/systemd), it won’t inherit your shell
|
||||||
|
environment. Fix by doing one of these:
|
||||||
|
|
||||||
|
1) Put the token in `~/.clawdbot/.env`:
|
||||||
|
```
|
||||||
|
COPILOT_GITHUB_TOKEN=...
|
||||||
|
```
|
||||||
|
2) Or enable shell import (`env.shellEnv.enabled: true`).
|
||||||
|
3) Or add it to your config `env` block (applies only if missing).
|
||||||
|
|
||||||
|
Then restart the gateway and recheck:
|
||||||
|
```bash
|
||||||
|
clawdbot models status
|
||||||
|
```
|
||||||
|
|
||||||
|
Copilot tokens are read from `COPILOT_GITHUB_TOKEN` (also `GH_TOKEN` / `GITHUB_TOKEN`).
|
||||||
|
See [/concepts/model-providers](/concepts/model-providers) and [/environment](/environment).
|
||||||
|
|
||||||
## Sessions & multiple chats
|
## Sessions & multiple chats
|
||||||
|
|
||||||
### How do I start a fresh conversation?
|
### How do I start a fresh conversation?
|
||||||
@@ -445,6 +757,28 @@ Notes:
|
|||||||
- If you used profiles (`--profile` / `CLAWDBOT_PROFILE`), reset each state dir (defaults are `~/.clawdbot-<profile>`).
|
- If you used profiles (`--profile` / `CLAWDBOT_PROFILE`), reset each state dir (defaults are `~/.clawdbot-<profile>`).
|
||||||
- Dev reset: `clawdbot gateway --dev --reset` (dev-only; wipes dev config + credentials + sessions + workspace).
|
- Dev reset: `clawdbot gateway --dev --reset` (dev-only; wipes dev config + credentials + sessions + workspace).
|
||||||
|
|
||||||
|
### I’m getting “context too large” errors — how do I reset or compact?
|
||||||
|
|
||||||
|
Use one of these:
|
||||||
|
|
||||||
|
- **Compact** (keeps the conversation but summarizes older turns):
|
||||||
|
```
|
||||||
|
/compact
|
||||||
|
```
|
||||||
|
or `/compact <instructions>` to guide the summary.
|
||||||
|
|
||||||
|
- **Reset** (fresh session ID for the same chat key):
|
||||||
|
```
|
||||||
|
/new
|
||||||
|
/reset
|
||||||
|
```
|
||||||
|
|
||||||
|
If it keeps happening:
|
||||||
|
- Enable or tune **session pruning** (`agents.defaults.contextPruning`) to trim old tool output.
|
||||||
|
- Use a model with a larger context window.
|
||||||
|
|
||||||
|
Docs: [Compaction](/concepts/compaction), [Session pruning](/concepts/session-pruning), [Session management](/concepts/session).
|
||||||
|
|
||||||
### Do I need to add a “bot account” to a WhatsApp group?
|
### Do I need to add a “bot account” to a WhatsApp group?
|
||||||
|
|
||||||
No. Clawdbot runs on **your own account**, so if you’re in the group, Clawdbot can see it.
|
No. Clawdbot runs on **your own account**, so if you’re in the group, Clawdbot can see it.
|
||||||
@@ -529,6 +863,59 @@ Model "provider/model" is not allowed. Use /model to list available models.
|
|||||||
That error is returned **instead of** a normal reply. Fix: add the model to
|
That error is returned **instead of** a normal reply. Fix: add the model to
|
||||||
`agents.defaults.models`, remove the allowlist, or pick a model from `/model list`.
|
`agents.defaults.models`, remove the allowlist, or pick a model from `/model list`.
|
||||||
|
|
||||||
|
### Why do I see “Unknown model: minimax/MiniMax-M2.1”?
|
||||||
|
|
||||||
|
This means the **provider isn’t configured** (no MiniMax provider config or auth
|
||||||
|
profile was found), so the model can’t be resolved. A fix for this detection is
|
||||||
|
in **2026.1.12** (unreleased at the time of writing).
|
||||||
|
|
||||||
|
Fix checklist:
|
||||||
|
1) Upgrade to **2026.1.12** (or run from source `main`), then restart the gateway.
|
||||||
|
2) Make sure MiniMax is configured (wizard or JSON), or that a MiniMax API key
|
||||||
|
exists in env/auth profiles so the provider can be injected.
|
||||||
|
3) Use the exact model id (case‑sensitive): `minimax/MiniMax-M2.1` or
|
||||||
|
`minimax/MiniMax-M2.1-lightning`.
|
||||||
|
4) Run:
|
||||||
|
```bash
|
||||||
|
clawdbot models list
|
||||||
|
```
|
||||||
|
and pick from the list (or `/model list` in chat).
|
||||||
|
|
||||||
|
See [MiniMax](/providers/minimax) and [Models](/concepts/models).
|
||||||
|
|
||||||
|
### Can I use MiniMax as my default and OpenAI for complex tasks?
|
||||||
|
|
||||||
|
Yes. Use **MiniMax as the default** and switch models **per session** when needed.
|
||||||
|
Fallbacks are for **errors**, not “hard tasks,” so use `/model` or a separate agent.
|
||||||
|
|
||||||
|
**Option A: switch per session**
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
env: { MINIMAX_API_KEY: "sk-...", OPENAI_API_KEY: "sk-..." },
|
||||||
|
agents: {
|
||||||
|
defaults: {
|
||||||
|
model: { primary: "minimax/MiniMax-M2.1" },
|
||||||
|
models: {
|
||||||
|
"minimax/MiniMax-M2.1": { alias: "minimax" },
|
||||||
|
"openai/gpt-5.2": { alias: "gpt" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Then:
|
||||||
|
```
|
||||||
|
/model gpt
|
||||||
|
```
|
||||||
|
|
||||||
|
**Option B: separate agents**
|
||||||
|
- Agent A default: MiniMax
|
||||||
|
- Agent B default: OpenAI
|
||||||
|
- Route by agent or use `/agent` to switch
|
||||||
|
|
||||||
|
Docs: [Models](/concepts/models), [Multi-Agent Routing](/concepts/multi-agent), [MiniMax](/providers/minimax), [OpenAI](/providers/openai).
|
||||||
|
|
||||||
### Are opus / sonnet / gpt built‑in shortcuts?
|
### Are opus / sonnet / gpt built‑in shortcuts?
|
||||||
|
|
||||||
Yes. Clawdbot ships a few default shorthands (only applied when the model exists in `agents.defaults.models`):
|
Yes. Clawdbot ships a few default shorthands (only applied when the model exists in `agents.defaults.models`):
|
||||||
@@ -626,6 +1013,23 @@ It means the system attempted to use the auth profile ID `anthropic:default`, bu
|
|||||||
- **Sanity‑check model/auth status**
|
- **Sanity‑check model/auth status**
|
||||||
- Use `clawdbot models status` to see configured models and whether providers are authenticated.
|
- Use `clawdbot models status` to see configured models and whether providers are authenticated.
|
||||||
|
|
||||||
|
### Fix checklist for `No credentials found for profile "anthropic:claude-cli"`
|
||||||
|
|
||||||
|
This means the run is pinned to the **Claude CLI** profile, but the Gateway
|
||||||
|
can’t find that profile in its auth store.
|
||||||
|
|
||||||
|
- **Sync the Claude CLI token on the gateway host**
|
||||||
|
- Run `clawdbot models status` (it loads + syncs Claude CLI credentials).
|
||||||
|
- If it still says missing: run `claude setup-token` (or `clawdbot models auth setup-token --provider anthropic`) and retry.
|
||||||
|
- **If you want to use an API key instead**
|
||||||
|
- Put `ANTHROPIC_API_KEY` in `~/.clawdbot/.env` on the **gateway host**.
|
||||||
|
- Clear any pinned order that forces `anthropic:claude-cli`:
|
||||||
|
```bash
|
||||||
|
clawdbot models auth order clear --provider anthropic
|
||||||
|
```
|
||||||
|
- **Confirm you’re running commands on the gateway host**
|
||||||
|
- In remote mode, auth profiles live on the gateway machine, not your laptop.
|
||||||
|
|
||||||
### Why did it also try Google Gemini and fail?
|
### Why did it also try Google Gemini and fail?
|
||||||
|
|
||||||
If your model config includes Google Gemini as a fallback (or you switched to a Gemini shorthand), Clawdbot will try it during model fallback. If you haven’t configured Google credentials, you’ll see `No API key found for provider "google"`.
|
If your model config includes Google Gemini as a fallback (or you switched to a Gemini shorthand), Clawdbot will try it during model fallback. If you haven’t configured Google credentials, you’ll see `No API key found for provider "google"`.
|
||||||
@@ -756,6 +1160,8 @@ Facts (from code):
|
|||||||
- The UI can import `?token=...` (and/or `?password=...`) once, then strips it from the URL.
|
- The UI can import `?token=...` (and/or `?password=...`) once, then strips it from the URL.
|
||||||
|
|
||||||
Fix:
|
Fix:
|
||||||
|
- Fastest: `clawdbot dashboard` (prints + copies tokenized link, tries to open; shows SSH hint if headless).
|
||||||
|
- If remote, tunnel first: `ssh -N -L 18789:127.0.0.1:18789 user@host` then open `http://127.0.0.1:18789/?token=...`.
|
||||||
- Set `gateway.auth.token` (or `CLAWDBOT_GATEWAY_TOKEN`) on the gateway host.
|
- Set `gateway.auth.token` (or `CLAWDBOT_GATEWAY_TOKEN`) on the gateway host.
|
||||||
- In the Control UI settings, paste the same token (or refresh with a one-time `?token=...` link).
|
- In the Control UI settings, paste the same token (or refresh with a one-time `?token=...` link).
|
||||||
|
|
||||||
@@ -766,9 +1172,13 @@ Fix:
|
|||||||
Fix:
|
Fix:
|
||||||
- Start Tailscale on that host (so it has a 100.x address), or
|
- Start Tailscale on that host (so it has a 100.x address), or
|
||||||
- Switch to `gateway.bind: "loopback"` / `"lan"`.
|
- Switch to `gateway.bind: "loopback"` / `"lan"`.
|
||||||
|
|
||||||
|
Note: `tailnet` is legacy and is migrated to `auto` by Doctor. Prefer `gateway.bind: "auto"` when using Tailscale.
|
||||||
|
|
||||||
### Can I run multiple Gateways on the same host?
|
### Can I run multiple Gateways on the same host?
|
||||||
|
|
||||||
|
Usually no — one Gateway can run multiple messaging channels and agents. Use multiple Gateways only when you need redundancy (ex: rescue bot) or hard isolation.
|
||||||
|
|
||||||
Yes, but you must isolate:
|
Yes, but you must isolate:
|
||||||
|
|
||||||
- `CLAWDBOT_CONFIG_PATH` (per‑instance config)
|
- `CLAWDBOT_CONFIG_PATH` (per‑instance config)
|
||||||
@@ -776,9 +1186,35 @@ Yes, but you must isolate:
|
|||||||
- `agents.defaults.workspace` (workspace isolation)
|
- `agents.defaults.workspace` (workspace isolation)
|
||||||
- `gateway.port` (unique ports)
|
- `gateway.port` (unique ports)
|
||||||
|
|
||||||
There are convenience CLI flags like `--dev` and `--profile <name>` that shift state dirs and ports.
|
Quick setup (recommended):
|
||||||
When using profiles, service names are suffixed (`com.clawdbot.<profile>`, `clawdbot-gateway-<profile>.service`,
|
- Use `clawdbot --profile <name> …` per instance (auto-creates `~/.clawdbot-<name>`).
|
||||||
`Clawdbot Gateway (<profile>)`).
|
- Set a unique `gateway.port` in each profile config (or pass `--port` for manual runs).
|
||||||
|
- Install a per-profile daemon: `clawdbot --profile <name> daemon install`.
|
||||||
|
|
||||||
|
Profiles also suffix service names (`com.clawdbot.<profile>`, `clawdbot-gateway-<profile>.service`, `Clawdbot Gateway (<profile>)`).
|
||||||
|
|
||||||
|
### What does “invalid handshake” / code 1008 mean?
|
||||||
|
|
||||||
|
The Gateway is a **WebSocket server**, and it expects the very first message to
|
||||||
|
be a `connect` frame. If it receives anything else, it closes the connection
|
||||||
|
with **code 1008** (policy violation).
|
||||||
|
|
||||||
|
Common causes:
|
||||||
|
- You opened the **HTTP** URL in a browser (`http://...`) instead of a WS client.
|
||||||
|
- You used the wrong port or path.
|
||||||
|
- A proxy or tunnel stripped auth headers or sent a non‑Gateway request.
|
||||||
|
|
||||||
|
Quick fixes:
|
||||||
|
1) Use the WS URL: `ws://<host>:18789` (or `wss://...` if HTTPS).
|
||||||
|
2) Don’t open the WS port in a normal browser tab.
|
||||||
|
3) If auth is on, include the token/password in the `connect` frame.
|
||||||
|
|
||||||
|
If you’re using the CLI or TUI, the URL should look like:
|
||||||
|
```
|
||||||
|
clawdbot tui --url ws://<host>:18789 --token <token>
|
||||||
|
```
|
||||||
|
|
||||||
|
Protocol details: [Gateway protocol](/gateway/protocol).
|
||||||
|
|
||||||
## Logging and debugging
|
## Logging and debugging
|
||||||
|
|
||||||
@@ -944,6 +1380,96 @@ clawdbot providers login
|
|||||||
3) Check GitHub issues or Discord
|
3) Check GitHub issues or Discord
|
||||||
4) Temporary workaround: check out an older commit
|
4) Temporary workaround: check out an older commit
|
||||||
|
|
||||||
|
### npm install fails (allow-build-scripts / missing tar or yargs). What now?
|
||||||
|
|
||||||
|
If you’re running from source, use the repo’s package manager: **pnpm** (preferred).
|
||||||
|
The repo declares `packageManager: "pnpm@…"`, and pnpm patches are tracked in `pnpm.patchedDependencies`.
|
||||||
|
|
||||||
|
Typical recovery:
|
||||||
|
```bash
|
||||||
|
git status # ensure you’re in the repo root
|
||||||
|
pnpm install
|
||||||
|
pnpm build
|
||||||
|
pnpm clawdbot doctor
|
||||||
|
clawdbot daemon restart
|
||||||
|
```
|
||||||
|
|
||||||
|
Why: pnpm is the configured package manager for this repo, and the dependency
|
||||||
|
patching workflow relies on it.
|
||||||
|
|
||||||
|
### How do I switch between git installs and npm installs?
|
||||||
|
|
||||||
|
Use the **website installer** and select the install method with a flag. It
|
||||||
|
upgrades in place and rewrites the gateway service to point at the new install.
|
||||||
|
|
||||||
|
Switch **to git install**:
|
||||||
|
```bash
|
||||||
|
curl -fsSL https://clawd.bot/install.sh | bash -s -- --install-method git --no-onboard
|
||||||
|
```
|
||||||
|
|
||||||
|
Switch **to npm global**:
|
||||||
|
```bash
|
||||||
|
curl -fsSL https://clawd.bot/install.sh | bash
|
||||||
|
```
|
||||||
|
|
||||||
|
Notes:
|
||||||
|
- The git flow only rebases if the repo is clean. Commit or stash changes first.
|
||||||
|
- After switching, run:
|
||||||
|
```bash
|
||||||
|
clawdbot doctor
|
||||||
|
clawdbot daemon restart
|
||||||
|
```
|
||||||
|
|
||||||
|
### Telegram block streaming isn’t splitting text between tool calls. Why?
|
||||||
|
|
||||||
|
Block streaming only sends **completed text blocks**. Common reasons you see a single message:
|
||||||
|
- `agents.defaults.blockStreamingDefault` is still `"off"`.
|
||||||
|
- `telegram.blockStreaming` is set to `false`.
|
||||||
|
- `telegram.streamMode` is `partial` or `block` **and draft streaming is active**
|
||||||
|
(private chat + topics). Draft streaming disables block streaming in that case.
|
||||||
|
- Your `minChars` / coalesce settings are too high, so chunks get merged.
|
||||||
|
- The model emits one large text block (no mid‑reply flush points).
|
||||||
|
|
||||||
|
Fix checklist:
|
||||||
|
1) Put block streaming settings under `agents.defaults`, not the root.
|
||||||
|
2) Set `telegram.streamMode: "off"` if you want real multi‑message block replies.
|
||||||
|
3) Use smaller chunk/coalesce thresholds while debugging.
|
||||||
|
|
||||||
|
See [Streaming](/concepts/streaming).
|
||||||
|
|
||||||
|
### Discord doesn’t reply in my server even with `requireMention: false`. Why?
|
||||||
|
|
||||||
|
`requireMention` only controls mention‑gating **after** the channel passes allowlists.
|
||||||
|
By default `discord.groupPolicy` is **allowlist**, so guild channels must be explicitly enabled.
|
||||||
|
|
||||||
|
Fix checklist:
|
||||||
|
1) Set `discord.groupPolicy: "open"` **or** add the guild/channel allowlist.
|
||||||
|
2) Use **numeric channel IDs** in `discord.guilds.<guildId>.channels`.
|
||||||
|
3) Put `requireMention: false` **under** `discord.guilds` (global or per‑channel).
|
||||||
|
Top‑level `discord.requireMention` is not a supported key.
|
||||||
|
4) Ensure the bot has **Message Content Intent** and channel permissions.
|
||||||
|
5) Run `clawdbot providers status --probe` for audit hints.
|
||||||
|
|
||||||
|
Docs: [Discord](/providers/discord), [Providers troubleshooting](/providers/troubleshooting).
|
||||||
|
|
||||||
|
### Cloud Code Assist API error: invalid tool schema (400). What now?
|
||||||
|
|
||||||
|
This is almost always a **tool schema compatibility** issue. The Cloud Code Assist
|
||||||
|
endpoint accepts a strict subset of JSON Schema. Clawdbot scrubs/normalizes tool
|
||||||
|
schemas in current `main`, but the fix is not in the last release yet (as of
|
||||||
|
January 13, 2026).
|
||||||
|
|
||||||
|
Fix checklist:
|
||||||
|
1) **Update Clawdbot**:
|
||||||
|
- If you can run from source, pull `main` and restart the gateway.
|
||||||
|
- Otherwise, wait for the next release that includes the schema scrubber.
|
||||||
|
2) Avoid unsupported keywords like `anyOf/oneOf/allOf`, `patternProperties`,
|
||||||
|
`additionalProperties`, `minLength`, `maxLength`, `format`, etc.
|
||||||
|
3) If you define custom tools, keep the top‑level schema as `type: "object"` with
|
||||||
|
`properties` and simple enums.
|
||||||
|
|
||||||
|
See [Tools](/tools) and [TypeBox schemas](/concepts/typebox).
|
||||||
|
|
||||||
## Answer the exact question from the screenshot/chat log
|
## Answer the exact question from the screenshot/chat log
|
||||||
|
|
||||||
**Q: “What’s the default model for Anthropic with an API key?”**
|
**Q: “What’s the default model for Anthropic with an API key?”**
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ What you’ll choose:
|
|||||||
- **Auth**: OpenAI Code (Codex) subscription (OAuth) or API keys. For Anthropic we recommend an API key; `claude setup-token` is also supported.
|
- **Auth**: OpenAI Code (Codex) subscription (OAuth) or API keys. For Anthropic we recommend an API key; `claude setup-token` is also supported.
|
||||||
- **Providers**: WhatsApp QR login, Telegram/Discord bot tokens, etc.
|
- **Providers**: WhatsApp QR login, Telegram/Discord bot tokens, etc.
|
||||||
- **Daemon**: background install (launchd/systemd; WSL2 uses systemd)
|
- **Daemon**: background install (launchd/systemd; WSL2 uses systemd)
|
||||||
- **Runtime**: Node (recommended; required for WhatsApp) or Bun (faster, but incompatible with WhatsApp)
|
- **Runtime**: Node (recommended; required for WhatsApp/Telegram). Bun is **not recommended**.
|
||||||
- **Gateway token**: the wizard generates one by default (even on loopback) and stores it in `gateway.auth.token`.
|
- **Gateway token**: the wizard generates one by default (even on loopback) and stores it in `gateway.auth.token`.
|
||||||
|
|
||||||
Wizard doc: [Wizard](/start/wizard)
|
Wizard doc: [Wizard](/start/wizard)
|
||||||
@@ -110,11 +110,8 @@ clawdbot gateway --port 18789 --verbose
|
|||||||
Dashboard (local loopback): `http://127.0.0.1:18789/`
|
Dashboard (local loopback): `http://127.0.0.1:18789/`
|
||||||
If a token is configured, paste it into the Control UI settings (stored as `connect.params.auth.token`).
|
If a token is configured, paste it into the Control UI settings (stored as `connect.params.auth.token`).
|
||||||
|
|
||||||
⚠️ **WhatsApp + Bun warning:** Baileys (WhatsApp Web library) uses a WebSocket
|
⚠️ **Bun warning (WhatsApp + Telegram):** Bun has known issues with these
|
||||||
path that is currently incompatible with Bun and can cause memory corruption on
|
providers. If you use WhatsApp or Telegram, run the Gateway with **Node**.
|
||||||
reconnect. If you use WhatsApp, run the Gateway with **Node** until this is
|
|
||||||
resolved. Baileys: https://github.com/WhiskeySockets/Baileys · Bun issue:
|
|
||||||
https://github.com/oven-sh/bun/issues/5951
|
|
||||||
|
|
||||||
## 4) Pair + connect your first chat surface
|
## 4) Pair + connect your first chat surface
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -27,7 +27,7 @@ Use these hubs to discover every page, including deep dives and reference docs t
|
|||||||
- [Docker](/install/docker)
|
- [Docker](/install/docker)
|
||||||
- [Nix](/install/nix)
|
- [Nix](/install/nix)
|
||||||
- [Updating / rollback](/install/updating)
|
- [Updating / rollback](/install/updating)
|
||||||
- [Bun workflow](/install/bun)
|
- [Bun workflow (experimental)](/install/bun)
|
||||||
|
|
||||||
## Core concepts
|
## Core concepts
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ Onboarding requests TCC permissions needed for:
|
|||||||
|
|
||||||
## 5) CLI (optional)
|
## 5) CLI (optional)
|
||||||
|
|
||||||
The app can install the global `clawdbot` CLI via npm/pnpm/bun so terminal
|
The app can install the global `clawdbot` CLI via npm/pnpm so terminal
|
||||||
workflows and launchd tasks work out of the box.
|
workflows and launchd tasks work out of the box.
|
||||||
|
|
||||||
## 6) Onboarding chat (dedicated session)
|
## 6) Onboarding chat (dedicated session)
|
||||||
|
|||||||
+30
-2
@@ -9,7 +9,7 @@ summary: "Community-built projects and integrations powered by Clawdbot"
|
|||||||
Real projects from the community. See what people are building with Clawdbot.
|
Real projects from the community. See what people are building with Clawdbot.
|
||||||
|
|
||||||
<Info>
|
<Info>
|
||||||
**Want to be featured?** Share your project in [#showcase on Discord](https://discord.gg/clawdbot) or [tag @clawdbot on X](https://x.com/clawdbot).
|
**Want to be featured?** Share your project in [#showcase on Discord](https://discord.gg/clawd) or [tag @clawdbot on X](https://x.com/clawdbot).
|
||||||
</Info>
|
</Info>
|
||||||
|
|
||||||
## 🎥 Clawdbot in Action
|
## 🎥 Clawdbot in Action
|
||||||
@@ -42,6 +42,22 @@ Full setup walkthrough (28m) by VelvetShark.
|
|||||||
|
|
||||||
<CardGroup cols={2}>
|
<CardGroup cols={2}>
|
||||||
|
|
||||||
|
<Card title="PR Review → Telegram Feedback" icon="code-pull-request" href="https://x.com/i/status/2010878524543131691">
|
||||||
|
**@bangnokia** • `review` `github` `telegram`
|
||||||
|
|
||||||
|
OpenCode finishes the change → opens a PR → Clawdbot reviews the diff and replies in Telegram with “minor suggestions” plus a clear merge verdict (including critical fixes to apply first).
|
||||||
|
|
||||||
|
<img src="/assets/showcase/pr-review-telegram.jpg" alt="Clawdbot PR review feedback delivered in Telegram" />
|
||||||
|
</Card>
|
||||||
|
|
||||||
|
<Card title="Wine Cellar Skill in Minutes" icon="wine-glass" href="https://x.com/i/status/2010916352454791216">
|
||||||
|
**@prades_maxime** • `skills` `local` `csv`
|
||||||
|
|
||||||
|
Asked “Robby” (@clawdbot) for a local wine cellar skill. It requests a sample CSV export + where to store it, then builds/tests the skill fast (962 bottles in the example).
|
||||||
|
|
||||||
|
<img src="/assets/showcase/wine-cellar-skill.jpg" alt="Clawdbot building a local wine cellar skill from CSV" />
|
||||||
|
</Card>
|
||||||
|
|
||||||
<Card title="Tesco Shop Autopilot" icon="cart-shopping" href="https://x.com/i/status/2009724862470689131">
|
<Card title="Tesco Shop Autopilot" icon="cart-shopping" href="https://x.com/i/status/2009724862470689131">
|
||||||
**@marchattonhere** • `automation` `browser` `shopping`
|
**@marchattonhere** • `automation` `browser` `shopping`
|
||||||
|
|
||||||
@@ -196,6 +212,18 @@ Full setup walkthrough (28m) by VelvetShark.
|
|||||||
Searches job listings, matches against CV keywords, and returns relevant opportunities with links. Built in 30 minutes using JSearch API.
|
Searches job listings, matches against CV keywords, and returns relevant opportunities with links. Built in 30 minutes using JSearch API.
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
|
<Card title="Jira Skill Builder" icon="diagram-project" href="https://x.com/jdrhyne/status/2008336434827002232">
|
||||||
|
**@jdrhyne** • `automation` `jira` `skill` `devtools`
|
||||||
|
|
||||||
|
Clawdbot connected to Jira, then generated a new skill on the fly (before it existed on ClawdHub).
|
||||||
|
</Card>
|
||||||
|
|
||||||
|
<Card title="Todoist Skill via Telegram" icon="list-check" href="https://x.com/iamsubhrajyoti/status/2009949389884920153">
|
||||||
|
**@iamsubhrajyoti** • `automation` `todoist` `skill` `telegram`
|
||||||
|
|
||||||
|
Automated Todoist tasks and had Clawdbot generate the skill directly in Telegram chat.
|
||||||
|
</Card>
|
||||||
|
|
||||||
<Card title="TradingView Analysis" icon="chart-line">
|
<Card title="TradingView Analysis" icon="chart-line">
|
||||||
**@bheem1798** • `finance` `browser` `automation`
|
**@bheem1798** • `finance` `browser` `automation`
|
||||||
|
|
||||||
@@ -338,7 +366,7 @@ Have something to share? We'd love to feature it!
|
|||||||
|
|
||||||
<Steps>
|
<Steps>
|
||||||
<Step title="Share It">
|
<Step title="Share It">
|
||||||
Post in [#showcase on Discord](https://discord.gg/clawdbot) or [tweet @clawdbot](https://x.com/clawdbot)
|
Post in [#showcase on Discord](https://discord.gg/clawd) or [tweet @clawdbot](https://x.com/clawdbot)
|
||||||
</Step>
|
</Step>
|
||||||
<Step title="Include Details">
|
<Step title="Include Details">
|
||||||
Tell us what it does, link to the repo/demo, share a screenshot if you have one
|
Tell us what it does, link to the repo/demo, share a screenshot if you have one
|
||||||
|
|||||||
+17
-2
@@ -64,6 +64,8 @@ Tip: `--json` does **not** imply non-interactive mode. Use `--non-interactive` (
|
|||||||
|
|
||||||
1) **Existing config detection**
|
1) **Existing config detection**
|
||||||
- If `~/.clawdbot/clawdbot.json` exists, choose **Keep / Modify / Reset**.
|
- If `~/.clawdbot/clawdbot.json` exists, choose **Keep / Modify / Reset**.
|
||||||
|
- If the config is invalid or contains legacy keys, the wizard stops and asks
|
||||||
|
you to run `clawdbot doctor` before continuing.
|
||||||
- Reset uses `trash` (never `rm`) and offers scopes:
|
- Reset uses `trash` (never `rm`) and offers scopes:
|
||||||
- Config only
|
- Config only
|
||||||
- Config + credentials + sessions
|
- Config + credentials + sessions
|
||||||
@@ -82,6 +84,8 @@ Tip: `--json` does **not** imply non-interactive mode. Use `--non-interactive` (
|
|||||||
- **API key**: stores the key for you.
|
- **API key**: stores the key for you.
|
||||||
- **MiniMax M2.1**: config is auto-written.
|
- **MiniMax M2.1**: config is auto-written.
|
||||||
- More detail: [MiniMax](/providers/minimax)
|
- More detail: [MiniMax](/providers/minimax)
|
||||||
|
- **Synthetic (Anthropic-compatible)**: prompts for `SYNTHETIC_API_KEY`.
|
||||||
|
- More detail: [Synthetic](/providers/synthetic)
|
||||||
- **Moonshot (Kimi K2)**: config is auto-written.
|
- **Moonshot (Kimi K2)**: config is auto-written.
|
||||||
- More detail: [Moonshot AI](/providers/moonshot)
|
- More detail: [Moonshot AI](/providers/moonshot)
|
||||||
- **Skip**: no auth configured yet.
|
- **Skip**: no auth configured yet.
|
||||||
@@ -115,7 +119,7 @@ Tip: `--json` does **not** imply non-interactive mode. Use `--non-interactive` (
|
|||||||
- Linux (and Windows via WSL2): systemd user unit
|
- Linux (and Windows via WSL2): systemd user unit
|
||||||
- Wizard attempts to enable lingering via `loginctl enable-linger <user>` so the Gateway stays up after logout.
|
- Wizard attempts to enable lingering via `loginctl enable-linger <user>` so the Gateway stays up after logout.
|
||||||
- May prompt for sudo (writes `/var/lib/systemd/linger`); it tries without sudo first.
|
- May prompt for sudo (writes `/var/lib/systemd/linger`); it tries without sudo first.
|
||||||
- **Runtime selection:** Node (recommended; required for WhatsApp) or Bun (faster, but incompatible with WhatsApp).
|
- **Runtime selection:** Node (recommended; required for WhatsApp/Telegram). Bun is **not recommended**.
|
||||||
|
|
||||||
7) **Health check**
|
7) **Health check**
|
||||||
- Starts the Gateway (if needed) and runs `clawdbot health`.
|
- Starts the Gateway (if needed) and runs `clawdbot health`.
|
||||||
@@ -123,7 +127,7 @@ Tip: `--json` does **not** imply non-interactive mode. Use `--non-interactive` (
|
|||||||
|
|
||||||
8) **Skills (recommended)**
|
8) **Skills (recommended)**
|
||||||
- Reads the available skills and checks requirements.
|
- Reads the available skills and checks requirements.
|
||||||
- Lets you choose a node manager: **npm / pnpm / bun**.
|
- Lets you choose a node manager: **npm / pnpm** (bun not recommended).
|
||||||
- Installs optional dependencies (some use Homebrew on macOS).
|
- Installs optional dependencies (some use Homebrew on macOS).
|
||||||
|
|
||||||
9) **Finish**
|
9) **Finish**
|
||||||
@@ -212,6 +216,17 @@ clawdbot onboard --non-interactive \
|
|||||||
--gateway-bind loopback
|
--gateway-bind loopback
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Synthetic example:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
clawdbot onboard --non-interactive \
|
||||||
|
--mode local \
|
||||||
|
--auth-choice synthetic-api-key \
|
||||||
|
--synthetic-api-key "$SYNTHETIC_API_KEY" \
|
||||||
|
--gateway-port 18789 \
|
||||||
|
--gateway-bind loopback
|
||||||
|
```
|
||||||
|
|
||||||
OpenCode Zen example:
|
OpenCode Zen example:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@ Clawdbot assembles its own system prompt on every run. It includes:
|
|||||||
- Tool list + short descriptions
|
- Tool list + short descriptions
|
||||||
- Skills list (only metadata; instructions are loaded on demand with `read`)
|
- Skills list (only metadata; instructions are loaded on demand with `read`)
|
||||||
- Self-update instructions
|
- Self-update instructions
|
||||||
- Workspace + bootstrap files (`AGENTS.md`, `SOUL.md`, `TOOLS.md`, `IDENTITY.md`, `USER.md`, `HEARTBEAT.md`, `BOOTSTRAP.md` when new)
|
- Workspace + bootstrap files (`AGENTS.md`, `SOUL.md`, `TOOLS.md`, `IDENTITY.md`, `USER.md`, `HEARTBEAT.md`, `BOOTSTRAP.md` when new). Large files are truncated by `agents.defaults.bootstrapMaxChars` (default: 20000).
|
||||||
- Time (UTC + user timezone)
|
- Time (UTC + user timezone)
|
||||||
- Reply tags + heartbeat behavior
|
- Reply tags + heartbeat behavior
|
||||||
- Runtime metadata (host/OS/model/thinking)
|
- Runtime metadata (host/OS/model/thinking)
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ clawdbot agent --to +15555550123 --message "Summon reply" --deliver
|
|||||||
- `--local`: run locally (requires provider keys in your shell)
|
- `--local`: run locally (requires provider keys in your shell)
|
||||||
- `--deliver`: send the reply to the chosen provider (requires `--to`)
|
- `--deliver`: send the reply to the chosen provider (requires `--to`)
|
||||||
- `--provider`: `whatsapp|telegram|discord|slack|signal|imessage` (default: `whatsapp`)
|
- `--provider`: `whatsapp|telegram|discord|slack|signal|imessage` (default: `whatsapp`)
|
||||||
- `--thinking <off|minimal|low|medium|high>`: persist thinking level
|
- `--thinking <off|minimal|low|medium|high|xhigh>`: persist thinking level (GPT-5.2 + Codex models only)
|
||||||
- `--verbose <on|off>`: persist verbose level
|
- `--verbose <on|off>`: persist verbose level
|
||||||
- `--timeout <seconds>`: override agent timeout
|
- `--timeout <seconds>`: override agent timeout
|
||||||
- `--json`: output structured JSON
|
- `--json`: output structured JSON
|
||||||
@@ -150,7 +150,13 @@ HTTP API:
|
|||||||
- Snapshot/screenshot: `GET /snapshot`, `POST /screenshot`
|
- Snapshot/screenshot: `GET /snapshot`, `POST /screenshot`
|
||||||
- Actions: `POST /navigate`, `POST /act`
|
- Actions: `POST /navigate`, `POST /act`
|
||||||
- Hooks: `POST /hooks/file-chooser`, `POST /hooks/dialog`
|
- Hooks: `POST /hooks/file-chooser`, `POST /hooks/dialog`
|
||||||
|
- Downloads: `POST /download`, `POST /wait/download`
|
||||||
- Debugging: `GET /console`, `POST /pdf`
|
- Debugging: `GET /console`, `POST /pdf`
|
||||||
|
- Debugging: `GET /errors`, `GET /requests`, `POST /trace/start`, `POST /trace/stop`, `POST /highlight`
|
||||||
|
- Network: `POST /response/body`
|
||||||
|
- State: `GET /cookies`, `POST /cookies/set`, `POST /cookies/clear`
|
||||||
|
- State: `GET /storage/:kind`, `POST /storage/:kind/set`, `POST /storage/:kind/clear`
|
||||||
|
- Settings: `POST /set/offline`, `POST /set/headers`, `POST /set/credentials`, `POST /set/geolocation`, `POST /set/media`, `POST /set/timezone`, `POST /set/locale`, `POST /set/device`
|
||||||
|
|
||||||
All endpoints accept `?profile=<name>`.
|
All endpoints accept `?profile=<name>`.
|
||||||
|
|
||||||
@@ -175,12 +181,17 @@ you swap local/remote browsers and profiles.
|
|||||||
## CLI quick reference
|
## CLI quick reference
|
||||||
|
|
||||||
All commands accept `--browser-profile <name>` to target a specific profile.
|
All commands accept `--browser-profile <name>` to target a specific profile.
|
||||||
|
All commands also accept `--json` for machine-readable output (stable payloads).
|
||||||
|
|
||||||
Basics:
|
Basics:
|
||||||
- `clawdbot browser status`
|
- `clawdbot browser status`
|
||||||
- `clawdbot browser start`
|
- `clawdbot browser start`
|
||||||
- `clawdbot browser stop`
|
- `clawdbot browser stop`
|
||||||
- `clawdbot browser tabs`
|
- `clawdbot browser tabs`
|
||||||
|
- `clawdbot browser tab`
|
||||||
|
- `clawdbot browser tab new`
|
||||||
|
- `clawdbot browser tab select 2`
|
||||||
|
- `clawdbot browser tab close 2`
|
||||||
- `clawdbot browser open https://example.com`
|
- `clawdbot browser open https://example.com`
|
||||||
- `clawdbot browser focus abcd1234`
|
- `clawdbot browser focus abcd1234`
|
||||||
- `clawdbot browser close abcd1234`
|
- `clawdbot browser close abcd1234`
|
||||||
@@ -194,8 +205,12 @@ Inspection:
|
|||||||
- `clawdbot browser snapshot --format aria --limit 200`
|
- `clawdbot browser snapshot --format aria --limit 200`
|
||||||
- `clawdbot browser snapshot --interactive --compact --depth 6`
|
- `clawdbot browser snapshot --interactive --compact --depth 6`
|
||||||
- `clawdbot browser snapshot --selector "#main" --interactive`
|
- `clawdbot browser snapshot --selector "#main" --interactive`
|
||||||
|
- `clawdbot browser snapshot --frame "iframe#main" --interactive`
|
||||||
- `clawdbot browser console --level error`
|
- `clawdbot browser console --level error`
|
||||||
|
- `clawdbot browser errors --clear`
|
||||||
|
- `clawdbot browser requests --filter api --clear`
|
||||||
- `clawdbot browser pdf`
|
- `clawdbot browser pdf`
|
||||||
|
- `clawdbot browser responsebody "**/api" --max-chars 5000`
|
||||||
|
|
||||||
Actions:
|
Actions:
|
||||||
- `clawdbot browser navigate https://example.com`
|
- `clawdbot browser navigate https://example.com`
|
||||||
@@ -205,13 +220,38 @@ Actions:
|
|||||||
- `clawdbot browser type 23 "hello" --submit`
|
- `clawdbot browser type 23 "hello" --submit`
|
||||||
- `clawdbot browser press Enter`
|
- `clawdbot browser press Enter`
|
||||||
- `clawdbot browser hover 44`
|
- `clawdbot browser hover 44`
|
||||||
|
- `clawdbot browser scrollintoview e12`
|
||||||
- `clawdbot browser drag 10 11`
|
- `clawdbot browser drag 10 11`
|
||||||
- `clawdbot browser select 9 OptionA OptionB`
|
- `clawdbot browser select 9 OptionA OptionB`
|
||||||
|
- `clawdbot browser download e12 /tmp/report.pdf`
|
||||||
|
- `clawdbot browser waitfordownload /tmp/report.pdf`
|
||||||
- `clawdbot browser upload /tmp/file.pdf`
|
- `clawdbot browser upload /tmp/file.pdf`
|
||||||
- `clawdbot browser fill --fields '[{"ref":"1","type":"text","value":"Ada"}]'`
|
- `clawdbot browser fill --fields '[{"ref":"1","type":"text","value":"Ada"}]'`
|
||||||
- `clawdbot browser dialog --accept`
|
- `clawdbot browser dialog --accept`
|
||||||
- `clawdbot browser wait --text "Done"`
|
- `clawdbot browser wait --text "Done"`
|
||||||
|
- `clawdbot browser wait "#main" --url "**/dash" --load networkidle --fn "window.ready===true"`
|
||||||
- `clawdbot browser evaluate --fn '(el) => el.textContent' --ref 7`
|
- `clawdbot browser evaluate --fn '(el) => el.textContent' --ref 7`
|
||||||
|
- `clawdbot browser highlight e12`
|
||||||
|
- `clawdbot browser trace start`
|
||||||
|
- `clawdbot browser trace stop`
|
||||||
|
|
||||||
|
State:
|
||||||
|
- `clawdbot browser cookies`
|
||||||
|
- `clawdbot browser cookies set session abc123 --url "https://example.com"`
|
||||||
|
- `clawdbot browser cookies clear`
|
||||||
|
- `clawdbot browser storage local get`
|
||||||
|
- `clawdbot browser storage local set theme dark`
|
||||||
|
- `clawdbot browser storage session clear`
|
||||||
|
- `clawdbot browser set offline on`
|
||||||
|
- `clawdbot browser set headers --json '{"X-Debug":"1"}'`
|
||||||
|
- `clawdbot browser set credentials user pass`
|
||||||
|
- `clawdbot browser set credentials --clear`
|
||||||
|
- `clawdbot browser set geo 37.7749 -122.4194 --origin "https://example.com"`
|
||||||
|
- `clawdbot browser set geo --clear`
|
||||||
|
- `clawdbot browser set media dark`
|
||||||
|
- `clawdbot browser set timezone America/New_York`
|
||||||
|
- `clawdbot browser set locale en-US`
|
||||||
|
- `clawdbot browser set device "iPhone 14"`
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
- `upload` and `dialog` are **arming** calls; run them before the click/press
|
- `upload` and `dialog` are **arming** calls; run them before the click/press
|
||||||
@@ -221,10 +261,98 @@ Notes:
|
|||||||
- `--format ai` (default when Playwright is installed): returns an AI snapshot with numeric refs (`aria-ref="<n>"`).
|
- `--format ai` (default when Playwright is installed): returns an AI snapshot with numeric refs (`aria-ref="<n>"`).
|
||||||
- `--format aria`: returns the accessibility tree (no refs; inspection only).
|
- `--format aria`: returns the accessibility tree (no refs; inspection only).
|
||||||
- Role snapshot options (`--interactive`, `--compact`, `--depth`, `--selector`) force a role-based snapshot with refs like `ref=e12`.
|
- Role snapshot options (`--interactive`, `--compact`, `--depth`, `--selector`) force a role-based snapshot with refs like `ref=e12`.
|
||||||
|
- `--frame "<iframe selector>"` scopes role snapshots to an iframe (pairs with role refs like `e12`).
|
||||||
- `--interactive` outputs a flat, easy-to-pick list of interactive elements (best for driving actions).
|
- `--interactive` outputs a flat, easy-to-pick list of interactive elements (best for driving actions).
|
||||||
- `click`/`type`/etc require a `ref` from `snapshot` (either numeric `12` or role ref `e12`).
|
- `click`/`type`/etc require a `ref` from `snapshot` (either numeric `12` or role ref `e12`).
|
||||||
CSS selectors are intentionally not supported for actions.
|
CSS selectors are intentionally not supported for actions.
|
||||||
|
|
||||||
|
## Snapshots and refs
|
||||||
|
|
||||||
|
Clawdbot supports two “snapshot” styles:
|
||||||
|
|
||||||
|
- **AI snapshot (numeric refs)**: `clawdbot browser snapshot` (default; `--format ai`)
|
||||||
|
- Output: a text snapshot that includes numeric refs.
|
||||||
|
- Actions: `clawdbot browser click 12`, `clawdbot browser type 23 "hello"`.
|
||||||
|
- Internally, the ref is resolved via Playwright’s `aria-ref`.
|
||||||
|
|
||||||
|
- **Role snapshot (role refs like `e12`)**: `clawdbot browser snapshot --interactive` (or `--compact`, `--depth`, `--selector`, `--frame`)
|
||||||
|
- Output: a role-based list/tree with `[ref=e12]` (and optional `[nth=1]`).
|
||||||
|
- Actions: `clawdbot browser click e12`, `clawdbot browser highlight e12`.
|
||||||
|
- Internally, the ref is resolved via `getByRole(...)` (plus `nth()` for duplicates).
|
||||||
|
|
||||||
|
Ref behavior:
|
||||||
|
- Refs are **not stable across navigations**; if something fails, re-run `snapshot` and use a fresh ref.
|
||||||
|
- If the role snapshot was taken with `--frame`, role refs are scoped to that iframe until the next role snapshot.
|
||||||
|
|
||||||
|
## Wait power-ups
|
||||||
|
|
||||||
|
You can wait on more than just time/text:
|
||||||
|
|
||||||
|
- Wait for URL (globs supported by Playwright):
|
||||||
|
- `clawdbot browser wait --url "**/dash"`
|
||||||
|
- Wait for load state:
|
||||||
|
- `clawdbot browser wait --load networkidle`
|
||||||
|
- Wait for a JS predicate:
|
||||||
|
- `clawdbot browser wait --fn "window.ready===true"`
|
||||||
|
- Wait for a selector to become visible:
|
||||||
|
- `clawdbot browser wait "#main"`
|
||||||
|
|
||||||
|
These can be combined:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
clawdbot browser wait "#main" \
|
||||||
|
--url "**/dash" \
|
||||||
|
--load networkidle \
|
||||||
|
--fn "window.ready===true" \
|
||||||
|
--timeout-ms 15000
|
||||||
|
```
|
||||||
|
|
||||||
|
## Debug workflows
|
||||||
|
|
||||||
|
When an action fails (e.g. “not visible”, “strict mode violation”, “covered”):
|
||||||
|
|
||||||
|
1. `clawdbot browser snapshot --interactive`
|
||||||
|
2. Use `click <ref>` / `type <ref>` (prefer role refs in interactive mode)
|
||||||
|
3. If it still fails: `clawdbot browser highlight <ref>` to see what Playwright is targeting
|
||||||
|
4. If the page behaves oddly:
|
||||||
|
- `clawdbot browser errors --clear`
|
||||||
|
- `clawdbot browser requests --filter api --clear`
|
||||||
|
5. For deep debugging: record a trace:
|
||||||
|
- `clawdbot browser trace start`
|
||||||
|
- reproduce the issue
|
||||||
|
- `clawdbot browser trace stop` (prints `TRACE:<path>`)
|
||||||
|
|
||||||
|
## JSON output
|
||||||
|
|
||||||
|
`--json` is for scripting and structured tooling.
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
clawdbot browser status --json
|
||||||
|
clawdbot browser snapshot --interactive --json
|
||||||
|
clawdbot browser requests --filter api --json
|
||||||
|
clawdbot browser cookies --json
|
||||||
|
```
|
||||||
|
|
||||||
|
Role snapshots in JSON include `refs` plus a small `stats` block (lines/chars/refs/interactive) so tools can reason about payload size and density.
|
||||||
|
|
||||||
|
## State and environment knobs
|
||||||
|
|
||||||
|
These are useful for “make the site behave like X” workflows:
|
||||||
|
|
||||||
|
- Cookies: `cookies`, `cookies set`, `cookies clear`
|
||||||
|
- Storage: `storage local|session get|set|clear`
|
||||||
|
- Offline: `set offline on|off`
|
||||||
|
- Headers: `set headers --json '{"X-Debug":"1"}'` (or `--clear`)
|
||||||
|
- HTTP basic auth: `set credentials user pass` (or `--clear`)
|
||||||
|
- Geolocation: `set geo <lat> <lon> --origin "https://example.com"` (or `--clear`)
|
||||||
|
- Media: `set media dark|light|no-preference|none`
|
||||||
|
- Timezone / locale: `set timezone ...`, `set locale ...`
|
||||||
|
- Device / viewport:
|
||||||
|
- `set device "iPhone 14"` (Playwright device presets)
|
||||||
|
- `set viewport 1280 720`
|
||||||
|
|
||||||
## Security & privacy
|
## Security & privacy
|
||||||
|
|
||||||
- The clawd browser profile may contain logged-in sessions; treat it as sensitive.
|
- The clawd browser profile may contain logged-in sessions; treat it as sensitive.
|
||||||
|
|||||||
@@ -42,13 +42,9 @@ npm i -g clawdhub
|
|||||||
pnpm add -g clawdhub
|
pnpm add -g clawdhub
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
|
||||||
bun add -g clawdhub
|
|
||||||
```
|
|
||||||
|
|
||||||
## How it fits into Clawdbot
|
## How it fits into Clawdbot
|
||||||
|
|
||||||
By default, the CLI installs skills into `./skills` under your current working directory. Clawdbot loads workspace skills from `<workspace>/skills` and will pick them up in the **next** session. If you already use `~/.clawdbot/skills` or bundled skills, workspace skills take precedence.
|
By default, the CLI installs skills into `./skills` under your current working directory. If a Clawdbot workspace is configured, `clawdhub` falls back to that workspace unless you override `--workdir` (or `CLAWDHUB_WORKDIR`). Clawdbot loads workspace skills from `<workspace>/skills` and will pick them up in the **next** session. If you already use `~/.clawdbot/skills` or bundled skills, workspace skills take precedence.
|
||||||
|
|
||||||
For more detail on how skills are loaded, shared, and gated, see
|
For more detail on how skills are loaded, shared, and gated, see
|
||||||
[Skills](/tools/skills).
|
[Skills](/tools/skills).
|
||||||
@@ -67,7 +63,7 @@ For more detail on how skills are loaded, shared, and gated, see
|
|||||||
|
|
||||||
Global options (apply to all commands):
|
Global options (apply to all commands):
|
||||||
|
|
||||||
- `--workdir <dir>`: Working directory (default: current dir).
|
- `--workdir <dir>`: Working directory (default: current dir; falls back to Clawdbot workspace).
|
||||||
- `--dir <dir>`: Skills directory, relative to workdir (default: `skills`).
|
- `--dir <dir>`: Skills directory, relative to workdir (default: `skills`).
|
||||||
- `--site <url>`: Site base URL (browser login).
|
- `--site <url>`: Site base URL (browser login).
|
||||||
- `--registry <url>`: Registry API base URL.
|
- `--registry <url>`: Registry API base URL.
|
||||||
@@ -201,4 +197,5 @@ export CLAWDHUB_DISABLE_TELEMETRY=1
|
|||||||
- `CLAWDHUB_SITE`: Override the site URL.
|
- `CLAWDHUB_SITE`: Override the site URL.
|
||||||
- `CLAWDHUB_REGISTRY`: Override the registry API URL.
|
- `CLAWDHUB_REGISTRY`: Override the registry API URL.
|
||||||
- `CLAWDHUB_CONFIG_PATH`: Override where the CLI stores the token/config.
|
- `CLAWDHUB_CONFIG_PATH`: Override where the CLI stores the token/config.
|
||||||
|
- `CLAWDHUB_WORKDIR`: Override the default workdir.
|
||||||
- `CLAWDHUB_DISABLE_TELEMETRY=1`: Disable telemetry on `sync`.
|
- `CLAWDHUB_DISABLE_TELEMETRY=1`: Disable telemetry on `sync`.
|
||||||
@@ -7,6 +7,7 @@ read_when:
|
|||||||
|
|
||||||
## What it does
|
## What it does
|
||||||
- Elevated mode allows the exec tool to run with elevated privileges when the feature is available and the sender is approved.
|
- Elevated mode allows the exec tool to run with elevated privileges when the feature is available and the sender is approved.
|
||||||
|
- The bash chat command (`!`; `/bash` alias) uses the same `tools.elevated` allowlists because it always runs on the host.
|
||||||
- **Optional for sandboxed agents**: elevated only changes behavior when the agent is running in a sandbox. If the agent already runs unsandboxed, elevated is effectively a no-op.
|
- **Optional for sandboxed agents**: elevated only changes behavior when the agent is running in a sandbox. If the agent already runs unsandboxed, elevated is effectively a no-op.
|
||||||
- Directive forms: `/elevated on`, `/elevated off`, `/elev on`, `/elev off`.
|
- Directive forms: `/elevated on`, `/elevated off`, `/elev on`, `/elev off`.
|
||||||
- Only `on|off` are accepted; anything else returns a hint and does not change state.
|
- Only `on|off` are accepted; anything else returns a hint and does not change state.
|
||||||
|
|||||||
+73
-1
@@ -22,6 +22,77 @@ You can globally allow/deny tools via `tools.allow` / `tools.deny` in `clawdbot.
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Tool profiles (base allowlist)
|
||||||
|
|
||||||
|
`tools.profile` sets a **base tool allowlist** before `tools.allow`/`tools.deny`.
|
||||||
|
Per-agent override: `agents.list[].tools.profile`.
|
||||||
|
|
||||||
|
Profiles:
|
||||||
|
- `minimal`: `session_status` only
|
||||||
|
- `coding`: `group:fs`, `group:runtime`, `group:sessions`, `group:memory`, `image`
|
||||||
|
- `messaging`: `group:messaging`, `sessions_list`, `sessions_history`, `sessions_send`, `session_status`
|
||||||
|
- `full`: no restriction (same as unset)
|
||||||
|
|
||||||
|
Example (messaging-only by default, allow Slack + Discord tools too):
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
tools: {
|
||||||
|
profile: "messaging",
|
||||||
|
allow: ["slack", "discord"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Example (coding profile, but deny exec/process everywhere):
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
tools: {
|
||||||
|
profile: "coding",
|
||||||
|
deny: ["group:runtime"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Example (global coding profile, messaging-only support agent):
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
tools: { profile: "coding" },
|
||||||
|
agents: {
|
||||||
|
list: [
|
||||||
|
{
|
||||||
|
id: "support",
|
||||||
|
tools: { profile: "messaging", allow: ["slack"] }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Tool groups (shorthands)
|
||||||
|
|
||||||
|
Tool policies (global, agent, sandbox) support `group:*` entries that expand to multiple tools.
|
||||||
|
Use these in `tools.allow` / `tools.deny`.
|
||||||
|
|
||||||
|
Available groups:
|
||||||
|
- `group:runtime`: `exec`, `bash`, `process`
|
||||||
|
- `group:fs`: `read`, `write`, `edit`, `apply_patch`
|
||||||
|
- `group:sessions`: `sessions_list`, `sessions_history`, `sessions_send`, `sessions_spawn`, `session_status`
|
||||||
|
- `group:memory`: `memory_search`, `memory_get`
|
||||||
|
- `group:ui`: `browser`, `canvas`
|
||||||
|
- `group:automation`: `cron`, `gateway`
|
||||||
|
- `group:messaging`: `message`
|
||||||
|
- `group:nodes`: `nodes`
|
||||||
|
- `group:clawdbot`: all built-in Clawdbot tools (excludes provider plugins)
|
||||||
|
|
||||||
|
Example (allow only file tools + browser):
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
tools: {
|
||||||
|
allow: ["group:fs", "browser"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Plugins + tools
|
## Plugins + tools
|
||||||
|
|
||||||
Plugins can register **additional tools** (and CLI commands) beyond the core set.
|
Plugins can register **additional tools** (and CLI commands) beyond the core set.
|
||||||
@@ -153,7 +224,7 @@ Core parameters:
|
|||||||
- `maxBytesMb` (optional size cap)
|
- `maxBytesMb` (optional size cap)
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
- Only available when `agents.defaults.imageModel` is configured (primary or fallbacks).
|
- Only available when `agents.defaults.imageModel` is configured (primary or fallbacks), or when an implicit image model can be inferred from your default model + configured auth (best-effort pairing).
|
||||||
- Uses the image model directly (independent of the main chat model).
|
- Uses the image model directly (independent of the main chat model).
|
||||||
|
|
||||||
### `message`
|
### `message`
|
||||||
@@ -179,6 +250,7 @@ Core actions:
|
|||||||
Notes:
|
Notes:
|
||||||
- `send` routes WhatsApp via the Gateway; other providers go direct.
|
- `send` routes WhatsApp via the Gateway; other providers go direct.
|
||||||
- `poll` uses the Gateway for WhatsApp and MS Teams; Discord polls go direct.
|
- `poll` uses the Gateway for WhatsApp and MS Teams; Discord polls go direct.
|
||||||
|
- When a message tool call is bound to an active chat session, sends are constrained to that session’s target to avoid cross-context leaks.
|
||||||
|
|
||||||
### `cron`
|
### `cron`
|
||||||
Manage Gateway cron jobs and wakeups.
|
Manage Gateway cron jobs and wakeups.
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ All skills-related configuration lives under `skills` in `~/.clawdbot/clawdbot.j
|
|||||||
},
|
},
|
||||||
install: {
|
install: {
|
||||||
preferBrew: true,
|
preferBrew: true,
|
||||||
nodeManager: "npm" // npm | pnpm | yarn | bun
|
nodeManager: "npm" // npm | pnpm | yarn | bun (Gateway runtime still Node; bun not recommended)
|
||||||
},
|
},
|
||||||
entries: {
|
entries: {
|
||||||
"nano-banana-pro": {
|
"nano-banana-pro": {
|
||||||
@@ -44,6 +44,8 @@ All skills-related configuration lives under `skills` in `~/.clawdbot/clawdbot.j
|
|||||||
- `load.extraDirs`: additional skill directories to scan (lowest precedence).
|
- `load.extraDirs`: additional skill directories to scan (lowest precedence).
|
||||||
- `install.preferBrew`: prefer brew installers when available (default: true).
|
- `install.preferBrew`: prefer brew installers when available (default: true).
|
||||||
- `install.nodeManager`: node installer preference (`npm` | `pnpm` | `yarn` | `bun`, default: npm).
|
- `install.nodeManager`: node installer preference (`npm` | `pnpm` | `yarn` | `bun`, default: npm).
|
||||||
|
This only affects **skill installs**; the Gateway runtime should still be Node
|
||||||
|
(Bun not recommended for WhatsApp/Telegram).
|
||||||
- `entries.<skillKey>`: per-skill overrides.
|
- `entries.<skillKey>`: per-skill overrides.
|
||||||
|
|
||||||
Per-skill fields:
|
Per-skill fields:
|
||||||
|
|||||||
@@ -45,8 +45,9 @@ surface those skills teach.
|
|||||||
|
|
||||||
## ClawdHub (install + sync)
|
## ClawdHub (install + sync)
|
||||||
|
|
||||||
ClawdHub is the public skills registry for Clawdbot. Use it to discover,
|
ClawdHub is the public skills registry for Clawdbot. Browse at
|
||||||
install, update, and back up skills. Full guide: [ClawdHub](/tools/clawdhub).
|
https://clawdhub.com. Use it to discover, install, update, and back up skills.
|
||||||
|
Full guide: [ClawdHub](/tools/clawdhub).
|
||||||
|
|
||||||
Common flows:
|
Common flows:
|
||||||
|
|
||||||
@@ -58,7 +59,8 @@ Common flows:
|
|||||||
- `clawdhub sync --all`
|
- `clawdhub sync --all`
|
||||||
|
|
||||||
By default, `clawdhub` installs into `./skills` under your current working
|
By default, `clawdhub` installs into `./skills` under your current working
|
||||||
directory; Clawdbot picks that up as `<workspace>/skills` on the next session.
|
directory (or falls back to the configured Clawdbot workspace). Clawdbot picks
|
||||||
|
that up as `<workspace>/skills` on the next session.
|
||||||
|
|
||||||
## Format (AgentSkills + Pi-compatible)
|
## Format (AgentSkills + Pi-compatible)
|
||||||
|
|
||||||
@@ -116,6 +118,8 @@ metadata: {"clawdbot":{"emoji":"♊️","requires":{"bins":["gemini"]},"install"
|
|||||||
Notes:
|
Notes:
|
||||||
- If multiple installers are listed, the gateway picks a **single** preferred option (brew when available, otherwise node).
|
- If multiple installers are listed, the gateway picks a **single** preferred option (brew when available, otherwise node).
|
||||||
- Node installs honor `skills.install.nodeManager` in `clawdbot.json` (default: npm; options: npm/pnpm/yarn/bun).
|
- Node installs honor `skills.install.nodeManager` in `clawdbot.json` (default: npm; options: npm/pnpm/yarn/bun).
|
||||||
|
This only affects **skill installs**; the Gateway runtime should still be Node
|
||||||
|
(Bun is not recommended for WhatsApp/Telegram).
|
||||||
- Go installs: if `go` is missing and `brew` is available, the gateway installs Go via Homebrew first and sets `GOBIN` to Homebrew’s `bin` when possible.
|
- Go installs: if `go` is missing and `brew` is available, the gateway installs Go via Homebrew first and sets `GOBIN` to Homebrew’s `bin` when possible.
|
||||||
|
|
||||||
If no `metadata.clawdbot` is present, the skill is always eligible (unless
|
If no `metadata.clawdbot` is present, the skill is always eligible (unless
|
||||||
@@ -200,6 +204,6 @@ See [Skills config](/tools/skills-config) for the full configuration schema.
|
|||||||
|
|
||||||
## Looking for more skills?
|
## Looking for more skills?
|
||||||
|
|
||||||
Browse [ClawdHub](/tools/clawdhub).
|
Browse https://clawdhub.com.
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -7,6 +7,7 @@ read_when:
|
|||||||
# Slash commands
|
# Slash commands
|
||||||
|
|
||||||
Commands are handled by the Gateway. Most commands must be sent as a **standalone** message that starts with `/`.
|
Commands are handled by the Gateway. Most commands must be sent as a **standalone** message that starts with `/`.
|
||||||
|
The host-only bash chat command uses `! <cmd>` (with `/bash <cmd>` as an alias).
|
||||||
|
|
||||||
There are two related systems:
|
There are two related systems:
|
||||||
|
|
||||||
@@ -24,8 +25,10 @@ They run immediately, are stripped before the model sees the message, and the re
|
|||||||
```json5
|
```json5
|
||||||
{
|
{
|
||||||
commands: {
|
commands: {
|
||||||
native: false,
|
native: "auto",
|
||||||
text: true,
|
text: true,
|
||||||
|
bash: false,
|
||||||
|
bashForegroundMs: 2000,
|
||||||
config: false,
|
config: false,
|
||||||
debug: false,
|
debug: false,
|
||||||
restart: false,
|
restart: false,
|
||||||
@@ -36,9 +39,12 @@ They run immediately, are stripped before the model sees the message, and the re
|
|||||||
|
|
||||||
- `commands.text` (default `true`) enables parsing `/...` in chat messages.
|
- `commands.text` (default `true`) enables parsing `/...` in chat messages.
|
||||||
- On surfaces without native commands (WhatsApp/WebChat/Signal/iMessage/MS Teams), text commands still work even if you set this to `false`.
|
- On surfaces without native commands (WhatsApp/WebChat/Signal/iMessage/MS Teams), text commands still work even if you set this to `false`.
|
||||||
- `commands.native` (default `false`) registers native commands on Discord/Slack/Telegram.
|
- `commands.native` (default `"auto"`) registers native commands.
|
||||||
- `false` clears previously registered commands on Discord/Telegram at startup.
|
- Auto: on for Discord/Telegram; off for Slack (until you add slash commands); ignored for providers without native support.
|
||||||
- Slack commands are managed in the Slack app and are not removed automatically.
|
- Set `discord.commands.native`, `telegram.commands.native`, or `slack.commands.native` to override per provider (bool or `"auto"`).
|
||||||
|
- `false` clears previously registered commands on Discord/Telegram at startup. Slack commands are managed in the Slack app and are not removed automatically.
|
||||||
|
- `commands.bash` (default `false`) enables `! <cmd>` to run host shell commands (`/bash <cmd>` is an alias; requires `tools.elevated` allowlists).
|
||||||
|
- `commands.bashForegroundMs` (default `2000`) controls how long bash waits before switching to background mode (`0` backgrounds immediately).
|
||||||
- `commands.config` (default `false`) enables `/config` (reads/writes `clawdbot.json`).
|
- `commands.config` (default `false`) enables `/config` (reads/writes `clawdbot.json`).
|
||||||
- `commands.debug` (default `false`) enables `/debug` (runtime-only overrides).
|
- `commands.debug` (default `false`) enables `/debug` (runtime-only overrides).
|
||||||
- `commands.useAccessGroups` (default `true`) enforces allowlists/policies for commands.
|
- `commands.useAccessGroups` (default `true`) enforces allowlists/policies for commands.
|
||||||
@@ -59,15 +65,19 @@ Text + native (when enabled):
|
|||||||
- `/activation mention|always` (groups only)
|
- `/activation mention|always` (groups only)
|
||||||
- `/send on|off|inherit` (owner-only)
|
- `/send on|off|inherit` (owner-only)
|
||||||
- `/reset` or `/new`
|
- `/reset` or `/new`
|
||||||
- `/think <level>` (aliases: `/thinking`, `/t`)
|
- `/think <off|minimal|low|medium|high|xhigh>` (GPT-5.2 + Codex models only; aliases: `/thinking`, `/t`)
|
||||||
- `/verbose on|off` (alias: `/v`)
|
- `/verbose on|off` (alias: `/v`)
|
||||||
- `/reasoning on|off|stream` (alias: `/reason`; when on, sends a separate message prefixed `Reasoning:`; `stream` = Telegram draft only)
|
- `/reasoning on|off|stream` (alias: `/reason`; when on, sends a separate message prefixed `Reasoning:`; `stream` = Telegram draft only)
|
||||||
- `/elevated on|off` (alias: `/elev`)
|
- `/elevated on|off` (alias: `/elev`)
|
||||||
- `/model <name>` (alias: `/models`; or `/<alias>` from `agents.defaults.models.*.alias`)
|
- `/model <name>` (alias: `/models`; or `/<alias>` from `agents.defaults.models.*.alias`)
|
||||||
- `/queue <mode>` (plus options like `debounce:2s cap:25 drop:summarize`; send `/queue` to see current settings)
|
- `/queue <mode>` (plus options like `debounce:2s cap:25 drop:summarize`; send `/queue` to see current settings)
|
||||||
|
- `/bash <command>` (host-only; alias for `! <command>`; requires `commands.bash: true` + `tools.elevated` allowlists)
|
||||||
|
|
||||||
Text-only:
|
Text-only:
|
||||||
- `/compact [instructions]` (see [/concepts/compaction](/concepts/compaction))
|
- `/compact [instructions]` (see [/concepts/compaction](/concepts/compaction))
|
||||||
|
- `! <command>` (host-only; one at a time; use `!poll` + `!stop` for long-running jobs)
|
||||||
|
- `!poll` (check output / status; accepts optional `sessionId`; `/bash poll` also works)
|
||||||
|
- `!stop` (stop the running bash job; accepts optional `sessionId`; `/bash stop` also works)
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
- Commands accept an optional `:` between the command and args (e.g. `/think: high`, `/send: on`, `/help:`).
|
- Commands accept an optional `:` between the command and args (e.g. `/think: high`, `/send: on`, `/help:`).
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ Primary goals:
|
|||||||
Use `sessions_spawn`:
|
Use `sessions_spawn`:
|
||||||
- Starts a sub-agent run (`deliver: false`, global lane: `subagent`)
|
- Starts a sub-agent run (`deliver: false`, global lane: `subagent`)
|
||||||
- Then runs an announce step and posts the announce reply to the requester chat provider
|
- Then runs an announce step and posts the announce reply to the requester chat provider
|
||||||
|
- Default model: inherits the caller unless you set `agents.defaults.subagents.model` (or per-agent `agents.list[].subagents.model`); an explicit `sessions_spawn.model` still wins.
|
||||||
|
|
||||||
Tool params:
|
Tool params:
|
||||||
- `task` (required)
|
- `task` (required)
|
||||||
|
|||||||
@@ -7,11 +7,12 @@ read_when:
|
|||||||
|
|
||||||
## What it does
|
## What it does
|
||||||
- Inline directive in any inbound body: `/t <level>`, `/think:<level>`, or `/thinking <level>`.
|
- Inline directive in any inbound body: `/t <level>`, `/think:<level>`, or `/thinking <level>`.
|
||||||
- Levels (aliases): `off | minimal | low | medium | high`
|
- Levels (aliases): `off | minimal | low | medium | high | xhigh` (GPT-5.2 + Codex models only)
|
||||||
- minimal → “think”
|
- minimal → “think”
|
||||||
- low → “think hard”
|
- low → “think hard”
|
||||||
- medium → “think harder”
|
- medium → “think harder”
|
||||||
- high → “ultrathink” (max budget)
|
- high → “ultrathink” (max budget)
|
||||||
|
- xhigh → “ultrathink+” (GPT-5.2 + Codex models only)
|
||||||
- `highest`, `max` map to `high`.
|
- `highest`, `max` map to `high`.
|
||||||
|
|
||||||
## Resolution order
|
## Resolution order
|
||||||
|
|||||||
@@ -77,8 +77,12 @@ clawdbot gateway --tailscale serve
|
|||||||
Open:
|
Open:
|
||||||
- `https://<magicdns>/` (or your configured `gateway.controlUi.basePath`)
|
- `https://<magicdns>/` (or your configured `gateway.controlUi.basePath`)
|
||||||
|
|
||||||
By default, the gateway trusts Tailscale identity headers in serve mode. You can still set
|
By default, Serve requests can authenticate via Tailscale identity headers
|
||||||
`gateway.auth` (or `CLAWDBOT_GATEWAY_TOKEN`) if you want a shared secret instead.
|
(`tailscale-user-login`) when `gateway.auth.allowTailscale` is `true`. Clawdbot
|
||||||
|
only accepts these when the request hits loopback with Tailscale’s
|
||||||
|
`x-forwarded-*` headers. Set `gateway.auth.allowTailscale: false` (or force
|
||||||
|
`gateway.auth.mode: "password"`) if you want to require a token/password even
|
||||||
|
for Serve traffic.
|
||||||
|
|
||||||
### Bind to tailnet + token
|
### Bind to tailnet + token
|
||||||
|
|
||||||
|
|||||||
@@ -18,3 +18,21 @@ Key references:
|
|||||||
|
|
||||||
Authentication is enforced at the WebSocket handshake via `connect.params.auth`
|
Authentication is enforced at the WebSocket handshake via `connect.params.auth`
|
||||||
(token or password). See `gateway.auth` in [Gateway configuration](/gateway/configuration).
|
(token or password). See `gateway.auth` in [Gateway configuration](/gateway/configuration).
|
||||||
|
|
||||||
|
## Fast path (recommended)
|
||||||
|
|
||||||
|
- After onboarding, the CLI now auto-opens the dashboard with your token and prints the same tokenized link.
|
||||||
|
- Re-open anytime: `clawdbot dashboard` (copies link, opens browser if possible, shows SSH hint if headless).
|
||||||
|
- The token stays local (query param only); the UI strips it after first load and saves it in localStorage.
|
||||||
|
|
||||||
|
## Token basics (local vs remote)
|
||||||
|
|
||||||
|
- **Localhost**: open `http://127.0.0.1:18789/`. If you see “unauthorized,” run `clawdbot dashboard` and use the tokenized link (`?token=...`).
|
||||||
|
- **Token source**: `gateway.auth.token` (or `CLAWDBOT_GATEWAY_TOKEN`); the UI stores it after first load.
|
||||||
|
- **Not localhost**: use Tailscale Serve (tokenless if `gateway.auth.allowTailscale: true`), tailnet bind with a token, or an SSH tunnel. See [Web surfaces](/web).
|
||||||
|
|
||||||
|
## If you see “unauthorized” / 1008
|
||||||
|
|
||||||
|
- Run `clawdbot dashboard` to get a fresh tokenized link.
|
||||||
|
- Ensure the gateway is reachable (local: `clawdbot status`; remote: SSH tunnel `ssh -N -L 18789:127.0.0.1:18789 user@host` then open `http://127.0.0.1:18789/?token=...`).
|
||||||
|
- In the dashboard settings, paste the same token you configured in `gateway.auth.token` (or `CLAWDBOT_GATEWAY_TOKEN`).
|
||||||
+4
-1
@@ -94,7 +94,10 @@ Open:
|
|||||||
- Binding the Gateway to a non-loopback address **requires** auth (`gateway.auth` or `CLAWDBOT_GATEWAY_TOKEN`).
|
- Binding the Gateway to a non-loopback address **requires** auth (`gateway.auth` or `CLAWDBOT_GATEWAY_TOKEN`).
|
||||||
- The wizard generates a gateway token by default (even on loopback).
|
- The wizard generates a gateway token by default (even on loopback).
|
||||||
- The UI sends `connect.params.auth.token` or `connect.params.auth.password`.
|
- The UI sends `connect.params.auth.token` or `connect.params.auth.password`.
|
||||||
- Use `gateway.auth.allowTailscale: false` to require explicit credentials even in Serve mode.
|
- With Serve, Tailscale identity headers can satisfy auth when
|
||||||
|
`gateway.auth.allowTailscale` is `true` (no token/password required). Set
|
||||||
|
`gateway.auth.allowTailscale: false` to require explicit credentials. See
|
||||||
|
[Tailscale](/gateway/tailscale) and [Security](/gateway/security).
|
||||||
- `gateway.tailscale.mode: "funnel"` requires `gateway.auth.mode: "password"` (shared password).
|
- `gateway.tailscale.mode: "funnel"` requires `gateway.auth.mode: "password"` (shared password).
|
||||||
|
|
||||||
## Building the UI
|
## Building the UI
|
||||||
|
|||||||
+4
-1
@@ -50,7 +50,7 @@ Use SSH tunneling or Tailscale to reach the Gateway WS.
|
|||||||
- `/agent <id>` (or `/agents`)
|
- `/agent <id>` (or `/agents`)
|
||||||
- `/session <key>` (or `/sessions`)
|
- `/session <key>` (or `/sessions`)
|
||||||
- `/model <provider/model>` (or `/model list`, `/models`)
|
- `/model <provider/model>` (or `/model list`, `/models`)
|
||||||
- `/think <off|minimal|low|medium|high>`
|
- `/think <off|minimal|low|medium|high|xhigh>` (GPT-5.2 + Codex models only)
|
||||||
- `/verbose <on|off>`
|
- `/verbose <on|off>`
|
||||||
- `/reasoning <on|off|stream>` (stream = Telegram draft only)
|
- `/reasoning <on|off|stream>` (stream = Telegram draft only)
|
||||||
- `/cost <on|off>`
|
- `/cost <on|off>`
|
||||||
@@ -67,3 +67,6 @@ Use SSH tunneling or Tailscale to reach the Gateway WS.
|
|||||||
## Notes
|
## Notes
|
||||||
- The TUI shows Gateway chat deltas (`event: chat`) and agent tool events.
|
- The TUI shows Gateway chat deltas (`event: chat`) and agent tool events.
|
||||||
- It registers as a Gateway client with `mode: "tui"` for presence and debugging.
|
- It registers as a Gateway client with `mode: "tui"` for presence and debugging.
|
||||||
|
- The TUI uses the **Gateway’s** model/auth config and environment. If a model
|
||||||
|
token works in your shell but not in TUI, put it in `~/.clawdbot/.env` or
|
||||||
|
enable `env.shellEnv.enabled`, then restart the Gateway.
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
## 0.1.0
|
||||||
|
|
||||||
|
### Highlights
|
||||||
|
- Initial release of the @clawdbot/voice-call plugin.
|
||||||
|
|
||||||
|
### Changes
|
||||||
|
- Providers: Twilio (Programmable Voice + Media Streams), Telnyx (Call Control v2), and mock dev provider.
|
||||||
|
- Outbound calls: notify mode with auto-hangup + conversation mode for multi-turn calls.
|
||||||
|
- Inbound calls: policies (disabled/allowlist/open), allowlist matching, and inbound greeting.
|
||||||
|
- Webhooks: local server with configurable bind/port/path plus publicUrl override.
|
||||||
|
- Exposure: ngrok and Tailscale (serve/funnel) tunnel helpers; dev-only signature bypass for ngrok free tier.
|
||||||
|
- Streaming: OpenAI Realtime STT with media stream WebSocket + partial/final transcripts.
|
||||||
|
- Speech: OpenAI TTS (model/voice/instructions) with Twilio <Say> fallback.
|
||||||
|
- Tooling: `voice_call` tool with action-based API for initiate/continue/speak/end/status.
|
||||||
|
- CLI: `clawdbot voicecall` commands (call/start/continue/speak/end/status/tail/expose).
|
||||||
|
- RPC: gateway methods (`voicecall.initiate|continue|speak|end|status` + legacy `voicecall.start`).
|
||||||
|
- Persistence: JSONL call logs with `voicecall tail` for live inspection.
|
||||||
@@ -2,8 +2,10 @@
|
|||||||
|
|
||||||
Official Voice Call plugin for **Clawdbot**.
|
Official Voice Call plugin for **Clawdbot**.
|
||||||
|
|
||||||
- Provider: **Twilio** (real outbound calls)
|
Providers:
|
||||||
- Dev fallback: `log` (no network)
|
- **Twilio** (Programmable Voice + Media Streams)
|
||||||
|
- **Telnyx** (Call Control v2)
|
||||||
|
- **Mock** (dev/no network)
|
||||||
|
|
||||||
Docs: `https://docs.clawd.bot/plugins/voice-call`
|
Docs: `https://docs.clawd.bot/plugins/voice-call`
|
||||||
Plugin system: `https://docs.clawd.bot/plugin`
|
Plugin system: `https://docs.clawd.bot/plugin`
|
||||||
@@ -26,83 +28,80 @@ cp -R extensions/voice-call ~/.clawdbot/extensions/voice-call
|
|||||||
cd ~/.clawdbot/extensions/voice-call && pnpm install
|
cd ~/.clawdbot/extensions/voice-call && pnpm install
|
||||||
```
|
```
|
||||||
|
|
||||||
### Option C: add via config (custom path)
|
|
||||||
|
|
||||||
```json5
|
|
||||||
{
|
|
||||||
plugins: {
|
|
||||||
load: { paths: ["/absolute/path/to/voice-call/index.ts"] },
|
|
||||||
entries: { "voice-call": { enabled: true, config: { provider: "log" } } }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
Restart the Gateway after changes.
|
|
||||||
|
|
||||||
## Config
|
## Config
|
||||||
|
|
||||||
Put under `plugins.entries.voice-call.config`:
|
Put under `plugins.entries.voice-call.config`:
|
||||||
|
|
||||||
```json5
|
```json5
|
||||||
{
|
{
|
||||||
provider: "twilio",
|
provider: "twilio", // or "telnyx" | "mock"
|
||||||
|
fromNumber: "+15550001234",
|
||||||
|
toNumber: "+15550005678",
|
||||||
|
|
||||||
twilio: {
|
twilio: {
|
||||||
accountSid: "ACxxxxxxxx",
|
accountSid: "ACxxxxxxxx",
|
||||||
authToken: "your_token",
|
authToken: "your_token"
|
||||||
from: "+15551234567",
|
},
|
||||||
statusCallbackUrl: "https://example.com/twilio-status", // optional
|
|
||||||
twimlUrl: "https://example.com/twiml" // optional, else auto-generates <Say>
|
// Webhook server
|
||||||
|
serve: {
|
||||||
|
port: 3334,
|
||||||
|
path: "/voice/webhook"
|
||||||
|
},
|
||||||
|
|
||||||
|
// Public exposure (pick one):
|
||||||
|
// publicUrl: "https://example.ngrok.app/voice/webhook",
|
||||||
|
// tunnel: { provider: "ngrok" },
|
||||||
|
// tailscale: { mode: "funnel", path: "/voice/webhook" }
|
||||||
|
|
||||||
|
outbound: {
|
||||||
|
defaultMode: "notify" // or "conversation"
|
||||||
|
},
|
||||||
|
|
||||||
|
streaming: {
|
||||||
|
enabled: true,
|
||||||
|
streamPath: "/voice/stream"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Dev fallback (no network):
|
Notes:
|
||||||
|
- Twilio/Telnyx require a **publicly reachable** webhook URL.
|
||||||
```json5
|
- `mock` is a local dev provider (no network calls).
|
||||||
{ provider: "log" }
|
|
||||||
```
|
|
||||||
|
|
||||||
## Twilio credentials (quick notes)
|
|
||||||
|
|
||||||
You’ll need a Twilio account, your **Account SID**, your **Auth Token**, and a Twilio **Voice-capable** phone number to use as `from`.
|
|
||||||
|
|
||||||
- Signup: `https://www.twilio.com/`
|
|
||||||
- Console: `https://console.twilio.com/`
|
|
||||||
|
|
||||||
Full setup guide: `https://docs.clawd.bot/plugins/voice-call`
|
|
||||||
|
|
||||||
## CLI
|
## CLI
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
clawdbot voicecall start --to "+15555550123" --message "Hello from Clawdbot"
|
clawdbot voicecall call --to "+15555550123" --message "Hello from Clawdbot"
|
||||||
clawdbot voicecall status --sid CAxxxxxxxx
|
clawdbot voicecall continue --call-id <id> --message "Any questions?"
|
||||||
|
clawdbot voicecall speak --call-id <id> --message "One moment"
|
||||||
|
clawdbot voicecall end --call-id <id>
|
||||||
|
clawdbot voicecall status --call-id <id>
|
||||||
|
clawdbot voicecall tail
|
||||||
|
clawdbot voicecall expose --mode funnel
|
||||||
```
|
```
|
||||||
|
|
||||||
## Tool
|
## Tool
|
||||||
|
|
||||||
Tool name: `voice_call`
|
Tool name: `voice_call`
|
||||||
|
|
||||||
Parameters:
|
Actions:
|
||||||
- `mode`: `"call" | "status"` (default: `call`)
|
- `initiate_call` (message, to?, mode?)
|
||||||
- `to`: target string (required for call)
|
- `continue_call` (callId, message)
|
||||||
- `sid`: call SID (required for status)
|
- `speak_to_user` (callId, message)
|
||||||
- `message`: optional intro text
|
- `end_call` (callId)
|
||||||
|
- `get_status` (callId)
|
||||||
|
|
||||||
## Gateway RPC
|
## Gateway RPC
|
||||||
|
|
||||||
- `voicecall.start` (to, message?)
|
- `voicecall.initiate` (to?, message, mode?)
|
||||||
- `voicecall.status` (sid)
|
- `voicecall.continue` (callId, message)
|
||||||
|
- `voicecall.speak` (callId, message)
|
||||||
## Skill
|
- `voicecall.end` (callId)
|
||||||
|
- `voicecall.status` (callId)
|
||||||
The repo includes `skills/voice-call/SKILL.md` for agent guidance. Enable it by
|
|
||||||
setting:
|
|
||||||
|
|
||||||
```json5
|
|
||||||
{ plugins: { entries: { "voice-call": { enabled: true } } } }
|
|
||||||
```
|
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
- Uses Twilio REST API via fetch (no SDK). Provide valid SID/token/from.
|
- Uses webhook signature verification for Twilio/Telnyx.
|
||||||
- Use `voicecall.*` for RPC names and `voice_call` for tool naming consistency.
|
- `responseModel` / `responseSystemPrompt` control AI auto-responses.
|
||||||
|
- Media streaming requires `ws` and OpenAI Realtime API key.
|
||||||
+422
-273
@@ -1,325 +1,474 @@
|
|||||||
import { Type } from "@sinclair/typebox";
|
import { Type } from "@sinclair/typebox";
|
||||||
|
|
||||||
type VoiceCallConfig =
|
import type { CoreConfig } from "./src/core-bridge.js";
|
||||||
| {
|
import {
|
||||||
provider: "twilio";
|
VoiceCallConfigSchema,
|
||||||
twilio: {
|
validateProviderConfig,
|
||||||
accountSid: string;
|
type VoiceCallConfig,
|
||||||
authToken: string;
|
} from "./src/config.js";
|
||||||
from: string;
|
import { registerVoiceCallCli } from "./src/cli.js";
|
||||||
statusCallbackUrl?: string;
|
import { createVoiceCallRuntime, type VoiceCallRuntime } from "./src/runtime.js";
|
||||||
twimlUrl?: string;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
| {
|
|
||||||
provider?: "log";
|
|
||||||
};
|
|
||||||
|
|
||||||
type VoiceCallStartParams = {
|
|
||||||
to: string;
|
|
||||||
message?: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
type VoiceCallStatus = {
|
|
||||||
sid: string;
|
|
||||||
status: string;
|
|
||||||
provider: string;
|
|
||||||
to?: string;
|
|
||||||
from?: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
const voiceCallConfigSchema = {
|
const voiceCallConfigSchema = {
|
||||||
parse(value: unknown): VoiceCallConfig {
|
parse(value: unknown): VoiceCallConfig {
|
||||||
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
const raw =
|
||||||
return { provider: "log" };
|
value && typeof value === "object" && !Array.isArray(value)
|
||||||
}
|
? (value as Record<string, unknown>)
|
||||||
const cfg = value as Record<string, unknown>;
|
: {};
|
||||||
const provider =
|
|
||||||
cfg.provider === "twilio" || cfg.provider === "log"
|
const twilio = raw.twilio as Record<string, unknown> | undefined;
|
||||||
? cfg.provider
|
const legacyFrom = typeof twilio?.from === "string" ? twilio.from : undefined;
|
||||||
: "log";
|
|
||||||
if (provider === "twilio") {
|
const enabled = typeof raw.enabled === "boolean" ? raw.enabled : true;
|
||||||
const twilio = cfg.twilio as Record<string, unknown> | undefined;
|
const providerRaw = raw.provider === "log" ? "mock" : raw.provider;
|
||||||
if (
|
const provider = providerRaw ?? (enabled ? "mock" : undefined);
|
||||||
!twilio ||
|
|
||||||
typeof twilio.accountSid !== "string" ||
|
return VoiceCallConfigSchema.parse({
|
||||||
typeof twilio.authToken !== "string" ||
|
...raw,
|
||||||
typeof twilio.from !== "string"
|
enabled,
|
||||||
) {
|
provider,
|
||||||
throw new Error(
|
fromNumber: raw.fromNumber ?? legacyFrom,
|
||||||
"twilio provider requires twilio.accountSid, twilio.authToken, twilio.from",
|
});
|
||||||
);
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
provider: "twilio",
|
|
||||||
twilio: {
|
|
||||||
accountSid: twilio.accountSid,
|
|
||||||
authToken: twilio.authToken,
|
|
||||||
from: twilio.from,
|
|
||||||
statusCallbackUrl:
|
|
||||||
typeof twilio.statusCallbackUrl === "string"
|
|
||||||
? twilio.statusCallbackUrl
|
|
||||||
: undefined,
|
|
||||||
twimlUrl:
|
|
||||||
typeof twilio.twimlUrl === "string" ? twilio.twimlUrl : undefined,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return { provider: "log" };
|
|
||||||
},
|
},
|
||||||
uiHints: {
|
uiHints: {
|
||||||
provider: {
|
provider: {
|
||||||
label: "Provider",
|
label: "Provider",
|
||||||
help: 'Use "twilio" for real calls or "log" for dev/no-network.',
|
help: "Use twilio, telnyx, or mock for dev/no-network.",
|
||||||
},
|
},
|
||||||
"twilio.accountSid": {
|
fromNumber: { label: "From Number", placeholder: "+15550001234" },
|
||||||
label: "Twilio Account SID",
|
toNumber: { label: "Default To Number", placeholder: "+15550001234" },
|
||||||
placeholder: "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
inboundPolicy: { label: "Inbound Policy" },
|
||||||
|
allowFrom: { label: "Inbound Allowlist" },
|
||||||
|
inboundGreeting: { label: "Inbound Greeting", advanced: true },
|
||||||
|
"telnyx.apiKey": { label: "Telnyx API Key", sensitive: true },
|
||||||
|
"telnyx.connectionId": { label: "Telnyx Connection ID" },
|
||||||
|
"telnyx.publicKey": { label: "Telnyx Public Key", sensitive: true },
|
||||||
|
"twilio.accountSid": { label: "Twilio Account SID" },
|
||||||
|
"twilio.authToken": { label: "Twilio Auth Token", sensitive: true },
|
||||||
|
"outbound.defaultMode": { label: "Default Call Mode" },
|
||||||
|
"outbound.notifyHangupDelaySec": {
|
||||||
|
label: "Notify Hangup Delay (sec)",
|
||||||
|
advanced: true,
|
||||||
},
|
},
|
||||||
"twilio.authToken": {
|
"serve.port": { label: "Webhook Port" },
|
||||||
label: "Twilio Auth Token",
|
"serve.bind": { label: "Webhook Bind" },
|
||||||
|
"serve.path": { label: "Webhook Path" },
|
||||||
|
"tailscale.mode": { label: "Tailscale Mode", advanced: true },
|
||||||
|
"tailscale.path": { label: "Tailscale Path", advanced: true },
|
||||||
|
"tunnel.provider": { label: "Tunnel Provider", advanced: true },
|
||||||
|
"tunnel.ngrokAuthToken": {
|
||||||
|
label: "ngrok Auth Token",
|
||||||
sensitive: true,
|
sensitive: true,
|
||||||
placeholder: "••••••••••••••••",
|
|
||||||
},
|
|
||||||
"twilio.from": {
|
|
||||||
label: "Twilio From (E.164)",
|
|
||||||
placeholder: "+15551234567",
|
|
||||||
},
|
|
||||||
"twilio.statusCallbackUrl": {
|
|
||||||
label: "Status Callback URL",
|
|
||||||
placeholder: "https://example.com/twilio-status",
|
|
||||||
advanced: true,
|
advanced: true,
|
||||||
},
|
},
|
||||||
"twilio.twimlUrl": {
|
"tunnel.ngrokDomain": { label: "ngrok Domain", advanced: true },
|
||||||
label: "TwiML URL",
|
"tunnel.allowNgrokFreeTier": {
|
||||||
placeholder: "https://example.com/twiml",
|
label: "Allow ngrok Free Tier",
|
||||||
advanced: true,
|
advanced: true,
|
||||||
},
|
},
|
||||||
|
"streaming.enabled": { label: "Enable Streaming", advanced: true },
|
||||||
|
"streaming.openaiApiKey": {
|
||||||
|
label: "OpenAI Realtime API Key",
|
||||||
|
sensitive: true,
|
||||||
|
advanced: true,
|
||||||
|
},
|
||||||
|
"streaming.sttModel": { label: "Realtime STT Model", advanced: true },
|
||||||
|
"streaming.streamPath": { label: "Media Stream Path", advanced: true },
|
||||||
|
"tts.model": { label: "TTS Model", advanced: true },
|
||||||
|
"tts.voice": { label: "TTS Voice", advanced: true },
|
||||||
|
"tts.instructions": { label: "TTS Instructions", advanced: true },
|
||||||
|
publicUrl: { label: "Public Webhook URL", advanced: true },
|
||||||
|
skipSignatureVerification: {
|
||||||
|
label: "Skip Signature Verification",
|
||||||
|
advanced: true,
|
||||||
|
},
|
||||||
|
store: { label: "Call Log Store Path", advanced: true },
|
||||||
|
responseModel: { label: "Response Model", advanced: true },
|
||||||
|
responseSystemPrompt: { label: "Response System Prompt", advanced: true },
|
||||||
|
responseTimeoutMs: { label: "Response Timeout (ms)", advanced: true },
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const escapeXml = (input: string): string =>
|
const VoiceCallToolSchema = Type.Union([
|
||||||
input
|
Type.Object({
|
||||||
.replace(/&/g, "&")
|
action: Type.Literal("initiate_call"),
|
||||||
.replace(/</g, "<")
|
to: Type.Optional(Type.String({ description: "Call target" })),
|
||||||
.replace(/>/g, ">")
|
message: Type.String({ description: "Intro message" }),
|
||||||
.replace(/"/g, """)
|
mode: Type.Optional(Type.Union([Type.Literal("notify"), Type.Literal("conversation")])),
|
||||||
.replace(/'/g, "'");
|
}),
|
||||||
|
Type.Object({
|
||||||
async function startTwilioCall(
|
action: Type.Literal("continue_call"),
|
||||||
cfg: Exclude<VoiceCallConfig, { provider?: "log" }>["twilio"],
|
callId: Type.String({ description: "Call ID" }),
|
||||||
params: VoiceCallStartParams,
|
message: Type.String({ description: "Follow-up message" }),
|
||||||
): Promise<VoiceCallStatus> {
|
}),
|
||||||
const body = new URLSearchParams();
|
Type.Object({
|
||||||
body.set("To", params.to);
|
action: Type.Literal("speak_to_user"),
|
||||||
body.set("From", cfg.from);
|
callId: Type.String({ description: "Call ID" }),
|
||||||
|
message: Type.String({ description: "Message to speak" }),
|
||||||
if (cfg.twimlUrl) {
|
}),
|
||||||
body.set("Url", cfg.twimlUrl);
|
Type.Object({
|
||||||
} else {
|
action: Type.Literal("end_call"),
|
||||||
const say = escapeXml(params.message ?? "Hello from Clawdbot.");
|
callId: Type.String({ description: "Call ID" }),
|
||||||
body.set("Twiml", `<Response><Say>${say}</Say></Response>`);
|
}),
|
||||||
}
|
Type.Object({
|
||||||
if (cfg.statusCallbackUrl) {
|
action: Type.Literal("get_status"),
|
||||||
body.set("StatusCallback", cfg.statusCallbackUrl);
|
callId: Type.String({ description: "Call ID" }),
|
||||||
}
|
}),
|
||||||
|
Type.Object({
|
||||||
const res = await fetch(
|
mode: Type.Optional(Type.Union([Type.Literal("call"), Type.Literal("status")])),
|
||||||
`https://api.twilio.com/2010-04-01/Accounts/${cfg.accountSid}/Calls.json`,
|
to: Type.Optional(Type.String({ description: "Call target" })),
|
||||||
{
|
sid: Type.Optional(Type.String({ description: "Call SID" })),
|
||||||
method: "POST",
|
message: Type.Optional(Type.String({ description: "Optional intro message" })),
|
||||||
headers: {
|
}),
|
||||||
Authorization: `Basic ${Buffer.from(`${cfg.accountSid}:${cfg.authToken}`).toString("base64")}`,
|
]);
|
||||||
"Content-Type": "application/x-www-form-urlencoded",
|
|
||||||
},
|
|
||||||
body,
|
|
||||||
},
|
|
||||||
);
|
|
||||||
|
|
||||||
if (!res.ok) {
|
|
||||||
const text = await res.text();
|
|
||||||
throw new Error(`twilio call failed: ${res.status} ${text}`);
|
|
||||||
}
|
|
||||||
const payload = (await res.json()) as Record<string, unknown>;
|
|
||||||
return {
|
|
||||||
sid: String(payload.sid ?? ""),
|
|
||||||
status: String(payload.status ?? "unknown"),
|
|
||||||
provider: "twilio",
|
|
||||||
to: String(payload.to ?? params.to),
|
|
||||||
from: String(payload.from ?? cfg.from),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
async function getTwilioStatus(
|
|
||||||
cfg: Exclude<VoiceCallConfig, { provider?: "log" }>["twilio"],
|
|
||||||
sid: string,
|
|
||||||
): Promise<VoiceCallStatus> {
|
|
||||||
const res = await fetch(
|
|
||||||
`https://api.twilio.com/2010-04-01/Accounts/${cfg.accountSid}/Calls/${sid}.json`,
|
|
||||||
{
|
|
||||||
method: "GET",
|
|
||||||
headers: {
|
|
||||||
Authorization: `Basic ${Buffer.from(`${cfg.accountSid}:${cfg.authToken}`).toString("base64")}`,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
);
|
|
||||||
if (!res.ok) {
|
|
||||||
const text = await res.text();
|
|
||||||
throw new Error(`twilio status failed: ${res.status} ${text}`);
|
|
||||||
}
|
|
||||||
const payload = (await res.json()) as Record<string, unknown>;
|
|
||||||
return {
|
|
||||||
sid,
|
|
||||||
status: String(payload.status ?? "unknown"),
|
|
||||||
provider: "twilio",
|
|
||||||
to: String(payload.to ?? ""),
|
|
||||||
from: String(payload.from ?? cfg.from),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
async function startCall(
|
|
||||||
cfg: VoiceCallConfig,
|
|
||||||
params: VoiceCallStartParams,
|
|
||||||
): Promise<VoiceCallStatus> {
|
|
||||||
if (cfg.provider === "twilio") {
|
|
||||||
return startTwilioCall(cfg.twilio, params);
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
sid: `log-${Date.now()}`,
|
|
||||||
status: "queued",
|
|
||||||
provider: "log",
|
|
||||||
to: params.to,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
async function getStatus(
|
|
||||||
cfg: VoiceCallConfig,
|
|
||||||
sid: string,
|
|
||||||
): Promise<VoiceCallStatus> {
|
|
||||||
if (cfg.provider === "twilio") {
|
|
||||||
return getTwilioStatus(cfg.twilio, sid);
|
|
||||||
}
|
|
||||||
return { sid, status: "mock", provider: "log" };
|
|
||||||
}
|
|
||||||
|
|
||||||
const voiceCallPlugin = {
|
const voiceCallPlugin = {
|
||||||
id: "voice-call",
|
id: "voice-call",
|
||||||
name: "Voice Call",
|
name: "Voice Call",
|
||||||
description: "Voice-call plugin with Twilio/log providers",
|
description: "Voice-call plugin with Telnyx/Twilio providers",
|
||||||
configSchema: voiceCallConfigSchema,
|
configSchema: voiceCallConfigSchema,
|
||||||
register(api) {
|
register(api) {
|
||||||
const cfg = voiceCallConfigSchema.parse(api.pluginConfig);
|
const cfg = voiceCallConfigSchema.parse(api.pluginConfig);
|
||||||
|
const validation = validateProviderConfig(cfg);
|
||||||
|
|
||||||
api.registerGatewayMethod("voicecall.start", async ({ params, respond }) => {
|
if (api.pluginConfig && typeof api.pluginConfig === "object") {
|
||||||
const to = typeof params?.to === "string" ? params.to.trim() : "";
|
const raw = api.pluginConfig as Record<string, unknown>;
|
||||||
const message =
|
const twilio = raw.twilio as Record<string, unknown> | undefined;
|
||||||
typeof params?.message === "string" ? params.message.trim() : undefined;
|
if (raw.provider === "log") {
|
||||||
if (!to) {
|
api.logger.warn(
|
||||||
respond(false, { error: "to required" });
|
"[voice-call] provider \"log\" is deprecated; use \"mock\" instead",
|
||||||
return;
|
);
|
||||||
}
|
}
|
||||||
|
if (typeof twilio?.from === "string") {
|
||||||
|
api.logger.warn(
|
||||||
|
"[voice-call] twilio.from is deprecated; use fromNumber instead",
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let runtimePromise: Promise<VoiceCallRuntime> | null = null;
|
||||||
|
let runtime: VoiceCallRuntime | null = null;
|
||||||
|
|
||||||
|
const ensureRuntime = async () => {
|
||||||
|
if (!cfg.enabled) {
|
||||||
|
throw new Error("Voice call disabled in plugin config");
|
||||||
|
}
|
||||||
|
if (!validation.valid) {
|
||||||
|
throw new Error(validation.errors.join("; "));
|
||||||
|
}
|
||||||
|
if (runtime) return runtime;
|
||||||
|
if (!runtimePromise) {
|
||||||
|
runtimePromise = createVoiceCallRuntime({
|
||||||
|
config: cfg,
|
||||||
|
coreConfig: api.config as CoreConfig,
|
||||||
|
logger: api.logger,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
runtime = await runtimePromise;
|
||||||
|
return runtime;
|
||||||
|
};
|
||||||
|
|
||||||
|
const sendError = (respond: (ok: boolean, payload?: unknown) => void, err: unknown) => {
|
||||||
|
respond(false, { error: err instanceof Error ? err.message : String(err) });
|
||||||
|
};
|
||||||
|
|
||||||
|
api.registerGatewayMethod("voicecall.initiate", async ({ params, respond }) => {
|
||||||
try {
|
try {
|
||||||
const result = await startCall(cfg, { to, message });
|
const message =
|
||||||
respond(true, result);
|
typeof params?.message === "string" ? params.message.trim() : "";
|
||||||
|
if (!message) {
|
||||||
|
respond(false, { error: "message required" });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const rt = await ensureRuntime();
|
||||||
|
const to =
|
||||||
|
typeof params?.to === "string" && params.to.trim()
|
||||||
|
? params.to.trim()
|
||||||
|
: rt.config.toNumber;
|
||||||
|
if (!to) {
|
||||||
|
respond(false, { error: "to required" });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const mode =
|
||||||
|
params?.mode === "notify" || params?.mode === "conversation"
|
||||||
|
? params.mode
|
||||||
|
: undefined;
|
||||||
|
const result = await rt.manager.initiateCall(to, undefined, {
|
||||||
|
message,
|
||||||
|
mode,
|
||||||
|
});
|
||||||
|
if (!result.success) {
|
||||||
|
respond(false, { error: result.error || "initiate failed" });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
respond(true, { callId: result.callId, initiated: true });
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
respond(false, { error: String(err) });
|
sendError(respond, err);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
api.registerGatewayMethod(
|
api.registerGatewayMethod("voicecall.continue", async ({ params, respond }) => {
|
||||||
"voicecall.status",
|
try {
|
||||||
async ({ params, respond }) => {
|
const callId =
|
||||||
const sid = typeof params?.sid === "string" ? params.sid.trim() : "";
|
typeof params?.callId === "string" ? params.callId.trim() : "";
|
||||||
if (!sid) {
|
const message =
|
||||||
respond(false, { error: "sid required" });
|
typeof params?.message === "string" ? params.message.trim() : "";
|
||||||
|
if (!callId || !message) {
|
||||||
|
respond(false, { error: "callId and message required" });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
const rt = await ensureRuntime();
|
||||||
const result = await getStatus(cfg, sid);
|
const result = await rt.manager.continueCall(callId, message);
|
||||||
respond(true, result);
|
if (!result.success) {
|
||||||
} catch (err) {
|
respond(false, { error: result.error || "continue failed" });
|
||||||
respond(false, { error: String(err) });
|
return;
|
||||||
}
|
}
|
||||||
},
|
respond(true, { success: true, transcript: result.transcript });
|
||||||
);
|
} catch (err) {
|
||||||
|
sendError(respond, err);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
api.registerTool(
|
api.registerGatewayMethod("voicecall.speak", async ({ params, respond }) => {
|
||||||
{
|
try {
|
||||||
name: "voice_call",
|
const callId =
|
||||||
label: "Voice Call",
|
typeof params?.callId === "string" ? params.callId.trim() : "";
|
||||||
description: "Start or inspect a voice call via the voice-call plugin",
|
const message =
|
||||||
parameters: Type.Object({
|
typeof params?.message === "string" ? params.message.trim() : "";
|
||||||
mode: Type.Optional(
|
if (!callId || !message) {
|
||||||
Type.Union([Type.Literal("call"), Type.Literal("status")]),
|
respond(false, { error: "callId and message required" });
|
||||||
),
|
return;
|
||||||
to: Type.Optional(Type.String({ description: "Call target" })),
|
}
|
||||||
sid: Type.Optional(Type.String({ description: "Call SID" })),
|
const rt = await ensureRuntime();
|
||||||
message: Type.Optional(
|
const result = await rt.manager.speak(callId, message);
|
||||||
Type.String({ description: "Optional intro message" }),
|
if (!result.success) {
|
||||||
),
|
respond(false, { error: result.error || "speak failed" });
|
||||||
}),
|
return;
|
||||||
async execute(_toolCallId, params) {
|
}
|
||||||
const mode = params.mode ?? "call";
|
respond(true, { success: true });
|
||||||
if (mode === "status") {
|
} catch (err) {
|
||||||
if (typeof params.sid !== "string") {
|
sendError(respond, err);
|
||||||
throw new Error("sid required for status");
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
api.registerGatewayMethod("voicecall.end", async ({ params, respond }) => {
|
||||||
|
try {
|
||||||
|
const callId =
|
||||||
|
typeof params?.callId === "string" ? params.callId.trim() : "";
|
||||||
|
if (!callId) {
|
||||||
|
respond(false, { error: "callId required" });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const rt = await ensureRuntime();
|
||||||
|
const result = await rt.manager.endCall(callId);
|
||||||
|
if (!result.success) {
|
||||||
|
respond(false, { error: result.error || "end failed" });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
respond(true, { success: true });
|
||||||
|
} catch (err) {
|
||||||
|
sendError(respond, err);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
api.registerGatewayMethod("voicecall.status", async ({ params, respond }) => {
|
||||||
|
try {
|
||||||
|
const raw =
|
||||||
|
typeof params?.callId === "string"
|
||||||
|
? params.callId.trim()
|
||||||
|
: typeof params?.sid === "string"
|
||||||
|
? params.sid.trim()
|
||||||
|
: "";
|
||||||
|
if (!raw) {
|
||||||
|
respond(false, { error: "callId required" });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const rt = await ensureRuntime();
|
||||||
|
const call =
|
||||||
|
rt.manager.getCall(raw) || rt.manager.getCallByProviderCallId(raw);
|
||||||
|
if (!call) {
|
||||||
|
respond(true, { found: false });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
respond(true, { found: true, call });
|
||||||
|
} catch (err) {
|
||||||
|
sendError(respond, err);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
api.registerGatewayMethod("voicecall.start", async ({ params, respond }) => {
|
||||||
|
try {
|
||||||
|
const to = typeof params?.to === "string" ? params.to.trim() : "";
|
||||||
|
const message =
|
||||||
|
typeof params?.message === "string" ? params.message.trim() : "";
|
||||||
|
if (!to) {
|
||||||
|
respond(false, { error: "to required" });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const rt = await ensureRuntime();
|
||||||
|
const result = await rt.manager.initiateCall(to, undefined, {
|
||||||
|
message: message || undefined,
|
||||||
|
});
|
||||||
|
if (!result.success) {
|
||||||
|
respond(false, { error: result.error || "initiate failed" });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
respond(true, { callId: result.callId, initiated: true });
|
||||||
|
} catch (err) {
|
||||||
|
sendError(respond, err);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
api.registerTool({
|
||||||
|
name: "voice_call",
|
||||||
|
label: "Voice Call",
|
||||||
|
description:
|
||||||
|
"Make phone calls and have voice conversations via the voice-call plugin.",
|
||||||
|
parameters: VoiceCallToolSchema,
|
||||||
|
async execute(_toolCallId, params) {
|
||||||
|
const json = (payload: unknown) => ({
|
||||||
|
content: [
|
||||||
|
{ type: "text", text: JSON.stringify(payload, null, 2) },
|
||||||
|
],
|
||||||
|
details: payload,
|
||||||
|
});
|
||||||
|
|
||||||
|
try {
|
||||||
|
const rt = await ensureRuntime();
|
||||||
|
|
||||||
|
if (typeof params?.action === "string") {
|
||||||
|
switch (params.action) {
|
||||||
|
case "initiate_call": {
|
||||||
|
const message = String(params.message || "").trim();
|
||||||
|
if (!message) throw new Error("message required");
|
||||||
|
const to =
|
||||||
|
typeof params.to === "string" && params.to.trim()
|
||||||
|
? params.to.trim()
|
||||||
|
: rt.config.toNumber;
|
||||||
|
if (!to) throw new Error("to required");
|
||||||
|
const result = await rt.manager.initiateCall(to, undefined, {
|
||||||
|
message,
|
||||||
|
mode:
|
||||||
|
params.mode === "notify" || params.mode === "conversation"
|
||||||
|
? params.mode
|
||||||
|
: undefined,
|
||||||
|
});
|
||||||
|
if (!result.success) {
|
||||||
|
throw new Error(result.error || "initiate failed");
|
||||||
|
}
|
||||||
|
return json({ callId: result.callId, initiated: true });
|
||||||
|
}
|
||||||
|
case "continue_call": {
|
||||||
|
const callId = String(params.callId || "").trim();
|
||||||
|
const message = String(params.message || "").trim();
|
||||||
|
if (!callId || !message) {
|
||||||
|
throw new Error("callId and message required");
|
||||||
|
}
|
||||||
|
const result = await rt.manager.continueCall(callId, message);
|
||||||
|
if (!result.success) {
|
||||||
|
throw new Error(result.error || "continue failed");
|
||||||
|
}
|
||||||
|
return json({ success: true, transcript: result.transcript });
|
||||||
|
}
|
||||||
|
case "speak_to_user": {
|
||||||
|
const callId = String(params.callId || "").trim();
|
||||||
|
const message = String(params.message || "").trim();
|
||||||
|
if (!callId || !message) {
|
||||||
|
throw new Error("callId and message required");
|
||||||
|
}
|
||||||
|
const result = await rt.manager.speak(callId, message);
|
||||||
|
if (!result.success) {
|
||||||
|
throw new Error(result.error || "speak failed");
|
||||||
|
}
|
||||||
|
return json({ success: true });
|
||||||
|
}
|
||||||
|
case "end_call": {
|
||||||
|
const callId = String(params.callId || "").trim();
|
||||||
|
if (!callId) throw new Error("callId required");
|
||||||
|
const result = await rt.manager.endCall(callId);
|
||||||
|
if (!result.success) {
|
||||||
|
throw new Error(result.error || "end failed");
|
||||||
|
}
|
||||||
|
return json({ success: true });
|
||||||
|
}
|
||||||
|
case "get_status": {
|
||||||
|
const callId = String(params.callId || "").trim();
|
||||||
|
if (!callId) throw new Error("callId required");
|
||||||
|
const call =
|
||||||
|
rt.manager.getCall(callId) ||
|
||||||
|
rt.manager.getCallByProviderCallId(callId);
|
||||||
|
return json(call ? { found: true, call } : { found: false });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const status = await getStatus(cfg, params.sid.trim());
|
|
||||||
return {
|
|
||||||
content: [{ type: "text", text: JSON.stringify(status, null, 2) }],
|
|
||||||
details: status,
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const mode = params?.mode ?? "call";
|
||||||
|
if (mode === "status") {
|
||||||
|
const sid =
|
||||||
|
typeof params.sid === "string" ? params.sid.trim() : "";
|
||||||
|
if (!sid) throw new Error("sid required for status");
|
||||||
|
const call =
|
||||||
|
rt.manager.getCall(sid) || rt.manager.getCallByProviderCallId(sid);
|
||||||
|
return json(call ? { found: true, call } : { found: false });
|
||||||
|
}
|
||||||
|
|
||||||
const to =
|
const to =
|
||||||
typeof params.to === "string" && params.to.trim()
|
typeof params.to === "string" && params.to.trim()
|
||||||
? params.to.trim()
|
? params.to.trim()
|
||||||
: null;
|
: rt.config.toNumber;
|
||||||
if (!to) throw new Error("to required for call");
|
if (!to) throw new Error("to required for call");
|
||||||
const result = await startCall(cfg, { to, message: params.message });
|
const result = await rt.manager.initiateCall(to, undefined, {
|
||||||
return {
|
message:
|
||||||
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
typeof params.message === "string" && params.message.trim()
|
||||||
details: result,
|
? params.message.trim()
|
||||||
};
|
: undefined,
|
||||||
},
|
|
||||||
},
|
|
||||||
{ name: "voice_call" },
|
|
||||||
);
|
|
||||||
|
|
||||||
api.registerCli(({ program }) => {
|
|
||||||
const voicecall = program
|
|
||||||
.command("voicecall")
|
|
||||||
.description("Voice call plugin commands");
|
|
||||||
|
|
||||||
voicecall
|
|
||||||
.command("start")
|
|
||||||
.description("Start a voice call")
|
|
||||||
.requiredOption("--to <target>", "Target to call")
|
|
||||||
.option("--message <text>", "Optional intro message")
|
|
||||||
.action(async (opts) => {
|
|
||||||
const result = await startCall(cfg, {
|
|
||||||
to: opts.to,
|
|
||||||
message: opts.message,
|
|
||||||
});
|
});
|
||||||
console.log(JSON.stringify(result, null, 2));
|
if (!result.success) {
|
||||||
});
|
throw new Error(result.error || "initiate failed");
|
||||||
|
}
|
||||||
|
return json({ callId: result.callId, initiated: true });
|
||||||
|
} catch (err) {
|
||||||
|
return json({
|
||||||
|
error: err instanceof Error ? err.message : String(err),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
voicecall
|
api.registerCli(
|
||||||
.command("status")
|
({ program }) =>
|
||||||
.description("Show voice-call status")
|
registerVoiceCallCli({
|
||||||
.requiredOption("--sid <sid>", "Call SID")
|
program,
|
||||||
.action(async (opts) => {
|
config: cfg,
|
||||||
const result = await getStatus(cfg, opts.sid);
|
ensureRuntime,
|
||||||
console.log(JSON.stringify(result, null, 2));
|
logger: api.logger,
|
||||||
});
|
}),
|
||||||
}, { commands: ["voicecall"] });
|
{ commands: ["voicecall"] },
|
||||||
|
);
|
||||||
|
|
||||||
api.registerService({
|
api.registerService({
|
||||||
id: "voicecall",
|
id: "voicecall",
|
||||||
start: () => {
|
start: async () => {
|
||||||
api.logger.info(`voice-call provider: ${cfg.provider}`);
|
if (!cfg.enabled) return;
|
||||||
|
try {
|
||||||
|
await ensureRuntime();
|
||||||
|
} catch (err) {
|
||||||
|
api.logger.error(
|
||||||
|
`[voice-call] Failed to start runtime: ${
|
||||||
|
err instanceof Error ? err.message : String(err)
|
||||||
|
}`,
|
||||||
|
);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
stop: () => {
|
stop: async () => {
|
||||||
api.logger.info("voice-call service stopped");
|
if (!runtimePromise) return;
|
||||||
|
try {
|
||||||
|
const rt = await runtimePromise;
|
||||||
|
await rt.stop();
|
||||||
|
} finally {
|
||||||
|
runtimePromise = null;
|
||||||
|
runtime = null;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,9 +2,11 @@
|
|||||||
"name": "@clawdbot/voice-call",
|
"name": "@clawdbot/voice-call",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Clawdbot voice-call plugin (example)",
|
"description": "Clawdbot voice-call plugin",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sinclair/typebox": "0.34.47"
|
"@sinclair/typebox": "0.34.47",
|
||||||
|
"ws": "^8.19.0",
|
||||||
|
"zod": "^4.3.5"
|
||||||
},
|
},
|
||||||
"clawdbot": {
|
"clawdbot": {
|
||||||
"extensions": ["./index.ts"]
|
"extensions": ["./index.ts"]
|
||||||
|
|||||||
@@ -0,0 +1,297 @@
|
|||||||
|
import fs from "node:fs";
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
|
||||||
|
import type { Command } from "commander";
|
||||||
|
|
||||||
|
import type { VoiceCallConfig } from "./config.js";
|
||||||
|
import type { VoiceCallRuntime } from "./runtime.js";
|
||||||
|
import { resolveUserPath } from "./utils.js";
|
||||||
|
import {
|
||||||
|
cleanupTailscaleExposureRoute,
|
||||||
|
getTailscaleSelfInfo,
|
||||||
|
setupTailscaleExposureRoute,
|
||||||
|
} from "./webhook.js";
|
||||||
|
|
||||||
|
type Logger = {
|
||||||
|
info: (message: string) => void;
|
||||||
|
warn: (message: string) => void;
|
||||||
|
error: (message: string) => void;
|
||||||
|
};
|
||||||
|
|
||||||
|
function resolveMode(input: string): "off" | "serve" | "funnel" {
|
||||||
|
const raw = input.trim().toLowerCase();
|
||||||
|
if (raw === "serve" || raw === "off") return raw;
|
||||||
|
return "funnel";
|
||||||
|
}
|
||||||
|
|
||||||
|
function resolveDefaultStorePath(config: VoiceCallConfig): string {
|
||||||
|
const base =
|
||||||
|
config.store?.trim() || path.join(os.homedir(), "clawd", "voice-calls");
|
||||||
|
return path.join(resolveUserPath(base), "calls.jsonl");
|
||||||
|
}
|
||||||
|
|
||||||
|
function sleep(ms: number): Promise<void> {
|
||||||
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
||||||
|
}
|
||||||
|
|
||||||
|
export function registerVoiceCallCli(params: {
|
||||||
|
program: Command;
|
||||||
|
config: VoiceCallConfig;
|
||||||
|
ensureRuntime: () => Promise<VoiceCallRuntime>;
|
||||||
|
logger: Logger;
|
||||||
|
}) {
|
||||||
|
const { program, config, ensureRuntime, logger } = params;
|
||||||
|
const root = program.command("voicecall").description("Voice call utilities");
|
||||||
|
|
||||||
|
root
|
||||||
|
.command("call")
|
||||||
|
.description("Initiate an outbound voice call")
|
||||||
|
.requiredOption(
|
||||||
|
"-m, --message <text>",
|
||||||
|
"Message to speak when call connects",
|
||||||
|
)
|
||||||
|
.option(
|
||||||
|
"-t, --to <phone>",
|
||||||
|
"Phone number to call (E.164 format, uses config toNumber if not set)",
|
||||||
|
)
|
||||||
|
.option(
|
||||||
|
"--mode <mode>",
|
||||||
|
"Call mode: notify (hangup after message) or conversation (stay open)",
|
||||||
|
"conversation",
|
||||||
|
)
|
||||||
|
.action(
|
||||||
|
async (options: { message: string; to?: string; mode?: string }) => {
|
||||||
|
const rt = await ensureRuntime();
|
||||||
|
const to = options.to ?? rt.config.toNumber;
|
||||||
|
if (!to) {
|
||||||
|
throw new Error("Missing --to and no toNumber configured");
|
||||||
|
}
|
||||||
|
const result = await rt.manager.initiateCall(to, undefined, {
|
||||||
|
message: options.message,
|
||||||
|
mode:
|
||||||
|
options.mode === "notify" || options.mode === "conversation"
|
||||||
|
? options.mode
|
||||||
|
: undefined,
|
||||||
|
});
|
||||||
|
if (!result.success) {
|
||||||
|
throw new Error(result.error || "initiate failed");
|
||||||
|
}
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log(JSON.stringify({ callId: result.callId }, null, 2));
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
|
root
|
||||||
|
.command("start")
|
||||||
|
.description("Alias for voicecall call")
|
||||||
|
.requiredOption("--to <phone>", "Phone number to call")
|
||||||
|
.option("--message <text>", "Message to speak when call connects")
|
||||||
|
.option(
|
||||||
|
"--mode <mode>",
|
||||||
|
"Call mode: notify (hangup after message) or conversation (stay open)",
|
||||||
|
"conversation",
|
||||||
|
)
|
||||||
|
.action(
|
||||||
|
async (options: { to: string; message?: string; mode?: string }) => {
|
||||||
|
const rt = await ensureRuntime();
|
||||||
|
const result = await rt.manager.initiateCall(options.to, undefined, {
|
||||||
|
message: options.message,
|
||||||
|
mode:
|
||||||
|
options.mode === "notify" || options.mode === "conversation"
|
||||||
|
? options.mode
|
||||||
|
: undefined,
|
||||||
|
});
|
||||||
|
if (!result.success) {
|
||||||
|
throw new Error(result.error || "initiate failed");
|
||||||
|
}
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log(JSON.stringify({ callId: result.callId }, null, 2));
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
|
root
|
||||||
|
.command("continue")
|
||||||
|
.description("Speak a message and wait for a response")
|
||||||
|
.requiredOption("--call-id <id>", "Call ID")
|
||||||
|
.requiredOption("--message <text>", "Message to speak")
|
||||||
|
.action(async (options: { callId: string; message: string }) => {
|
||||||
|
const rt = await ensureRuntime();
|
||||||
|
const result = await rt.manager.continueCall(
|
||||||
|
options.callId,
|
||||||
|
options.message,
|
||||||
|
);
|
||||||
|
if (!result.success) {
|
||||||
|
throw new Error(result.error || "continue failed");
|
||||||
|
}
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log(JSON.stringify(result, null, 2));
|
||||||
|
});
|
||||||
|
|
||||||
|
root
|
||||||
|
.command("speak")
|
||||||
|
.description("Speak a message without waiting for response")
|
||||||
|
.requiredOption("--call-id <id>", "Call ID")
|
||||||
|
.requiredOption("--message <text>", "Message to speak")
|
||||||
|
.action(async (options: { callId: string; message: string }) => {
|
||||||
|
const rt = await ensureRuntime();
|
||||||
|
const result = await rt.manager.speak(options.callId, options.message);
|
||||||
|
if (!result.success) {
|
||||||
|
throw new Error(result.error || "speak failed");
|
||||||
|
}
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log(JSON.stringify(result, null, 2));
|
||||||
|
});
|
||||||
|
|
||||||
|
root
|
||||||
|
.command("end")
|
||||||
|
.description("Hang up an active call")
|
||||||
|
.requiredOption("--call-id <id>", "Call ID")
|
||||||
|
.action(async (options: { callId: string }) => {
|
||||||
|
const rt = await ensureRuntime();
|
||||||
|
const result = await rt.manager.endCall(options.callId);
|
||||||
|
if (!result.success) {
|
||||||
|
throw new Error(result.error || "end failed");
|
||||||
|
}
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log(JSON.stringify(result, null, 2));
|
||||||
|
});
|
||||||
|
|
||||||
|
root
|
||||||
|
.command("status")
|
||||||
|
.description("Show call status")
|
||||||
|
.requiredOption("--call-id <id>", "Call ID")
|
||||||
|
.action(async (options: { callId: string }) => {
|
||||||
|
const rt = await ensureRuntime();
|
||||||
|
const call = rt.manager.getCall(options.callId);
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log(JSON.stringify(call ?? { found: false }, null, 2));
|
||||||
|
});
|
||||||
|
|
||||||
|
root
|
||||||
|
.command("tail")
|
||||||
|
.description(
|
||||||
|
"Tail voice-call JSONL logs (prints new lines; useful during provider tests)",
|
||||||
|
)
|
||||||
|
.option("--file <path>", "Path to calls.jsonl", resolveDefaultStorePath(config))
|
||||||
|
.option("--since <n>", "Print last N lines first", "25")
|
||||||
|
.option("--poll <ms>", "Poll interval in ms", "250")
|
||||||
|
.action(
|
||||||
|
async (options: { file: string; since?: string; poll?: string }) => {
|
||||||
|
const file = options.file;
|
||||||
|
const since = Math.max(0, Number(options.since ?? 0));
|
||||||
|
const pollMs = Math.max(50, Number(options.poll ?? 250));
|
||||||
|
|
||||||
|
if (!fs.existsSync(file)) {
|
||||||
|
logger.error(`No log file at ${file}`);
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
const initial = fs.readFileSync(file, "utf8");
|
||||||
|
const lines = initial.split("\n").filter(Boolean);
|
||||||
|
for (const line of lines.slice(Math.max(0, lines.length - since))) {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log(line);
|
||||||
|
}
|
||||||
|
|
||||||
|
let offset = Buffer.byteLength(initial, "utf8");
|
||||||
|
|
||||||
|
for (;;) {
|
||||||
|
try {
|
||||||
|
const stat = fs.statSync(file);
|
||||||
|
if (stat.size < offset) {
|
||||||
|
offset = 0;
|
||||||
|
}
|
||||||
|
if (stat.size > offset) {
|
||||||
|
const fd = fs.openSync(file, "r");
|
||||||
|
try {
|
||||||
|
const buf = Buffer.alloc(stat.size - offset);
|
||||||
|
fs.readSync(fd, buf, 0, buf.length, offset);
|
||||||
|
offset = stat.size;
|
||||||
|
const text = buf.toString("utf8");
|
||||||
|
for (const line of text.split("\n").filter(Boolean)) {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log(line);
|
||||||
|
}
|
||||||
|
} finally {
|
||||||
|
fs.closeSync(fd);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch {
|
||||||
|
// ignore and retry
|
||||||
|
}
|
||||||
|
await sleep(pollMs);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
|
root
|
||||||
|
.command("expose")
|
||||||
|
.description("Enable/disable Tailscale serve/funnel for the webhook")
|
||||||
|
.option("--mode <mode>", "off | serve (tailnet) | funnel (public)", "funnel")
|
||||||
|
.option(
|
||||||
|
"--path <path>",
|
||||||
|
"Tailscale path to expose (recommend matching serve.path)",
|
||||||
|
)
|
||||||
|
.option("--port <port>", "Local webhook port")
|
||||||
|
.option("--serve-path <path>", "Local webhook path")
|
||||||
|
.action(
|
||||||
|
async (options: {
|
||||||
|
mode?: string;
|
||||||
|
port?: string;
|
||||||
|
path?: string;
|
||||||
|
servePath?: string;
|
||||||
|
}) => {
|
||||||
|
const mode = resolveMode(options.mode ?? "funnel");
|
||||||
|
const servePort = Number(options.port ?? config.serve.port ?? 3334);
|
||||||
|
const servePath = String(
|
||||||
|
options.servePath ?? config.serve.path ?? "/voice/webhook",
|
||||||
|
);
|
||||||
|
const tsPath = String(
|
||||||
|
options.path ?? config.tailscale?.path ?? servePath,
|
||||||
|
);
|
||||||
|
|
||||||
|
const localUrl = `http://127.0.0.1:${servePort}`;
|
||||||
|
|
||||||
|
if (mode === "off") {
|
||||||
|
await cleanupTailscaleExposureRoute({ mode: "serve", path: tsPath });
|
||||||
|
await cleanupTailscaleExposureRoute({ mode: "funnel", path: tsPath });
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log(JSON.stringify({ ok: true, mode: "off", path: tsPath }, null, 2));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const publicUrl = await setupTailscaleExposureRoute({
|
||||||
|
mode,
|
||||||
|
path: tsPath,
|
||||||
|
localUrl,
|
||||||
|
});
|
||||||
|
|
||||||
|
const tsInfo = publicUrl ? null : await getTailscaleSelfInfo();
|
||||||
|
const enableUrl = tsInfo?.nodeId
|
||||||
|
? `https://login.tailscale.com/f/${mode}?node=${tsInfo.nodeId}`
|
||||||
|
: null;
|
||||||
|
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log(
|
||||||
|
JSON.stringify(
|
||||||
|
{
|
||||||
|
ok: Boolean(publicUrl),
|
||||||
|
mode,
|
||||||
|
path: tsPath,
|
||||||
|
localUrl,
|
||||||
|
publicUrl,
|
||||||
|
hint: publicUrl
|
||||||
|
? undefined
|
||||||
|
: {
|
||||||
|
note: "Tailscale serve/funnel may be disabled on this tailnet (or require admin enable).",
|
||||||
|
enableUrl,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
null,
|
||||||
|
2,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,355 @@
|
|||||||
|
import { z } from "zod";
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
// Phone Number Validation
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* E.164 phone number format: +[country code][number]
|
||||||
|
* Examples use 555 prefix (reserved for fictional numbers)
|
||||||
|
*/
|
||||||
|
export const E164Schema = z
|
||||||
|
.string()
|
||||||
|
.regex(/^\+[1-9]\d{1,14}$/, "Expected E.164 format, e.g. +15550001234");
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
// Inbound Policy
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Controls how inbound calls are handled:
|
||||||
|
* - "disabled": Block all inbound calls (outbound only)
|
||||||
|
* - "allowlist": Only accept calls from numbers in allowFrom
|
||||||
|
* - "pairing": Unknown callers can request pairing (future)
|
||||||
|
* - "open": Accept all inbound calls (dangerous!)
|
||||||
|
*/
|
||||||
|
export const InboundPolicySchema = z.enum([
|
||||||
|
"disabled",
|
||||||
|
"allowlist",
|
||||||
|
"pairing",
|
||||||
|
"open",
|
||||||
|
]);
|
||||||
|
export type InboundPolicy = z.infer<typeof InboundPolicySchema>;
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
// Provider-Specific Configuration
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
export const TelnyxConfigSchema = z.object({
|
||||||
|
/** Telnyx API v2 key */
|
||||||
|
apiKey: z.string().min(1).optional(),
|
||||||
|
/** Telnyx connection ID (from Call Control app) */
|
||||||
|
connectionId: z.string().min(1).optional(),
|
||||||
|
/** Public key for webhook signature verification */
|
||||||
|
publicKey: z.string().min(1).optional(),
|
||||||
|
});
|
||||||
|
export type TelnyxConfig = z.infer<typeof TelnyxConfigSchema>;
|
||||||
|
|
||||||
|
export const TwilioConfigSchema = z.object({
|
||||||
|
/** Twilio Account SID */
|
||||||
|
accountSid: z.string().min(1).optional(),
|
||||||
|
/** Twilio Auth Token */
|
||||||
|
authToken: z.string().min(1).optional(),
|
||||||
|
});
|
||||||
|
export type TwilioConfig = z.infer<typeof TwilioConfigSchema>;
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
// STT/TTS Configuration
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
export const SttConfigSchema = z
|
||||||
|
.object({
|
||||||
|
/** STT provider (currently only OpenAI supported) */
|
||||||
|
provider: z.literal("openai").default("openai"),
|
||||||
|
/** Whisper model to use */
|
||||||
|
model: z.string().min(1).default("whisper-1"),
|
||||||
|
})
|
||||||
|
.default({ provider: "openai", model: "whisper-1" });
|
||||||
|
export type SttConfig = z.infer<typeof SttConfigSchema>;
|
||||||
|
|
||||||
|
export const TtsConfigSchema = z
|
||||||
|
.object({
|
||||||
|
/** TTS provider (currently only OpenAI supported) */
|
||||||
|
provider: z.literal("openai").default("openai"),
|
||||||
|
/**
|
||||||
|
* TTS model to use:
|
||||||
|
* - gpt-4o-mini-tts: newest, supports instructions for tone/style control (recommended)
|
||||||
|
* - tts-1: lower latency
|
||||||
|
* - tts-1-hd: higher quality
|
||||||
|
*/
|
||||||
|
model: z.string().min(1).default("gpt-4o-mini-tts"),
|
||||||
|
/**
|
||||||
|
* Voice ID. For best quality, use marin or cedar.
|
||||||
|
* All voices: alloy, ash, ballad, coral, echo, fable, nova, onyx, sage, shimmer, verse, marin, cedar
|
||||||
|
*/
|
||||||
|
voice: z.string().min(1).default("coral"),
|
||||||
|
/**
|
||||||
|
* Instructions for speech style (only works with gpt-4o-mini-tts).
|
||||||
|
* Examples: "Speak in a cheerful tone", "Talk like a sympathetic customer service agent"
|
||||||
|
*/
|
||||||
|
instructions: z.string().optional(),
|
||||||
|
})
|
||||||
|
.default({ provider: "openai", model: "gpt-4o-mini-tts", voice: "coral" });
|
||||||
|
export type TtsConfig = z.infer<typeof TtsConfigSchema>;
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
// Webhook Server Configuration
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
export const VoiceCallServeConfigSchema = z
|
||||||
|
.object({
|
||||||
|
/** Port to listen on */
|
||||||
|
port: z.number().int().positive().default(3334),
|
||||||
|
/** Bind address */
|
||||||
|
bind: z.string().default("127.0.0.1"),
|
||||||
|
/** Webhook path */
|
||||||
|
path: z.string().min(1).default("/voice/webhook"),
|
||||||
|
})
|
||||||
|
.default({ port: 3334, bind: "127.0.0.1", path: "/voice/webhook" });
|
||||||
|
export type VoiceCallServeConfig = z.infer<typeof VoiceCallServeConfigSchema>;
|
||||||
|
|
||||||
|
export const VoiceCallTailscaleConfigSchema = z
|
||||||
|
.object({
|
||||||
|
/**
|
||||||
|
* Tailscale exposure mode:
|
||||||
|
* - "off": No Tailscale exposure
|
||||||
|
* - "serve": Tailscale serve (private to tailnet)
|
||||||
|
* - "funnel": Tailscale funnel (public HTTPS)
|
||||||
|
*/
|
||||||
|
mode: z.enum(["off", "serve", "funnel"]).default("off"),
|
||||||
|
/** Path for Tailscale serve/funnel (should usually match serve.path) */
|
||||||
|
path: z.string().min(1).default("/voice/webhook"),
|
||||||
|
})
|
||||||
|
.default({ mode: "off", path: "/voice/webhook" });
|
||||||
|
export type VoiceCallTailscaleConfig = z.infer<
|
||||||
|
typeof VoiceCallTailscaleConfigSchema
|
||||||
|
>;
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
// Tunnel Configuration (unified ngrok/tailscale)
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
export const VoiceCallTunnelConfigSchema = z
|
||||||
|
.object({
|
||||||
|
/**
|
||||||
|
* Tunnel provider:
|
||||||
|
* - "none": No tunnel (use publicUrl if set, or manual setup)
|
||||||
|
* - "ngrok": Use ngrok for public HTTPS tunnel
|
||||||
|
* - "tailscale-serve": Tailscale serve (private to tailnet)
|
||||||
|
* - "tailscale-funnel": Tailscale funnel (public HTTPS)
|
||||||
|
*/
|
||||||
|
provider: z
|
||||||
|
.enum(["none", "ngrok", "tailscale-serve", "tailscale-funnel"])
|
||||||
|
.default("none"),
|
||||||
|
/** ngrok auth token (optional, enables longer sessions and more features) */
|
||||||
|
ngrokAuthToken: z.string().min(1).optional(),
|
||||||
|
/** ngrok custom domain (paid feature, e.g., "myapp.ngrok.io") */
|
||||||
|
ngrokDomain: z.string().min(1).optional(),
|
||||||
|
/**
|
||||||
|
* Allow ngrok free tier compatibility mode.
|
||||||
|
* When true, signature verification failures on ngrok-free.app URLs
|
||||||
|
* will be logged but allowed through. Less secure, but necessary
|
||||||
|
* for ngrok free tier which may modify URLs.
|
||||||
|
*/
|
||||||
|
allowNgrokFreeTier: z.boolean().default(true),
|
||||||
|
})
|
||||||
|
.default({ provider: "none", allowNgrokFreeTier: true });
|
||||||
|
export type VoiceCallTunnelConfig = z.infer<typeof VoiceCallTunnelConfigSchema>;
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
// Outbound Call Configuration
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Call mode determines how outbound calls behave:
|
||||||
|
* - "notify": Deliver message and auto-hangup after delay (one-way notification)
|
||||||
|
* - "conversation": Stay open for back-and-forth until explicit end or timeout
|
||||||
|
*/
|
||||||
|
export const CallModeSchema = z.enum(["notify", "conversation"]);
|
||||||
|
export type CallMode = z.infer<typeof CallModeSchema>;
|
||||||
|
|
||||||
|
export const OutboundConfigSchema = z
|
||||||
|
.object({
|
||||||
|
/** Default call mode for outbound calls */
|
||||||
|
defaultMode: CallModeSchema.default("notify"),
|
||||||
|
/** Seconds to wait after TTS before auto-hangup in notify mode */
|
||||||
|
notifyHangupDelaySec: z.number().int().nonnegative().default(3),
|
||||||
|
})
|
||||||
|
.default({ defaultMode: "notify", notifyHangupDelaySec: 3 });
|
||||||
|
export type OutboundConfig = z.infer<typeof OutboundConfigSchema>;
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
// Streaming Configuration (OpenAI Realtime STT)
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
export const VoiceCallStreamingConfigSchema = z
|
||||||
|
.object({
|
||||||
|
/** Enable real-time audio streaming (requires WebSocket support) */
|
||||||
|
enabled: z.boolean().default(false),
|
||||||
|
/** STT provider for real-time transcription */
|
||||||
|
sttProvider: z.enum(["openai-realtime"]).default("openai-realtime"),
|
||||||
|
/** OpenAI API key for Realtime API (uses OPENAI_API_KEY env if not set) */
|
||||||
|
openaiApiKey: z.string().min(1).optional(),
|
||||||
|
/** OpenAI transcription model (default: gpt-4o-transcribe) */
|
||||||
|
sttModel: z.string().min(1).default("gpt-4o-transcribe"),
|
||||||
|
/** VAD silence duration in ms before considering speech ended */
|
||||||
|
silenceDurationMs: z.number().int().positive().default(800),
|
||||||
|
/** VAD threshold 0-1 (higher = less sensitive) */
|
||||||
|
vadThreshold: z.number().min(0).max(1).default(0.5),
|
||||||
|
/** WebSocket path for media stream connections */
|
||||||
|
streamPath: z.string().min(1).default("/voice/stream"),
|
||||||
|
})
|
||||||
|
.default({
|
||||||
|
enabled: false,
|
||||||
|
sttProvider: "openai-realtime",
|
||||||
|
sttModel: "gpt-4o-transcribe",
|
||||||
|
silenceDurationMs: 800,
|
||||||
|
vadThreshold: 0.5,
|
||||||
|
streamPath: "/voice/stream",
|
||||||
|
});
|
||||||
|
export type VoiceCallStreamingConfig = z.infer<
|
||||||
|
typeof VoiceCallStreamingConfigSchema
|
||||||
|
>;
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
// Main Voice Call Configuration
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
export const VoiceCallConfigSchema = z.object({
|
||||||
|
/** Enable voice call functionality */
|
||||||
|
enabled: z.boolean().default(false),
|
||||||
|
|
||||||
|
/** Active provider (telnyx, twilio, or mock) */
|
||||||
|
provider: z.enum(["telnyx", "twilio", "mock"]).optional(),
|
||||||
|
|
||||||
|
/** Telnyx-specific configuration */
|
||||||
|
telnyx: TelnyxConfigSchema.optional(),
|
||||||
|
|
||||||
|
/** Twilio-specific configuration */
|
||||||
|
twilio: TwilioConfigSchema.optional(),
|
||||||
|
|
||||||
|
/** Phone number to call from (E.164) */
|
||||||
|
fromNumber: E164Schema.optional(),
|
||||||
|
|
||||||
|
/** Default phone number to call (E.164) */
|
||||||
|
toNumber: E164Schema.optional(),
|
||||||
|
|
||||||
|
/** Inbound call policy */
|
||||||
|
inboundPolicy: InboundPolicySchema.default("disabled"),
|
||||||
|
|
||||||
|
/** Allowlist of phone numbers for inbound calls (E.164) */
|
||||||
|
allowFrom: z.array(E164Schema).default([]),
|
||||||
|
|
||||||
|
/** Greeting message for inbound calls */
|
||||||
|
inboundGreeting: z.string().optional(),
|
||||||
|
|
||||||
|
/** Outbound call configuration */
|
||||||
|
outbound: OutboundConfigSchema,
|
||||||
|
|
||||||
|
/** Maximum call duration in seconds */
|
||||||
|
maxDurationSeconds: z.number().int().positive().default(300),
|
||||||
|
|
||||||
|
/** Silence timeout for end-of-speech detection (ms) */
|
||||||
|
silenceTimeoutMs: z.number().int().positive().default(800),
|
||||||
|
|
||||||
|
/** Timeout for user transcript (ms) */
|
||||||
|
transcriptTimeoutMs: z.number().int().positive().default(180000),
|
||||||
|
|
||||||
|
/** Ring timeout for outbound calls (ms) */
|
||||||
|
ringTimeoutMs: z.number().int().positive().default(30000),
|
||||||
|
|
||||||
|
/** Maximum concurrent calls */
|
||||||
|
maxConcurrentCalls: z.number().int().positive().default(1),
|
||||||
|
|
||||||
|
/** Webhook server configuration */
|
||||||
|
serve: VoiceCallServeConfigSchema,
|
||||||
|
|
||||||
|
/** Tailscale exposure configuration (legacy, prefer tunnel config) */
|
||||||
|
tailscale: VoiceCallTailscaleConfigSchema,
|
||||||
|
|
||||||
|
/** Tunnel configuration (unified ngrok/tailscale) */
|
||||||
|
tunnel: VoiceCallTunnelConfigSchema,
|
||||||
|
|
||||||
|
/** Real-time audio streaming configuration */
|
||||||
|
streaming: VoiceCallStreamingConfigSchema,
|
||||||
|
|
||||||
|
/** Public webhook URL override (if set, bypasses tunnel auto-detection) */
|
||||||
|
publicUrl: z.string().url().optional(),
|
||||||
|
|
||||||
|
/** Skip webhook signature verification (development only, NOT for production) */
|
||||||
|
skipSignatureVerification: z.boolean().default(false),
|
||||||
|
|
||||||
|
/** STT configuration */
|
||||||
|
stt: SttConfigSchema,
|
||||||
|
|
||||||
|
/** TTS configuration */
|
||||||
|
tts: TtsConfigSchema,
|
||||||
|
|
||||||
|
/** Store path for call logs */
|
||||||
|
store: z.string().optional(),
|
||||||
|
|
||||||
|
/** Model for generating voice responses (e.g., "anthropic/claude-sonnet-4", "openai/gpt-4o") */
|
||||||
|
responseModel: z.string().default("openai/gpt-4o-mini"),
|
||||||
|
|
||||||
|
/** System prompt for voice responses */
|
||||||
|
responseSystemPrompt: z.string().optional(),
|
||||||
|
|
||||||
|
/** Timeout for response generation in ms (default 30s) */
|
||||||
|
responseTimeoutMs: z.number().int().positive().default(30000),
|
||||||
|
});
|
||||||
|
|
||||||
|
export type VoiceCallConfig = z.infer<typeof VoiceCallConfigSchema>;
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
// Configuration Helpers
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Validate that the configuration has all required fields for the selected provider.
|
||||||
|
*/
|
||||||
|
export function validateProviderConfig(config: VoiceCallConfig): {
|
||||||
|
valid: boolean;
|
||||||
|
errors: string[];
|
||||||
|
} {
|
||||||
|
const errors: string[] = [];
|
||||||
|
|
||||||
|
if (!config.enabled) {
|
||||||
|
return { valid: true, errors: [] };
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!config.provider) {
|
||||||
|
errors.push("plugins.entries.voice-call.config.provider is required");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!config.fromNumber && config.provider !== "mock") {
|
||||||
|
errors.push("plugins.entries.voice-call.config.fromNumber is required");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (config.provider === "telnyx") {
|
||||||
|
if (!config.telnyx?.apiKey) {
|
||||||
|
errors.push(
|
||||||
|
"plugins.entries.voice-call.config.telnyx.apiKey is required (or set TELNYX_API_KEY env)",
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (!config.telnyx?.connectionId) {
|
||||||
|
errors.push(
|
||||||
|
"plugins.entries.voice-call.config.telnyx.connectionId is required (or set TELNYX_CONNECTION_ID env)",
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (config.provider === "twilio") {
|
||||||
|
if (!config.twilio?.accountSid) {
|
||||||
|
errors.push(
|
||||||
|
"plugins.entries.voice-call.config.twilio.accountSid is required (or set TWILIO_ACCOUNT_SID env)",
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (!config.twilio?.authToken) {
|
||||||
|
errors.push(
|
||||||
|
"plugins.entries.voice-call.config.twilio.authToken is required (or set TWILIO_AUTH_TOKEN env)",
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return { valid: errors.length === 0, errors };
|
||||||
|
}
|
||||||
@@ -0,0 +1,190 @@
|
|||||||
|
import fs from "node:fs";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
||||||
|
|
||||||
|
export type CoreConfig = {
|
||||||
|
session?: {
|
||||||
|
store?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
type CoreAgentDeps = {
|
||||||
|
resolveAgentDir: (cfg: CoreConfig, agentId: string) => string;
|
||||||
|
resolveAgentWorkspaceDir: (cfg: CoreConfig, agentId: string) => string;
|
||||||
|
resolveAgentIdentity: (
|
||||||
|
cfg: CoreConfig,
|
||||||
|
agentId: string,
|
||||||
|
) => { name?: string | null } | null | undefined;
|
||||||
|
resolveThinkingDefault: (params: {
|
||||||
|
cfg: CoreConfig;
|
||||||
|
provider?: string;
|
||||||
|
model?: string;
|
||||||
|
}) => string;
|
||||||
|
runEmbeddedPiAgent: (params: {
|
||||||
|
sessionId: string;
|
||||||
|
sessionKey?: string;
|
||||||
|
messageProvider?: string;
|
||||||
|
sessionFile: string;
|
||||||
|
workspaceDir: string;
|
||||||
|
config?: CoreConfig;
|
||||||
|
prompt: string;
|
||||||
|
provider?: string;
|
||||||
|
model?: string;
|
||||||
|
thinkLevel?: string;
|
||||||
|
verboseLevel?: string;
|
||||||
|
timeoutMs: number;
|
||||||
|
runId: string;
|
||||||
|
lane?: string;
|
||||||
|
extraSystemPrompt?: string;
|
||||||
|
agentDir?: string;
|
||||||
|
}) => Promise<{
|
||||||
|
payloads?: Array<{ text?: string; isError?: boolean }>;
|
||||||
|
meta?: { aborted?: boolean };
|
||||||
|
}>;
|
||||||
|
resolveAgentTimeoutMs: (opts: { cfg: CoreConfig }) => number;
|
||||||
|
ensureAgentWorkspace: (params?: { dir: string }) => Promise<void>;
|
||||||
|
resolveStorePath: (store?: string, opts?: { agentId?: string }) => string;
|
||||||
|
loadSessionStore: (storePath: string) => Record<string, unknown>;
|
||||||
|
saveSessionStore: (
|
||||||
|
storePath: string,
|
||||||
|
store: Record<string, unknown>,
|
||||||
|
) => Promise<void>;
|
||||||
|
resolveSessionFilePath: (
|
||||||
|
sessionId: string,
|
||||||
|
entry: unknown,
|
||||||
|
opts?: { agentId?: string },
|
||||||
|
) => string;
|
||||||
|
DEFAULT_MODEL: string;
|
||||||
|
DEFAULT_PROVIDER: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
let coreRootCache: string | null = null;
|
||||||
|
let coreDepsPromise: Promise<CoreAgentDeps> | null = null;
|
||||||
|
|
||||||
|
function findPackageRoot(startDir: string, name: string): string | null {
|
||||||
|
let dir = startDir;
|
||||||
|
for (;;) {
|
||||||
|
const pkgPath = path.join(dir, "package.json");
|
||||||
|
try {
|
||||||
|
if (fs.existsSync(pkgPath)) {
|
||||||
|
const raw = fs.readFileSync(pkgPath, "utf8");
|
||||||
|
const pkg = JSON.parse(raw) as { name?: string };
|
||||||
|
if (pkg.name === name) return dir;
|
||||||
|
}
|
||||||
|
} catch {
|
||||||
|
// ignore parse errors and keep walking
|
||||||
|
}
|
||||||
|
const parent = path.dirname(dir);
|
||||||
|
if (parent === dir) return null;
|
||||||
|
dir = parent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function resolveClawdbotRoot(): string {
|
||||||
|
if (coreRootCache) return coreRootCache;
|
||||||
|
const override = process.env.CLAWDBOT_ROOT?.trim();
|
||||||
|
if (override) {
|
||||||
|
coreRootCache = override;
|
||||||
|
return override;
|
||||||
|
}
|
||||||
|
|
||||||
|
const candidates = new Set<string>();
|
||||||
|
if (process.argv[1]) {
|
||||||
|
candidates.add(path.dirname(process.argv[1]));
|
||||||
|
}
|
||||||
|
candidates.add(process.cwd());
|
||||||
|
try {
|
||||||
|
const urlPath = fileURLToPath(import.meta.url);
|
||||||
|
candidates.add(path.dirname(urlPath));
|
||||||
|
} catch {
|
||||||
|
// ignore
|
||||||
|
}
|
||||||
|
|
||||||
|
for (const start of candidates) {
|
||||||
|
const found = findPackageRoot(start, "clawdbot");
|
||||||
|
if (found) {
|
||||||
|
coreRootCache = found;
|
||||||
|
return found;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Error(
|
||||||
|
"Unable to resolve Clawdbot root. Set CLAWDBOT_ROOT to the package root.",
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
async function importCoreModule<T>(relativePath: string): Promise<T> {
|
||||||
|
const root = resolveClawdbotRoot();
|
||||||
|
const distPath = path.join(root, "dist", relativePath);
|
||||||
|
if (!fs.existsSync(distPath)) {
|
||||||
|
throw new Error(
|
||||||
|
`Missing core module at ${distPath}. Run \`pnpm build\` or install the official package.`,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return (await import(pathToFileURL(distPath).href)) as T;
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function loadCoreAgentDeps(): Promise<CoreAgentDeps> {
|
||||||
|
if (coreDepsPromise) return coreDepsPromise;
|
||||||
|
|
||||||
|
coreDepsPromise = (async () => {
|
||||||
|
const [
|
||||||
|
agentScope,
|
||||||
|
defaults,
|
||||||
|
identity,
|
||||||
|
modelSelection,
|
||||||
|
piEmbedded,
|
||||||
|
timeout,
|
||||||
|
workspace,
|
||||||
|
sessions,
|
||||||
|
] = await Promise.all([
|
||||||
|
importCoreModule<{
|
||||||
|
resolveAgentDir: CoreAgentDeps["resolveAgentDir"];
|
||||||
|
resolveAgentWorkspaceDir: CoreAgentDeps["resolveAgentWorkspaceDir"];
|
||||||
|
}>("agents/agent-scope.js"),
|
||||||
|
importCoreModule<{
|
||||||
|
DEFAULT_MODEL: string;
|
||||||
|
DEFAULT_PROVIDER: string;
|
||||||
|
}>("agents/defaults.js"),
|
||||||
|
importCoreModule<{
|
||||||
|
resolveAgentIdentity: CoreAgentDeps["resolveAgentIdentity"];
|
||||||
|
}>("agents/identity.js"),
|
||||||
|
importCoreModule<{
|
||||||
|
resolveThinkingDefault: CoreAgentDeps["resolveThinkingDefault"];
|
||||||
|
}>("agents/model-selection.js"),
|
||||||
|
importCoreModule<{
|
||||||
|
runEmbeddedPiAgent: CoreAgentDeps["runEmbeddedPiAgent"];
|
||||||
|
}>("agents/pi-embedded.js"),
|
||||||
|
importCoreModule<{
|
||||||
|
resolveAgentTimeoutMs: CoreAgentDeps["resolveAgentTimeoutMs"];
|
||||||
|
}>("agents/timeout.js"),
|
||||||
|
importCoreModule<{
|
||||||
|
ensureAgentWorkspace: CoreAgentDeps["ensureAgentWorkspace"];
|
||||||
|
}>("agents/workspace.js"),
|
||||||
|
importCoreModule<{
|
||||||
|
resolveStorePath: CoreAgentDeps["resolveStorePath"];
|
||||||
|
loadSessionStore: CoreAgentDeps["loadSessionStore"];
|
||||||
|
saveSessionStore: CoreAgentDeps["saveSessionStore"];
|
||||||
|
resolveSessionFilePath: CoreAgentDeps["resolveSessionFilePath"];
|
||||||
|
}>("config/sessions.js"),
|
||||||
|
]);
|
||||||
|
|
||||||
|
return {
|
||||||
|
resolveAgentDir: agentScope.resolveAgentDir,
|
||||||
|
resolveAgentWorkspaceDir: agentScope.resolveAgentWorkspaceDir,
|
||||||
|
resolveAgentIdentity: identity.resolveAgentIdentity,
|
||||||
|
resolveThinkingDefault: modelSelection.resolveThinkingDefault,
|
||||||
|
runEmbeddedPiAgent: piEmbedded.runEmbeddedPiAgent,
|
||||||
|
resolveAgentTimeoutMs: timeout.resolveAgentTimeoutMs,
|
||||||
|
ensureAgentWorkspace: workspace.ensureAgentWorkspace,
|
||||||
|
resolveStorePath: sessions.resolveStorePath,
|
||||||
|
loadSessionStore: sessions.loadSessionStore,
|
||||||
|
saveSessionStore: sessions.saveSessionStore,
|
||||||
|
resolveSessionFilePath: sessions.resolveSessionFilePath,
|
||||||
|
DEFAULT_MODEL: defaults.DEFAULT_MODEL,
|
||||||
|
DEFAULT_PROVIDER: defaults.DEFAULT_PROVIDER,
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
|
||||||
|
return coreDepsPromise;
|
||||||
|
}
|
||||||
Loaded 100 of 404 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user