代理程式啟動¶
初始化(Bootstrapping)是首次執行時的儀式,用於準備代理的工作區與 collects identity details. It happens after onboarding, when the agent starts for the first time.
初始化會做什麼¶
在代理程式首次執行時,OpenClaw 會啟動並初始化工作區(預設為
~/.openclaw/workspace):
- 建立
AGENTS.md、BOOTSTRAP.md、IDENTITY.md、USER.md。 - 執行簡短的問答儀式(一次一個問題)。
- 將身分與偏好設定寫入
IDENTITY.md、USER.md、SOUL.md。 - 完成後移除
BOOTSTRAP.md,確保只執行一次。
執行位置¶
初始化(Bootstrapping)一律在gateway 主機上執行。如果 macOS 應用程式連線至 a remote Gateway, the workspace and bootstrapping files live on that remote machine.
user@gateway-host:~/.openclaw/workspace)。
相關文件¶
- macOS 應用程式入門引導:Onboarding
- 工作區配置:Agent workspace