跳到主要内容
Claw101
第7章 · 免费预计阅读 1 分钟

Agent 配置

Agent 配置

OpenClaw 的 Agent 行为主要由工作空间文件驱动。

工作空间关键文件

默认目录:~/.openclaw/workspace/

  • AGENTS.md:行为规范
  • SOUL.md:人格与表达风格
  • USER.md:用户背景与偏好
  • TOOLS.md:本地工具笔记
  • MEMORY.md:长期记忆(仅主会话加载)

常用会话命令

/new
/reset
/model <alias>
/thinking off|low|high
/status

多 Agent 示例

{
  agents: {
    list: [
      {
        id: "personal",
        default: true,
        workspace: "~/.openclaw/workspace-personal",
        model: "anthropic/claude-opus-4-6",
        identity: { name: "小助", emoji: "🤖" },
      },
      {
        id: "work",
        workspace: "~/.openclaw/workspace-work",
        model: "anthropic/claude-sonnet-4-5",
        identity: { name: "工作助手", emoji: "💼" },
      },
    ],
  },
}

下一步

继续《自动化》,让 Agent 在指定时间自动执行任务。

学完这章想实战?加入社群获得 $50 算力额度 + 实时答疑

加入社群 ¥99