Install
openclaw skills install skill-fixon-homepageOpenClaw 主页插件 - 让访客在你的个人主页上与 AI 助手对话。支持多访客并发、上下文隔离,无需泄露敏感信息。
openclaw skills install skill-fixon-homepage让用户拥有自己的个人主页,访客可以直接与 AI 助手对话。
访客消息 → Java平台 → Python插件(/homepage/chat) → OpenClaw Agent → LLM
插件本质:HTTP 桥接服务,把 OpenClaw Agent 封装成标准 HTTP 接口。
# 在 OpenClaw 中创建 Agent
# 名称如 "Alice客服"
# 模型选择 openclaw-default
在插件配置中设置:
agent:
id: "agent_123"
api_key: "xxx"
model: "openclaw-default"
首次使用时运行:
bash {baseDir}/scripts/init.sh
这会:
~/.openclaw/homepage/编辑配置文件:
open ~/.openclaw/homepage/config.yaml
必需配置:
agent.id: 你的 Agent IDagent.api_key: API Keyagent.model: 模型名称bash {baseDir}/scripts/start.sh
服务默认在 http://localhost:8080 运行
bash {baseDir}/scripts/stop.sh
bash {baseDir}/scripts/test.sh
POST /homepage/chat
Headers: Authorization: Bearer <API_KEY>
Body: {
"session_id": "visitor123",
"message": "你好"
}
通过 session_id 区分不同访客,实现上下文隔离。
当用户问"有人在我主页留言"或查看主页消息时:
bash {baseDir}/scripts/logs.sh