密钥位置
/home/ubuntu/.openclaw/agents/main/agent
会话
会话的目录和密钥位置的目录位于同一目录下,具体如下所示:
1 2 3 4 5 6 7 8 9
| ubuntu@VM-0-6-ubuntu:~/.openclaw/agents/main$ tree . ├── agent │ ├── auth-profiles.json │ └── models.json └── sessions ├── 018a193b-2c91-4979-93f7-4920571a44fa.jsonl.deleted.2026-03-04T13-38-32.193Z ├── 01facb05-abde-4fb4-b38f-ab57ea3a7e86.jsonl ├── 048df74e-0eff-4388-9cd9-673af088659b.jsonl
|
常用命令
1 2 3 4 5 6
| ubuntu@VM-0-6-ubuntu:~$ openclaw -v 2026.3.1 ubuntu@VM-0-6-ubuntu:~$
ubuntu@VM-0-6-ubuntu:~$ npm install -g openclaw
|
卸载
- 步骤 1:停止 openclaw gateway 服务
1 2 3 4
| openclaw gateway stop
openclaw gateway status
|
如果你用的是 pnpm 或 bun,对应换成:
1 2 3
| pnpm rm -g openclaw
bun rm -g openclaw
|
1 2 3 4 5 6 7 8
| npm list -g openclaw
ls ~/.openclaw/
lsof -i:18789
|
飞书插件指南
参考文档:飞书 IM 插件
gateway 生命周期管理
启动
- 加载 openclaw.json 配置
- 扫描并加载插件
- 初始化 IM 通道(连接飞书、企微等)
- 启动 HTTP 服务监听端口
- 写入 pid 文件
检查 gateway 状态
会显示:
- 运行状态(running / stopped)
- 进程 ID
- 监听端口
- 已加载的插件数量
停止 Gateway
如果 Gateway 卡住,可以强制停止:
1
| openclaw gateway stop --force
|
重启 gateway
修改配置后需要重启:
1
| openclaw gateway restart
|
常见问题
端口被占用
插件有问题
1 2 3 4
| openclaw plugins uninstall @openclaw/feishu-plugin
openclaw plugins install @openclaw/feishu-plugin
|