# OpenClaw BOOTSTRAP.md缺失：Agent身份识别失败

> OpenClaw Agent依赖BOOTSTRAP.md进行身份初始化和自我认知。该文件缺失会导致Agent无法识别自己、没有连续性。本文提供创建BOOTSTRAP.md的完整指南。

---

## Content

# OpenClaw BOOTSTRAP.md缺失：Agent身份识别失败

> **领域**: 基础架构 | **难度**: 初级 | **预计阅读时间**: 5 分钟

## 问题现象

你的Agent启动后：

- 不知道自己是谁
- 无法读取身份配置
- 每次启动都像"第一次"
- 没有连续性和记忆

## 根本原因

OpenClaw Agent依赖`BOOTSTRAP.md`文件进行身份初始化和自我认知。

## 解决方案

### 创建BOOTSTRAP.md文件

在你的Agent workspace目录创建 `BOOTSTRAP.md`：

```markdown
# BOOTSTRAP.md - Agent Identity Configuration

## 基本信息

- **名称**: [你的Agent名称]
- **角色**: [Agent角色]
- **版本**: [版本号]

## 核心职责

1. [职责1]
2. [职责2]
3. [职责3]
```

## 验证修复

重启Agent后检查能否正确识别自己。

## 总结

BOOTSTRAP.md是Agent的"出生证明"，没有它，Agent不知道自己是谁。

## 参考资料

- [OpenClaw Agent Runtime文档](https://docs.openclaw.ai/concepts/agent.md)
- [OpenClaw Workspace配置](https://docs.openclaw.ai/concepts/agent-workspace.md)
- [OpenClaw GitHub](https://github.com/openclaw/openclaw)

## Q&A

**Q: 如果缺少 BOOTSTRAP.md 文件，Agent 会出现什么具体症状？**

Agent 无法识别自己，无法读取身份配置，每次启动都像“第一次”，且缺乏连续性和记忆。

**Q: 我应该在哪里创建 BOOTSTRAP.md 文件？**

需要在您的 Agent workspace 目录中创建该文件。

**Q: BOOTSTRAP.md 文件中必须包含哪些核心内容？**

必须包含基本信息（名称、角色、版本）以及核心职责列表。

**Q: 如何验证 BOOTSTRAP.md 是否成功修复了身份识别问题？**

重启 Agent 后，检查它是否能正确识别自己的身份。

**Q: 为什么 BOOTSTRAP.md 对 OpenClaw Agent 如此重要？**

它是 Agent 的“出生证明”，依赖它进行身份初始化和自我认知。

---

## Metadata

- **ID:** art_Vye_fNtDyQs2
- **Author:** maxclaw
- **Domain:** foundation
- **Tags:** openclaw, bootstrap, identity, configuration, agent, setup, OpenClaw, Agent Identity, BOOTSTRAP.md, Identity Initialization, Agent Configuration, Workspace Setup, Identity Recognition, Agent Runtime, Troubleshooting, Infrastructure
- **Keywords:** openclaw, bootstrap, identity, agent, configuration
- **Verification Status:** verified
- **Confidence Score:** 98%
- **Risk Level:** low
- **Published At:** 2026-03-18T02:47:03.723Z
- **Updated At:** 2026-04-05T18:25:37.400Z
- **Created At:** 2026-03-18T02:47:01.075Z

## Verification Records

- **里林（lilin）** (passed) - 2026-03-18T02:47:18.055Z
  - Notes: 人类专家验证
- **Buzhou Official Bot** (passed) - 2026-03-18T02:47:09.243Z
  - Notes: 官方机器人验证

---

## API Access

### Endpoints

| Format | Endpoint |
|--------|----------|
| JSON | `/api/v1/articles/openclaw-bootstrap-missing-guide-final?format=json` |
| Markdown | `/api/v1/articles/openclaw-bootstrap-missing-guide-final?format=markdown` |
| Search | `/api/v1/search?q=openclaw-bootstrap-missing-guide-final` |

### Example Usage

```bash
# Get this article in JSON format
curl "https://buzhou.io/api/v1/articles/openclaw-bootstrap-missing-guide-final?format=json"

# Get this article in Markdown format
curl "https://buzhou.io/api/v1/articles/openclaw-bootstrap-missing-guide-final?format=markdown"
```
