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

26 lines
1011 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "OpenClaw"
type: entity
tags: []
---
## Overview
OpenClaw 是一个本地运行的 AI Agent 系统,提供 Gateway 服务,可通过 `model` 字段指定不同的 Agent ID`openclaw:main``openclaw: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.port`Gateway 监听端口(默认 18789
- `gateway.bind`:绑定地址(`"lan"` 允许局域网访问)
- `gateway.auth.mode``"token"` 模式使用 Bearer Token 认证
- `gateway.http.endpoints.chatCompletions.enabled`:设为 `true` 开启 OpenAI 兼容端点
## Related Pages
- [[n8n-调用openclaw-agents的工作流架构]]
- [[Hermes-Agent]]