

























@@ -93,16 +93,20 @@ If your old installation had local-only encrypted history that was never backed
9393 openclaw matrix verify backup status
9494```
959596-5. If OpenClaw tells you a recovery key is needed, run:
96+5. Put the recovery key for the Matrix account you are repairing in an account-specific environment variable. For a single default account, `MATRIX_RECOVERY_KEY` is fine. For multiple accounts, use one variable per account, for example `MATRIX_RECOVERY_KEY_ASSISTANT`, and add `--account assistant` to the command.
97+98+6. If OpenClaw tells you a recovery key is needed, run the command for the matching account:
979998100```bash
99- openclaw matrix verify backup restore --recovery-key "<your-recovery-key>"
101+printf '%s\n' "$MATRIX_RECOVERY_KEY" | openclaw matrix verify backup restore --recovery-key-stdin
102+printf '%s\n' "$MATRIX_RECOVERY_KEY_ASSISTANT" | openclaw matrix verify backup restore --recovery-key-stdin --account assistant
100103```
101104102-6. If this device is still unverified, run:
105+7. If this device is still unverified, run the command for the matching account:
103106104107```bash
105- openclaw matrix verify device "<your-recovery-key>"
108+printf '%s\n' "$MATRIX_RECOVERY_KEY" | openclaw matrix verify device --recovery-key-stdin
109+printf '%s\n' "$MATRIX_RECOVERY_KEY_ASSISTANT" | openclaw matrix verify device --recovery-key-stdin --account assistant
106110```
107111108112 If the recovery key is accepted and backup is usable, but `Cross-signing verified`
@@ -116,13 +120,13 @@ If your old installation had local-only encrypted history that was never backed
116120 and type `yes` only when they match. The command exits successfully only
117121 after `Cross-signing verified` becomes `yes`.
118122119-7. If you are intentionally abandoning unrecoverable old history and want a fresh backup baseline for future messages, run:
123+8. If you are intentionally abandoning unrecoverable old history and want a fresh backup baseline for future messages, run:
120124121125```bash
122126 openclaw matrix verify backup reset --yes
123127```
124128125-8. If no server-side key backup exists yet, create one for future recoveries:
129+9. If no server-side key backup exists yet, create one for future recoveries:
126130127131```bash
128132 openclaw matrix verify bootstrap
@@ -242,15 +246,15 @@ If the old store reports room keys that were never backed up, OpenClaw warns ins
242246- Meaning: some old room keys existed only in the old local store and had never been uploaded to Matrix backup.
243247- What to do: expect some old encrypted history to remain unavailable unless you can recover those keys manually from another verified client.
244248245-`Legacy Matrix encrypted state for account "..." has backed-up room keys, but no local backup decryption key was found. Ask the operator to run "openclaw matrix verify backup restore --recovery-key <key>" after upgrade if they have the recovery key.`
249+`Legacy Matrix encrypted state for account "..." has backed-up room keys, but no local backup decryption key was found. Ask the operator to run "openclaw matrix verify backup restore --recovery-key-stdin" after upgrade if they have the recovery key.`
246250247251- Meaning: backup exists, but OpenClaw could not recover the recovery key automatically.
248-- What to do: run `openclaw matrix verify backup restore --recovery-key "<your-recovery-key>"`.
252+- What to do: run `printf '%s\n' "$MATRIX_RECOVERY_KEY" | openclaw matrix verify backup restore --recovery-key-stdin`.
249253250254`Failed inspecting legacy Matrix encrypted state for account "..." (...): ...`
251255252256- Meaning: OpenClaw found the old encrypted store, but it could not inspect it safely enough to prepare recovery.
253-- What to do: rerun `openclaw doctor --fix`. If it repeats, keep the old state directory intact and recover using another verified Matrix client plus `openclaw matrix verify backup restore --recovery-key "<your-recovery-key>"`.
257+- What to do: rerun `openclaw doctor --fix`. If it repeats, keep the old state directory intact and recover using another verified Matrix client plus `printf '%s\n' "$MATRIX_RECOVERY_KEY" | openclaw matrix verify backup restore --recovery-key-stdin`.
254258255259`Legacy Matrix backup key was found for account "...", but .../recovery-key.json already contains a different recovery key. Leaving the existing file unchanged.`
256260@@ -265,39 +269,39 @@ If the old store reports room keys that were never backed up, OpenClaw warns ins
265269`matrix: failed restoring room keys from legacy encrypted-state backup: ...`
266270267271- Meaning: the new plugin attempted restore but Matrix returned an error.
268-- What to do: run `openclaw matrix verify backup status`, then retry with `openclaw matrix verify backup restore --recovery-key "<your-recovery-key>"` if needed.
272+- What to do: run `openclaw matrix verify backup status`, then retry with `printf '%s\n' "$MATRIX_RECOVERY_KEY" | openclaw matrix verify backup restore --recovery-key-stdin` if needed.
269273270274### Manual recovery messages
271275272276`Backup key is not loaded on this device. Run 'openclaw matrix verify backup restore' to load it and restore old room keys.`
273277274278- Meaning: OpenClaw knows you should have a backup key, but it is not active on this device.
275-- What to do: run `openclaw matrix verify backup restore`, or pass `--recovery-key` if needed.
279+- What to do: run `openclaw matrix verify backup restore`, or set `MATRIX_RECOVERY_KEY` and run `printf '%s\n' "$MATRIX_RECOVERY_KEY" | openclaw matrix verify backup restore --recovery-key-stdin` if needed.
276280277-`Store a recovery key with 'openclaw matrix verify device <key>', then run 'openclaw matrix verify backup restore'.`
281+`Store a recovery key with 'openclaw matrix verify device --recovery-key-stdin', then run 'openclaw matrix verify backup restore'.`
278282279283- Meaning: this device does not currently have the recovery key stored.
280-- What to do: verify the device with your recovery key first, then restore the backup.
284+- What to do: set `MATRIX_RECOVERY_KEY`, run `printf '%s\n' "$MATRIX_RECOVERY_KEY" | openclaw matrix verify device --recovery-key-stdin`, then restore the backup.
281285282-`Backup key mismatch on this device. Re-run 'openclaw matrix verify device <key>' with the matching recovery key.`
286+`Backup key mismatch on this device. Re-run 'openclaw matrix verify device --recovery-key-stdin' with the matching recovery key.`
283287284288- Meaning: the stored key does not match the active Matrix backup.
285-- What to do: rerun `openclaw matrix verify device "<your-recovery-key>"` with the correct key.
289+- What to do: set `MATRIX_RECOVERY_KEY` to the correct key and run `printf '%s\n' "$MATRIX_RECOVERY_KEY" | openclaw matrix verify device --recovery-key-stdin`.
286290287291If you accept losing unrecoverable old encrypted history, you can instead reset the
288292current backup baseline with `openclaw matrix verify backup reset --yes`. When the
289293stored backup secret is broken, that reset may also recreate secret storage so the
290294new backup key can load correctly after restart.
291295292-`Backup trust chain is not verified on this device. Re-run 'openclaw matrix verify device <key>'.`
296+`Backup trust chain is not verified on this device. Re-run 'openclaw matrix verify device --recovery-key-stdin'.`
293297294298- Meaning: the backup exists, but this device does not trust the cross-signing chain strongly enough yet.
295-- What to do: rerun `openclaw matrix verify device "<your-recovery-key>"`.
299+- What to do: set `MATRIX_RECOVERY_KEY` and run `printf '%s\n' "$MATRIX_RECOVERY_KEY" | openclaw matrix verify device --recovery-key-stdin`.
296300297301`Matrix recovery key is required`
298302299303- Meaning: you tried a recovery step without supplying a recovery key when one was required.
300-- What to do: rerun the command with your recovery key.
304+- What to do: rerun the command with `--recovery-key-stdin`, for example `printf '%s\n' "$MATRIX_RECOVERY_KEY" | openclaw matrix verify device --recovery-key-stdin`.
301305302306`Invalid Matrix recovery key: ...`
303307@@ -313,18 +317,18 @@ new backup key can load correctly after restart.
313317- What to do: run `openclaw matrix verify self`, accept the request in another
314318 Matrix client, compare the SAS, and type `yes` only when it matches. The
315319 command waits for full Matrix identity trust before reporting success. Use
316-`openclaw matrix verify bootstrap --recovery-key "<your-recovery-key>" --force-reset-cross-signing`
320+`printf '%s\n' "$MATRIX_RECOVERY_KEY" | openclaw matrix verify bootstrap --recovery-key-stdin --force-reset-cross-signing`
317321 only when you intentionally want to replace the current cross-signing identity.
318322319323`Matrix key backup is not active on this device after loading from secret storage.`
320324321325- Meaning: secret storage did not produce an active backup session on this device.
322326- What to do: verify the device first, then recheck with `openclaw matrix verify backup status`.
323327324-`Matrix crypto backend cannot load backup keys from secret storage. Verify this device with 'openclaw matrix verify device <key>' first.`
328+`Matrix crypto backend cannot load backup keys from secret storage. Verify this device with 'openclaw matrix verify device --recovery-key-stdin' first.`
325329326330- Meaning: this device cannot restore from secret storage until device verification is complete.
327-- What to do: run `openclaw matrix verify device "<your-recovery-key>"` first.
331+- What to do: run `printf '%s\n' "$MATRIX_RECOVERY_KEY" | openclaw matrix verify device --recovery-key-stdin` first.
328332329333### Custom plugin install messages
330334@@ -340,7 +344,7 @@ Run these checks in order:
340344```bash
341345openclaw matrix verify status --verbose
342346openclaw matrix verify backup status --verbose
343-openclaw matrix verify backup restore --recovery-key "<your-recovery-key>" --verbose
347+printf '%s\n' "$MATRIX_RECOVERY_KEY" | openclaw matrix verify backup restore --recovery-key-stdin --verbose
344348```
345349346350If the backup restores successfully but some old rooms are still missing history, those missing keys were probably never backed up by the previous plugin.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。