directory
管理 agent 目录。
使用方法
bash
openclaw directory [command]可用命令
| 命令 | 描述 |
|---|---|
list | 列出目录中的 agent |
add <path> | 添加 agent 目录 |
remove <path> | 移除 agent 目录 |
scan | 扫描目录更新 |
示例
bash
# 列出目录中的 agent
openclaw directory list
# 添加 agent 目录
openclaw directory add /path/to/agents
# 移除目录
openclaw directory remove /path/to/agents
# 扫描更新
openclaw directory scan配置
在 ~/.openclaw/config/directory.json 中配置:
json
{
"directories": [
"/path/to/agents"
],
"scanInterval": 60000
}