快速开始

安装 OpenClaw:

npm install openclaw

创建你的第一个 Agent:

import { Agent } from 'openclaw';

const agent = new Agent({
  model: 'claude',
  apiKey: process.env.CLAUDE_API_KEY,
});

const response = await agent.run('你好,帮我写一段自我介绍');
console.log(response);