26 lines
1011 B
Markdown
26 lines
1011 B
Markdown
---
|
||
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]]
|