Docker + OpenViking + OpenClaw 智能记忆外挂实战指南 #1070
xypku
started this conversation in
Show and tell
Replies: 2 comments
-
|
我让openclaw自己整理一个说明文档,把文件发给你的 OpenClaw agents ,让他按文档的步骤自助对接openviking 就行了 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
https://api.siliconflow.cn/v1/embeddings" 地址 应该改成 https://api.siliconflow.cn/v1 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Docker + OpenViking + OpenClaw 智能记忆外挂实战指南
📋 目录
1. 方案概述
1.1 为什么需要 OpenViking?
AI Agent 在长期对话中面临的核心问题:
1.2 整体架构
2. OpenViking Docker 部署
2.1 配置文件创建
创建
ov.conf配置文件:{ "storage": { "workspace": "/app/data" }, "log": { "level": "INFO", "output": "stdout" }, "server": { "bind": "0.0.0.0", "port": 1933, "root_api_key": "your-root-key-here", "dev_mode": false }, "embedding": { "dense": { "provider": "openai", "api_base": "https://api.siliconflow.cn/v1/embeddings", "api_key": "your-embedding-key", "model": "Qwen/Qwen3-Embedding-4B", "dimension": 2560 } }, "vlm": { "provider": "openai", "api_base": "http://your-vlm-endpoint:3000/openai-codex-oauth/v1", "api_key": "your-vlm-key", "model": "gpt-5.1", "max_concurrent": 100 } }2.2 Docker Compose 配置
2.3 启动验证
2.4 常见部署问题
--host 0.0.0.0参数/app/ov.conf3. 多租户用户认证配置
3.1 核心概念
3.2 创建用户流程
步骤 1:创建 Account(如不存在)
步骤 2:创建 User
步骤 3:获取 User Key
返回结果:
{ "status": "ok", "result": { "account_id": "default", "user_id": "agent-nas-001", "user_key": "sk-USER-xxxxxxxx..." } }3.3 用户隔离最佳实践
命名建议:
{角色}-{设备类型}-{序号}agent-nas-001、agent-desktop-001、agent-cloud-0014. OpenClaw 技能开发
4.1 目录结构
4.2 核心脚本实现
4.2.1 添加记忆 (ov_add.sh)
4.2.2 搜索记忆 (ov_search.sh)
4.2.3 智能搜索 (ov_smart_search.sh)
4.3 可用性检查
所有脚本添加健康检查,服务不可用时静默跳过:
5. 智能调用实现
5.1 自动判断逻辑
触发关键词:
5.2 分层加载策略
5.3 提示词模板
L0 摘要
L1 概览
L2 全文
系统提示词
6. Token 优化效果
6.1 量化对比
6.2 成本估算
场景:每天 100 轮对话
6.3 实际测试结果
7. 常见问题与解决
Q1: 服务只监听本地,局域网无法访问
解决:
Q2: API 返回 UNAUTHENTICATED
解决:请求时添加正确 Header
Q3: 用户密钥哪里获取
解决:用 root_key 调用管理员接口
Q4: 搜索不到内容
解决:
Q5: 如何实现多 Agent 隔离
解决:
8. 总结
核心价值
快速开始
参考资源
文档版本: v1.0
更新时间: 2026-03-29
作者: 基于实际部署经验整理
Beta Was this translation helpful? Give feedback.
All reactions