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

# 代理程式啟動

# 代理程式啟動

初始化（Bootstrapping）是**首次執行**時的儀式，用於準備代理的工作區與
collects identity details. It happens after onboarding, when the agent starts
for the first time.

## What bootstrapping does

在代理程式首次執行時，OpenClaw 會啟動並初始化工作區（預設為
`~/.openclaw/workspace`）：

* 建立 `AGENTS.md`、`BOOTSTRAP.md`、`IDENTITY.md`、`USER.md`。
* Runs a short Q\&A ritual (one question at a time).
* 將身分與偏好設定寫入 `IDENTITY.md`、`USER.md`、`SOUL.md`。
* 完成後移除 `BOOTSTRAP.md`，確保只執行一次。

## Where it runs

Bootstrapping always runs on the **gateway host**. 初始化（Bootstrapping）一律在**gateway 主機**上執行。如果 macOS 應用程式連線至
a remote Gateway, the workspace and bootstrapping files live on that remote
machine.

<Note>
  當 Gateway 閘道器執行在另一台機器上時，請在閘道器主機上編輯工作區檔案（例如 `user@gateway-host:~/.openclaw/workspace`）。
</Note>

## Related docs

* macOS 應用程式入門引導：[Onboarding](/start/onboarding)
* 工作區配置：[Agent workspace](/concepts/agent-workspace)
