feat(onboard): add skip bootstrap flag (#71218)

This commit is contained in:
Patrick Erichsen
2026-04-24 12:42:00 -07:00
committed by GitHub
parent 0f689d22f4
commit 8226a3f8fe
16 changed files with 140 additions and 10 deletions

View File

@@ -22,6 +22,10 @@ On the first agent run, OpenClaw bootstraps the workspace (default
- Writes identity + preferences to `IDENTITY.md`, `USER.md`, `SOUL.md`.
- Removes `BOOTSTRAP.md` when finished so it only runs once.
## Skipping bootstrapping
To skip this for a pre-seeded workspace, run `openclaw onboard --skip-bootstrap`.
## Where it runs
Bootstrapping always runs on the **gateway host**. If the macOS app connects to

View File

@@ -87,8 +87,10 @@ Optional: choose a different workspace with `agents.defaults.workspace` (support
```json5
{
agent: {
workspace: "~/.openclaw/workspace",
agents: {
defaults: {
workspace: "~/.openclaw/workspace",
},
},
}
```
@@ -97,8 +99,10 @@ If you already ship your own workspace files from a repo, you can disable bootst
```json5
{
agent: {
skipBootstrap: true,
agents: {
defaults: {
skipBootstrap: true,
},
},
}
```

View File

@@ -25,11 +25,14 @@ openclaw onboard --non-interactive \
--gateway-bind loopback \
--install-daemon \
--daemon-runtime node \
--skip-bootstrap \
--skip-skills
```
Add `--json` for a machine-readable summary.
Use `--skip-bootstrap` when your automation pre-seeds workspace files and does not want onboarding to create the default bootstrap files.
Use `--secret-input-mode ref` to store env-backed refs in auth profiles instead of plaintext values.
Interactive selection between env refs and configured provider refs (`file` or `exec`) is available in the onboarding flow.

View File

@@ -260,6 +260,7 @@ is only a legacy import source.
Typical fields in `~/.openclaw/openclaw.json`:
- `agents.defaults.workspace`
- `agents.defaults.skipBootstrap` when `--skip-bootstrap` is passed
- `agents.defaults.model` / `models.providers` (if Minimax chosen)
- `tools.profile` (local onboarding defaults to `"coding"` when unset; existing explicit values are preserved)
- `gateway.*` (mode, bind, auth, tailscale)