content large_stringlengths 3 20.5k | url large_stringlengths 54 193 | branch large_stringclasses 4
values | source large_stringclasses 42
values | embeddings listlengths 384 384 | score float64 -0.21 0.65 |
|---|---|---|---|---|---|
# 节点 \*\*节点\*\*是一个配套设备(macOS/iOS/Android/无头),它以 `role: "node"` 连接到 Gateway 网关 \*\*WebSocket\*\*(与操作员相同的端口),并通过 `node.invoke` 暴露命令接口(例如 `canvas.\*`、`camera.\*`、`system.\*`)。协议详情:[Gateway 网关协议](/gateway/protocol)。 旧版传输:[Bridge 协议](/gateway/bridge-protocol)(TCP JSONL;当前节点已弃用/移除)。 macOS 也可以在\*\*节点模式\*\*下运行:菜单栏应用连接到 Gateway... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/nodes/index.md | main | opebclaw | [
-0.10340391099452972,
0.04652491956949234,
0.003141539404168725,
-0.0857541635632515,
0.011286220513284206,
-0.08499857038259506,
0.025719480589032173,
0.03321988880634308,
0.04081963747739792,
-0.003707642201334238,
0.09534123539924622,
-0.05655383691191673,
0.05000016465783119,
-0.005559... | 0.158952 |
- Android 会在录制前显示系统屏幕捕获提示。 - 屏幕录制被限制为 `<= 60s`。 - `--no-audio` 禁用麦克风捕获(iOS/Android 支持;macOS 使用系统捕获音频)。 - 当有多个屏幕可用时,使用 `--screen ` 选择显示器。 ## 位置(节点) 当在设置中启用位置时,节点暴露 `location.get`。 CLI 辅助工具: ```bash openclaw nodes location get --node openclaw nodes location get --node --accuracy precise --max-age 15000 --location-timeout... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/nodes/index.md | main | opebclaw | [
0.006508758757263422,
0.025487812235951424,
-0.006266951560974121,
-0.10721157491207123,
0.00980426650494337,
-0.10436658561229706,
-0.0043032499961555,
-0.04519150033593178,
-0.009672555141150951,
-0.07023455202579498,
0.13041162490844727,
-0.13524746894836426,
0.07721841335296631,
-0.042... | 0.11625 |
# 媒体理解(入站)— 2026-01-17 OpenClaw 可以在回复流程运行之前\*\*摘要入站媒体\*\*(图片/音频/视频)。它会自动检测本地工具或提供商密钥是否可用,并且可以禁用或自定义。如果理解关闭,模型仍然会像往常一样接收原始文件/URL。 ## 目标 - 可选:将入站媒体预先消化为短文本,以便更快路由 + 更好的命令解析。 - 保留原始媒体传递给模型(始终)。 - 支持\*\*提供商 API\*\* 和 \*\*CLI 回退\*\*。 - 允许多个模型并按顺序回退(错误/大小/超时)。 ## 高层行为 1. 收集入站附件(`MediaPaths`、`MediaUrls`、`MediaTypes`)。 2. 对于每个... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/nodes/media-understanding.md | main | opebclaw | [
-0.09211836010217667,
0.0007813820848241448,
0.04334082081913948,
-0.09943949431180954,
0.039074093103408813,
-0.0597604438662529,
0.0024226156529039145,
0.00700029544532299,
0.04726290702819824,
-0.01653246022760868,
0.1039724349975586,
-0.01804215833544731,
0.08445689082145691,
0.0351932... | 0.081626 |
"{{MediaPath}}"], }, ], }, video: { enabled: true, maxChars: 500, models: [ { provider: "google", model: "gemini-3-flash-preview" }, { type: "cli", command: "gemini", args: [ "-m", "gemini-3-flash", "--allowed-tools", "read\_file", "Read the media at {{MediaPath}} and describe it in <= {{MaxChars}} characters.", ], }, ... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/nodes/media-understanding.md | main | opebclaw | [
-0.01420564204454422,
-0.017862536013126373,
0.056061752140522,
-0.025675183162093163,
0.07032458484172821,
-0.02255639247596264,
-0.0010769703658297658,
0.0024753683246672153,
0.05001295357942581,
-0.03491990640759468,
0.03304135054349899,
0.034254852682352066,
-0.02387130819261074,
0.109... | -0.012785 |
# Voice Call(插件) 通过插件为 OpenClaw 提供语音通话。支持出站通知和带有入站策略的多轮对话。 当前提供商: - `twilio`(Programmable Voice + Media Streams) - `telnyx`(Call Control v2) - `plivo`(Voice API + XML transfer + GetInput speech) - `mock`(开发/无网络) 快速心智模型: - 安装插件 - 重启 Gateway 网关 - 在 `plugins.entries.voice-call.config` 下配置 - 使用 `openclaw voicecall ...` 或 `... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/plugins/voice-call.md | main | opebclaw | [
-0.10939159989356995,
-0.0072688572108745575,
-0.049690019339323044,
-0.14095571637153625,
-0.10392247885465622,
-0.04003001004457474,
-0.021788356825709343,
-0.008536816574633121,
0.03943007066845894,
-0.030479246750473976,
0.0916382223367691,
-0.05886117368936539,
0.016239618882536888,
-... | 0.122126 |
# 插件清单(openclaw.plugin.json) 每个插件都\*\*必须\*\*在\*\*插件根目录\*\*下提供一个 `openclaw.plugin.json` 文件。OpenClaw 使用此清单来\*\*在不执行插件代码的情况下\*\*验证配置。缺失或无效的清单将被视为插件错误,并阻止配置验证。 参阅完整的插件系统指南:[插件](/plugin)。 ## 必填字段 ```json { "id": "voice-call", "configSchema": { "type": "object", "additionalProperties": false, "properties": {} } } ``` 必填键: - ... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/plugins/manifest.md | main | opebclaw | [
-0.08714862167835236,
0.05627858638763428,
-0.04893231391906738,
-0.025879060849547386,
-0.015451780520379543,
-0.013392200693488121,
-0.006298108957707882,
0.00425275694578886,
0.04220917448401451,
-0.06286498159170151,
0.09388009458780289,
-0.06797783076763153,
-0.019335715100169182,
0.0... | 0.06117 |
# 插件智能体工具 OpenClaw 插件可以注册\*\*智能体工具\*\*(JSON 模式函数),这些工具在智能体运行期间暴露给 LLM。工具可以是\*\*必需的\*\*(始终可用)或\*\*可选的\*\*(选择启用)。 智能体工具在主配置的 `tools` 下配置,或在每个智能体的 `agents.list[].tools` 下配置。允许列表/拒绝列表策略控制智能体可以调用哪些工具。 ## 基本工具 ```ts import { Type } from "@sinclair/typebox"; export default function (api) { api.registerTool({ name: "my\_tool",... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/plugins/agent-tools.md | main | opebclaw | [
-0.04715314880013466,
0.06291858851909637,
-0.05507221072912216,
0.041904956102371216,
-0.06679697334766388,
0.0030754876788705587,
0.05451191961765289,
0.009581406600773335,
0.06616266071796417,
-0.035387732088565826,
0.08889441937208176,
-0.0614454559981823,
-0.025564705953001976,
0.0074... | 0.074983 |
# Zalo Personal(插件) 通过插件为 OpenClaw 提供 Zalo Personal 支持,使用 `zca-cli` 自动化普通 Zalo 用户账户。 > \*\*警告:\*\* 非官方自动化可能导致账户被暂停/封禁。使用风险自负。 ## 命名 渠道 id 是 `zalouser`,以明确表示这是自动化\*\*个人 Zalo 用户账户\*\*(非官方)。我们保留 `zalo` 用于潜在的未来官方 Zalo API 集成。 ## 运行位置 此插件\*\*在 Gateway 网关进程内\*\*运行。 如果你使用远程 Gateway 网关,请在\*\*运行 Gateway 网关的机器\*\*上安装/配置它,然后重启 Ga... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/plugins/zalouser.md | main | opebclaw | [
-0.06873363256454468,
0.1067887470126152,
-0.06675826013088226,
-0.015891367569565773,
-0.04361477866768837,
-0.09004490077495575,
0.07589192688465118,
-0.025400912389159203,
-0.018218904733657837,
0.007113112136721611,
0.11400459706783295,
-0.030424777418375015,
0.10285492241382599,
-0.00... | 0.112669 |
# 仪表板(控制 UI) Gateway 网关仪表板是默认在 `/` 提供的浏览器控制 UI (通过 `gateway.controlUi.basePath` 覆盖)。 快速打开(本地 Gateway 网关): - http://127.0.0.1:18789/(或 http://localhost:18789/) 关键参考: - [控制 UI](/web/control-ui) 了解使用方法和 UI 功能。 - [Tailscale](/gateway/tailscale) 了解 Serve/Funnel 自动化。 - [Web 界面](/web) 了解绑定模式和安全注意事项。 认证通过 `connect.params.auth`... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/web/dashboard.md | main | opebclaw | [
-0.06663833558559418,
-0.0027157124131917953,
-0.02598617598414421,
-0.04296177625656128,
-0.047575753182172775,
-0.08018138259649277,
0.04238048940896988,
0.026579419150948524,
0.012861421331763268,
-0.042228151112794876,
0.11566584557294846,
-0.051279567182064056,
0.02314934693276882,
-0... | 0.111582 |
# WebChat(Gateway 网关 WebSocket UI) 状态:macOS/iOS SwiftUI 聊天 UI 直接与 Gateway 网关 WebSocket 通信。 ## 它是什么 - Gateway 网关的原生聊天 UI(无嵌入式浏览器,无本地静态服务器)。 - 使用与其他渠道相同的会话和路由规则。 - 确定性路由:回复始终返回到 WebChat。 ## 快速开始 1. 启动 Gateway 网关。 2. 打开 WebChat UI(macOS/iOS 应用)或控制 UI 聊天标签页。 3. 确保已配置 Gateway 网关认证(默认需要,即使在 loopback 上)。 ## 工作原理(行为) - UI 连接到 ... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/web/webchat.md | main | opebclaw | [
-0.07046138495206833,
0.01346210204064846,
0.02120998315513134,
-0.05931755155324936,
-0.036712825298309326,
-0.09100916981697083,
0.060555409640073776,
0.005510332528501749,
0.02151661366224289,
-0.022960150614380836,
0.12135528773069382,
-0.05595479533076286,
0.03137044608592987,
-0.0037... | 0.12121 |
# Web(Gateway 网关) Gateway 网关从与 Gateway 网关 WebSocket 相同的端口提供一个小型\*\*浏览器 Control UI\*\*(Vite + Lit): - 默认:`http://:18789/` - 可选前缀:设置 `gateway.controlUi.basePath`(例如 `/openclaw`) 功能详见 [Control UI](/web/control-ui)。 本页重点介绍绑定模式、安全和面向 Web 的界面。 ## Webhooks 当 `hooks.enabled=true` 时,Gateway 网关还在同一 HTTP 服务器上公开一个小型 webhook 端点。 参见... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/web/index.md | main | opebclaw | [
-0.07916134595870972,
-0.0047171530313789845,
-0.06002989783883095,
-0.01780569553375244,
-0.05309755355119705,
-0.017567750066518784,
0.0628151148557663,
0.024013670161366463,
0.002069725189357996,
-0.056323543190956116,
0.10833479464054108,
-0.0526726171374321,
0.026221804320812225,
-0.0... | 0.131064 |
# 控制 UI(浏览器) 控制 UI 是一个由 Gateway 网关提供服务的小型 \*\*Vite + Lit\*\* 单页应用: - 默认:`http://:18789/` - 可选前缀:设置 `gateway.controlUi.basePath`(例如 `/openclaw`) 它\*\*直接与同一端口上的 Gateway 网关 WebSocket\*\* 通信。 ## 快速打开(本地) 如果 Gateway 网关在同一台计算机上运行,打开: - http://127.0.0.1:18789/(或 http://localhost:18789/) 如果页面加载失败,请先启动 Gateway 网关:`openclaw gate... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/web/control-ui.md | main | opebclaw | [
-0.06052601337432861,
0.002197824651375413,
-0.08784730732440948,
-0.03538762405514717,
-0.043891847133636475,
-0.06677231937646866,
0.003438622923567891,
0.034983448684215546,
0.008807273581624031,
-0.05542396754026413,
0.10251625627279282,
-0.04712476581335068,
0.017591647803783417,
-0.0... | 0.11089 |
# 新手引导 + 配置协议 目的:CLI、macOS 应用和 Web UI 之间共享的新手引导 + 配置界面。 ## 组件 - 向导引擎(共享会话 + 提示 + 新手引导状态)。 - CLI 新手引导使用与 UI 客户端相同的向导流程。 - Gateway 网关 RPC 公开向导 + 配置模式端点。 - macOS 新手引导使用向导步骤模型。 - Web UI 从 JSON Schema + UI 提示渲染配置表单。 ## Gateway 网关 RPC - `wizard.start` 参数:`{ mode?: "local"|"remote", workspace?: string }` - `wizard.next` 参数:`{... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/experiments/onboarding-config-protocol.md | main | opebclaw | [
-0.07393956184387207,
0.04745600000023842,
-0.044416531920433044,
-0.012560086324810982,
-0.014148646034300327,
-0.020985323935747147,
0.05374928191304207,
0.018247360363602638,
-0.023594480007886887,
-0.020659519359469414,
0.08344206213951111,
-0.06310741603374481,
0.04693165421485901,
0.... | 0.069166 |
# 工作区记忆 v2(离线):研究笔记 目标:Clawd 风格的工作区(`agents.defaults.workspace`,默认 `~/.openclaw/workspace`),其中"记忆"以每天一个 Markdown 文件(`memory/YYYY-MM-DD.md`)加上一小组稳定文件(例如 `memory.md`、`SOUL.md`)的形式存储。 本文档提出一种\*\*离线优先\*\*的记忆架构,保持 Markdown 作为规范的、可审查的数据源,但通过派生索引添加\*\*结构化回忆\*\*(搜索、实体摘要、置信度更新)。 ## 为什么要改变? 当前设置(每天一个文件)非常适合: - "仅追加"式日志记录 - 人工编辑 ... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/experiments/research/memory.md | main | opebclaw | [
-0.05882544443011284,
0.0486709289252758,
0.003458795603364706,
-0.0642067939043045,
-0.039175018668174744,
0.06437509506940842,
0.06605754047632217,
0.012841315940022469,
0.02735261619091034,
-0.01853172481060028,
0.14770621061325073,
-0.02024431899189949,
0.05689975991845131,
-0.02814765... | 0.074054 |
# Cron Add 加固 & Schema 对齐 ## 背景 最近的 Gateway 网关日志显示重复的 `cron.add` 失败,参数无效(缺少 `sessionTarget`、`wakeMode`、`payload`,以及格式错误的 `schedule`)。这表明至少有一个客户端(可能是智能体工具调用路径)正在发送包装的或部分指定的任务负载。另外,TypeScript 中的 cron 提供商枚举、Gateway 网关 schema、CLI 标志和 UI 表单类型之间存在漂移,加上 `cron.status` 的 UI 不匹配(期望 `jobCount` 而 Gateway 网关返回 `jobs`)。 ## 目标 - 通过规范... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/experiments/plans/cron-add-hardening.md | main | opebclaw | [
-0.10024477541446686,
-0.009187597781419754,
-0.03912792727351189,
-0.04120395705103874,
-0.05116177722811699,
-0.014819045551121235,
0.07655653357505798,
0.04642524942755699,
0.0011059270473197103,
-0.010634275153279305,
0.023994771763682365,
-0.07540255784988403,
0.03451109305024147,
0.0... | 0.085083 |
# OpenResponses Gateway 网关集成计划 ## 背景 OpenClaw Gateway 网关目前在 `/v1/chat/completions` 暴露了一个最小的 OpenAI 兼容 Chat Completions 端点(参见 [OpenAI Chat Completions](/gateway/openai-http-api))。 Open Responses 是基于 OpenAI Responses API 的开放推理标准。它专为智能体工作流设计,使用基于项目的输入加语义流式事件。OpenResponses 规范定义的是 `/v1/responses`,而不是 `/v1/chat/completions`。... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/experiments/plans/openresponses-gateway.md | main | opebclaw | [
-0.047336090356111526,
-0.021969953551888466,
-0.009165620431303978,
-0.012470838613808155,
0.013739771209657192,
-0.07635551691055298,
0.0203213132917881,
-0.03200673311948776,
0.0857148990035057,
-0.015858136117458344,
0.06714114546775818,
-0.011270363815128803,
0.01296266820281744,
-0.0... | 0.115733 |
# Qwen Qwen 为 Qwen Coder 和 Qwen Vision 模型提供免费层 OAuth 流程(每天 2,000 次请求,受 Qwen 速率限制约束)。 ## 启用插件 ```bash openclaw plugins enable qwen-portal-auth ``` 启用后重启 Gateway 网关。 ## 认证 ```bash openclaw models auth login --provider qwen-portal --set-default ``` 这会运行 Qwen 设备码 OAuth 流程并将提供商条目写入你的 `models.json`(加上一个 `qwen` 别名以便快速切换)。 ## ... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/providers/qwen.md | main | opebclaw | [
-0.02566475234925747,
-0.015408952720463276,
-0.08747909218072891,
-0.025338809937238693,
-0.024523723870515823,
-0.036231622099876404,
-0.017412183806300163,
0.00830380991101265,
0.026574045419692993,
-0.02761692740023136,
0.06427236646413803,
-0.07244008779525757,
0.07285655289888382,
0.... | -0.030597 |
# Anthropic(Claude) Anthropic 构建了 \*\*Claude\*\* 模型系列,并通过 API 提供访问。 在 OpenClaw 中,你可以使用 API 密钥或 \*\*setup-token\*\* 进行认证。 ## 选项 A:Anthropic API 密钥 \*\*适用于:\*\* 标准 API 访问和按用量计费。 在 Anthropic Console 中创建你的 API 密钥。 ### CLI 设置 ```bash openclaw onboard # 选择:Anthropic API key # 或非交互式 openclaw onboard --anthropic-api-key "$ANTH... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/providers/anthropic.md | main | opebclaw | [
-0.035967882722616196,
0.08925773203372955,
-0.04190367832779884,
-0.049046263098716736,
0.022782370448112488,
-0.04368912801146507,
0.01608925126492977,
0.02126317471265793,
0.012811768800020218,
0.019751807674765587,
0.0527544766664505,
-0.06714434176683426,
-0.01050341036170721,
0.04156... | 0.069244 |
# Claude Max API 代理 \*\*claude-max-api-proxy\*\* 是一个社区工具,将你的 Claude Max/Pro 订阅暴露为 OpenAI 兼容的 API 端点。这使你可以将订阅与任何支持 OpenAI API 格式的工具配合使用。 ## 为什么使用它? | 方式 | 费用 | 适用场景 | | --------------- | ----------------------------------------------- | ------------------------ | | Anthropic API | 按 token 计费(Opus 约 $15/M 输入,$75/M 输出) | ... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/providers/claude-max-api-proxy.md | main | opebclaw | [
-0.04856937751173973,
0.04657033085823059,
-0.04706716164946556,
-0.07032150030136108,
-0.06543795019388199,
-0.006972078699618578,
0.010299589484930038,
0.10580462217330933,
-0.003754247911274433,
0.01761172153055668,
0.11628387123346329,
-0.0896834284067154,
0.024739520624279976,
-0.0316... | 0.09144 |
# OpenAI OpenAI 提供 GPT 模型的开发者 API。Codex 支持\*\*ChatGPT 登录\*\*进行订阅访问,或\*\*API 密钥\*\*登录进行按量计费访问。Codex 云端需要 ChatGPT 登录。 ## 方式 A:OpenAI API 密钥(OpenAI Platform) \*\*适用于:\*\*直接 API 访问和按量计费。 从 OpenAI 控制台获取你的 API 密钥。 ### CLI 设置 ```bash openclaw onboard --auth-choice openai-api-key # 或非交互式 openclaw onboard --openai-api-key "$OPE... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/providers/openai.md | main | opebclaw | [
-0.019850650802254677,
0.0303806122392416,
-0.06449519097805023,
-0.0013052470749244094,
0.07453832775354385,
-0.08299291878938675,
0.015284179709851742,
0.006246507633477449,
0.052743952721357346,
-0.03159210830926895,
0.0783594474196434,
-0.0460389107465744,
-0.006717764772474766,
0.0572... | 0.065386 |
# Xiaomi MiMo Xiaomi MiMo 是 \*\*MiMo\*\* 模型的 API 平台。它提供与 OpenAI 和 Anthropic 格式兼容的 REST API,并使用 API 密钥进行身份验证。请在 [Xiaomi MiMo 控制台](https://platform.xiaomimimo.com/#/console/api-keys) 中创建你的 API 密钥。OpenClaw 使用 `xiaomi` 提供商配合 Xiaomi MiMo API 密钥。 ## 模型概览 - \*\*mimo-v2-flash\*\*:262144 token 上下文窗口,兼容 Anthropic Messages API。 -... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/providers/xiaomi.md | main | opebclaw | [
-0.05575638264417648,
-0.022746466100215912,
0.010155252180993557,
-0.036628562957048416,
0.03575627878308296,
-0.08135921508073807,
0.07499650120735168,
0.03763459250330925,
0.032755762338638306,
-0.03547999635338783,
0.1253524273633957,
-0.0465877540409565,
0.0712517574429512,
0.03294245... | 0.151924 |
# Venice AI(Venice 精选) \*\*Venice\*\* 是我们精选的 Venice 隐私优先推理配置,支持可选的匿名化访问专有模型。 Venice AI 提供注重隐私的 AI 推理服务,支持无审查模型,并可通过其匿名代理访问主流专有模型。所有推理默认私密——不会用你的数据训练,不会记录日志。 ## 为什么在 OpenClaw 中使用 Venice - \*\*私密推理\*\*,适用于开源模型(无日志记录)。 - 需要时可使用\*\*无审查模型\*\*。 - 在质量重要时,可\*\*匿名访问\*\*专有模型(Opus/GPT/Gemini)。 - 兼容 OpenAI 的 `/v1` 端点。 ## 隐私模式 Veni... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/providers/venice.md | main | opebclaw | [
-0.06971041113138199,
0.04924159497022629,
0.011226735077798367,
-0.0020463713444769382,
-0.048484645783901215,
0.0015096465358510613,
0.04553382471203804,
-0.00734761543571949,
-0.00406342837959528,
-0.0965513288974762,
0.10932973027229309,
-0.07887981086969376,
-0.01496218889951706,
-0.0... | 0.169438 |
| | `openai-gpt-52` | GPT-5.2 | 262k | 推理 | | `openai-gpt-52-codex` | GPT-5.2 Codex | 262k | 推理,视觉 | | `gemini-3-pro-preview` | Gemini 3 Pro | 202k | 推理,视觉 | | `gemini-3-flash-preview` | Gemini 3 Flash | 262k | 推理,视觉 | | `grok-41-fast` | Grok 4.1 Fast | 262k | 推理,视觉 | | `grok-code-fast-1` | Grok Code Fast 1 | 262k | 推理... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/providers/venice.md | main | opebclaw | [
-0.05971891060471535,
-0.012947018258273602,
-0.08024658262729645,
-0.019285349175333977,
0.02562147192656994,
-0.05931566283106804,
-0.00434494623914361,
0.023345332592725754,
-0.006043610628694296,
-0.07470518350601196,
0.08775323629379272,
-0.0490100122988224,
0.01966523379087448,
-0.09... | 0.055902 |
# Ollama Ollama 是一个本地 LLM 运行时,可以轻松在你的机器上运行开源模型。OpenClaw 通过 Ollama 的 OpenAI 兼容 API 进行集成,并且当你通过 `OLLAMA\_API\_KEY`(或认证配置)启用且未定义显式的 `models.providers.ollama` 条目时,可以\*\*自动发现支持工具调用的模型\*\*。 ## 快速开始 1. 安装 Ollama:https://ollama.ai 2. 拉取模型: ```bash ollama pull llama3.3 # 或 ollama pull qwen2.5-coder:32b # 或 ollama pull deepseek-... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/providers/ollama.md | main | opebclaw | [
-0.10691802203655243,
0.013963372446596622,
-0.0596686415374279,
-0.020398739725351334,
-0.03662142530083656,
-0.09909673035144806,
-0.02035924606025219,
0.0419822633266449,
0.03386807069182396,
-0.05637146905064583,
0.08348046988248825,
-0.018817730247974396,
-0.009695857763290405,
-0.086... | 0.073909 |
# Deepgram(音频转录) Deepgram 是一个语音转文字 API。在 OpenClaw 中,它通过 `tools.media.audio` 用于\*\*接收音频/语音消息的转录\*\*。 启用后,OpenClaw 会将音频文件上传到 Deepgram,并将转录文本注入回复管道(`{{Transcript}}` + `[Audio]` 块)。这\*\*不是流式\*\*处理;它使用的是预录音转录端点。 网站:https://deepgram.com 文档:https://developers.deepgram.com ## 快速开始 1. 设置你的 API 密钥: ``` DEEPGRAM\_API\_KEY=dg\_...... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/providers/deepgram.md | main | opebclaw | [
-0.06754498928785324,
-0.06533300876617432,
0.006333650555461645,
-0.04343968629837036,
0.015625782310962677,
-0.005932553671300411,
-0.10084941238164902,
-0.05496293306350708,
0.014110582880675793,
-0.07162513583898544,
0.01904415898025036,
-0.06877885013818741,
-0.024609144777059555,
-0.... | 0.099479 |
# 模型提供商 OpenClaw 可以使用许多 LLM 提供商。选择一个提供商,进行认证,然后将默认模型设置为 `provider/model`。 正在寻找聊天渠道文档(WhatsApp/Telegram/Discord/Slack/Mattermost(插件)等)?参见[渠道](/channels)。 ## 亮点:Venice(Venice AI) Venice 是我们推荐的 Venice AI 设置,用于隐私优先的推理,并可选择使用 Opus 处理困难任务。 - 默认:`venice/llama-3.3-70b` - 最佳综合:`venice/claude-opus-45`(Opus 仍然是最强的) 参见 [Venice AI]... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/providers/index.md | main | opebclaw | [
-0.047668635845184326,
0.007640830706804991,
-0.021464748308062553,
-0.02741595357656479,
-0.023318201303482056,
-0.028942232951521873,
-0.027112072333693504,
0.0250819344073534,
0.03589443862438202,
-0.045111216604709625,
0.07259482145309448,
-0.059909991919994354,
-0.035454366356134415,
... | 0.166947 |
# 模型提供商 OpenClaw 可以使用许多 LLM 提供商。选择一个,进行认证,然后将默认模型设置为 `provider/model`。 ## 推荐:Venice(Venice AI) Venice 是我们推荐的 Venice AI 设置,用于隐私优先的推理,并可选择使用 Opus 处理最困难的任务。 - 默认:`venice/llama-3.3-70b` - 最佳综合:`venice/claude-opus-45`(Opus 仍然是最强的) 参见 [Venice AI](/providers/venice)。 ## 快速开始(两个步骤) 1. 与提供商认证(通常通过 `openclaw onboard`)。 2. 设置默认模型... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/providers/models.md | main | opebclaw | [
-0.06979356706142426,
0.027728673070669174,
-0.03639717027544975,
-0.028352444991469383,
-0.002475133165717125,
0.022662829607725143,
-0.04943770915269852,
0.006493789609521627,
0.02095349133014679,
-0.08740535378456116,
0.05861254781484604,
-0.046787332743406296,
-0.02265436388552189,
0.0... | 0.11162 |
# MiniMax MiniMax 是一家构建 \*\*M2/M2.1\*\* 模型系列的 AI 公司。当前面向编程的版本是 \*\*MiniMax M2.1\*\*(2025 年 12 月 23 日),专为现实世界的复杂任务而构建。 来源:[MiniMax M2.1 发布说明](https://www.minimax.io/news/minimax-m21) ## 模型概述(M2.1) MiniMax 强调 M2.1 的以下改进: - 更强的\*\*多语言编程\*\*能力(Rust、Java、Go、C++、Kotlin、Objective-C、TS/JS)。 - 更好的 \*\*Web/应用开发\*\*和美观输出质量(包括原生移动... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/providers/minimax.md | main | opebclaw | [
-0.07349783927202225,
0.04252133518457413,
0.030419861897826195,
-0.0950901210308075,
-0.047332119196653366,
0.03628980368375778,
0.004275982733815908,
0.04790180176496506,
-0.011091865599155426,
-0.06530004739761353,
0.13476675748825073,
-0.015617175959050655,
0.03878181055188179,
-0.0237... | 0.072475 |
# Synthetic Synthetic 提供兼容 Anthropic 的端点。OpenClaw 将其注册为 `synthetic` 提供商,并使用 Anthropic Messages API。 ## 快速设置 1. 设置 `SYNTHETIC\_API\_KEY`(或运行以下向导)。 2. 运行新手引导: ```bash openclaw onboard --auth-choice synthetic-api-key ``` 默认模型设置为: ``` synthetic/hf:MiniMaxAI/MiniMax-M2.1 ``` ## 配置示例 ```json5 { env: { SYNTHETIC\_API\_KEY: "s... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/providers/synthetic.md | main | opebclaw | [
-0.05780976265668869,
0.02740103378891945,
-0.013625006191432476,
-0.033163126558065414,
0.04003099352121353,
-0.08884795010089874,
-0.054346583783626556,
-0.010700356215238571,
0.03936886787414551,
-0.03429989516735077,
0.05235349014401436,
-0.057704173028469086,
0.01793927699327469,
0.05... | 0.05734 |
# Moonshot AI (Kimi) Moonshot 提供兼容 OpenAI 端点的 Kimi API。配置提供商并将默认模型设置为 `moonshot/kimi-k2.5`,或使用 Kimi Coding 的 `kimi-coding/k2p5`。 当前 Kimi K2 模型 ID: {/\_ moonshot-kimi-k2-ids:start \_/} - `kimi-k2.5` - `kimi-k2-0905-preview` - `kimi-k2-turbo-preview` - `kimi-k2-thinking` - `kimi-k2-thinking-turbo` {/\_ moonshot-kimi-k2-i... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/providers/moonshot.md | main | opebclaw | [
-0.028748156502842903,
0.029992150142788887,
-0.021198410540819168,
-0.02963593788444996,
0.053360458463430405,
-0.03406769037246704,
0.04681532457470894,
-0.017611080780625343,
0.013829054310917854,
-0.04750474914908409,
0.08949154615402222,
-0.07482409477233887,
0.0880855843424797,
-0.06... | 0.108837 |
# Vercel AI Gateway [Vercel AI Gateway](https://vercel.com/ai-gateway) 提供了一个统一的 API,通过单一端点访问数百个模型。 - 提供商:`vercel-ai-gateway` - 认证:`AI\_GATEWAY\_API\_KEY` - API:兼容 Anthropic Messages ## 快速开始 1. 设置 API 密钥(推荐:为 Gateway 网关存储它): ```bash openclaw onboard --auth-choice ai-gateway-api-key ``` 2. 设置默认模型: ```json5 { agents: { de... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/providers/vercel-ai-gateway.md | main | opebclaw | [
-0.00851862970739603,
0.0065985070541501045,
-0.0809498280286789,
0.02375089004635811,
0.049381669610738754,
-0.057945769280195236,
-0.00014276406727731228,
-0.01424703374505043,
0.04815886914730072,
-0.03948051482439041,
0.015077929012477398,
-0.06712429225444794,
-0.009553372859954834,
0... | 0.049196 |
# GitHub Copilot ## 什么是 GitHub Copilot? GitHub Copilot 是 GitHub 的 AI 编程助手。它为你的 GitHub 账户和订阅计划提供 Copilot 模型的访问权限。OpenClaw 可以通过两种不同的方式将 Copilot 用作模型提供商。 ## 在 OpenClaw 中使用 Copilot 的两种方式 ### 1)内置 GitHub Copilot 提供商(`github-copilot`) 使用原生设备登录流程获取 GitHub 令牌,然后在 OpenClaw 运行时将其兑换为 Copilot API 令牌。这是\*\*默认\*\*且最简单的方式,因为它不需要 VS C... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/providers/github-copilot.md | main | opebclaw | [
-0.13511055707931519,
-0.025154272094368935,
-0.06500948220491409,
-0.03145819529891014,
-0.09168015420436859,
-0.0767609030008316,
0.01223281305283308,
0.048085086047649384,
0.038067515939474106,
-0.010253271088004112,
0.08935797214508057,
0.03432783856987953,
0.06457739323377609,
-0.0209... | 0.09748 |
# 新手引导向导(CLI) 新手引导向导是在 macOS、Linux 或 Windows(通过 WSL2;强烈推荐)上设置 OpenClaw 的\*\*推荐\*\*方式。 它可以在一个引导式流程中配置本地 Gateway 网关或远程 Gateway 网关连接,以及渠道、Skills 和工作区默认值。 主要入口: ```bash openclaw onboard ``` 最快开始聊天的方式:打开控制界面(无需设置渠道)。运行 `openclaw dashboard` 并在浏览器中聊天。文档:[控制面板](/web/dashboard)。 后续重新配置: ```bash openclaw configure ``` 推荐:设置 Brav... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/start/wizard.md | main | opebclaw | [
-0.01751893013715744,
0.052784260362386703,
-0.06661657243967056,
-0.027787867933511734,
0.022549085319042206,
-0.10708142817020416,
-0.014630163088440895,
0.028409089893102646,
0.017405807971954346,
-0.06824199110269547,
0.08391216397285461,
-0.027760175988078117,
0.0732630267739296,
-0.0... | 0.061753 |
onboard --non-interactive \ --mode local \ --auth-choice zai-api-key \ --zai-api-key "$ZAI_API_KEY" \ --gateway-port 18789 \ --gateway-bind loopback ``` Vercel AI Gateway 示例: ```bash openclaw onboard --non-interactive \ --mode local \ --auth-choice ai-gateway-api-key \ --ai-gateway-api-key "$AI_GATEWAY_API_KEY" \ --gat... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/start/wizard.md | main | opebclaw | [
0.01977705769240856,
0.0068076797761023045,
-0.1391245424747467,
-0.021525098010897636,
0.014324669726192951,
-0.055463939905166626,
0.04852871224284172,
-0.0057668485678732395,
0.02281360700726509,
-0.00942880567163229,
0.08006416261196136,
-0.09850647300481796,
0.06924448162317276,
-0.00... | 0.071916 |
# 设置 最后更新:2026-01-01 ## 太长不看 - \*\*个性化设置存放在仓库之外:\*\* `~/.openclaw/workspace`(工作区)+ `~/.openclaw/openclaw.json`(配置)。 - \*\*稳定工作流:\*\* 安装 macOS 应用;让它运行内置的 Gateway 网关。 - \*\*前沿工作流:\*\* 通过 `pnpm gateway:watch` 自己运行 Gateway 网关,然后让 macOS 应用以本地模式连接。 ## 先决条件(从源码) - Node `>=22` - `pnpm` - Docker(可选;仅用于容器化设置/e2e — 参阅 [Docker](/i... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/start/setup.md | main | opebclaw | [
-0.04258542135357857,
0.03549196571111679,
-0.031095601618289948,
-0.04811321943998337,
0.08038781583309174,
-0.11289738863706589,
-0.020607685670256615,
0.02590324729681015,
-0.025506209582090378,
-0.0034759428817778826,
0.1292760670185089,
-0.03133085370063782,
-0.022784193977713585,
-0.... | 0.108196 |
# 案例展示 来自社区的真实项目。看看大家正在用 OpenClaw 构建什么。 \*\*想要展示你的项目?\*\* 在 [Discord 的 #showcase 频道](https://discord.gg/clawd) 分享或在 [X 上 @openclaw](https://x.com/openclaw)。 ## 🎥 OpenClaw 实战演示 VelvetShark 的完整设置演练(28 分钟)。[在 YouTube 上观看](https://www.youtube.com/watch?v=SaWSPZoPX34)[在 YouTube 上观看](https://www.youtube.com/watch?v=mMSKQvlm... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/start/showcase.md | main | opebclaw | [
-0.08349372446537018,
-0.012845279648900032,
0.07937151938676834,
-0.09049014747142792,
0.060289621353149414,
-0.025232350453734398,
0.08472216129302979,
-0.03082006610929966,
0.006909005343914032,
-0.04474911466240883,
0.14449870586395264,
-0.06483476608991623,
0.012419100850820541,
-0.01... | 0.063714 |
# 使用 OpenClaw 构建个人助手 OpenClaw 是 \*\*Pi\*\* 智能体的 WhatsApp + Telegram + Discord + iMessage Gateway 网关。插件可添加 Mattermost。本指南是"个人助手"设置:一个专用的 WhatsApp 号码,表现得像你的常驻智能体。 ## ⚠️ 安全第一 你正在让智能体处于可以: - 在你的机器上运行命令(取决于你的 Pi 工具设置) - 在你的工作区读/写文件 - 通过 WhatsApp/Telegram/Discord/Mattermost(插件)发送消息 从保守开始: - 始终设置 `channels.whatsapp.allowFrom`... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/start/openclaw.md | main | opebclaw | [
-0.04154025390744209,
-0.0001086138145183213,
-0.045273307710886,
-0.05211903899908066,
-0.04656704515218735,
-0.018730372190475464,
0.060547832399606705,
-0.017039282247424126,
0.053603462874889374,
0.06450104713439941,
0.18374988436698914,
-0.03657112643122673,
0.000350012764101848,
0.01... | 0.076819 |
OpenClaw 需要 Node 22 或更新版本。 ## 安装 ```bash npm install -g openclaw@latest ``` ```bash pnpm add -g openclaw@latest ``` ## 新手引导并运行 Gateway 网关 ```bash openclaw onboard --install-daemon ``` ```bash openclaw channels login ``` ```bash openclaw gateway --port 18789 ``` 完成新手引导后,Gateway 网关将通过用户服务运行。你也可以使用 `openclaw gateway` 手动启动... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/start/quickstart.md | main | opebclaw | [
-0.0005322236102074385,
-0.012024893425405025,
-0.07515590637922287,
-0.035843897610902786,
-0.03278454393148422,
-0.10946594178676605,
0.01764177344739437,
0.018800051882863045,
-0.03268025442957878,
0.019189387559890747,
0.07464489340782166,
0.004446503706276417,
0.05180061608552933,
-0.... | 0.08163 |
如需查看完整的文档地图,请参阅[文档中心](/start/hubs)。 ## 从这里开始 - [文档中心(所有页面链接)](/start/hubs) - [帮助](/help) - [配置](/gateway/configuration) - [配置示例](/gateway/configuration-examples) - [斜杠命令](/tools/slash-commands) - [多智能体路由](/concepts/multi-agent) - [更新与回滚](/install/updating) - [配对(私信和节点)](/start/pairing) - [Nix 模式](/install/nix) - [OpenC... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/start/docs-directory.md | main | opebclaw | [
-0.03810830041766167,
0.006996631622314453,
-0.02871609292924404,
-0.03342041000723839,
0.022483818233013153,
-0.0019366458291187882,
0.012216445058584213,
-0.07562403380870819,
-0.021095873787999153,
0.007538800127804279,
0.12362993508577347,
-0.019261907786130905,
0.020154235884547234,
0... | 0.084631 |
# 配对 "配对"是 OpenClaw 的显式\*\*所有者批准\*\*步骤。它用于两个地方: 1. \*\*私信配对\*\*(谁被允许与机器人对话) 2. \*\*节点配对\*\*(哪些设备/节点被允许加入 Gateway 网关网络) 安全上下文:[安全](/gateway/security) ## 1)私信配对(入站聊天访问) 当渠道配置为私信策略 `pairing` 时,未知发送者会收到一个短代码,他们的消息\*\*不会被处理\*\*,直到你批准。 默认私信策略记录在:[安全](/gateway/security) 配对代码: - 8 个字符,大写,无歧义字符(`0O1I`)。 - \*\*1 小时后过期\*\*。机器人仅在创... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/start/pairing.md | main | opebclaw | [
-0.07096865028142929,
0.08158610016107559,
-0.014620634727180004,
-0.041333653032779694,
-0.02853439748287201,
-0.05760832503437996,
0.03598330169916153,
0.0029835011810064316,
0.01109861396253109,
-0.030141817405819893,
0.14794521033763885,
-0.05376431718468666,
0.07232998311519623,
-0.04... | 0.044661 |
# OpenClaw 的传说 🦞📖 \_一个关于龙虾、蜕壳和太多 token 的故事。\_ ## 起源故事 最初,有一个叫 \*\*Warelay\*\* 的东西——一个作为 WhatsApp Gateway 网关的合理名字。它完成了它的工作。还不错。 但后来来了一只太空龙虾。 有一段时间,这只龙虾叫做 \*\*Clawd\*\*,住在 \*\*OpenClaw\*\* 里。但在 2026 年 1 月,Anthropic 发了一封礼貌的邮件要求更名(商标问题)。于是龙虾做了龙虾最擅长的事: \*\*它蜕壳了。\*\* 褪去旧壳,这只生物以 \*\*Molty\*\* 的新身份出现,住在 \*\*Moltbot\*\* 里。但这个... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/start/lore.md | main | opebclaw | [
-0.039822593331336975,
0.035912975668907166,
0.08602014929056168,
-0.03410721942782402,
0.005663617979735136,
-0.03941745311021805,
0.08723382651805878,
-0.03320867195725441,
0.036147166043519974,
-0.03671836480498314,
0.15704110264778137,
-0.09708815813064575,
0.00010262861906085163,
0.00... | 0.0911 |
# 入门指南 目标:尽快从\*\*零\*\*到\*\*第一个可用聊天\*\*(使用合理的默认值)。 最快聊天:打开 Control UI(无需渠道设置)。运行 `openclaw dashboard` 并在浏览器中聊天,或在 Gateway 网关主机上打开 `http://127.0.0.1:18789/`。文档:[Dashboard](/web/dashboard) 和 [Control UI](/web/control-ui)。 推荐路径:使用 \*\*CLI 新手引导向导\*\*(`openclaw onboard`)。它设置: - 模型/认证(推荐 OAuth) - Gateway 网关设置 - 渠道(WhatsApp/Te... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/start/getting-started.md | main | opebclaw | [
-0.07081083208322525,
0.053758762776851654,
-0.04380861297249794,
-0.05340656638145447,
0.013027498498558998,
-0.06253010779619217,
0.004776390735059977,
0.005541680846363306,
0.03357869014143944,
0.016151729971170425,
0.1286098062992096,
-0.04738149046897888,
0.07264335453510284,
-0.04893... | 0.083516 |
# 文档导航中心 使用这些导航中心发现每一个页面,包括深入解析和参考文档——它们不一定出现在左侧导航栏中。 ## 从这里开始 - [索引](/) - [入门指南](/start/getting-started) - [快速开始](/start/quickstart) - [新手引导](/start/onboarding) - [向导](/start/wizard) - [安装配置](/start/setup) - [仪表盘(本地 Gateway 网关)](http://127.0.0.1:18789/) - [帮助](/help) - [文档目录](/start/docs-directory) - [配置](/gateway/con... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/start/hubs.md | main | opebclaw | [
-0.051181383430957794,
0.03668508678674698,
0.013122071512043476,
-0.014140469953417778,
0.05616698041558266,
0.016664860770106316,
-0.0008450339664705098,
-0.0884849801659584,
-0.006386143155395985,
0.007297199685126543,
0.0919281393289566,
-0.0076856366358697414,
-0.003965800162404776,
-... | 0.02091 |
# 新手引导(macOS 应用) 本文档描述\*\*当前\*\*的首次运行新手引导流程。目标是流畅的"第 0 天"体验:选择 Gateway 网关运行位置、连接认证、运行向导,然后让智能体自行引导。 ## 页面顺序(当前) 1. 欢迎 + 安全提示 2. \*\*Gateway 网关选择\*\*(本地 / 远程 / 稍后配置) 3. \*\*认证(Anthropic OAuth)\*\* — 仅限本地 4. \*\*设置向导\*\*(Gateway 网关驱动) 5. \*\*权限\*\*(TCC 提示) 6. \*\*CLI\*\*(可选) 7. \*\*新手引导聊天\*\*(专用会话) 8. 就绪 ## 1) 欢迎 + 安全提示 ... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/start/onboarding.md | main | opebclaw | [
-0.052627064287662506,
0.07909377664327621,
0.037926238030195236,
-0.08299949765205383,
-0.03800897300243378,
-0.01113822776824236,
0.03542117774486542,
-0.043877050280570984,
-0.040773455053567886,
0.025120437145233154,
0.13116033375263214,
-0.06379146128892899,
-0.0004703719459939748,
-0... | 0.015793 |
# acp 运行与 OpenClaw Gateway 网关通信的 ACP(Agent Client Protocol)桥接器。 此命令通过 stdio 使用 ACP 协议与 IDE 通信,并通过 WebSocket 将提示转发到 Gateway 网关。它将 ACP 会话映射到 Gateway 网关会话键。 ## 用法 ```bash openclaw acp # Remote Gateway openclaw acp --url wss://gateway-host:18789 --token # Attach to an existing session key openclaw acp --session agent:main:... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/acp.md | main | opebclaw | [
-0.059403613209724426,
0.0371301993727684,
-0.10338697582483292,
-0.00881864968687296,
-0.05679324269294739,
-0.05048133060336113,
0.04316650703549385,
0.03295490890741348,
0.033839691430330276,
-0.014096294529736042,
0.08689654618501663,
-0.041842445731163025,
0.03815890848636627,
-0.0304... | 0.083831 |
# 沙箱 CLI 管理基于 Docker 的沙箱容器,用于隔离智能体执行。 ## 概述 OpenClaw 可以在隔离的 Docker 容器中运行智能体以确保安全。`sandbox` 命令帮助你管理这些容器,特别是在更新或配置更改后。 ## 命令 ### `openclaw sandbox explain` 检查\*\*生效的\*\*沙箱模式/作用域/工作区访问权限、沙箱工具策略和提权门控(附带修复配置的键路径)。 ```bash openclaw sandbox explain openclaw sandbox explain --session agent:main:main openclaw sandbox explain --... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/sandbox.md | main | opebclaw | [
0.028095876798033714,
0.0786323994398117,
-0.02388940006494522,
-0.060594070702791214,
0.04623942822217941,
-0.07163579016923904,
0.06838405132293701,
-0.05482935905456543,
0.03366626054048538,
-0.012094076722860336,
0.04684984311461449,
-0.09084177017211914,
0.03982120007276535,
0.0055554... | 0.096618 |
# `openclaw browser` 管理 OpenClaw 的浏览器控制服务器并运行浏览器操作(标签页、快照、截图、导航、点击、输入)。 相关: - 浏览器工具 + API:[浏览器工具](/tools/browser) - Chrome 扩展中继:[Chrome 扩展](/tools/chrome-extension) ## 通用标志 - `--url `:Gateway 网关 WebSocket URL(默认从配置获取)。 - `--token `:Gateway 网关令牌(如果需要)。 - `--timeout `:请求超时(毫秒)。 - `--browser-profile `:选择浏览器配置文件(默认从配置获取)。 ... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/browser.md | main | opebclaw | [
-0.07339068502187729,
-0.0021371266338974237,
-0.05130434408783913,
-0.02602636255323887,
0.013885555788874626,
-0.07903505861759186,
-0.0056751142255961895,
0.027428211644291878,
-0.00380512373521924,
-0.10810476541519165,
0.04500490054488182,
-0.04940808564424515,
0.02541041560471058,
-0... | 0.05245 |
# `openclaw doctor` Gateway 网关和渠道的健康检查 + 快速修复。 相关内容: - 故障排除:[故障排除](/gateway/troubleshooting) - 安全审计:[安全](/gateway/security) ## 示例 ```bash openclaw doctor openclaw doctor --repair openclaw doctor --deep ``` 注意事项: - 交互式提示(如钥匙串/OAuth 修复)仅在 stdin 是 TTY 且\*\*未\*\*设置 `--non-interactive` 时运行。无头运行(cron、Telegram、无终端)将跳过提示。 - `-... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/doctor.md | main | opebclaw | [
-0.07363096624612808,
0.07142713665962219,
-0.02159174345433712,
-0.07072670012712479,
-0.024475065991282463,
-0.0783073753118515,
0.03596000373363495,
0.048318564891815186,
0.026233678683638573,
-0.04438484460115433,
0.08839166909456253,
-0.03601565957069397,
0.053536586463451385,
-0.0017... | 0.112383 |
# `openclaw devices` 管理设备配对请求和设备范围的 token。 ## 命令 ### `openclaw devices list` 列出待处理的配对请求和已配对的设备。 ``` openclaw devices list openclaw devices list --json ``` ### `openclaw devices approve ` 批准待处理的设备配对请求。 ``` openclaw devices approve ``` ### `openclaw devices reject ` 拒绝待处理的设备配对请求。 ``` openclaw devices reject ``` ### `open... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/devices.md | main | opebclaw | [
-0.06485774368047714,
0.06600301712751389,
-0.040582045912742615,
-0.01993796043097973,
0.011262169107794762,
-0.11491461098194122,
0.05211202800273895,
0.013109249994158745,
0.009302103891968727,
-0.020680414512753487,
0.10844913125038147,
-0.009983724914491177,
0.05999567359685898,
-0.05... | 0.097917 |
# `openclaw directory` 对支持目录功能的渠道进行查找(联系人/对等方、群组和"我")。 ## 通用参数 - `--channel `:渠道 ID/别名(配置了多个渠道时为必填;仅配置一个渠道时自动选择) - `--account `:账号 ID(默认:渠道默认账号) - `--json`:输出 JSON 格式 ## 说明 - `directory` 用于帮助你查找可粘贴到其他命令中的 ID(特别是 `openclaw message send --target ...`)。 - 对于许多渠道,结果来源于配置(允许列表/已配置的群组),而非实时的提供商目录。 - 默认输出为以制表符分隔的 `id`(有时包含 `n... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/directory.md | main | opebclaw | [
-0.0782681331038475,
0.028514359146356583,
-0.060737770050764084,
-0.032821107655763626,
0.02367304638028145,
-0.097209133207798,
-0.010247047059237957,
0.027328044176101685,
0.05772987753152847,
-0.04706376791000366,
0.16098441183567047,
-0.028494542464613914,
0.038092538714408875,
-0.001... | 0.061208 |
# `openclaw node` 运行一个\*\*无头节点主机\*\*,连接到 Gateway 网关 WebSocket 并在此机器上暴露 `system.run` / `system.which`。 ## 为什么使用节点主机? 当你希望智能体\*\*在网络中的其他机器上运行命令\*\*,而无需在那里安装完整的 macOS 配套应用时,请使用节点主机。 常见用例: - 在远程 Linux/Windows 机器上运行命令(构建服务器、实验室机器、NAS)。 - 在 Gateway 网关上保持执行的\*\*沙箱隔离\*\*,但将批准的运行委托给其他主机。 - 为自动化或 CI 节点提供轻量级、无头的执行目标。 执行仍然受\*\*执行批... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/node.md | main | opebclaw | [
-0.058484721928834915,
0.037646275013685226,
-0.06821368634700775,
-0.06687964498996735,
-0.0460779182612896,
-0.08455916494131088,
-0.045772816985845566,
0.03588704764842987,
-0.016176311299204826,
0.021089622750878334,
0.13001838326454163,
-0.008534430526196957,
0.043975163251161575,
-0.... | 0.10724 |
# `openclaw channels` 管理 Gateway 网关上的聊天渠道账户及其运行时状态。 相关文档: - 渠道指南:[渠道](/channels/index) - Gateway 网关配置:[配置](/gateway/configuration) ## 常用命令 ```bash openclaw channels list openclaw channels status openclaw channels capabilities openclaw channels capabilities --channel discord --target channel:123 openclaw channels resolv... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/channels.md | main | opebclaw | [
0.02408471144735813,
-0.04456328973174095,
-0.06187141314148903,
-0.026933755725622177,
0.014315900392830372,
-0.07478843629360199,
0.07052677869796753,
-0.0240769162774086,
0.015636956319212914,
-0.013433960266411304,
0.04703798145055771,
-0.03249882534146309,
0.03727595880627632,
-0.0047... | 0.125078 |
# `openclaw nodes` 管理已配对的节点(设备)并调用节点功能。 相关内容: - 节点概述:[节点](/nodes) - 摄像头:[摄像头节点](/nodes/camera) - 图像:[图像节点](/nodes/images) 通用选项: - `--url`、`--token`、`--timeout`、`--json` ## 常用命令 ```bash openclaw nodes list openclaw nodes list --connected openclaw nodes list --last-connected 24h openclaw nodes pending openclaw nodes appr... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/nodes.md | main | opebclaw | [
-0.018966306000947952,
0.031650252640247345,
-0.0596478171646595,
0.0047268932685256,
0.011238757520914078,
-0.09796330332756042,
-0.006912661250680685,
-0.004687495529651642,
0.013784581795334816,
0.00950230285525322,
0.08466953039169312,
-0.020542243495583534,
0.05716250091791153,
-0.020... | 0.079583 |
# `openclaw config` 配置辅助命令:通过路径获取/设置/取消设置值。不带子命令运行将打开 配置向导(与 `openclaw configure` 相同)。 ## 示例 ```bash openclaw config get browser.executablePath openclaw config set browser.executablePath "/usr/bin/google-chrome" openclaw config set agents.defaults.heartbeat.every "2h" openclaw config set agents.list[0].tools.exec.node ... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/config.md | main | opebclaw | [
-0.001027752528898418,
0.003789525479078293,
-0.0806443840265274,
0.007063962984830141,
0.015808748081326485,
-0.07471394538879395,
-0.03184167295694351,
-0.01729828119277954,
-0.05294392257928848,
-0.0673351064324379,
0.05744675174355507,
-0.06971823424100876,
0.03029569610953331,
-0.0607... | 0.003881 |
# `openclaw memory` 管理语义记忆的索引和搜索。 由活跃的记忆插件提供(默认:`memory-core`;设置 `plugins.slots.memory = "none"` 可禁用)。 相关内容: - 记忆概念:[记忆](/concepts/memory) - 插件:[插件](/plugins) ## 示例 ```bash openclaw memory status openclaw memory status --deep openclaw memory status --deep --index openclaw memory status --deep --index --verbose openclaw... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/memory.md | main | opebclaw | [
0.04048459231853485,
-0.007737596519291401,
-0.13457511365413666,
0.050241488963365555,
-0.034267984330654144,
-0.027300525456666946,
0.031026091426610947,
0.037110961973667145,
-0.016945654526352882,
0.002810700796544552,
0.10874470323324203,
0.011837387457489967,
0.054454125463962555,
0.... | 0.175659 |
# `openclaw approvals` 管理\*\*本地主机\*\*、\*\*Gateway 网关主机\*\*或\*\*节点主机\*\*的执行审批。 默认情况下,命令针对磁盘上的本地审批文件。使用 `--gateway` 可针对 Gateway 网关,使用 `--node` 可针对特定节点。 相关内容: - 执行审批:[执行审批](/tools/exec-approvals) - 节点:[节点](/nodes) ## 常用命令 ```bash openclaw approvals get openclaw approvals get --node openclaw approvals get --gateway ``` ## ... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/approvals.md | main | opebclaw | [
-0.003587601939216256,
0.053724899888038635,
-0.028168784454464912,
-0.0014416869962587953,
0.03994269296526909,
-0.084090456366539,
0.030101720243692398,
-0.04915618523955345,
0.0015595006989315152,
0.02258995734155178,
0.08743080496788025,
-0.06079763546586037,
0.007345482241362333,
-0.0... | 0.073086 |
# CLI 参考 本页描述当前的 CLI 行为。如果命令发生变化,请更新此文档。 ## 命令页面 - [`setup`](/cli/setup) - [`onboard`](/cli/onboard) - [`configure`](/cli/configure) - [`config`](/cli/config) - [`doctor`](/cli/doctor) - [`dashboard`](/cli/dashboard) - [`reset`](/cli/reset) - [`uninstall`](/cli/uninstall) - [`update`](/cli/update) - [`message`](/cli/me... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/index.md | main | opebclaw | [
-0.03192046657204628,
0.03950071707367897,
-0.01985754258930683,
-0.10288526117801666,
0.028558922931551933,
-0.03583068028092384,
0.08458571881055832,
0.035778019577264786,
-0.0019177873618900776,
-0.028406551107764244,
0.09815996140241623,
-0.04959779977798462,
0.04917829483747482,
0.033... | 0.122034 |
- `--minimax-api-key ` - `--opencode-zen-api-key ` - `--gateway-port ` - `--gateway-bind ` - `--gateway-auth ` - `--gateway-token ` - `--gateway-password ` - `--remote-url ` - `--remote-token ` - `--tailscale ` - `--tailscale-reset-on-exit` - `--install-daemon` - `--no-install-daemon`(别名:`--skip-daemon`) - `--daemon-ru... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/index.md | main | opebclaw | [
0.0027766074053943157,
-0.01929735578596592,
-0.09669409692287445,
-0.05359642580151558,
0.01826227642595768,
0.0016209975583478808,
-0.006424381863325834,
0.02473861165344715,
-0.02700251154601574,
0.042860664427280426,
0.09043985605239868,
-0.016211388632655144,
0.029510047286748886,
-0.... | 0.043679 |
凭证可用时,OpenClaw 可以显示提供商用量/配额。 显示位置: - `/status`(可用时添加简短的提供商用量行) - `openclaw status --usage`(打印完整的提供商明细) - macOS 菜单栏(上下文下的用量部分) 说明: - 数据直接来自提供商用量端点(非估算)。 - 提供商:Anthropic、GitHub Copilot、OpenAI Codex OAuth,以及启用这些提供商插件时的 Gemini CLI/Antigravity。 - 如果没有匹配的凭证,用量会被隐藏。 - 详情:参见[用量跟踪](/concepts/usage-tracking)。 ### `health` 从运行中的 ... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/index.md | main | opebclaw | [
-0.08986090123653412,
0.0425022728741169,
-0.07099489867687225,
-0.04407138004899025,
-0.016881709918379784,
-0.12513606250286102,
0.058375805616378784,
0.039509471505880356,
0.038677044212818146,
-0.05994966998696327,
0.11701976507902145,
0.0018878151895478368,
0.02054486982524395,
-0.025... | 0.194376 |
`set`:`--provider `、`--agent `、`` - `clear`:`--provider `、`--agent ` ## 系统 ### `system event` 将系统事件加入队列并可选触发心跳(Gateway 网关 RPC)。 必需: - `--text ` 选项: - `--mode ` - `--json` - `--url`、`--token`、`--timeout`、`--expect-final` ### `system heartbeat last|enable|disable` 心跳控制(Gateway 网关 RPC)。 选项: - `--json` - `--url`、`--token`、... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/index.md | main | opebclaw | [
-0.04582447186112404,
0.008960691280663013,
-0.050140380859375,
-0.01759740337729454,
-0.009499343112111092,
-0.08880139142274857,
0.016824839636683464,
-0.010342741385102272,
0.03998566046357155,
0.001453850418329239,
0.047699227929115295,
-0.05100363865494728,
0.07056054472923279,
-0.034... | 0.176292 |
] [--target-id ] [--timeout-ms ]` - `browser wait [--time ] [--text ] [--text-gone ] [--target-id ]` - `browser evaluate --fn [--ref ] [--target-id ]` - `browser console [--level ] [--target-id ]` - `browser pdf [--target-id ]` ## 文档搜索 ### `docs [query...]` 搜索在线文档索引。 ## TUI ### `tui` 打开连接到 Gateway 网关的终端 UI。 选项: - `--ur... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/index.md | main | opebclaw | [
-0.013947581872344017,
0.0852045938372612,
-0.09995546191930771,
0.016768479719758034,
0.034717246890068054,
0.007419586647301912,
0.04904153570532799,
-0.0175246000289917,
0.08082549273967743,
-0.028233235701918602,
0.06594989448785782,
-0.08072810620069504,
0.0398419089615345,
-0.0319705... | 0.109122 |
# `openclaw models` 模型发现、扫描和配置(默认模型、回退、认证配置)。 相关内容: - 提供商 + 模型:[模型](/providers/models) - 提供商认证设置:[快速开始](/start/getting-started) ## 常用命令 ```bash openclaw models status openclaw models list openclaw models set openclaw models scan ``` `openclaw models status` 显示已解析的默认模型/回退配置以及认证概览。 当提供商使用快照可用时,OAuth/令牌状态部分会包含提供商使用头信息。 添加... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/models.md | main | opebclaw | [
-0.08071104437112808,
0.003723936388269067,
-0.09227422624826431,
0.009994114749133587,
-0.006320787128061056,
-0.054746393114328384,
-0.029106857255101204,
0.03477455675601959,
0.006875296588987112,
-0.06151982396841049,
0.11663026362657547,
-0.017192406579852104,
0.08372561633586884,
0.0... | 0.117127 |
# `openclaw plugins` 管理 Gateway 网关插件/扩展(进程内加载)。 相关内容: - 插件系统:[插件](/plugin) - 插件清单 + 模式:[插件清单](/plugins/manifest) - 安全加固:[安全](/gateway/security) ## 命令 ```bash openclaw plugins list openclaw plugins info openclaw plugins enable openclaw plugins disable openclaw plugins doctor openclaw plugins update openclaw plugins upda... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/plugins.md | main | opebclaw | [
-0.04575447738170624,
0.0297273900359869,
-0.07326680421829224,
-0.007621368858963251,
0.0054839481599628925,
-0.037901442497968674,
0.0033274460583925247,
-0.015577222220599651,
-0.013680093921720982,
-0.03477873280644417,
0.09264025837182999,
-0.043848756700754166,
0.01950364001095295,
-... | 0.074975 |
# `openclaw update` 安全更新 OpenClaw 并在 stable/beta/dev 渠道之间切换。 如果你通过 \*\*npm/pnpm\*\* 安装(全局安装,无 git 元数据),更新通过 [更新](/install/updating) 中的包管理器流程进行。 ## 用法 ```bash openclaw update openclaw update status openclaw update wizard openclaw update --channel beta openclaw update --channel dev openclaw update --tag beta openclaw upd... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/update.md | main | opebclaw | [
-0.0073127769865095615,
0.018080519512295723,
-0.06520120054483414,
-0.05136869475245476,
0.01844079978764057,
-0.09544657915830612,
0.005601480603218079,
-0.011601923033595085,
-0.014303776435554028,
0.016931569203734398,
0.10325386375188828,
-0.003926481120288372,
0.015952391549944878,
-... | 0.107826 |
# `openclaw hooks` 管理智能体钩子(针对 `/new`、`/reset` 等命令以及 Gateway 网关启动的事件驱动自动化)。 相关内容: - 钩子:[钩子](/hooks) - 插件钩子:[插件](/plugin#plugin-hooks) ## 列出所有钩子 ```bash openclaw hooks list ``` 列出从工作区、托管目录和内置目录中发现的所有钩子。 \*\*选项:\*\* - `--eligible`:仅显示符合条件的钩子(满足要求) - `--json`:以 JSON 格式输出 - `-v, --verbose`:显示详细信息,包括缺失的要求 \*\*示例输出:\*\* ``` H... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/hooks.md | main | opebclaw | [
-0.016702162101864815,
-0.022338641807436943,
-0.053790125995874405,
-0.03562017157673836,
-0.01940949633717537,
-0.0550580769777298,
0.030099550262093544,
-0.006822365801781416,
-0.01763039641082287,
0.04668932408094406,
0.09509504586458206,
-0.06332208216190338,
0.0008724372019059956,
-0... | 0.119187 |
# `openclaw system` Gateway 网关的系统级辅助工具:入队系统事件、控制心跳和查看在线状态。 ## 常用命令 ```bash openclaw system event --text "Check for urgent follow-ups" --mode now openclaw system heartbeat enable openclaw system heartbeat last openclaw system presence ``` ## `system event` 在\*\*主\*\*会话上入队系统事件。下一次心跳会将其作为 `System:` 行注入到提示中。使用 `--mode now`... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/system.md | main | opebclaw | [
-0.03617347404360771,
0.03197484463453293,
-0.04951777309179306,
-0.019690686836838722,
0.010948900133371353,
-0.029692430049180984,
0.04451167583465576,
-0.04439537972211838,
0.06938338279724121,
-0.04541798308491707,
0.11641634255647659,
-0.0285169817507267,
0.0674925148487091,
-0.053269... | 0.154189 |
# Gateway 网关 CLI Gateway 网关是 OpenClaw 的 WebSocket 服务器(渠道、节点、会话、hooks)。 本页中的子命令位于 `openclaw gateway …` 下。 相关文档: - [/gateway/bonjour](/gateway/bonjour) - [/gateway/discovery](/gateway/discovery) - [/gateway/configuration](/gateway/configuration) ## 运行 Gateway 网关 运行本地 Gateway 网关进程: ```bash openclaw gateway ``` 前台运行别名: ```... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/gateway.md | main | opebclaw | [
-0.032405637204647064,
0.013871429488062859,
-0.06366603821516037,
-0.02999894879758358,
-0.024187203496694565,
-0.07562553882598877,
-0.0012408673064783216,
-0.02075897715985775,
0.013110954314470291,
-0.05146786943078041,
0.0805673822760582,
0.003964579198509455,
0.003960713278502226,
-0... | 0.065387 |
# `openclaw message` 用于发送消息和渠道操作的单一出站命令 (Discord/Google Chat/Slack/Mattermost(插件)/Telegram/WhatsApp/Signal/iMessage/MS Teams)。 ## 用法 ``` openclaw message [flags] ``` 渠道选择: - 如果配置了多个渠道,则必须指定 `--channel`。 - 如果只配置了一个渠道,则该渠道为默认值。 - 可选值:`whatsapp|telegram|discord|googlechat|slack|mattermost|signal|imessage|msteams`(Mattermo... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/message.md | main | opebclaw | [
-0.026606449857354164,
-0.04622551053762436,
0.0043085613287985325,
-0.01757670007646084,
0.05113087221980095,
-0.09499318897724152,
0.06123296916484833,
-0.02839602716267109,
0.07951175421476364,
0.0102040134370327,
0.08537168800830841,
-0.08093825727701187,
0.008980220183730125,
0.029465... | 0.068701 |
# `openclaw agents` 管理隔离的智能体(工作区 + 认证 + 路由)。 相关内容: - 多智能体路由:[多智能体路由](/concepts/multi-agent) - 智能体工作区:[智能体工作区](/concepts/agent-workspace) ## 示例 ```bash openclaw agents list openclaw agents add work --workspace ~/.openclaw/workspace-work openclaw agents set-identity --workspace ~/.openclaw/workspace --from-identity openc... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/cli/agents.md | main | opebclaw | [
-0.032050784677267075,
0.0476362481713295,
-0.062265120446681976,
-0.02422063797712326,
0.0073494152165949345,
-0.032063014805316925,
0.07963650673627853,
-0.07912502437829971,
0.03649132326245308,
0.0356237068772316,
0.151814267039299,
-0.06890327483415604,
0.03052126057446003,
0.00392646... | 0.051366 |
# SOUL Evil 钩子 SOUL Evil 钩子在清除窗口期间或随机概率下,将\*\*注入的\*\* `SOUL.md` 内容替换为 `SOUL\_EVIL.md`。它\*\*不会\*\*修改磁盘上的文件。 ## 工作原理 当 `agent:bootstrap` 运行时,该钩子可以在系统提示词组装之前,在内存中替换 `SOUL.md` 的内容。如果 `SOUL\_EVIL.md` 缺失或为空,OpenClaw 会记录警告并保留正常的 `SOUL.md`。 子智能体运行\*\*不会\*\*在其引导文件中包含 `SOUL.md`,因此此钩子对子智能体没有影响。 ## 启用 ```bash openclaw hooks enable... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/hooks/soul-evil.md | main | opebclaw | [
-0.03437119349837303,
0.11715903878211975,
-0.02047555148601532,
-0.031679097563028336,
-0.01804567128419876,
-0.008502001874148846,
0.08708307892084122,
-0.0753781795501709,
0.06213239207863808,
-0.04688742011785507,
0.10749154537916183,
0.007938527502119541,
0.014597117900848389,
-0.0358... | 0.064853 |
# 智能体运行时 🤖 OpenClaw 运行一个源自 \*\*pi-mono\*\* 的嵌入式智能体运行时。 ## 工作区(必需) OpenClaw 使用单一智能体工作区目录(`agents.defaults.workspace`)作为智能体\*\*唯一\*\*的工作目录(`cwd`),用于工具和上下文。 建议:使用 `openclaw setup` 在缺失时创建 `~/.openclaw/openclaw.json` 并初始化工作区文件。 完整工作区布局 + 备份指南:[智能体工作区](/concepts/agent-workspace) 如果启用了 `agents.defaults.sandbox`,非主会话可以在 `agen... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/agent.md | main | opebclaw | [
-0.040748272091150284,
0.035493191331624985,
-0.08515484631061554,
-0.05773821100592613,
-0.07192742079496384,
-0.0638873502612114,
-0.005031844135373831,
-0.04335184767842293,
0.036441437900066376,
0.036798540502786636,
0.1606041043996811,
-0.04142249375581741,
-0.014837812632322311,
0.00... | 0.118285 |
# 使用量跟踪 ## 功能简介 - 直接从提供商的使用量端点拉取使用量/配额数据。 - 不提供估算费用;仅展示提供商报告的时间窗口数据。 ## 展示位置 - 聊天中的 `/status`:包含会话 token 数和估算费用的表情符号丰富的状态卡片(仅限 API 密钥)。当可用时,会显示\*\*当前模型提供商\*\*的使用量。 - 聊天中的 `/usage off|tokens|full`:每次响应的使用量页脚(OAuth 仅显示 token 数)。 - 聊天中的 `/usage cost`:从 OpenClaw 会话日志汇总的本地费用摘要。 - CLI:`openclaw status --usage` 打印完整的按提供商分类的详细... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/usage-tracking.md | main | opebclaw | [
-0.030042003840208054,
0.03205472603440285,
-0.022599318996071815,
-0.019928760826587677,
-0.0043777781538665295,
-0.03474120795726776,
0.07859820127487183,
0.05892716348171234,
0.04089389368891716,
-0.06996340304613113,
0.12251760810613632,
-0.05356256663799286,
0.061002228409051895,
0.00... | 0.067064 |
# 群组消息(WhatsApp 网页渠道) 目标:让 Clawd 留在 WhatsApp 群组中,仅在被提及时唤醒,并将该对话线程与个人私信会话分开。 注意:`agents.list[].groupChat.mentionPatterns` 现在也被 Telegram/Discord/Slack/iMessage 使用;本文档重点介绍 WhatsApp 特定的行为。对于多智能体设置,为每个智能体设置 `agents.list[].groupChat.mentionPatterns`(或使用 `messages.groupChat.mentionPatterns` 作为全局回退)。 ## 已实现的功能(2025-12-03) - 激活... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/group-messages.md | main | opebclaw | [
-0.0679260864853859,
-0.006364091765135527,
-0.0022968235425651073,
-0.028461867943406105,
-0.002679096534848213,
-0.008666904643177986,
0.10217363387346268,
-0.015805454924702644,
0.0542217493057251,
0.008388986811041832,
0.1318451166152954,
-0.02476372942328453,
0.044933922588825226,
0.0... | 0.062325 |
# 上下文窗口与压缩 每个模型都有一个\*\*上下文窗口\*\*(可见的最大 token 数)。长时间运行的对话会累积消息和工具结果;一旦窗口空间紧张,OpenClaw 会\*\*压缩\*\*较早的历史记录以保持在限制范围内。 ## 什么是压缩 压缩会将\*\*较早的对话总结\*\*为一条紧凑的摘要条目,并保持近期消息不变。摘要存储在会话历史中,因此后续请求使用的是: - 压缩摘要 - 压缩点之后的近期消息 压缩会\*\*持久化\*\*到会话的 JSONL 历史记录中。 ## 配置 有关 `agents.defaults.compaction` 设置,请参阅[压缩配置与模式](/concepts/compaction)。 ## 自动... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/compaction.md | main | opebclaw | [
-0.055212732404470444,
0.026174843311309814,
-0.06479889899492264,
-0.030569985508918762,
-0.061727214604616165,
0.0401831790804863,
0.05175386741757393,
0.0016735942335799336,
0.04379723221063614,
-0.016137903556227684,
0.1409284621477127,
-0.04225827381014824,
0.025506621226668358,
0.019... | 0.148399 |
# Gateway 网关架构 最后更新:2026-01-22 ## 概述 - 单个长期运行的 \*\*Gateway 网关\*\*拥有所有消息平台(通过 Baileys 的 WhatsApp、通过 grammY 的 Telegram、Slack、Discord、Signal、iMessage、WebChat)。 - 控制平面客户端(macOS 应用、CLI、Web 界面、自动化)通过配置的绑定主机(默认 `127.0.0.1:18789`)上的 \*\*WebSocket\*\* 连接到 Gateway 网关。 - \*\*节点\*\*(macOS/iOS/Android/无头设备)也通过 \*\*WebSocket\*\* 连接,... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/architecture.md | main | opebclaw | [
-0.06104789674282074,
0.008845102973282337,
0.054409854114055634,
-0.12140697240829468,
-0.003001321805641055,
-0.05881805717945099,
0.04885411635041237,
-0.03190530836582184,
0.03489501774311066,
-0.03352320194244385,
0.13069339096546173,
-0.06305380910634995,
0.016776537522673607,
-0.019... | 0.116714 |
# 消息 本页汇总了 OpenClaw 如何处理入站消息、会话、队列、流式传输和推理可见性。 ## 消息流程(高层概述) ``` 入站消息 -> 路由/绑定 -> 会话密钥 -> 队列(如果有运行中的任务) -> 智能体运行(流式传输 + 工具) -> 出站回复(渠道限制 + 分块) ``` 关键配置项在配置中: - `messages.\*` 用于前缀、队列和群组行为。 - `agents.defaults.\*` 用于分块流式传输和分块默认值。 - 渠道覆盖(`channels.whatsapp.\*`、`channels.telegram.\*` 等)用于上限和流式传输开关。 完整 schema 参见[配置](/gateway... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/messages.md | main | opebclaw | [
-0.028626548126339912,
0.016536029055714607,
-0.05208063870668411,
-0.07008610665798187,
-0.03153315931558609,
-0.03257552534341812,
0.0029300048481673002,
-0.0069502657279372215,
0.045810800045728683,
0.018540626391768456,
0.13447599112987518,
-0.02264597825706005,
0.007216030731797218,
-... | 0.12405 |
# 渠道与路由 OpenClaw 将回复\*\*路由回消息来源的渠道\*\*。模型不会选择渠道;路由是确定性的,由主机配置控制。 ## 关键术语 - \*\*渠道\*\*:`whatsapp`、`telegram`、`discord`、`slack`、`signal`、`imessage`、`webchat`。 - \*\*AccountId\*\*:每个渠道的账户实例(在支持的情况下)。 - \*\*AgentId\*\*:隔离的工作区 + 会话存储("大脑")。 - \*\*SessionKey\*\*:用于存储上下文和控制并发的桶键。 ## 会话键格式(示例) 私信会折叠到智能体的\*\*主\*\*会话: - `agent::... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/channel-routing.md | main | opebclaw | [
-0.0563017837703228,
0.03634916618466377,
-0.011693455278873444,
-0.09423783421516418,
0.0014879049267619848,
-0.056539326906204224,
0.05870518088340759,
-0.02841207943856716,
0.0539577417075634,
-0.01764914020895958,
0.15730665624141693,
-0.06531793624162674,
0.03200550377368927,
-0.03603... | 0.077048 |
# 重试策略 ## 目标 - 按 HTTP 请求重试,而非按多步骤流程重试。 - 通过仅重试当前步骤来保持顺序。 - 避免重复执行非幂等操作。 ## 默认值 - 尝试次数:3 - 最大延迟上限:30000 毫秒 - 抖动:0.1(10%) - 提供商默认值: - Telegram 最小延迟:400 毫秒 - Discord 最小延迟:500 毫秒 ## 行为 ### Discord - 仅在速率限制错误(HTTP 429)时重试。 - 可用时使用 Discord `retry\_after`,否则使用指数退避。 ### Telegram - 在瞬态错误时重试(429、超时、连接/重置/关闭、暂时不可用)。 - 可用时使用 `retr... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/retry.md | main | opebclaw | [
-0.051156509667634964,
-0.013985172845423222,
0.021622879430651665,
-0.06329178065061569,
-0.023748423904180527,
-0.026145270094275475,
0.019449308514595032,
0.004527213051915169,
0.06418972462415695,
0.012472489848732948,
0.0824604406952858,
-0.05066758394241333,
0.009996284730732441,
0.0... | 0.086362 |
# 上下文 "上下文"是 \*\*OpenClaw 在一次运行中发送给模型的所有内容\*\*。它受模型的\*\*上下文窗口\*\*(token 限制)约束。 新手心智模型: - \*\*系统提示词\*\*(OpenClaw 构建):规则、工具、Skills 列表、时间/运行时,以及注入的工作区文件。 - \*\*对话历史\*\*:你的消息 + 助手在此会话中的消息。 - \*\*工具调用/结果 + 附件\*\*:命令输出、文件读取、图片/音频等。 上下文与"记忆"\_不是同一回事\_:记忆可以存储在磁盘上并稍后重新加载;上下文是模型当前窗口内的内容。 ## 快速开始(检查上下文) - `/status` → 快速查看"我的窗口有多满... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/context.md | main | opebclaw | [
-0.06041961535811424,
-0.014304202049970627,
-0.01611725240945816,
-0.00855124369263649,
-0.023210469633340836,
0.023407142609357834,
0.031693845987319946,
-0.0005149137577973306,
0.012743297964334488,
-0.0016278054099529982,
0.17867308855056763,
-0.049604807049036026,
0.009832375682890415,
... | 0.040677 |
# 会话剪枝 会话剪枝在每次 LLM 调用之前从内存上下文中修剪\*\*旧的工具结果\*\*。它\*\*不会\*\*重写磁盘上的会话历史(`\*.jsonl`)。 ## 运行时机 - 当启用 `mode: "cache-ttl"` 且该会话的最后一次 Anthropic 调用早于 `ttl` 时。 - 仅影响该请求发送给模型的消息。 - 仅对 Anthropic API 调用(和 OpenRouter Anthropic 模型)生效。 - 为获得最佳效果,请将 `ttl` 与你的模型 `cacheControlTtl` 匹配。 - 剪枝后,TTL 窗口会重置,因此后续请求会保持缓存直到 `ttl` 再次过期。 ## 智能默认值(An... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/session-pruning.md | main | opebclaw | [
-0.05362928658723831,
0.09315367043018341,
-0.05245986208319664,
-0.06970793008804321,
-0.05698109418153763,
-0.07423209398984909,
0.04622247815132141,
0.046951182186603546,
0.031376514583826065,
-0.016681300476193428,
0.10918914526700974,
-0.020466795191168785,
-0.0013691037893295288,
-0.... | 0.092807 |
# OAuth OpenClaw 支持通过 OAuth 进行"订阅认证",适用于提供此功能的提供商(特别是 \*\*OpenAI Codex(ChatGPT OAuth)\*\*)。对于 Anthropic 订阅,请使用 \*\*setup-token\*\* 流程。本页说明: - OAuth \*\*令牌交换\*\*的工作原理(PKCE) - 令牌\*\*存储\*\*在哪里(以及原因) - 如何处理\*\*多账户\*\*(配置文件 + 按会话覆盖) OpenClaw 还支持\*\*提供商插件\*\*,它们自带 OAuth 或 API 密钥流程。通过以下命令运行: ```bash openclaw models auth login... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/oauth.md | main | opebclaw | [
-0.05613052472472191,
0.015374048613011837,
-0.07155141979455948,
-0.06442961096763611,
-0.016706053167581558,
-0.09904251247644424,
0.03840252384543419,
0.03815743327140808,
0.04944458231329918,
-0.06383156776428223,
0.066061832010746,
-0.03237326443195343,
0.05772450193762779,
-0.0220881... | 0.00744 |
# 智能体工作区 工作区是智能体的家。它是文件工具和工作区上下文使用的唯一工作目录。请保持其私密性并将其视为记忆。 这与 `~/.openclaw/` 是分开的,后者存储配置、凭证和会话。 \*\*重要:\*\* 工作区是\*\*默认 cwd\*\*,而不是硬性沙箱。工具会根据工作区解析相对路径,但绝对路径仍然可以访问主机上的其他位置,除非启用了沙箱隔离。如果你需要隔离,请使用 [`agents.defaults.sandbox`](/gateway/sandboxing)(和/或每智能体沙箱配置)。 当启用沙箱隔离且 `workspaceAccess` 不是 `"rw"` 时,工具在 `~/.openclaw/sandboxes`... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/agent-workspace.md | main | opebclaw | [
0.013435591012239456,
0.00718157971277833,
-0.027096988633275032,
-0.07674834132194519,
-0.04026037082076073,
-0.0350993275642395,
0.026172226294875145,
-0.07733575254678726,
0.02153027430176735,
0.013043207116425037,
0.15602417290210724,
-0.038737643510103226,
-0.008627994917333126,
-0.02... | 0.129747 |
# 多智能体路由 目标:多个\*隔离的\*智能体(独立的工作区 + `agentDir` + 会话),加上多个渠道账户(例如两个 WhatsApp)在一个运行的 Gateway 网关中。入站消息通过绑定路由到智能体。 ## 什么是"一个智能体"? 一个\*\*智能体\*\*是一个完全独立作用域的大脑,拥有自己的: - \*\*工作区\*\*(文件、AGENTS.md/SOUL.md/USER.md、本地笔记、人设规则)。 - \*\*状态目录\*\*(`agentDir`)用于认证配置文件、模型注册表和每智能体配置。 - \*\*会话存储\*\*(聊天历史 + 路由状态)位于 `~/.openclaw/agents//session... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/multi-agent.md | main | opebclaw | [
-0.037131309509277344,
0.05228441208600998,
-0.08488474786281586,
-0.07862503081560135,
-0.06004601716995239,
-0.01240883395075798,
0.03601285070180893,
-0.009341977536678314,
0.04060894250869751,
0.06151626631617546,
0.20480456948280334,
-0.0187201127409935,
-0.0026629853527992964,
0.0074... | 0.047522 |
WhatsApp 群组的家庭智能体 将专用家庭智能体绑定到单个 WhatsApp 群组,使用提及限制和更严格的工具策略: ```json5 { agents: { list: [ { id: "family", name: "Family", workspace: "~/.openclaw/workspace-family", identity: { name: "Family Bot" }, groupChat: { mentionPatterns: ["@family", "@familybot", "@Family Bot"], }, sandbox: { mode: "all", scope: "agent", }, too... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/multi-agent.md | main | opebclaw | [
-0.06636050343513489,
0.07058749347925186,
-0.03106425330042839,
0.004907569848001003,
-0.0026523114647716284,
-0.04195317253470421,
0.031110165640711784,
-0.06099383533000946,
0.036980677396059036,
0.045106347650289536,
0.08369702845811844,
-0.05155280977487564,
-0.009519081562757492,
0.0... | 0.0493 |
# 时区 OpenClaw 对时间戳进行标准化,使模型看到\*\*单一的参考时间\*\*。 ## 消息信封(默认为本地时间) 入站消息被包装在如下信封中: ``` [Provider ... 2026-01-05 16:26 PST] message text ``` 信封中的时间戳\*\*默认为主机本地时间\*\*,精确到分钟。 你可以通过以下配置进行覆盖: ```json5 { agents: { defaults: { envelopeTimezone: "local", // "utc" | "local" | "user" | IANA 时区 envelopeTimestamp: "on", // "on" | "off"... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/timezone.md | main | opebclaw | [
-0.02115810662508011,
0.06757272779941559,
0.05013429373502731,
-0.007990202866494656,
0.016102008521556854,
-0.09095152467489243,
-0.01598418690264225,
-0.0641874223947525,
0.05847904086112976,
-0.011875578202307224,
0.03179368004202843,
-0.06689193844795227,
-0.07474641501903534,
0.05021... | 0.01603 |
# 流式传输 + 分块 OpenClaw 有两个独立的"流式传输"层: - \*\*分块流式传输(渠道):\*\* 在助手写入时发出已完成的\*\*块\*\*。这些是普通的渠道消息(不是令牌增量)。 - \*\*类令牌流式传输(仅限 Telegram):\*\* 在生成时用部分文本更新\*\*草稿气泡\*\*;最终消息在结束时发送。 目前\*\*没有真正的令牌流式传输\*\*到外部渠道消息。Telegram 草稿流式传输是唯一的部分流式传输界面。 ## 分块流式传输(渠道消息) 分块流式传输在助手输出可用时以粗粒度块发送。 ``` 模型输出 └─ text\_delta/events ├─ (blockStreamingBreak=... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/streaming.md | main | opebclaw | [
-0.10732505470514297,
0.03185269609093666,
0.04439103230834007,
-0.08938751369714737,
0.044328778982162476,
-0.01299642026424408,
0.044880177825689316,
-0.03559640794992447,
0.06667036563158035,
-0.02487528696656227,
0.13968759775161743,
-0.03742220625281334,
-0.00515679782256484,
-0.04405... | 0.076327 |
# 模型提供商 本页介绍 \*\*LLM/模型提供商\*\*(不是 WhatsApp/Telegram 等聊天渠道)。 关于模型选择规则,请参阅 [/concepts/models](/concepts/models)。 ## 快速规则 - 模型引用使用 `provider/model` 格式(例如:`opencode/claude-opus-4-5`)。 - 如果设置了 `agents.defaults.models`,它将成为允许列表。 - CLI 辅助工具:`openclaw onboard`、`openclaw models list`、`openclaw models set `。 ## 内置提供商(pi-ai 目录) O... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/model-providers.md | main | opebclaw | [
-0.051485978066921234,
-0.0018423718865960836,
-0.0430314876139164,
-0.015551467426121235,
0.03872786462306976,
-0.026033200323581696,
-0.00028789270436391234,
0.006194662768393755,
0.0649004876613617,
-0.037901025265455246,
0.12846559286117554,
-0.059403665363788605,
0.04173673316836357,
... | 0.112052 |
是提供 OpenAI 兼容 API 的本地 LLM 运行时: - 提供商:`ollama` - 认证:无需(本地服务器) - 示例模型:`ollama/llama3.3` - 安装:https://ollama.ai ```bash # Install Ollama, then pull a model: ollama pull llama3.3 ``` ```json5 { agents: { defaults: { model: { primary: "ollama/llama3.3" } }, }, } ``` 当 Ollama 在本地 `http://127.0.0.1:11434/v1` 运行时会自动检测。参见 [/pro... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/model-providers.md | main | opebclaw | [
-0.06047922372817993,
0.03271441534161568,
-0.002664735773578286,
-0.024559229612350464,
-0.0060263583436608315,
-0.09764324128627777,
-0.06582729518413544,
-0.03172041103243828,
-0.00894980225712061,
-0.021077413111925125,
0.1332184076309204,
-0.04532836005091667,
-0.018261121585965157,
0... | 0.083366 |
# 输入指示器 在运行活跃期间,输入指示器会发送到聊天渠道。使用 `agents.defaults.typingMode` 控制输入指示器\*\*何时\*\*开始显示,使用 `typingIntervalSeconds` 控制\*\*刷新频率\*\*。 ## 默认行为 当 `agents.defaults.typingMode` \*\*未设置\*\*时,OpenClaw 保持旧版行为: - \*\*私聊\*\*:模型循环开始后立即显示输入指示器。 - \*\*群聊中被提及\*\*:立即显示输入指示器。 - \*\*群聊中未被提及\*\*:仅在消息文本开始流式传输时显示输入指示器。 - \*\*心跳运行\*\*:输入指示器禁用。 #... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/typing-indicators.md | main | opebclaw | [
-0.04963531717658043,
0.11011956632137299,
-0.0037071953993290663,
-0.059963006526231766,
-0.01376071572303772,
0.08358755707740784,
0.09002512693405151,
-0.005906475242227316,
0.02184498868882656,
0.015107903629541397,
0.1580711156129837,
-0.09162546694278717,
0.07762857526540756,
0.03032... | 0.026346 |
# 模型故障转移 OpenClaw 分两个阶段处理故障: 1. 在当前提供商内进行\*\*认证配置文件轮换\*\*。 2. \*\*模型回退\*\*到 `agents.defaults.model.fallbacks` 中的下一个模型。 本文档解释运行时规则及其背后的数据。 ## 认证存储(密钥 + OAuth) OpenClaw 对 API 密钥和 OAuth 令牌都使用\*\*认证配置文件\*\*。 - 密钥存储在 `~/.openclaw/agents//agent/auth-profiles.json`(旧版:`~/.openclaw/agent/auth-profiles.json`)。 - 配置 `auth.profil... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/model-failover.md | main | opebclaw | [
-0.07520903646945953,
0.043019942939281464,
-0.11703508347272873,
-0.015674948692321777,
0.005252961069345474,
-0.060561180114746094,
-0.02258383482694626,
0.007202803622931242,
0.0033457777462899685,
-0.07784076035022736,
0.10348241776227951,
-0.029278093948960304,
0.06009456887841225,
-0... | 0.040392 |
# 记忆 OpenClaw 记忆是\*\*智能体工作空间中的纯 Markdown 文件\*\*。这些文件是唯一的事实来源;模型只"记住"写入磁盘的内容。 记忆搜索工具由活动的记忆插件提供(默认:`memory-core`)。使用 `plugins.slots.memory = "none"` 禁用记忆插件。 ## 记忆文件(Markdown) 默认工作空间布局使用两个记忆层: - `memory/YYYY-MM-DD.md` - 每日日志(仅追加)。 - 在会话开始时读取今天和昨天的内容。 - `MEMORY.md`(可选) - 精心整理的长期记忆。 - \*\*仅在主要的私人会话中加载\*\*(绝不在群组上下文中加载)。 这些文件... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/memory.md | main | opebclaw | [
-0.0014890237944200635,
0.004451857414096594,
-0.08605308830738068,
-0.026885567232966423,
-0.04975074529647827,
0.07334637641906738,
0.0470239520072937,
0.01992289535701275,
0.05883494019508362,
0.0037139267660677433,
0.15484991669654846,
0.022581735625863075,
0.05149992182850838,
-0.0135... | 0.091039 |
从双方检索候选池: - \*\*向量\*\*:按余弦相似度取前 `maxResults \* candidateMultiplier` 个。 - \*\*BM25\*\*:按 FTS5 BM25 排名取前 `maxResults \* candidateMultiplier` 个(越低越好)。 2. 将 BM25 排名转换为 0..1 范围的分数: - `textScore = 1 / (1 + max(0, bm25Rank))` 3. 按块 id 合并候选并计算加权分数: - `finalScore = vectorWeight \* vectorScore + textWeight \* textScore` 说明: - 在配... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/memory.md | main | opebclaw | [
-0.05295976623892784,
-0.03655354306101799,
-0.0720386952161789,
0.031872037798166275,
-0.005417253356426954,
-0.02945416420698166,
0.02371986396610737,
0.06730719655752182,
-0.034338291734457016,
-0.015499710105359554,
0.08863753825426102,
-0.05668487399816513,
0.12603838741779327,
-0.044... | 0.073511 |
# TypeBox 作为协议的事实来源 最后更新:2026-01-10 TypeBox 是一个 TypeScript 优先的模式库。我们用它来定义 \*\*Gateway 网关 WebSocket 协议\*\*(握手、请求/响应、服务器事件)。这些模式驱动\*\*运行时验证\*\*、\*\*JSON Schema 导出\*\*和 macOS 应用的 \*\*Swift 代码生成\*\*。一个事实来源;其他一切都是生成的。 如果你想了解更高层次的协议上下文,请从 [Gateway 网关架构](/concepts/architecture)开始。 ## 心智模型(30 秒) 每个 Gateway 网关 WS 消息都是以下三种帧之一: -... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/typebox.md | main | opebclaw | [
-0.0943121537566185,
0.049091849476099014,
0.002088232897222042,
-0.02887057512998581,
-0.043069079518318176,
-0.0065991985611617565,
0.09097616374492645,
-0.009492933750152588,
0.052554864436388016,
-0.017855536192655563,
0.08830174803733826,
-0.04051044583320618,
0.005526508670300245,
0.... | 0.183833 |
?? ""); respond(true, { ok: true, text }); }, }; ``` 在 `src/gateway/server-methods.ts` 中注册(已合并 `systemHandlers`),然后将 `"system.echo"` 添加到 `src/gateway/server.ts` 中的 `METHODS`。 4. \*\*重新生成\*\* ```bash pnpm protocol:check ``` 5. \*\*测试 + 文档\*\* 在 `src/gateway/server.\*.test.ts` 中添加服务器测试,并在文档中记录该方法。 ## Swift 代码生成行为 Swift 生... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/typebox.md | main | opebclaw | [
-0.03754531219601631,
0.006495922803878784,
-0.01580188050866127,
-0.04909583926200867,
0.02845802903175354,
-0.03720742464065552,
0.062290292233228683,
0.028532186523079872,
0.05382676050066948,
0.06751488894224167,
0.13876983523368835,
-0.03988344594836235,
0.033909887075424194,
-0.02266... | 0.101127 |
# 模型 CLI 参见 [/concepts/model-failover](/concepts/model-failover) 了解认证配置文件轮换、冷却时间及其与回退的交互。 快速提供商概述 + 示例:[/concepts/model-providers](/concepts/model-providers)。 ## 模型选择工作原理 OpenClaw 按以下顺序选择模型: 1. \*\*主要\*\*模型(`agents.defaults.model.primary` 或 `agents.defaults.model`)。 2. `agents.defaults.model.fallbacks` 中的\*\*回退\*\*(按顺序... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/models.md | main | opebclaw | [
-0.0412333719432354,
-0.022756239399313927,
0.000046554698201362044,
-0.02677088975906372,
-0.0191663671284914,
0.007818290963768959,
-0.0027223024517297745,
0.04964166134595871,
0.025657353922724724,
-0.029346343129873276,
0.17969776690006256,
-0.07797006517648697,
0.08193086087703705,
-0... | 0.105143 |
# 智能体循环(OpenClaw) 智能体循环是智能体的完整"真实"运行:接收 → 上下文组装 → 模型推理 → 工具执行 → 流式回复 → 持久化。这是将消息转化为操作和最终回复的权威路径,同时保持会话状态的一致性。 在 OpenClaw 中,循环是每个会话的单次序列化运行,在模型思考、调用工具和流式输出时发出生命周期和流事件。本文档解释了这个真实循环是如何端到端连接的。 ## 入口点 - Gateway 网关 RPC:`agent` 和 `agent.wait`。 - CLI:`agent` 命令。 ## 工作原理(高层次) 1. `agent` RPC 验证参数,解析会话(sessionKey/sessionId),持久化会话... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/agent-loop.md | main | opebclaw | [
-0.049180954694747925,
0.05794490501284599,
-0.07132763415575027,
-0.05383017659187317,
-0.053897831588983536,
0.008446983993053436,
0.055916864424943924,
-0.008996644988656044,
0.05787234008312225,
0.057375188916921616,
0.17621535062789917,
-0.031167320907115936,
-0.00032292172545567155,
... | 0.055774 |
# Markdown 格式化 OpenClaw 通过将出站 Markdown 转换为共享的中间表示(IR),然后再渲染为特定渠道的输出来进行格式化。IR 保留源文本不变,同时携带样式/链接跨度信息,使分块和渲染在各渠道间保持一致。 ## 目标 - \*\*一致性:\*\*一次解析,多个渲染器。 - \*\*安全分块:\*\*在渲染前拆分文本,确保行内格式不会跨块断裂。 - \*\*渠道适配:\*\*将同一 IR 映射到 Slack mrkdwn、Telegram HTML 和 Signal 样式范围,无需重新解析 Markdown。 ## 管道 1. \*\*解析 Markdown -> IR\*\* - IR 是纯文本加上样式跨度... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/markdown-formatting.md | main | opebclaw | [
-0.05452635884284973,
0.06957026571035385,
-0.00035213533556088805,
-0.07391996681690216,
-0.011284592561423779,
0.013153104111552238,
0.023311205208301544,
0.0048324838280677795,
0.031131353229284286,
0.0022708717733621597,
0.14114460349082947,
-0.03762616589665413,
0.0364321693778038,
-0... | 0.086198 |
# 会话工具 目标:小型、不易误用的工具集,使智能体能够列出会话、获取历史记录并向另一个会话发送消息。 ## 工具名称 - `sessions\_list` - `sessions\_history` - `sessions\_send` - `sessions\_spawn` ## 键模型 - 主直接聊天桶始终是字面键 `"main"`(解析为当前智能体的主键)。 - 群聊使用 `agent:::group:` 或 `agent:::channel:`(传递完整键)。 - 定时任务使用 `cron:`。 - Hooks 使用 `hook:`,除非明确设置。 - Node 会话使用 `node-`,除非明确设置。 `global` ... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/session-tool.md | main | opebclaw | [
-0.03725261241197586,
0.0400267131626606,
-0.05828017741441727,
-0.02652178518474102,
-0.0466901957988739,
-0.014979587867856026,
0.057213857769966125,
-0.0075668408535420895,
0.02309548668563366,
0.06756359338760376,
0.07881934195756912,
-0.06005171686410904,
-0.0014273924753069878,
0.017... | 0.110958 |
# 命令队列(2026-01-16) 我们通过一个小型进程内队列序列化入站自动回复运行(所有渠道),以防止多个智能体运行发生冲突,同时仍允许跨会话的安全并行。 ## 为什么需要 - 自动回复运行可能开销很大(LLM 调用),当多条入站消息接近同时到达时可能发生冲突。 - 序列化可以避免竞争共享资源(会话文件、日志、CLI stdin),并降低上游速率限制的可能性。 ## 工作原理 - 一个支持通道感知的 FIFO 队列以可配置的并发上限排空每个通道(未配置的通道默认为 1;main 默认为 4,subagent 为 8)。 - `runEmbeddedPiAgent` 按\*\*会话键\*\*入队(通道 `session:`),以保... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/queue.md | main | opebclaw | [
-0.05783528462052345,
0.01734527014195919,
-0.014641383662819862,
-0.10775581747293472,
-0.005930891260504723,
0.04469715431332588,
0.020288817584514618,
0.058081306517124176,
0.026953013613820076,
-0.013859475031495094,
0.1160145103931427,
-0.03372296318411827,
0.0280921570956707,
0.00233... | 0.010458 |
## 亮点 通过单个 Gateway 网关支持 WhatsApp、Telegram、Discord 和 iMessage。 通过扩展添加 Mattermost 等更多平台。 多智能体路由,支持隔离会话。 支持图片、音频和文档的收发。 Web 控制界面和 macOS 配套应用。 iOS 和 Android 节点,支持 Canvas。 ## 完整列表 - 通过 WhatsApp Web(Baileys)集成 WhatsApp - Telegram 机器人支持(grammY) - Discord 机器人支持(channels.discord.js) - Mattermost 机器人支持(插件) - 通过本地 imsg CLI 集成 iMe... | https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/concepts/features.md | main | opebclaw | [
-0.06249181553721428,
-0.03704746440052986,
0.03654102236032486,
-0.09563712775707245,
0.005261669401079416,
-0.0870518907904625,
0.04589787498116493,
0.03383834287524223,
0.06538541615009308,
0.03872346878051758,
0.11846382915973663,
0.011497928760945797,
0.03329285979270935,
0.0455871336... | 0.117396 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.