AGFS 文件系统性能测试
· ☕ 3 分钟
1. 安装 wrk 1 apt-get install -y wrk 2. localfs 性能测试 2.1 1KB 小文件测试 写文件 1 2 3 4 5 6 7 8 9 10 11 12 13 14 cat > put-1k.lua <<"EOF" wrk.method = "PUT" wrk.body = string.rep("a", 1024) wrk.headers["Content-Type"] = "text/plain" counter = 0 local WRAP = 500000 request = function() counter = counter + 1 local n = ((counter - 1) % WRAP) + 1 local filename = "/local/perf-1k/test_" .. n .. ".txt" local path = "/api/v1/files?path=" .. filename return wrk.format(nil, path) end EOF 1 curl -X POST "http://127.0.0.1:8080/api/v1/directories?path=/local/perf-1k" 1 wrk -t4 -c40 -d30s -s put-1k.lua "http://127.0.0.1:8080" 1 2 3 4 5 6 7 8 Running 30s

面向 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