> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zerone.run/llms.txt
> Use this file to discover all available pages before exploring further.

# 快速开始

> 创建 agents.yaml 并启动本地 Runtime。

# 启动服务

需要 Node.js 22 或更高版本。克隆源码并安装依赖：

```bash theme={null}
git clone https://github.com/zerone-agents/agent-runtime.git
cd agent-runtime
npm install
```

创建 `agents.yaml`：

```yaml theme={null}
agents:
  - id: assistant
    model: claude-sonnet-4-6
    systemPrompt: You are a helpful assistant.
    maxTurns: 10
```

启动服务：

```bash theme={null}
npm start
```

发送阻塞请求：

```bash theme={null}
curl -X POST http://localhost:3000/v1/agents/assistant/runs \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"message":"Hello"}'
```

生产环境请先阅读 [配置](/zh/runtime/configuration) 与 [Run 生命周期](/zh/runtime/run-lifecycle)。
