Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

配置参考

ZeroClaw 通过 TOML 文件进行配置。除非另有说明,所有字段均为可选。

章节描述
acpACP (Agent Client Protocol) server configuration ([acp] section).
agentsAliased agents in this install. Each entry under [agents.<alias>]
备份备份工具配置([backup] 部分)。
浏览器浏览器自动化配置([browser] 部分)。
browser_delegate
channels顶级通道配置([channels] 部分)。
claude_codeClaude Code CLI 工具配置([claude_code] 部分)。
claude_code_runnerClaude Code 任务运行器配置([claude_code_runner] 部分)。
cloud_ops控制只读云转换分析工具:
codex_cliCodex CLI 工具配置([codex_cli] 部分)。
composioComposio 托管的 OAuth 工具集成([composio] 部分)。
conversational_ai对话式 AI 代理构建器配置([conversational_ai] 部分)。
cost成本跟踪和预算强制执行配置([cost] 部分)。
cronDeclarative cron jobs ([cron.<alias>]), alias-keyed.
data_retention数据保留和清理配置([data_retention] 部分)。
delegate全局委托工具配置,用于设置默认超时值。
embedding_routesEmbedding-routing rules — route hint:<name> to specific
escalationEscalation routing configuration ([escalation] section).
file_downloadStandalone file download tool configuration ([file_download]).
file_uploadStandalone file upload tool configuration ([file_upload]).
file_upload_bundleStandalone multi-file bundle upload tool configuration
网关网关服务器配置([gateway] 部分)。
gemini_cliGemini CLI 工具配置([gemini_cli] 部分)。
google_workspaceGoogle Workspace CLI (gws) 工具配置([google_workspace] 部分)。
硬件用于物理世界交互的向导驱动硬件配置。
心跳用于定期健康检查的 heartbeat 配置([heartbeat] 部分)。
hooks
http_requestHTTP 请求工具配置([http_request] 部分)。
image_gen独立图像生成工具配置([image_gen])。
jiraJira 集成配置([jira])。
知识用于捕获和复用专业知识的知识图谱配置。
knowledge_bundlesNamed knowledge bundles ([knowledge_bundles.<alias>]).
link_enricher自动理解入站频道消息中的链接([link_enricher])。
linkedinLinkedIn 集成配置([linkedin] 部分)。
locale工具描述的语言环境(例如 "en""zh-CN")。
mcp外部 MCP 客户端配置([mcp] 部分)。
mcp_bundlesNamed MCP server bundles ([mcp_bundles.<alias>]).
media_pipeline自动媒体理解流水线配置([media_pipeline])。
memory内存后端配置([memory] 部分)。
microsoft365通过 Microsoft Graph API([microsoft365] 部分)集成 Microsoft 365。
model_routesModel-routing rules — route hint:<name> to specific
多模态多模态(图像)处理配置([multimodal] 部分)。
node_transport节点间通信的安全传输配置([node_transport])。
节点动态节点发现系统的配置([nodes])。
notionNotion 集成配置([notion])。
可观测性可观测性后端配置([observability] 部分)。
onboard_state多客户端工作区隔离配置。
opencode_cliOpenCode CLI 工具配置([opencode_cli] 部分)。
pacing用于慢速/本地 LLM 工作负载的速率控制([pacing] 部分)。
peer_groupsNamed peer groups ([peer_groups.<name>]). Each entry binds a
外围设备外围板集成配置([peripherals] 部分)。
pipeline流水线工具配置([pipeline] 部分)。
插件插件系统配置。
project_intel项目交付智能配置([project_intel] 部分)。
providersTop-level wrapper for every provider category. TOML root sees a
代理出站 HTTP/HTTPS/SOCKS5 流量的代理配置([proxy] 部分)。
query_classification自动查询分类——通过关键词/模式对用户消息进行分类
可靠性可靠性和监控配置([reliability] 部分)。
risk_profilesNamed risk/autonomy profiles ([risk_profiles.<alias>]).
运行时运行时适配器配置([runtime] 部分)。
runtime_profilesNamed runtime/LLM execution profiles ([runtime_profiles.<alias>]).
scheduler用于周期性任务执行的调度器配置([scheduler] 部分)。
schema_version配置文件模式版本。
secrets加密配置([secrets] 部分)。
securitySecurity configuration for audit logging, OTP, e-stop, IAM/SSO, and WebAuthn.
security_ops托管式网络安全服务 (MCSS) 仪表板代理配置 ([security_ops])。
shell_toolShell 工具配置([shell_tool] 部分)。
skill_bundlesNamed skill bundles ([skill_bundles.<alias>]).
技能技能加载配置([skills] 部分)。
sop标准操作程序引擎配置([sop])。
存储持久化存储配置([storage] 部分)。
text_browser文本浏览器工具配置([text_browser] 部分)。
转录支持多提供商的语音转录配置。
信任
ttsText-to-Speech subsystem configuration ([tts]).
隧道用于将网关公开暴露的隧道配置([tunnel] 部分)。
verifiable_intent可验证意图(VI)凭证的验证与签发([verifiable_intent] 部分)。
web_fetchWeb 获取工具配置([web_fetch] 部分)。
web_searchWeb 搜索工具配置([web_search] 部分)。

acp

ACP (Agent Client Protocol) server configuration ([acp] section).

类型默认描述
default_agent任何Agent alias to use when session/new omits agentAlias and more than
max_sessions整数10Maximum number of concurrent ACP sessions. Default: 10.
session_timeout_secs整数3600Idle session timeout in seconds. Sessions with no activity for this

agents

Aliased agents in this install. Each entry under [agents.<alias>] is one user-facing agent with its own identity, channels, model provider, risk profile, workspace, and memory scope. DelegateTool consults this map when one agent delegates a subtask to another.

备份

备份工具配置([backup] 部分)。

类型默认描述
压缩布尔true压缩备份归档文件。
destination_dir字符串"state/backups"备份归档文件的输出目录(相对于工作区根目录)。
enabled布尔true启用 backup 工具。
encrypt布尔false加密备份归档文件(需要配置密钥存储密钥)。
include_dirs字符串数组["config","memory","audit","knowledge"]要包含在备份中的工作区子目录。
max_keep整数10要保留的最大备份数量(最旧的将被清理)。
schedule_cron任何null用于计划自动备份的可选 cron 表达式。
schedule_timezone任何nullschedule_cron 的 IANA 时区。

浏览器

浏览器自动化配置([browser] 部分)。

控制 browser_open 工具和浏览器自动化后端。

类型默认描述
allowed_domains字符串数组["*"]browser_open 允许的域名(精确匹配或子域名匹配)
后端字符串"agent_browser"浏览器自动化后端:“agent_browser” | “rust_native” | “computer_use” | “auto”
computer_use对象计算机使用侧车配置([browser.computer_use] 部分)。
enabled布尔true启用 browser_open 工具(在系统浏览器中打开 URL,不进行抓取)
headed任何nullShow browser window for agent_browser backend. When unset, inherits AGENT_BROWSER_HEADED.
native_chrome_path任何null用于 rust-native 后端的可选 Chrome/Chromium 可执行文件路径
native_headless布尔true适用于 Rust 原生后端的无头模式
native_webdriver_url字符串"http://127.0.0.1:9515"用于 Rust 原生后端的 WebDriver 端点 URL(例如 http://127.0.0.1:9515
session_name任何null浏览器会话名称(用于代理浏览器自动化)

browser.computer_use

计算机使用侧车配置([browser.computer_use] 部分)。

将操作系统级别的鼠标、键盘和截图操作委托给本地边车(sidecar)。

类型默认描述
allow_remote_endpoint布尔false允许计算机使用旁路组件的远程/公共端点(默认值:false)
api_key 🔑任何null用于计算机使用旁路组件的可选承载令牌
endpoint字符串"http://127.0.0.1:8787/v1/actions"用于计算机使用操作的 Sidecar 端点(操作系统级别的鼠标/键盘/截图)
max_coordinate_x任何null基于坐标的操作的可选 X 轴边界
max_coordinate_y任何null基于坐标的操作的可选 Y 轴边界
timeout_ms整数15000每个操作的请求超时时间(以毫秒为单位)
window_allowlist字符串数组[]可选的窗口标题/进程允许列表,转发到边车策略

browser_delegate

类型默认描述
allowed_domains字符串数组[]
blocked_domains字符串数组[]
chrome_profile_dir字符串""
cli_binary字符串"claude"
enabled布尔false
task_timeout_secs整数120

channels

顶级通道配置([channels] 部分)。

each channel type is a keyed table of named instances (aliases). [channels.telegram.default] is the conventional single-instance key. Access via config.channels.telegram.get("default").

类型默认描述
ack_reactions布尔true是否添加确认反应(收到时显示 👀,✅/⚠️ 在
bluesky映射Bluesky channel instances ([channels.bluesky.<alias>]).
clawdtalk映射ClawdTalk voice channel instances ([channels.clawdtalk.<alias>]).
cli布尔true启用 CLI 交互通道。默认值:true
debounce_ms整数0入站消息去抖窗口(毫秒)。当发送方触发
dingtalk映射DingTalk channel instances ([channels.dingtalk.<alias>]).
discord映射Discord bot channel instances ([channels.discord.<alias>]).
email映射Email channel instances ([channels.email.<alias>]).
gmail_push映射Gmail Pub/Sub push notification channel instances ([channels.gmail_push.<alias>]).
imessage映射iMessage channel instances ([channels.imessage.<alias>], macOS only).
irc映射IRC channel instances ([channels.irc.<alias>]).
lark映射Lark channel instances ([channels.lark.<alias>]).
line映射LINE Messaging API channel instances ([channels.line.<alias>]).
linq映射Linq Partner API channel instances ([channels.linq.<alias>]).
矩阵映射Matrix channel instances ([channels.matrix.<alias>]).
mattermost映射Mattermost bot channel instances ([channels.mattermost.<alias>]).
message_timeout_secs整数300处理单个通道消息(LLM + 工具)的基础超时时间(秒)。
mochat映射Mochat customer service channel instances ([channels.mochat.<alias>]).
mqtt映射MQTT channel instances ([channels.mqtt.<alias>]).
nextcloud_talk映射Nextcloud Talk bot channel instances ([channels.nextcloud_talk.<alias>]).
nostr映射
qq映射QQ Official Bot channel instances ([channels.qq.<alias>]).
reddit映射Reddit channel instances ([channels.reddit.<alias>]).
session_backend字符串"sqlite"会话持久化后端:"jsonl"(旧版)或 "sqlite"(新版默认)。
session_persistence布尔true将频道对话历史持久化到 JSONL 文件中,以便会话能够持续存在
session_ttl_hours整数0自动归档超过此小时数的过期会话。0 表示禁用。默认值:0
show_tool_calls布尔false是否发送工具调用通知消息(例如 🔧 web_search_tool: …
信号映射Signal channel instances ([channels.signal.<alias>]).
slack映射Slack bot channel instances ([channels.slack.<alias>]).
telegram映射Telegram bot channel instances ([channels.telegram.<alias>]).
twitter映射X/Twitter channel instances ([channels.twitter.<alias>]).
语音通话映射Voice call channel instances ([channels.voice_call.<alias>]).
voice_duplex映射Voice duplex instances ([channels.voice_duplex.<alias>]).
voice_wake映射Voice wake word detection channel instances ([channels.voice_wake.<alias>]).
wati映射WATI WhatsApp Business API channel instances ([channels.wati.<alias>]).
webhook映射Webhook channel instances ([channels.webhook.<alias>]).
wechat映射WeChat personal iLink Bot channel instances ([channels.wechat.<alias>]).
wecom映射WeCom (WeChat Enterprise) Bot Webhook channel instances ([channels.wecom.<alias>]).
wecom_ws映射WeCom AI Bot WebSocket channel instances ([channels.wecom_ws.<alias>]).
whatsapp映射WhatsApp channel instances ([channels.whatsapp.<alias>]).

claude_code

Claude Code CLI 工具配置([claude_code] 部分)。

将编码任务委派给 claude -p CLI。默认情况下,身份验证使用二进制文件自身的 OAuth 会话(Max 订阅)——除非 env_passthrough 包含 ANTHROPIC_API_KEY,否则无需 API 密钥。

类型默认描述
allowed_tools字符串数组["读取","编辑","Bash","写入"]Claude Code 工具中子进程允许使用的内容
enabled布尔false启用 claude_code 工具
env_passthrough字符串数组[]传递给 claude 子进程的环境变量(例如,用于 API 密钥计费的 ANTHROPIC_API_KEY)
max_output_bytes整数2097152最大输出大小(以字节为单位,默认值为 2MB)
system_prompt任何null附加到 Claude Code 调用的可选系统提示
timeout_secs整数600最大执行时间(秒)(编码任务可能耗时较长)

claude_code_runner

Claude Code 任务运行器配置([claude_code_runner] 部分)。

在 tmux 会话中启动 Claude Code,并通过 HTTP 钩子将工具执行事件 POST 到 ZeroClaw 的网关,实时更新 Slack 消息中的进度以及 SSH 交接链接。

类型默认描述
enabled布尔false启用 claude_code_runner 工具
session_ttl整数3600会话存活时间(以秒为单位),在自动清理之前(默认值:3600)
ssh_host任何null用于会话切换链接的 SSH 主机(例如 “myhost.example.com”)
tmux_prefix字符串"zc-claude-"tmux 会话名称的前缀(默认值:“zc-claude-”)

cloud_ops

控制只读的云转换分析工具:IaC 审查、迁移评估、成本分析和架构审查。

类型默认描述
cost_threshold_monthly_usd数字100.0用于标记成本项的每月美元阈值。默认值:100.0。
default_cloud字符串"aws"Default cloud model_provider for analysis context. Default: “aws”.
enabled布尔false启用云操作工具。默认值:false。
iac_tools字符串数组["terraform"]支持用于审查的 IaC 工具。默认值:[terraform]。
supported_clouds字符串数组["aws","azure","gcp"]Supported cloud model_providers. Default: [aws, azure, gcp].
well_architected_frameworks字符串数组["aws-waf"]用于检查的架构最佳实践框架。默认值:[aws-waf]。

codex_cli

Codex CLI 工具配置([codex_cli] 部分)。

将编码任务委托给 codex -q CLI。默认情况下,身份验证使用二进制文件自身的会话——除非 env_passthrough 包含 OPENAI_API_KEY,否则无需 API 密钥。

类型默认描述
enabled布尔false启用 codex_cli 工具
env_passthrough字符串数组[]传递给 codex 子进程的其他环境变量(例如 OPENAI_API_KEY)
max_output_bytes整数2097152最大输出大小(以字节为单位,默认值为 2MB)
timeout_secs整数600最大执行时间(秒)(编码任务可能耗时较长)

composio

Composio 托管的 OAuth 工具集成([composio] 部分)。

通过 Composio 平台提供对 1000 多个 OAuth 连接工具的访问。

类型默认描述
api_key 🔑任何nullComposio API 密钥(当 secrets.encrypt = true 时以加密形式存储)
enabled布尔false启用 Composio 集成,支持 1000 多个 OAuth 工具
entity_id字符串"默认"多用户设置中的默认实体 ID

conversational_ai

对话式 AI 代理构建器配置([conversational_ai] 部分)。

状态:保留供将来使用。 此配置会被解析,但尚未被运行时使用。设置 enabled = true 将产生启动警告。

类型默认描述
analytics_enabled布尔false启用对话分析跟踪。默认值:false(默认隐私保护)。
auto_detect_language布尔true自动从消息内容中检测用户语言。默认值:true。
conversation_timeout_secs整数1800会话超时时间(秒,表示不活跃时间)。默认值:1800。
default_language字符串"en"对话的默认语言(BCP-47 标签)。默认值:“en”。
enabled布尔false启用对话式 AI 功能。默认值:false。
escalation_confidence_threshold数字0.3低于此阈值的意图置信度将触发升级。默认值:0.3。
knowledge_base_tool任何null用于在对话期间进行基于 RAG 的知识库查找的可选工具名称。
max_conversation_turns整数50自动结束前的最大对话轮数。默认值:50。
supported_languages字符串数组["en","de","fr","it"]对话支持的语言。默认值:[en, de, fr, it]。

cost

成本跟踪和预算强制执行配置([cost] 部分)。

类型默认描述
allow_override布尔false允许通过 --override 标志(默认值:false)使请求超出预算
daily_limit_usd数字10.0每日支出限额(以美元计,默认值:10.00)
enabled布尔true启用成本跟踪(默认:true)
enforcement对象当达到预算限制时,用于成本强制执行行为的配置。
monthly_limit_usd数字100.0每月支出上限(以美元计,默认值:100.00)
rates对象[cost.rates] — top-level rate-sheet namespace. Mirrors the
track_per_agent布尔trueStamp each recorded cost entry with the originating agent alias so
warn_at_percent整数80当支出达到此百分比限制时发出警告(默认值:80)

成本执行

当达到预算限制时,用于成本强制执行行为的配置。

类型默认描述
模式字符串"warn"执行模式:“warn”、“block” 或 “route_down”。
reserve_percent整数10将预算的此百分比保留用于关键操作。
route_down_model任何null当超出预算时路由到的模型(与“route_down”模式一起使用)。

cost.rates

[cost.rates] — top-level rate-sheet namespace. Mirrors the [providers.*] shape so each subsection here points at the same kind of resource its [providers.*] counterpart configures.

类型默认描述
providers对象[cost.rates.providers.*] — provider-shaped rate sheets. Each field
tools映射{}[cost.rates.tools.<name>] — per-call rates for tools that

cost.rates.providers

[cost.rates.providers.*] — provider-shaped rate sheets. Each field here mirrors a corresponding field on [providers.*] with the trailing alias segment replaced by the resource the rate prices. The inner typed wrappers carry the per-provider-type slot layout and own dispatch (their slot list is the single source of truth, shared with their providers counterpart via the for_each_*_provider_slot! macros in [crate::providers]).

类型默认描述
models对象[cost.rates.providers.models.<type>.<model>] — token-cost rates
转录对象cost.rates.providers.transcription.<type>.<model>
tts对象cost.rates.providers.tts.<type>.<voice>

cron

Declarative cron jobs ([cron.<alias>]), alias-keyed.

Each entry is a named scheduled job synced into the database at scheduler startup. Subsystem runtime knobs (enable/disable, catch-up, run-history retention) live on [scheduler].

data_retention

数据保留和清理配置([data_retention] 部分)。

类型默认描述
categories字符串数组[]将保留策略的执行限制到特定的数据类别(空值表示所有类别)。
dry_run布尔false预览将被删除的内容,而不会实际删除任何内容。
enabled布尔false启用 data_management 工具。
retention_days整数90在数据被清除之前保留的天数。

delegate

全局委托工具配置,用于设置默认超时值。

类型默认描述
agentic_timeout_secs整数300代理子代理运行的默认超时时间(以秒为单位)。
timeout_secs整数120Default timeout in seconds for non-agentic sub-agent model_provider calls.

embedding_routes

Embedding-routing rules — route hint:<name> to specific model_provider + model combos for embedding requests.

escalation

Escalation routing configuration ([escalation] section).

Controls which channels receive alert notifications when escalate_to_human is called with high or critical urgency. Channels are identified by name (e.g. "telegram", "slack"). Alerts are sent best-effort and do not block the escalation.

类型默认描述
alert_channels字符串数组[]Channel names to alert on high/critical escalations (default: empty).

file_download

Standalone file download tool configuration ([file_download]).

When url is set to a non-empty value, registers a file_download tool that GETs a file from the configured endpoint and writes it to the agent’s workspace filesystem. The LLM supplies only a document identifier and a workspace-relative destination path; the endpoint URL comes solely from this config and is never model-controlled. Response bytes are streamed to disk and never loaded into model context.

When url is None or empty, the tool is not registered.

类型默认描述
headers映射{}Static HTTP headers attached to every download request — typically an
max_file_size_bytes整数26214400Maximum download size in bytes. Enforced while streaming: the transfer
timeout_secs整数120Request timeout in seconds. Default: 120.
url任何nullDownload endpoint URL. Tool is disabled when this is None or empty.

file_upload

Standalone file upload tool configuration ([file_upload]).

When url is set to a non-empty value, registers a file_upload tool that POSTs files from the agent’s local filesystem to the configured endpoint using multipart/form-data. The LLM provides only a file path; the host reads the bytes and uploads them without ever including file content in the model context.

When url is None or empty, the tool is not registered.

类型默认描述
field_name字符串"file"Multipart form-field name for the file part. Default: file.
headers映射{}Static HTTP headers attached to every upload request. Same shape as
max_file_size_bytes整数26214400Maximum file size in bytes. Larger files are rejected before any
method字符串"POST"HTTP method. Only POST (default) and PUT are accepted.
timeout_secs整数60Request timeout in seconds. Default: 60.
url任何nullUpload endpoint URL. Tool is disabled when this is None or empty.

file_upload_bundle

Standalone multi-file bundle upload tool configuration ([file_upload_bundle]).

When url is set to a non-empty value, registers a file_upload_bundle tool that POSTs N files from the agent’s local filesystem to the configured endpoint as a single multipart/form-data request. The LLM provides only file paths; the host reads the bytes.

When url is None or empty, the tool is not registered.

类型默认描述
field_name字符串"file"Multipart form-field name reused across every file part. Default: file.
headers映射{}Static HTTP headers attached to every upload request.
max_file_size_bytes整数10485760Maximum per-file size in bytes. Default: 10 MiB.
max_files整数16Maximum number of files per call. Default: 16.
max_response_body_bytes整数4096Maximum response body bytes to read from the upload endpoint.
max_total_size_bytes整数33554432Maximum cumulative size across every file in one call. Default: 32 MiB.
method字符串"POST"HTTP method. Only POST (default) and PUT are accepted.
timeout_secs整数120Request timeout in seconds. Default: 120.
url任何nullUpload endpoint URL. Tool is disabled when this is None or empty.

网关

网关服务器配置([gateway] 部分)。

控制用于 webhook 和配对端点的 HTTP 网关。

类型默认描述
allow_public_bind布尔false允许绑定到非 localhost 地址而无需隧道(默认值:false)
host字符串"127.0.0.1"网关主机(默认:127.0.0.1)
idempotency_max_keys整数10000保留在内存中的最大不同幂等性键数量。
idempotency_ttl_secs整数300Webhook 幂等性键的 TTL(生存时间)。
long_running_request_timeout_secs整数600HTTP request timeout (seconds) for POST /api/cron/{id}/run, which
pair_rate_limit_per_minute整数10每个客户端密钥每分钟最大 /pair 请求数。
paired_tokens 🔑字符串数组[]配对的承载令牌(自动管理,非用户编辑)
配对仪表板对象配对仪表板配置([gateway.pairing_dashboard])。
path_prefix任何null反向代理部署的可选 URL 路径前缀。
端口整数42617网关端口(默认值:42617)
rate_limit_max_keys整数10000网关速率限制器映射跟踪的最大不同客户端密钥数。
request_timeout_secs整数30HTTP request timeout (seconds) for gateway routes other than the
require_pairing布尔true在接收请求前要求配对(默认:true)
session_persistence布尔true将网关 WebSocket 聊天会话持久化到 SQLite。默认值:true。
session_ttl_hours整数0自动归档超过 N 小时未活动的网关会话。0 表示禁用。默认值:0。
tls对象网关服务器的 TLS 配置([gateway.tls])。
trust_forwarded_headers布尔false信任代理转发的客户端 IP 头(X-Forwarded-ForX-Real-IP)。
web_dist_dir任何nullWeb 仪表板 dist 目录的路径。设置后,网关
webhook_rate_limit_per_minute整数60每个客户端密钥每分钟 /webhook 请求的最大数量。

gateway.pairing_dashboard

配对仪表板配置([gateway.pairing_dashboard])。

类型默认描述
code_length整数8配对码的长度(默认值:8)
code_ttl_secs整数3600待配对代码的存活时间(秒)(默认值:3600)
lockout_secs整数300达到最大尝试次数后的锁定持续时间(秒)(默认值:300)
max_failed_attempts整数5锁定前最大失败配对尝试次数(默认值:5)
max_pending_codes整数3最大并发待配对代码数(默认值:3)

gateway.tls

网关服务器的 TLS 配置([gateway.tls])。

类型默认描述
cert_path*字符串PEM 编码的服务器证书文件的路径。
client_auth对象客户端证书认证(mTLS)配置([gateway.tls.client_auth])。
enabled布尔false为网关启用 TLS(默认值:false)。
key_path*字符串PEM 编码的服务器私钥文件的路径。

gateway.tls.client_auth

客户端证书认证(mTLS)配置([gateway.tls.client_auth])。

类型默认描述
ca_cert_path字符串""用于验证客户端证书的 PEM 编码 CA 证书的路径。
enabled布尔false启用客户端证书验证(默认值:false)。
pinned_certs字符串数组[]用于证书固定的可选 SHA-256 指纹。
require_client_cert布尔true拒绝未提供有效客户端证书的连接(默认值:true)。

gemini_cli

Gemini CLI 工具配置([gemini_cli] 部分)。

将编码任务委托给 gemini -p CLI。默认情况下,身份验证使用二进制文件自身的会话——除非 env_passthrough 包含 GOOGLE_API_KEY,否则无需 API 密钥。

类型默认描述
enabled布尔false启用 gemini_cli 工具
env_passthrough字符串数组[]传递给 gemini 子进程的额外环境变量(例如 GOOGLE_API_KEY)
max_output_bytes整数2097152最大输出大小(以字节为单位,默认值为 2MB)
timeout_secs整数600最大执行时间(秒)(编码任务可能耗时较长)

google_workspace

Google Workspace CLI (gws) 工具配置([google_workspace] 部分)。

默认值

  • enabledfalse(除非显式选择加入,否则工具不会注册)。
  • allowed_services:空向量,表示授予对完整默认服务集的访问权限:drivesheetsgmailcalendardocsslidestaskspeoplechatclassroomformskeepmeetevents
  • allowed_operations:空向量,保留允许在指定服务集下使用任何资源/方法的遗留行为。
  • credentials_pathNone(使用默认的 gws 凭据发现机制)。
  • default_accountNone(使用 gws 活动账户)。
  • rate_limit_per_minute: 60
  • timeout_secs30
  • audit_log: false

兼容性

完全省略 [google_workspace] 部分的配置将被视为 GoogleWorkspaceConfig::default()(已禁用,所有默认值均允许)。添加该部分完全是可选的,不会影响其他配置部分。

回滚 / 迁移

要撤销,请从配置文件中删除 [google_workspace] 部分(或设置 enabled = false)。无需进行数据迁移;该工具将不再被注册。

类型默认描述
allowed_operations对象[][]限制代理可以访问的资源/方法组合。
allowed_services字符串数组[]限制智能体可以访问的 Google Workspace 服务。
audit_log布尔false启用对每次 gws 调用(服务、资源、
credentials_path任何null服务账户 JSON 文件或 OAuth 客户端凭证文件的路径。
默认账户任何null传递给 gws --account 的默认 Google 账户邮箱。
enabled布尔false启用 google_workspace 工具。默认值:false
rate_limit_per_minute整数60每分钟允许的最大 gws API 调用次数。默认值:60
timeout_secs整数30命令执行的超时时间(秒)。默认值:30

硬件

用于物理世界交互的向导驱动硬件配置。

类型默认描述
波特率整数115200Baud rate negotiated on the serial link. 115200 matches the common Arduino / ESP32 bootloader default; bump to 230400+ when your firmware explicitly supports faster rates and you need the throughput.
enabled布尔falseOpt in to direct physical-hardware control — GPIO pins, USB-tethered microcontrollers (Arduino, ESP32, Nucleo), or SWD/JTAG debug probes. Leave off for software-only use; turning it on without the right transport configured does nothing.
probe_target任何nullTarget chip identifier for transport = probe (e.g. STM32F401RE, nRF52840_xxAA). Passed straight to probe-rs for flash/debug operations; must match a chip probe-rs recognizes.
serial_port任何nullTTY path for the serial transport — e.g. /dev/ttyACM0 on Linux, /dev/tty.usbmodem1 on macOS, COM3 on Windows. Ignored for other transports.
transportNone | Native | Serial | Probe硬件传输模式。
workspace_datasheets布尔falseIndex PDF schematics and datasheets from the workspace into a local RAG store, so the agent can look up pin assignments and electrical specs inline when you ask hardware questions. Off by default — turn on once the workspace has relevant PDFs dropped in.

心跳

用于定期健康检查的 heartbeat 配置([heartbeat] 部分)。

类型默认描述
自适应布尔false启用自适应间隔,在失败时退避,并在成功时加速
agent字符串""Configured agent alias the heartbeat worker runs as. Required
deadman_channel任何null用于死手开关警报的通道(例如 telegram)。回退到
deadman_timeout_minutes整数0死开关超时(分钟)。如果心跳未触发
deadman_to任何null死手开关警报的接收者。回退到 to
enabled布尔falseEnable periodic heartbeat pings. Default: false. When enabled,
interval_minutes整数30心跳 ping 之间的间隔(以分钟为单位)。最小值:1。默认值:30
load_session_context布尔false在每个心跳任务执行之前加载通道会话历史
max_interval_minutes整数120自适应模式退避时的最大间隔(分钟)。默认值:120
max_run_history整数100要保留的心跳运行历史记录的最大数量。默认值:100
消息任何nullHEARTBEAT.md 没有任务条目时,可选的回退任务文本。
min_interval_minutes整数5启用自适应模式时的最小间隔(以分钟为单位)。默认值:5
target任何null心跳输出的可选传递通道(例如:telegram)。
task_timeout_secs整数600单个代理调用允许的最大墙钟秒数
to任何null可选的收件人/聊天标识符(当 target
two_phase布尔true启用两阶段心跳:第一阶段询问 LLM 是否运行,第二阶段

hooks

类型默认描述
builtin对象
enabled*布尔启用生命周期钩子执行。

hooks.builtin

类型默认描述
command_logger*布尔启用命令记录器钩子(记录工具调用以进行审计)。
webhook_audit对象webhook-audit 内置钩子的配置。

hooks.builtin.webhook_audit

webhook-audit 内置钩子的配置。

每当工具调用匹配配置的某个模式时,向外部端点发送带有 JSON 主体的 HTTP POST 请求。适用于集中式审计日志记录、SIEM 数据摄入或合规性管道。

类型默认描述
enabled布尔false启用 webhook-audit 钩子。默认值:false
include_args布尔false在审计负载中包含工具调用参数。默认值:false
max_args_bytes整数4096单个
tool_patterns字符串数组[]用于审计的工具名称的 Glob 模式(例如 ["Bash", "Write"])。
url字符串""接收审计 POST 请求的目标 URL。

http_request

HTTP 请求工具配置([http_request] 部分)。

域名过滤:allowed_domains 控制哪些主机可以访问(使用 ["*"] 表示所有公共主机,这是默认值)。如果 allowed_domains 为空,则所有请求都会被拒绝。

类型默认描述
allow_private_hosts布尔false允许向私有/LAN 主机(RFC 1918、回环、链路本地、.local)发起请求。
allowed_domains字符串数组[]允许用于 HTTP 请求的域名(精确匹配或子域名匹配)
enabled布尔false启用 http_request 工具以进行 API 交互
max_response_size整数1000000最大响应大小(以字节为单位)(默认值:1MB,0 = 无限制)
timeout_secs整数30请求超时时间(秒,默认值:30)

image_gen

独立图像生成工具配置([image_gen])。

启用后,会注册一个 image_gen 工具,该工具通过 fal.ai 的同步 API(Flux / Nano Banana 模型)生成图像,并将其保存到工作区的 images/ 目录中。

类型默认描述
api_key_env字符串"FAL_API_KEY"保存 fal.ai API 密钥的环境变量名称。
default_model字符串"fal-ai/flux/schnell"默认 fal.ai 模型标识符。
enabled布尔false启用独立图像生成工具。默认值:false。

jira

Jira 集成配置([jira])。

enabled = true 时,注册 jira 工具,该工具可以获取工单、使用 JQL 进行搜索以及添加评论。需要提供 base_urlapi_token(或 JIRA_API_TOKEN 环境变量)。

默认值

  • enabled: false
  • allowed_actions: ["get_ticket"] — 默认情况下为只读。添加 "search_tickets""comment_ticket" 以解锁这些操作。
  • timeout_secs: 30

认证

Jira Cloud uses HTTP Basic auth: email + api_token. Jira Server/Data Center uses Bearer token auth: omit email and set api_token to a personal access token. api_token is stored encrypted at rest; set it here or via JIRA_API_TOKEN.

类型默认描述
allowed_actions字符串数组["get_ticket"]允许智能体调用的操作。
api_token 🔑字符串""Jira API 令牌。在静态时加密。回退到 JIRA_API_TOKEN 环境变量。
base_url字符串""Atlassian 实例的基础 URL,例如 https://yourco.atlassian.net
email任何Jira account email used for Basic auth (Cloud).
enabled布尔false启用 jira 工具。默认值:false
timeout_secs整数30请求超时时间(秒)。默认值:30

知识

用于捕获和复用专业知识的知识图谱配置。

类型默认描述
auto_capture布尔false自动从对话中捕获知识。默认值:false。
db_path字符串"/home/runner/.zeroclaw/knowledge.db"知识图谱 SQLite 数据库的路径。
enabled布尔false启用知识图谱工具。默认值:false。
max_nodes整数100000知识节点的最大数量。默认值:100000。
suggest_on_query布尔true主动建议在查询时提供相关知识。默认值:true。

knowledge_bundles

Named knowledge bundles ([knowledge_bundles.<alias>]).

自动理解入站频道消息中的链接([link_enricher])。

启用后,传入消息中的 URL 将被自动抓取并生成摘要。该摘要会附加在消息之前,供代理在处理消息前使用,从而让大语言模型(LLM)获得链接页面的上下文信息,而无需显式调用工具。

类型默认描述
enabled布尔false启用链接增强管道阶段(默认:false)
max_links整数3每条消息最多获取的链接数(默认值:3)
timeout_secs整数10每个链接的获取超时时间(秒)(默认值:10)

linkedin

LinkedIn 集成配置([linkedin] 部分)。

启用后,linkedin 工具将注册到代理工具界面中。需要在工作区的 .env 文件中配置 LINKEDIN_* 凭据。

类型默认描述
api_version字符串"202602"LinkedIn REST API 版本头(YYYYMM 格式)。
content对象LinkedIn 自动发布的内容策略配置([linkedin.content])。
enabled布尔false启用 LinkedIn 工具。
image对象LinkedIn 帖子的图像生成配置([linkedin.image])。

linkedin.content

LinkedIn 自动发布的内容策略配置([linkedin.content])。

代理通过 linkedin get_content_strategy 操作读取此内容,以了解需要检查的提要、需要突出的仓库以及如何撰写帖子。

类型默认描述
github_repos字符串数组[]要突出的 GitHub 仓库(格式:owner/repo)。
github_users字符串数组[]可供参考的 GitHub 用户公开活动。
instructions字符串""AI 代理的自由格式发布说明。
persona字符串""专业人物描述(姓名、角色、专长)。
rss_feeds字符串数组[]用于监控主题灵感的 RSS 订阅源 URL(仅标题)。
topics字符串数组[]用于帖子主题的专业领域和兴趣点。

linkedin.image

LinkedIn 帖子的图像生成配置([linkedin.image])。

类型默认描述
card_accent_color字符串"#0A66C2"备用卡片的强调色(CSS 十六进制值)。
dalle对象OpenAI DALL-E 设置([linkedin.image.dalle])。
enabled布尔false为帖子启用图像生成功能。
fallback_card布尔trueGenerate a branded SVG text card when all AI model_providers fail.
flux对象Flux (fal.ai) 图像生成设置 ([linkedin.image.flux])。
imagen对象Google Imagen(Vertex AI)设置([linkedin.image.imagen])。
providers字符串数组["stability","imagen","dalle","flux"]ModelProvider priority order. Tried in sequence; first success wins.
稳定性对象Stability AI 图像生成设置 ([linkedin.image.stability])。
temp_dir字符串"linkedin/images"生成图像的临时目录,相对于工作区。

linkedin.image.dalle

OpenAI DALL-E 设置([linkedin.image.dalle])。

类型默认描述
api_key_env字符串"OPENAI_API_KEY"保存 OpenAI API 密钥的环境变量名称。
模型字符串"dall-e-3"DALL-E 模型标识符。
size字符串"1024x1024"图像尺寸。

linkedin.image.flux

Flux (fal.ai) 图像生成设置 ([linkedin.image.flux])。

类型默认描述
api_key_env字符串"FAL_API_KEY"保存 fal.ai API 密钥的环境变量名称。
模型字符串"fal-ai/flux/schnell"Flux 模型标识符。

linkedin.image.imagen

Google Imagen(Vertex AI)设置([linkedin.image.imagen])。

类型默认描述
api_key_env字符串"GOOGLE_VERTEX_API_KEY"保存 API 密钥的环境变量名称。
project_id_env字符串"GOOGLE_CLOUD_PROJECT"Google Cloud 项目 ID 的环境变量。
region字符串"us-central1"Vertex AI 区域。

linkedin.image.stability

Stability AI 图像生成设置 ([linkedin.image.stability])。

类型默认描述
api_key_env字符串"STABILITY_API_KEY"保存 API 密钥的环境变量名称。
模型字符串"stable-diffusion-xl-1024-v1-0"稳定性模型标识符。

locale

工具描述的语言环境(例如 "en""zh-CN")。

设置后,系统提示中显示的工具描述将从 Fluent .ftl 区域设置文件中加载。如果未找到,则回退到内嵌的英文描述,再回退到硬编码的描述。

如果省略或为空,则从 ZEROCLAW_LOCALELANGLC_ALL 环境变量中自动检测区域设置(默认为 "en")。

mcp

外部 MCP 客户端配置([mcp] 部分)。

类型默认描述
延迟加载布尔true通过 tool_search 按需加载 MCP 工具模式,而不是提前加载
enabled布尔false启用 MCP 工具加载。
servers对象[][]Configured MCP servers. The #[nested] annotation makes the macro

mcp_bundles

Named MCP server bundles ([mcp_bundles.<alias>]).

media_pipeline

自动媒体理解流水线配置([media_pipeline])。

启用后,到达代理之前的入站频道消息中的媒体附件会经过预处理:音频会被转录,图像会被标注,视频会被摘要。

类型默认描述
describe_images布尔true当启用支持视觉的模型时,添加图片描述。
enabled布尔false媒体管道的总开关(默认值:false)。
summarize_video布尔true总结视频附件(占位符 — 需要外部 API)。
transcribe_audio布尔trueTranscribe audio attachments using the configured transcription model_provider.

memory

内存后端配置([memory] 部分)。

Controls conversation memory storage, embeddings, hybrid search, response caching, and memory snapshot/hydration. Backend-specific connection settings live under [storage.<backend>.<alias>]; this section selects which storage instance to use via the backend dotted reference.

类型默认描述
archive_after_days整数7Move daily/session files to the archive directory after this many days. Keeps the hot working set small without deleting history.
audit_enabled布尔false启用内存操作的审计日志记录。
audit_retention_days整数30审计条目的保留天数(默认值:30)。
auto_hydrate布尔truebrain.db 缺失时,从 MEMORY_SNAPSHOT.md 自动重新水合
auto_save布尔trueAuto-save what you tell ZeroClaw into memory as conversation history — the agent’s own replies are not saved. Turn off if you want memory to only hold things you explicitly record via the memory tool.
后端*字符串Dotted reference to the active storage instance: <backend>.<alias>
chunk_max_tokens整数512文档拆分时每个块的最大令牌数
conflict_threshold数字0.85用于冲突检测的余弦相似度阈值(0.0–1.0)。
conversation_retention_days整数30For the sqlite backend only — drop conversation rows older than this many days to keep the DB lean. Doesn’t touch core memories or notes.
default_namespace字符串"默认"内存条目的默认命名空间。
embedding_cache_size整数10000在 LRU 驱逐之前,最大嵌入缓存条目数
embedding_dimensions整数1536Vector width produced by the embedding model — must match the model’s native dimension or vectors won’t store correctly. Look up the number on the model_provider’s model page.
embedding_model字符串"text-embedding-3-small"Embedding model identifier — must match a model your chosen embedding model_provider serves (e.g. text-embedding-3-small for OpenAI). Changing this invalidates existing embeddings; you’ll need to re-index.
embedding_provider字符串"none"Source of embedding vectors for semantic search. none = keyword-only retrieval (no API calls, no vector cost); openai = OpenAI’s embedding API; custom:URL = any OpenAI-compatible embedding endpoint (LiteLLM, local gateway, etc.).
fts_early_return_score数字0.85全文检索(FTS)分数阈值,超过该值时将提前返回,不再执行向量搜索(0.0–1.0)。
hygiene_enabled布尔trueRun the periodic hygiene pass that archives stale daily/session files and enforces retention windows. Leave on unless you want to manage cleanup yourself.
keyword_weight数字0.3How heavily BM25 (keyword) overlap counts when search_mode = hybrid. Raise toward 1.0 for exact-term matching; lower it when paraphrases should still score well.
min_relevance_score数字0.4包含在上下文中的内存的最小混合分数(0.0–1.0)。
策略对象内存策略配置([memory.policy] 部分)。
purge_after_days整数30Delete archived files permanently after this many days. Set high if you need long-term history; set low for privacy / disk-space reasons.
rerank_enabled布尔false当候选数量超过阈值时启用 LLM 重排序。
rerank_threshold整数5触发重新排序的最小候选数量。
response_cache_enabled布尔false启用 LLM 响应缓存以避免为重复提示付费
response_cache_hot_entries整数256两级响应缓存的最大内存热缓存条目数(默认值:256)
response_cache_max_entries整数5000在 LRU 淘汰之前缓存响应的最大数量(默认值:5000)
response_cache_ttl_minutes整数60缓存响应的 TTL(以分钟为单位)(默认值:60)
retrieval_stages字符串数组["缓存","全文搜索","向量"]按顺序执行的检索阶段。有效值:“cache”、“fts”、“vector”。
search_mode任何内存检索策略
snapshot_enabled布尔false启用核心记忆的定期导出至 MEMORY_SNAPSHOT.md
snapshot_on_hygiene布尔false在卫生检查阶段运行快照(心跳驱动)
vector_weight数字0.7How heavily vector (semantic) similarity counts when search_mode = hybrid. Raise toward 1.0 to favor meaning-based matches; lower it to lean on keyword overlap instead.

memory.policy

内存策略配置([memory.policy] 部分)。

类型默认描述
max_entries_per_category整数0每个类别的最大条目数(0 = 无限制)。
max_entries_per_namespace整数0每个命名空间的最大条目数(0 = 无限制)。
read_only_namespaces字符串数组[]只读命名空间(写入操作将被拒绝)。
按类别保留天数映射{}按类别保留的天数(覆盖全局设置)。键值包括:“core”、“daily”、“conversation”。

microsoft365

通过 Microsoft Graph API([microsoft365] 部分)集成 Microsoft 365。

提供对 Outlook 邮件、Teams 消息、日历事件、OneDrive 文件和 SharePoint 搜索的访问。

类型默认描述
auth_flow字符串"client_credentials"认证流程:“client_credentials” 或 “device_code”
client_id任何nullAzure AD 应用程序(客户端)ID
client_secret 🔑任何nullAzure AD 客户端密钥(当 secrets.encrypt = true 时以加密形式存储)
enabled布尔false启用 Microsoft 365 集成
scopes字符串数组["https://graph.microsoft.com/.default"]要请求的 OAuth 作用域
tenant_id任何nullAzure AD 租户 ID
token_cache_encrypted布尔true加密磁盘上的令牌缓存文件
user_id任何null用户主体名称或“me”(用于委派流程)

model_routes

Model-routing rules — route hint:<name> to specific model_provider + model combos.

多模态

多模态(图像)处理配置([multimodal] 部分)。

Privacy and cost note

Tool results that print real local image paths (e.g. shell tools doing ls /pictures or find . -name '*.png') are canonicalized into [IMAGE:...] markers and base64-inlined into the next provider request. This means image bytes that previously stayed local will be uploaded to the configured provider when surfaced by a tool.

max_images (and the trim_old_images LRU policy) bounds the per-request image budget, but operators running shell-style tools over directories of personal or sensitive images should be aware of the upload semantics. See docs/book/src/contributing/privacy.md for the project’s privacy stance.

类型默认描述
allow_remote_fetch布尔false允许获取远程图片 URL(http/https)。默认禁用。
max_image_size_mb整数5在进行 base64 编码之前,最大图像负载大小(以 MiB 为单位)。
max_images整数4每个请求允许的最大图片附件数量。
vision_model任何nullModel to use when routing to the vision model_provider (e.g. "llava:7b").
vision_model_provider任何nullModelProvider name to use for vision/image messages (e.g. "ollama").

node_transport

节点间通信的安全传输配置([node_transport])。

类型默认描述
allowed_peers字符串数组[]允许特定的节点 IP/CIDR。
connection_pool_size整数4每个对等节点的最大连接数。
enabled布尔true启用安全传输层。
max_request_age_secs整数300签名请求的最大有效期(秒)(防重放保护)。
mutual_tls布尔false要求客户端证书(双向 TLS)。
require_https布尔true要求所有节点通信使用 HTTPS。
shared_secret字符串""节点间 HMAC 认证使用的共享密钥。
tls_cert_path任何nullTLS 证书文件的路径。
tls_key_path任何nullTLS 私钥文件的路径。

节点

动态节点发现系统的配置([nodes])。

启用后,外部进程/设备可以通过 WebSocket 连接到 /ws/nodes,并在运行时声明其功能。

类型默认描述
auth_token任何null用于节点身份验证的可选承载令牌。
enabled布尔false启用动态节点发现端点。
max_nodes整数16最大并发节点连接数。

notion

Notion 集成配置([notion])。

enabled = true 时,代理会轮询 Notion 数据库以查找待处理的任务,并暴露一个 notion 工具,用于查询、读取、创建和更新页面。需要提供 api_key(或 NOTION_API_KEY 环境变量)和 database_id

类型默认描述
api_key 🔑字符串""
database_id字符串""
enabled布尔false
input_property字符串"输入"
max_concurrent整数4
poll_interval_secs整数5
recover_stale布尔true
result_property字符串"结果"
status_property字符串"状态"

可观测性

可观测性后端配置([observability] 部分)。

类型默认描述
后端*字符串“none” | “log” | “verbose” | “prometheus” | “otel”
log_persistence字符串"rolling"Log persistence mode: “none” | “rolling” | “full”.
log_persistence_max_entries整数200Maximum entries retained when log_persistence = "rolling".
log_persistence_path字符串"state/runtime-trace.jsonl"Log persistence file path. Relative paths resolve under workspace_dir.
log_tool_io字符串"redacted"Tool I/O capture policy: “off” | “redacted” | “full”.
log_tool_io_denylist字符串数组[]Tool names whose I/O is never logged beyond name + outcome + duration
log_tool_io_truncate_bytes整数8192Truncate the captured tool input and output at this many bytes when
otel_endpoint任何nullOTLP 端点(例如 "http://localhost:4318")。仅在 backend = "otel" 时使用。
otel_headers任何null随每个 OTLP 导出请求发送的可选 HTTP 头(例如授权头)。
otel_service_name任何null报告给 OTel collector 的服务名称。默认为 “zeroclaw”。

onboard_state

多客户端工作区隔离配置。

When enabled, each client engagement gets an isolated workspace with separate memory, audit, secrets, and tool restrictions. Opaque state the zeroclaw onboard flow writes so it can tell, on a re-run, which sections the user has already walked through at least once — which lets it offer “Reconfigure? [y/N]” skip gates instead of forcing users through every field again.

This is meta-state about the onboard process, not user-facing config.

类型默认描述
completed_sections字符串数组[]Section keys the user has completed at least once via onboard.

opencode_cli

OpenCode CLI 工具配置([opencode_cli] 部分)。

将编码任务委托给 opencode run CLI。默认情况下,身份验证使用二进制文件自身的会话——除非 env_passthrough 包含特定于提供者的密钥,否则无需 API 密钥。

类型默认描述
enabled布尔false启用 opencode_cli 工具
env_passthrough字符串数组[]传递给 opencode 子进程的其他环境变量
max_output_bytes整数2097152最大输出大小(以字节为单位,默认值为 2MB)
timeout_secs整数600最大执行时间(秒)(编码任务可能耗时较长)

pacing

用于慢速/本地 LLM 工作负载的速率控制([pacing] 部分)。

所有字段均为可选,默认值会保留现有行为。设置这些字段时,它们会扩展——而非替换——现有的超时和环路检测子系统。

类型默认描述
loop_detection_enabled布尔true启用基于模式的循环检测(精确重复、乒乓、
loop_detection_max_repeats整数3在首次出现之前,连续相同的工具+参数调用次数
loop_detection_min_elapsed_secs任何null激活循环检测前经过的最小秒数。
loop_detection_window_size整数20基于模式的循环检测器的滑动窗口大小。
loop_ignore_tools字符串数组[]从相同输出/交替模式循环中排除的工具名称
message_timeout_scale_max任何null覆盖硬编码的超时缩放上限(默认值:4)。
step_timeout_secs任何null每步超时时间(秒):允许单个步骤执行的最大时间

peer_groups

Named peer groups ([peer_groups.<name>]). Each entry binds a channel, a list of member agents, and optional non-agent (external) members and a per-group blocklist. Mutual opt-in: two agents become peers only when both appear in the same group’s agents. Empty by default for single-agent installs. See crate::multi_agent::PeerGroupConfig.

外围设备

外围板集成配置([peripherals] 部分)。

启用后,看板将成为智能体工具。

类型默认描述
boards对象[][]板级配置(nucleo-f401re、rpi-gpio 等)
datasheet_dir任何null用于 RAG 检索的数据集文档路径(相对于工作区)。
enabled布尔false启用外围设备支持(板子成为代理工具)

pipeline

流水线工具配置([pipeline] 部分)。

类型默认描述
allowed_tools字符串数组[]流水线步骤中允许使用的工具。引用了不在该列表中的工具的步骤
enabled布尔false启用 execute_pipeline 元工具。
max_steps整数20单次管道调用中允许的最大步骤数。

插件

插件系统配置。

类型默认描述
auto_discover布尔false在启动时自动发现并加载插件
enabled布尔false启用插件系统(默认:false)
max_plugins整数50可加载的最大插件数量
plugins_dir字符串"/home/runner/.zeroclaw/plugins"存储插件的目录
security对象插件签名验证配置([plugins.security])。

plugins.security

插件签名验证配置([plugins.security])。

控制插件清单的 Ed25519 签名验证。在 strict(严格)模式下,仅加载由受信任发布者密钥签名的插件。在 permissive(宽松)模式下,未签名或不受信任的插件会产生警告但仍会被加载。在 disabled(禁用)模式(默认值)下,不进行任何签名检查。

类型默认描述
signature_mode字符串"disabled"签名强制执行模式:“disabled”(禁用)、“permissive”(宽松)或“strict”(严格)。
trusted_publisher_keys字符串数组[]受信任插件发布者的 Hex 编码 Ed25519 公钥。

project_intel

项目交付智能配置([project_intel] 部分)。

类型默认描述
default_language字符串"en"默认报告语言(en、de、fr、it)。默认值为 “en”。
enabled布尔false启用 project_intel 工具。默认值:false。
include_git_data布尔true在报告中包含 git log 数据。默认值:true。
include_jira_data布尔false在报告中包含 Jira 数据。默认值:false。
jira_base_url任何nullJira 实例的基础 URL(如果 include_jira_data 为 true,则为必填项)。
report_output_dir字符串"/home/runner/.zeroclaw/project-reports"生成报告的输出目录。
风险敏感度字符串"medium"风险检测灵敏度:低、中、高。默认值:“medium”。
templates_dir任何null可选的自定义模板目录。

providers

Top-level wrapper for every provider category. TOML root sees a single [providers] table with one sub-key per category:

[providers.models.anthropic.default]
api_key = "..."

[providers.tts.openai.default]
api_key = "..."

[providers.transcription.groq.default]
api_key = "..."

Each category keeps its own typed-slot internals (so per-family endpoints and extras stay validated at the type level); this wrapper just gives them a shared top-level home.

类型默认描述
models对象Typed model provider container — one slot per canonical model_provider type.
转录对象Typed transcription-provider container — one slot per STT family.
tts对象Typed TTS-provider container — one slot per TTS family. Mirrors

providers.models

Typed model provider container — one slot per canonical model_provider type.

Replaces the HashMap<String, HashMap<String, ModelProviderConfig>> with a typed struct so each family’s per-alias map carries its own typed config (with the family’s *Endpoint enum and family-specific extras visible at the type level).

TOML shape is preserved byte-identical: each named field deserializes from the same [model_providers.<type>.<alias>] block as before.

Adding a new model_provider family means: define the typed config in schema.rs, then add one row to for_each_model_provider_slot! — every helper picks up the new slot automatically.

类型默认描述
ai21映射
aihubmix映射
anthropic映射
anyscale映射
astrai映射
atomic_chat映射
avian映射
azure映射
baichuan映射
baseten映射
bedrock映射
cerebras映射
cloudflare映射
cohere映射
copilot映射
custom映射
deepinfra映射
deepmyst映射
deepseek映射
doubao映射
fireworks映射
friendli映射
gemini映射
gemini_cli映射
glm映射
groq映射
huggingface映射
hunyuan映射
hyperbolic映射
kilocli映射
lepton映射
litellm映射
llamacpp映射
lmstudio映射
minimax映射
mistral映射
moonshot映射
nebius映射
novita映射
nscale映射
nvidia映射
ollama映射
openai映射
opencode映射
openrouter映射
osaurus映射
ovh映射
perplexity映射
qianfan映射
qwen映射
reka映射
sambanova映射
sglang映射
siliconflow映射
stepfun映射
synthetic映射
telnyx映射
together映射
venice映射
vercel映射
vllm映射
xai映射
yi映射
zai映射

providers.transcription

Typed transcription-provider container — one slot per STT family. Mirrors ModelProviders / TtsProviders. Closed set of 6 families: groq, openai, deepgram, assemblyai, google, local_whisper.

类型默认描述
assemblyai映射
deepgram映射
google映射
groq映射
local_whisper映射
openai映射

providers.tts

Typed TTS-provider container — one slot per TTS family. Mirrors ModelProviders but smaller (TTS has a closed set of 5 families: openai, elevenlabs, google, edge, piper). No catch-all needed.

类型默认描述
edge映射
elevenlabs映射
google映射
openai映射
piper映射

代理

出站 HTTP/HTTPS/SOCKS5 流量的代理配置([proxy] 部分)。

类型默认描述
all_proxy任何null所有方案的备用代理 URL。
enabled布尔false为选定的作用域启用代理支持。
http_proxy任何nullHTTP 请求的代理 URL(支持 http、https、socks5、socks5h)。
https_proxy任何null用于 HTTPS 请求的代理 URL(支持 http、https、socks5、socks5h)。
no_proxy字符串数组[]不代理绕过列表。格式与 NO_PROXY 相同。
scope任何代理应用程序范围 — 确定哪些出站流量使用代理。
services字符串数组[]当 scope = “services” 时使用的服务选择器。

query_classification

自动查询分类 — 通过关键词/模式对用户消息进行分类,并将其路由到相应的模型提示。默认情况下禁用。

类型默认描述
enabled布尔false启用自动查询分类。默认值:false
规则对象[][]按优先级顺序评估的分类规则。

可靠性

可靠性和监控配置([reliability] 部分)。

Controls model_provider retries, API key rotation, and channel restart backoff.

类型默认描述
api_keys字符串数组[]用于在速率限制(429)错误时进行轮询轮换的其他 API 密钥。
channel_initial_backoff_secs整数2通道/守护进程重启的初始退避时间。
channel_max_backoff_secs整数60通道/守护进程重启的最大退避时间。
provider_backoff_ms整数500Base backoff (ms) for model_provider retry delay.
provider_retries整数2Retries per model_provider before bailing.
scheduler_poll_secs整数15调度器轮询间隔(秒)。
scheduler_retries整数2定时任务执行尝试的最大重试次数。

risk_profiles

Named risk/autonomy profiles ([risk_profiles.<alias>]).

运行时

运行时适配器配置([runtime] 部分)。

类型默认描述
docker对象Docker 运行时配置([runtime.docker] 部分)。
kind字符串"native"运行时类型(native | docker)。
reasoning_effort任何nullOptional reasoning effort for model_providers that expose a level control.
reasoning_enabled任何nullGlobal reasoning override for model_providers that expose explicit controls.

runtime.docker

Docker 运行时配置([runtime.docker] 部分)。

类型默认描述
allowed_workspace_roots字符串数组[]Docker 挂载验证的可选工作区根目录允许列表。
cpu_limit任何1.0可选的 CPU 限制(None = 无显式限制)。
image字符串"alpine:3.20"用于执行 shell 命令的运行时镜像。
memory_limit_mb任何512可选的内存限制(以 MB 为单位)(None = 无显式限制)。
mount_workspace布尔true将配置的工作区挂载到 /workspace
network字符串"none"Docker 网络模式(nonebridge 等)。
read_only_rootfs布尔true以只读方式挂载根文件系统。

runtime_profiles

Named runtime/LLM execution profiles ([runtime_profiles.<alias>]).

scheduler

用于周期性任务执行的调度器配置([scheduler] 部分)。

Owns the cron-runtime knobs: per-job declarations live on Config.cron: HashMap<String, CronJobDecl> (alias-keyed), while the scheduler loop’s runtime behavior (enabled, polling cap, catch-up) lives here.

类型默认描述
在启动时追赶布尔true在调度器启动时运行所有过期的作业。默认值:true
enabled布尔trueEnable the built-in scheduler loop. When false, no cron jobs run.
max_concurrent整数4Maximum tasks executed in parallel within a single polling cycle.
max_run_history整数50保留的历史 cron 运行记录的最大数量。默认值:50
max_tasks整数64Maximum number of persisted scheduled tasks per polling cycle.

schema_version

配置文件模式版本。

secrets

加密配置([secrets] 部分)。

类型默认描述
encrypt布尔trueconfig.toml 中为 API 密钥和令牌启用加密

security

Security configuration for audit logging, OTP, e-stop, IAM/SSO, and WebAuthn.

Sandbox backend and resource limits live on per-agent risk profiles (see RiskProfileConfig::sandbox_* and RiskProfileConfig::max_*); the runtime resolves them via Config::active_risk_profile(agent_alias).

类型默认描述
审计对象审计日志配置
estop映射急停配置。
nevis映射Nevis IAM 集成配置。
otp映射安全 OTP 配置。
webauthn对象WebAuthn / FIDO2 硬件密钥身份验证配置([security.webauthn])。

security.audit

审计日志配置

类型默认描述
enabled布尔true启用审计日志
log_path字符串"audit.log"审计日志文件的路径(相对于 zeroclaw 目录)
max_size_mb整数100日志文件在轮换前的最大大小(以 MB 为单位)
sign_events布尔false使用 HMAC 对事件进行签名,以提供篡改证据

security.estop

急停配置。

类型默认描述
enabled布尔false启用紧急停止控制。
require_otp_to_resume布尔true在恢复操作之前,需要有效的 OTP。
state_file字符串"/home/runner/.zeroclaw/estop-state.json"用于持久化急停状态的文件路径。

security.nevis

Nevis IAM 集成配置。

enabled 为 true 时,ZeroClaw 会根据 Nevis Security Suite 实例验证传入的请求,并将 Nevis 角色映射到工具/工作区权限。

类型默认描述
client_id字符串""在 Nevis 中注册的 OAuth2 客户端 ID。
client_secret 🔑任何nullOAuth2 客户端密钥。在磁盘上存储时通过 SecretStore 进行加密。
enabled布尔false启用 Nevis IAM 集成。默认为 false,以保持向后兼容。
instance_url字符串""Nevis 实例的基础 URL(例如 https://nevis.example.com)。
jwks_url任何null用于本地令牌验证的 JWKS 端点 URL。
realm字符串"master"要验证的 Nevis 领域。
require_mfa布尔false要求对所有通过 Nevis 身份验证的请求进行 MFA 验证。
role_mapping映射[][]Nevis 角色到 ZeroClaw 权限的映射。
session_timeout_secs整数3600会话超时时间(秒)。
token_validation字符串"local"令牌验证策略:"local"(JWKS)或 "remote"(令牌检查)。

security.otp

安全 OTP 配置。

类型默认描述
cache_valid_secs整数300重用窗口以保存最近验证的 OTP 代码。
challenge_max_attempts整数3在锁定之前,OTP 挑战尝试的最大次数。
enabled布尔false启用 OTP 门控。默认情况下为禁用,以保持向后兼容性。
gated_actions字符串数组["shell","file_write","browser_open","browser","memory_forget"]受 OTP 限制的工具/操作名称。
gated_domain_categories字符串数组[]域类别预设已扩展为 gated_domains
gated_domains字符串数组[]通过 OTP 限制的显式域模式。
method任何OTP 验证策略。
token_ttl_secs整数30TOTP 时间步长(以秒为单位)。

security.webauthn

WebAuthn / FIDO2 硬件密钥身份验证配置([security.webauthn])。

启用通过硬件安全密钥(如 YubiKey、SoloKey 等)和平台身份验证器(如 Touch ID、Windows Hello)进行注册和身份验证。

类型默认描述
enabled布尔false启用 WebAuthn 认证。默认值:false。
rp_id字符串"localhost"依赖方 ID(域名,例如 “example.com”)。默认值:“localhost”。
rp_name字符串"ZeroClaw"依赖方显示名称。默认值:“ZeroClaw”。
rp_origin字符串"http://localhost:42617"依赖方来源 URL(例如 "https://example.com")。默认值:"http://localhost:42617"

security_ops

托管式网络安全服务 (MCSS) 仪表板代理配置 ([security_ops])。

类型默认描述
auto_triage布尔false无需用户提示即可自动分类传入的警报。
enabled布尔false启用安全操作工具。
max_auto_severity字符串"低"可以自动修复而无需审批的最大严重性级别。
playbooks_dir字符串"/home/runner/.zeroclaw/playbooks"包含事件响应剧本定义(JSON)的目录。
report_output_dir字符串"/home/runner/.zeroclaw/security-reports"用于生成安全报告的目录。
require_approval_for_actions布尔true在执行 playbook 操作之前,需要人工审批。
siem_integration任何null可选的 SIEM Webhook URL,用于警报摄入。

shell_tool

Shell 工具配置([shell_tool] 部分)。

控制 shell 执行工具的行为。主要的可调参数是 timeout_secs —— 单个 shell 命令在被终止前允许运行的最大墙钟时间。

类型默认描述
timeout_secs整数60最大 shell 命令执行时间(秒)(默认值:60)。

skill_bundles

Named skill bundles ([skill_bundles.<alias>]).

技能

技能加载配置([skills] 部分)。

类型默认描述
allow_scripts布尔false允许技能中包含脚本类文件(.sh.bash.ps1、shebang shell 文件)。
install_suggestions对象Prompt-triggered skill install suggestions ([skills.install_suggestions] section).
open_skills_dir任何null可选的本地 open-skills 仓库路径。
open_skills_enabled布尔false启用加载和同步社区开放技能仓库。
prompt_injection_mode任何技能加载配置([skills] 部分)。
registry_url任何null用于裸名安装的技能注册表仓库的 URL。
skill_creation对象自主技能创建配置([skills.skill_creation] 部分)。
技能提升对象技能自我改进配置([skills.auto_improve] 部分)。

skills.install_suggestions

Prompt-triggered skill install suggestions ([skills.install_suggestions] section).

类型默认描述
enabled布尔falseEnable suggestions for installable skills before normal agent turns.

skills.skill_creation

自主技能创建配置([skills.skill_creation] 部分)。

类型默认描述
enabled布尔false在成功完成多步骤任务后启用自动技能创建。
max_skills整数500保留的最大自动生成的技能数量。
similarity_threshold数字0.85用于去重的嵌入相似度阈值。

skills.skill_improvement

技能自我改进配置([skills.auto_improve] 部分)。

类型默认描述
cooldown_secs整数3600同一技能改进之间的最小间隔(以秒为单位)。
enabled布尔true在成功使用技能后启用自动技能提升。

sop

标准操作程序引擎配置([sop])。

default_execution_mode 字段使用来自 sop::typesSopExecutionMode 类型(通过 sop::SopExecutionMode 重新导出)。为了避免循环模块引用,配置使用相同的枚举定义来存储它。

类型默认描述
approval_timeout_secs整数300审批超时时间(秒)。当运行等待审批的时间超过
default_execution_mode字符串"监督式"对于省略 execution_mode 的 SOP,其默认执行模式。
max_concurrent_total整数4所有 SOP 的最大总并发运行次数。
max_finished_runs整数100保留在内存中用于状态查询的最大完成运行次数。
sops_dir任何null包含 SOP 定义的目录(带有 SOP.toml 和 SOP.md 的子目录)。

存储

持久化存储配置([storage] 部分)。

Storage is a two-tier alias-keyed map: [storage.<backend>.<alias>], parallel to [model_providers.<type>.<alias>]. Each backend has its own typed config struct. MemoryConfig.backend carries a dotted reference ("sqlite.default", "postgres.work") that resolves to one of these entries via [Config::resolve_active_storage].

类型默认描述
lucid映射Lucid CLI sync instances ([storage.lucid.<alias>]).
markdown映射Markdown storage instances ([storage.markdown.<alias>]).
postgres映射PostgreSQL storage instances ([storage.postgres.<alias>]).
qdrant映射Qdrant storage instances ([storage.qdrant.<alias>]).
sqlite映射SQLite storage instances ([storage.sqlite.<alias>]).

text_browser

文本浏览器工具配置([text_browser] 部分)。

使用基于文本的浏览器(如 lynx、links、w3m)将网页渲染为纯文本。专为无图形浏览器的无头环境或 SSH 环境设计。

类型默认描述
enabled布尔false启用 text_browser 工具
preferred_browser任何null首选文本浏览器(“lynx”、“links”或“w3m”)。如果未设置,则自动检测。
timeout_secs整数30请求超时时间(秒,默认值:30)

转录

支持多提供商的语音转录配置。

顶层的 api_urlmodelapi_key 字段保留,以与现有的基于 Groq 的配置保持向后兼容。

类型默认描述
api_key 🔑任何nullAPI key used for transcription requests (Groq transcription provider).
api_url字符串"https://api.groq.com/openai/v1/audio/transcriptions"Whisper API endpoint URL (Groq transcription provider).
assemblyai对象AssemblyAI STT model_provider configuration ([transcription.assemblyai]).
deepgram对象Deepgram STT model_provider configuration ([transcription.deepgram]).
enabled布尔false为支持该功能的频道启用语音转录。
google对象Google Cloud Speech-to-Text model_provider configuration ([transcription.google]).
initial_prompt任何null可选的初始提示,用于使转录偏向预期的词汇
language任何nullOptional language hint (ISO-639-1, e.g. “en”, “ru”) for Groq transcription provider.
local_whisper对象本地/自托管的 Whisper 兼容的 STT 端点([transcription.local_whisper])。
max_duration_secs整数120最大语音时长(以秒为单位),超过此长度的消息将被跳过。
模型字符串"whisper-large-v3-turbo"Whisper model name (Groq transcription provider).
openai对象OpenAI Whisper STT model_provider configuration ([transcription.openai]).
transcribe_non_ptt_audio布尔false同时转录 WhatsApp 上的非 PTT(转发/普通)音频消息,

transcription.assemblyai

AssemblyAI STT model_provider configuration ([transcription.assemblyai]).

类型默认描述
api_key 🔑任何nullAssemblyAI API 密钥。

transcription.deepgram

Deepgram STT model_provider configuration ([transcription.deepgram]).

类型默认描述
api_key 🔑任何nullDeepgram API 密钥。
模型字符串"nova-2"Deepgram 模型名称(默认值:“nova-2”)。

transcription.google

Google Cloud Speech-to-Text model_provider configuration ([transcription.google]).

类型默认描述
api_key 🔑任何nullGoogle Cloud API 密钥。
language_code字符串"zh-CN"BCP-47 语言代码(默认值:“en-US”)。

transcription.local_whisper

本地/自托管的 Whisper 兼容的 STT 端点([transcription.local_whisper])。

配置自托管的 STT 端点。可以是本地主机、私有网络主机或任何可访问的 URL。

类型默认描述
bearer_token 🔑任何null用于端点身份验证的 Bearer 令牌。
max_audio_bytes整数26214400此端点接受的最大音频文件大小(以字节为单位)。
timeout_secs整数300请求超时时间(秒)。默认值为 300(适用于本地 GPU 上的大文件)。
url*字符串HTTP 或 HTTPS 端点 URL,例如 "http://10.10.0.1:8001/v1/transcribe"

transcription.openai

OpenAI Whisper STT model_provider configuration ([transcription.openai]).

类型默认描述
api_key 🔑任何null用于 Whisper 转录的 OpenAI API 密钥。
模型字符串"whisper-1"Whisper 模型名称(默认值:“whisper-1”)。

信任

类型默认描述
correction_penalty数字0.05
decay_half_life_days数字30.0
initial_score数字0.8
regression_threshold数字0.5
success_boost数字0.01

tts

Text-to-Speech subsystem configuration ([tts]).

Per-instance TTS configs live under [tts_providers.<type>.<alias>] (parallel to providers.models). What remains here are the global runtime knobs that apply to every model_provider invocation.

类型默认描述
默认格式字符串"mp3"默认音频输出格式("mp3""opus""wav")。
default_voice字符串"alloy"Default voice ID passed to the selected tts provider.
enabled布尔false启用 TTS 合成。
max_text_length整数4096最大输入文本长度(字符数,默认值为 4096)。

隧道

用于将网关公开暴露的隧道配置([tunnel] 部分)。

Supported model_providers: "none" (default), "cloudflare", "tailscale", "ngrok", "openvpn", "pinggy", "custom".

类型默认描述
cloudflare对象
custom对象
ngrok对象
openvpn对象OpenVPN 隧道配置([tunnel.openvpn])。
pinggy对象
tailscale对象
tunnel_provider*字符串How the gateway gets exposed to the public internet so webhooks (Telegram, Slack, etc.) can reach it. none = keep it local, no tunnel; cloudflare = Cloudflare Tunnel via cloudflared (needs a Zero Trust account and token); tailscale = Tailscale Funnel/Serve (tailnet-only or public, no account beyond tailscale); ngrok = ngrok agent with auth token; openvpn = bring-your-own OpenVPN egress; pinggy = Pinggy SSH tunnels (quick one-shot URLs); custom = run an arbitrary command you define under [tunnel.custom].

tunnel.cloudflare

类型默认描述
token 🔑字符串""Cloudflare Tunnel 令牌(来自 Zero Trust 仪表板)

tunnel.custom

类型默认描述
health_url任何null用于检查隧道健康状态的可选 URL
start_command字符串""用于启动隧道的命令模板。使用 {port} 和 {host} 占位符。
url_pattern任何null用于从命令标准输出中提取公共 URL 的可选正则表达式

tunnel.ngrok

类型默认描述
auth_token 🔑字符串""ngrok 认证令牌
domain任何null可选的自定义域名

tunnel.openvpn

OpenVPN 隧道配置([tunnel.openvpn])。

Required when tunnel.tunnel_provider = "openvpn". Omitting this section entirely preserves previous behavior. Setting tunnel.tunnel_provider = "none" (or removing the [tunnel.openvpn] block) cleanly reverts to no-tunnel mode.

默认值:connect_timeout_secs = 30

类型默认描述
advertise_address任何nullVPN 连接后显示的地址(例如 "10.8.0.2:42617")。
auth_file任何null可选的认证凭据文件路径(--auth-user-pass)。
config_file*字符串.ovpn 配置文件的路径(不能为空)。
connect_timeout_secs整数30连接超时时间(秒)(默认值:30,必须大于 0)。
extra_args字符串数组[]额外 OpenVPN CLI 参数原样转发。

tunnel.pinggy

类型默认描述
region任何null服务器区域:"us"(美国)、"eu"(欧洲)、"ap"(亚洲)、"br"(南美洲)、"au"(澳大利亚),或省略以自动选择。
token 🔑任何nullPinggy 访问令牌(可选 — 免费套餐无需令牌即可使用)。

tunnel.tailscale

类型默认描述
漏斗布尔false使用 Tailscale Funnel(公共互联网)与 Serve(仅限 Tailnet)
hostname任何null可选的主机名覆盖

verifiable_intent

可验证意图(VI)凭证的验证与签发([verifiable_intent] 部分)。

类型默认描述
enabled布尔false在 commerce 工具调用中启用 VI 凭据验证(默认值:false)。
严格性字符串"strict"约束评估的严格模式:“strict”(在未知时失败关闭)

web_fetch

Web 获取工具配置([web_fetch] 部分)。

抓取网页并将 HTML 转换为纯文本,以便 LLM 使用。域名过滤:allowed_domains 控制哪些主机可以访问(使用 ["*"] 表示所有公共主机)。blocked_domains 的优先级高于 allowed_domains。如果 allowed_domains 为空,则拒绝所有请求(默认拒绝)。

类型默认描述
allowed_domains字符串数组["*"]允许用于 Web 获取的域名(精确或子域名匹配;["*"] = 所有公共主机)
allowed_private_hosts字符串数组[]允许绕过 SSRF 保护的私有/内部主机(例如 ["192.168.1.10", "internal.local"]
blocked_domains字符串数组[]被阻止的域名(精确或子域名匹配;始终优先于允许的域名)
enabled布尔false启用 web_fetch 工具以获取网页内容
firecrawl对象用于 JS 密集型网站和反爬虫网站的 Firecrawl 回退配置。
max_response_size整数500000最大响应大小(以字节为单位)(默认值:500KB,纯文本比原始 HTML 小得多)
timeout_secs整数30请求超时时间(秒,默认值:30)

web_fetch.firecrawl

用于 JS 密集型网站和反爬虫网站的 Firecrawl 回退配置。

启用后,如果标准网页抓取失败(HTTP 错误、空响应体或响应体长度不足 100 个字符,表明可能是仅依赖 JavaScript 的页面),该工具将回退到使用 Firecrawl API 进行隐蔽内容提取。

类型默认描述
api_key_env字符串"FIRECRAWL_API_KEY"Firecrawl API 密钥的环境变量名称
api_url字符串"https://api.firecrawl.dev/v1"Firecrawl API 的基础 URL
enabled布尔false启用 Firecrawl 回退
模式任何Firecrawl 回退模式:抓取单个页面或爬取链接页面。

Web 搜索工具配置([web_search] 部分)。

类型默认描述
brave_api_key 🔑任何nullBrave Search API key (required if search_provider is “brave”)
enabled布尔false启用 web_search_tool 以进行网络搜索
max_results整数5每次搜索的最大结果数(1-10)
search_provider字符串"duckduckgo"Search provider: “duckduckgo” (free), “brave” (requires API key), “tavily” (requires API key), or “searxng” (self-hosted)
searxng_instance_url任何nullSearXNG instance URL (required if search_provider is "searxng"), e.g. "https://searx.example.com".
tavily_api_key 🔑任何nullTavily Search API key (required if search_provider is “tavily”)
timeout_secs整数15请求超时时间(秒)