面向 AI Agent 的文件系统 - AGFS
· ☕ 3 分钟
1. AGFS 简介 AGFS 是一个通过 RESTful API 对外提供存储服务的项目。它支持多种存储后端,包括内存、文件、数据库、消息队列等。 由于不需要 POSIX 接口的支持,可以通过远程调用的方式存储数据,这在 AI Agent 中非常有用。 AI Agent 在执行一些工作流时,经常会产生一些中间结果。这些结果需要

OpenViking 使用与 OpenClaw 集成
· ☕ 4 分钟
1. OpenViking 简介 1.1 适用场景 问题 OpenViking 的做法 上下文碎片化 用文件系统范式统一管理:记忆、资源、技能都映射到 viking:// 虚拟目录,像管理文件一样管理上下文 Token 消耗大 L0/L1/L2 分层:L0 摘要约 100 token 做检索,L1 概览约 2k token 做决策,L2 按需加载全文,显著节省成本 检索效果差 目录递归检索:

如何远程给OpenClaw发送消息
· ☕ 1 分钟
1. 配置 hooks 在 openclaw.json 中配置 hooks 1 2 3 4 5 6 7 "hooks": { "enabled": true, "token": "xxx", "path": "/openclaw/hooks", "allowRequestSessionKey": true, "allowedAgentIds": ["*"] }, 参考 https://docs.openclaw.ai/automation/webhook 这里的 token 不能与 gateway 的 token 相同。 2. 发送消息 1 2 3 4 5 6 7 8 9 10 11 12 curl --location 'https://xxx.com/openclaw/hooks/agent' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer xxx' \ --data '{ "message": "介绍下自己,将消息发送到 https://xxx.com/api/v1/webhook/send?key=xxx", "agentId": "main", "sessionKey": "hooks-api-002", "wakeMode": "now", "deliver": true, "thinking": "low", "timeoutSeconds": 120 }' 由于以上请求是异步的

容器化部署 OpenClaw
· ☕ 2 分钟
1. 启动容器 设置镜像 1 export IMAGE=ghcr.io/openclaw/openclaw:2026.3.2 生成随机 token 1 openssl rand -hex 32 设置网关 token 1 export OPENCLAW_GATEWAY_TOKEN=xxx 这个 token 会用于远程 Web 端,本地 Tui 端的认证。 设置目录权限 1 2 mkdir -p openclaw-home chmod -R 777 openclaw-home 启动容器 1 2 3 4 5 6 7 nerdctl run -d --user root \ --name openclaw \ --restart always \ -p 18789:18789 \ -v $(pwd)/openclaw-home:/root/ \ $IMAGE \ sleep infinity 删除容器 1 nerdctl rm openclaw --force 2. 启动服务 创建配置文件 1 2 3

使用 Skills 和 MCP 扩展 OpenClaw
· ☕ 2 分钟
1. 什么是 Skills 1 2 3 openclaw skills list Skills (7/51 ready) OpenClaw 内置有一些 skills,可以通过 openclaw skills list 查看。 在 https://github.com/openclaw/openclaw/tree/main/skills 可以查看到这些 Skills 具体实现。Skills 文件中主要描述的是 Skills 的元数据、什么时候适用、什么时候不适用、怎么配置和使用。 2. 使用 clawhub 安装 Skills ClawHub 是 OpenClaw 的公共 Skills 注册中心, 默认 Skills 安装