Gateway 导读
Local 聪明脑袋模型 services:总控室这一层在盯什么
Local 聪明脑袋模型 services 属于网关总控室里的一角。先看它卡在哪个位置、会拨动哪些客户端和工具、旋钮一拧会影响哪片区域,然后再看命令细节。原文最响的一记鼓点,其实是:聪明脑袋模型s.providers.<id>.localService lets OpenClaw start a provider-owned local 聪明脑袋模型 大…。
先听这页的人话版
Local model services
这一页不是在堆术语,它像把“Local 聪明脑袋模型 services”这台小机器搬到桌上,当着你的面拆开给你看。你先不用全记住,先抓住它到底在忙什么:聪明脑袋模型s.providers.<id>.localService lets OpenClaw start a provider-owned local 聪明脑袋模型 大房子服务器 on…。
如果把这页当成“给普通人看的版本”,你最应该带走的是:它到底在教你一件什么事、什么时候要这样做、以及哪里最容易踩坑。
第 1 站
Start Here
这一节更像安装或配置步骤,重点不是概念,而是“按什么顺序做才不会卡住”。
这一节更像安装或配置步骤,重点不是概念,而是“按什么顺序做才不会卡住”。
很多文档看起来长,其实是在防你漏掉前置条件。
真正照做时,先找前置条件,再找必填项,最后看验证方法。
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:聪明脑袋模型s.providers.<id>.localService lets OpenClaw start a provider-owned local 聪明脑袋模型 大房子服务器 on demand. It is provider-…。
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:聪明脑袋模型s.providers.<id>.localService lets OpenClaw start a provider-owned local 聪明脑袋模型 大房子服务器 on demand. It is provider-…。
models.providers.<id>.localService lets OpenClaw start a provider-owned local model server on demand. It is provider-level config: when the selected model belongs to that provider, OpenClaw probes the service, starts the process if the endpoint is down, waits for readiness, then sends the model request.
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:Use it for local 大房子服务器s that are expensive to keep running all day, or for manual setups where 聪明脑袋模型 selection should…。
Use it for local servers that are expensive to keep running all day, or for manual setups where model selection should be enough to bring the backend up.
第 2 站
How it works
这一节更像安装或配置步骤,重点不是概念,而是“按什么顺序做才不会卡住”。
这一节更像安装或配置步骤,重点不是概念,而是“按什么顺序做才不会卡住”。
很多文档看起来长,其实是在防你漏掉前置条件。
真正照做时,先找前置条件,再找必填项,最后看验证方法。
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:1. A 聪明脑袋模型 request resolves to a 设置说明书ured provider. 2. If that provider has localService, OpenClaw probes healthUrl.…。
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:1. A 聪明脑袋模型 request resolves to a 设置说明书ured provider. 2. If that provider has localService, OpenClaw probes healthUrl.…。
1. A model request resolves to a configured provider. 2. If that provider has localService, OpenClaw probes healthUrl. 3. If the probe succeeds, OpenClaw uses the existing server. 4. If the probe fails, OpenClaw starts command with args. 5. OpenClaw polls readiness until readyTimeoutMs expires. 6. The model request is sent through the normal provider transport. 7. If OpenClaw started the process and idleStopMs is positive, the process is stopped after the last in-flight request has been idle for that long.
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:OpenClaw does not install launchd, systemd, Docker, or a daemon for this. The 大房子服务器 is a child process of the OpenClaw…。
OpenClaw does not install launchd, systemd, Docker, or a daemon for this. The server is a child process of the OpenClaw process that first needed it.
第 3 站
设置说明书 shape
这一节主要在解释“设置说明书 shape”到底是干什么的,以及你什么时候会遇到它。
这一节主要在解释“设置说明书 shape”到底是干什么的,以及你什么时候会遇到它。
如果你是第一次接触 OpenClaw,这一节最值得看的不是术语本身,而是它背后的使用场景和限制。
真正动手时,先看它有没有默认值、有没有必须打开的选项、以及会不会影响安全边界。
这一小段像旁白,在提醒我们镜头已经切到下一站。
这段不是对白,而是一叠设置卡片,像在给系统贴门牌、路线和规矩。
- 大括号像两只手把同一组设置拢住,意思是“这些东西算一伙”。
- 这里在给“models”挂牌子,告诉系统它该指向“{”。
- 这里在给“providers”挂牌子,告诉系统它该指向“{”。
{
models: {
providers: {
local: {
baseUrl: "http://127.0.0.1:8000/v1",
apiKey: "local-model",
api: "openai-completions",
timeoutSeconds: 300,
localService: {
command: "/absolute/path/to/server",
args: ["--host", "127.0.0.1", "--port", "8000"],
cwd: "/absolute/path/to/working-dir",
env: { LOCAL_MODEL_CACHE: "/absolute/path/to/cache" },
healthUrl: "http://127.0.0.1:8000/v1/models",
readyTimeoutMs: 180000,
idleStopMs: 0,
},
models: [
{
id: "my-local-model",
name: "My Local Model",
reasoning: false,
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 131072,
maxTokens: 8192,
},
],
},
},
},
}
第 4 站
Fields
这一节在讲规则和边界:什么默认允许、什么必须显式打开、什么被禁止。
这一节在讲规则和边界:什么默认允许、什么必须显式打开、什么被禁止。
这种内容决定了 OpenClaw 是“能做”还是“现在还不能做”,读懂它比记术语更重要。
你可以把这一节当成权限说明书,真正配置时优先盯住 default、required、allow、deny 这几个词。
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:rules are applied. environment. baseUrl, so http://127.0.0.1:8000/v1 becomes http://127.0.0.1:8000/v1/聪明脑袋模型s. omitted…。
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:rules are applied.
rules are applied.
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:environment.
environment.
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:baseUrl, so http://127.0.0.1:8000/v1 becomes http://127.0.0.1:8000/v1/聪明脑袋模型s.
baseUrl, so http://127.0.0.1:8000/v1 becomes http://127.0.0.1:8000/v1/models.
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:omitted keeps the process alive until OpenClaw exits.
omitted keeps the process alive until OpenClaw exits.
这一串条目别硬背,把它当成“Fields”门口贴出来的几张便签就行。它们在提醒你先备好什么、别漏掉什么、哪里最容易走错:魔法口令: absolute executable path. Shell loo…、args: process arguments. No shell expansi…、cwd: optional working directory for the p…、env: optional environment variables merge…。
command: absolute executable path. Shell lookup is not used.args: process arguments. No shell expansion, pipes, globbing, or quotingcwd: optional working directory for the process.env: optional environment variables merged over the OpenClaw processhealthUrl: readiness URL. If omitted, OpenClaw appends/modelstoreadyTimeoutMs: startup readiness deadline. Default:120000.idleStopMs: idle shutdown delay for OpenClaw-started processes.0or
第 5 站
Inferrs example
这一节主要在解释“Inferrs example”到底是干什么的,以及你什么时候会遇到它。
这一节主要在解释“Inferrs example”到底是干什么的,以及你什么时候会遇到它。
如果你是第一次接触 OpenClaw,这一节最值得看的不是术语本身,而是它背后的使用场景和限制。
真正动手时,先看它有没有默认值、有没有必须打开的选项、以及会不会影响安全边界。
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:Inferrs is a custom OpenAI-compatible /v1 backend, so the same local service 对话接口 works with the inferrs provider entry…。
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:Inferrs is a custom OpenAI-compatible /v1 backend, so the same local service 对话接口 works with the inferrs provider entry.
Inferrs is a custom OpenAI-compatible /v1 backend, so the same local service API works with the inferrs provider entry.
这段不是对白,而是一叠设置卡片,像在给系统贴门牌、路线和规矩。
- 大括号像两只手把同一组设置拢住,意思是“这些东西算一伙”。
- 这里在给“agents”挂牌子,告诉系统它该指向“{”。
- 这里在给“defaults”挂牌子,告诉系统它该指向“{”。
{
agents: {
defaults: {
model: { primary: "inferrs/google/gemma-4-E2B-it" },
},
},
models: {
mode: "merge",
providers: {
inferrs: {
baseUrl: "http://127.0.0.1:8080/v1",
apiKey: "inferrs-local",
api: "openai-completions",
timeoutSeconds: 300,
localService: {
command: "/opt/homebrew/bin/inferrs",
args: [
"serve",
"google/gemma-4-E2B-it",
"--host",
"127.0.0.1",
"--port",
"8080",
"--device",
"metal",
],
healthUrl: "http://127.0.0.1:8080/v1/models",
readyTimeoutMs: 180000,
idleStopMs: 0,
},
models: [
{
id: "google/gemma-4-E2B-it",
name: "Gemma 4 E2B (inferrs)",
reasoning: false,
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 131072,
maxTokens: 4096,
compat: {
requiresStringContent: true,
},
},
],
},
},
},
}
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:Replace 魔法口令 with the result of which inferrs on the machine running OpenClaw.
Replace command with the result of which inferrs on the machine running OpenClaw.
第 6 站
ds4 example
这一节更像安装或配置步骤,重点不是概念,而是“按什么顺序做才不会卡住”。
这一节更像安装或配置步骤,重点不是概念,而是“按什么顺序做才不会卡住”。
很多文档看起来长,其实是在防你漏掉前置条件。
真正照做时,先找前置条件,再找必填项,最后看验证方法。
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:For the full setup, context sizing guidance, and verification 魔法口令s, see ds4.
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:For the full setup, context sizing guidance, and verification 魔法口令s, see ds4.
For the full setup, context sizing guidance, and verification commands, see ds4.
这段不是对白,而是一叠设置卡片,像在给系统贴门牌、路线和规矩。
- 大括号像两只手把同一组设置拢住,意思是“这些东西算一伙”。
- 这里在给“models”挂牌子,告诉系统它该指向“{”。
- 这里在给“providers”挂牌子,告诉系统它该指向“{”。
{
models: {
providers: {
ds4: {
baseUrl: "http://127.0.0.1:18000/v1",
apiKey: "ds4-local",
api: "openai-completions",
timeoutSeconds: 300,
localService: {
command: "
DS4_DIR
/ds4-server",
args: [
"--model",
"
DS4_DIR
/ds4flash.gguf",
"--host",
"127.0.0.1",
"--port",
"18000",
"--ctx",
"32768",
"--tokens",
"128",
],
cwd: "
DS4_DIR
",
healthUrl: "http://127.0.0.1:18000/v1/models",
readyTimeoutMs: 300000,
idleStopMs: 0,
},
models: [],
},
},
},
}
第 7 站
Operational notes
这一节在讲规则和边界:什么默认允许、什么必须显式打开、什么被禁止。
这一节在讲规则和边界:什么默认允许、什么必须显式打开、什么被禁止。
这种内容决定了 OpenClaw 是“能做”还是“现在还不能做”,读懂它比记术语更重要。
你可以把这一节当成权限说明书,真正配置时优先盯住 default、required、allow、deny 这几个词。
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:that sees the same health URL already live will reuse it without adopting it. requests do not spawn duplicate 大房子服务器s f…。
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:that sees the same health URL already live will reuse it without adopting it.
that sees the same health URL already live will reuse it without adopting it.
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:requests do not spawn duplicate 大房子服务器s for the same 设置说明书.
requests do not spawn duplicate servers for the same config.
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:body handling is complete.
body handling is complete.
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:do not hit the default 聪明脑袋模型 request timeout.
do not hit the default model request timeout.
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:than /v1/聪明脑袋模型s.
than /v1/models.
这一串条目别硬背,把它当成“Operational notes”门口贴出来的几张便签就行。它们在提醒你先备好什么、别漏掉什么、哪里最容易走错:One OpenClaw process manages the child it…、Startup is serialized per provider 魔法口令 a…、Active 一边说一边送ing responses hold a lease;…、Use timeoutSeconds on slow local provider…。
- One OpenClaw process manages the child it started. Another OpenClaw process
- Startup is serialized per provider command and argument set, so concurrent
- Active streaming responses hold a lease; idle shutdown waits until response
- Use
timeoutSecondson slow local providers so cold starts and long generations - Use an explicit
healthUrlif your server exposes readiness somewhere other
第 8 站
Related
这一节更像安装或配置步骤,重点不是概念,而是“按什么顺序做才不会卡住”。
这一节更像安装或配置步骤,重点不是概念,而是“按什么顺序做才不会卡住”。
很多文档看起来长,其实是在防你漏掉前置条件。
真正照做时,先找前置条件,再找必填项,最后看验证方法。
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:Card大家一起的房间 Local 聪明脑袋模型s Local 聪明脑袋模型 setup, provider choices, and safety guidance. Inferrs Run OpenClaw through the i…。
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:Card大家一起的房间。
CardGroup
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:Local 聪明脑袋模型s。
Local models
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:Local 聪明脑袋模型 setup, provider choices, and safety guidance.
Local model setup, provider choices, and safety guidance.
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:Inferrs。
Inferrs
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:Run OpenClaw through the inferrs OpenAI-compatible local 大房子服务器.
Run OpenClaw through the inferrs OpenAI-compatible local server.
如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:---。
---
AdSense 连接验证已经放在页面头部;广告单元等站点审批通过后再启用。
google-adsense-account: ca-pub-3833673520933536