src/process/resources/skills/openclaw-setup/references/usage.md
openclaw agents list
openclaw agents add <agent-name> --workspace ~/.openclaw/workspace-<name>
openclaw agents set-identity --agent main --name "My Assistant" --emoji "🦞"
openclaw agents set-identity --workspace ~/.openclaw/workspace --from-identity
openclaw agent --message "帮我总结今天的任务"
openclaw agent --agent <agent-id> --message "执行某个任务"
openclaw agent --message "复杂任务" --thinking high
openclaw agent --to +1234567890 --message "状态更新" --deliver
openclaw message send --to +1234567890 --message "Hello from OpenClaw"
openclaw message send --channel telegram --to @username --message "Hello"
openclaw channels login
openclaw channels status
openclaw channels status --probe
openclaw setup --workspace ~/.openclaw/workspace
默认工作区位置:~/.openclaw/workspace
重要文件:
AGENTS.md - Agent 指令和技能列表SOUL.md - Agent 身份和边界USER.md - 用户信息TOOLS.md - 工具配置memory/ - 记忆系统(每日日志)cp docs/reference/templates/AGENTS.md ~/.openclaw/workspace/AGENTS.md
cp docs/reference/templates/SOUL.md ~/.openclaw/workspace/SOUL.md
cp docs/reference/templates/TOOLS.md ~/.openclaw/workspace/TOOLS.md
openclaw cron add "0 9 * * *" --message "每日晨报"
配置 webhook 接收外部触发:
openclaw webhooks add <name> --url <webhook-url>
配置 Gmail 触发器(需要额外设置): 参考文档:https://docs.openclaw.ai/automation/gmail-pubsub
npm install -g openclaw@latest
或使用 pnpm:
pnpm add -g openclaw@latest
openclaw doctor
这会:
openclaw update --channel stable|beta|dev