Files
nexus/wiki/entities/OpenClaw.md
2026-05-03 05:42:12 +08:00

1011 B
Raw Blame History

title, type, tags
title type tags
OpenClaw entity

Overview

OpenClaw 是一个本地运行的 AI Agent 系统,提供 Gateway 服务,可通过 model 字段指定不同的 Agent IDopenclaw:mainopenclaw:beta)。

Key Facts

  • 默认端口18789
  • Agent 指定方式"model": "openclaw:<agentId>"
  • OpenAI 兼容端点Chat Completions 端点默认关闭,需在 ~/.openclaw/openclaw.json 中手动开启
  • 网络配置:需设置 host: "0.0.0.0" 以允许 Docker 容器从宿主机网络访问

Configuration

Gateway 配置文件 ~/.openclaw/openclaw.json 中的关键配置项:

  • gateway.portGateway 监听端口(默认 18789
  • gateway.bind:绑定地址("lan" 允许局域网访问)
  • gateway.auth.mode"token" 模式使用 Bearer Token 认证
  • gateway.http.endpoints.chatCompletions.enabled:设为 true 开启 OpenAI 兼容端点