openclaw reset CLI reference: reset local state and config

This page documents the openclaw reset command, which clears local configuration and state without uninstalling the CLI. It is intended for users who need to reset their CLI environment or troubleshoot issues.

Read this when

  • You want to wipe local state while keeping the CLI installed
  • You want a dry-run of what would be removed

openclaw reset

Resets local configuration and state without uninstalling the CLI.

openclaw reset
openclaw reset --dry-run
openclaw reset --scope config --yes --non-interactive
openclaw reset --scope config+creds+sessions --yes --non-interactive
openclaw reset --scope full --yes --non-interactive

Options

  • --scope <scope>: config, config+creds+sessions, or full
  • --yes: bypasses confirmation prompts
  • --non-interactive: disables prompts; requires --scope and --yes
  • --dry-run: shows what would be done without deleting files

Scopes

ScopeRemovesStops gateway first
configonly the config fileno
config+creds+sessionsconfig file, OAuth and credentials directory, per-agent session directoriesyes
fullstate directory (including the shared SQLite database) and workspace directoriesyes

config+creds+sessions and full halt a running managed gateway service before removing state.

Notes

  • Run openclaw backup create first to create a restorable snapshot before removing local state.
  • Workspace setup state and attestations live as rows in the shared SQLite database, so full deletes them along with the state directory; there are no separate attestation sidecar files to remove.
  • Without --scope, openclaw reset interactively asks which scope to remove.
  • --non-interactive works only when both --scope and --yes are provided.
  • config+creds+sessions and full output Next: openclaw onboard --install-daemon when finished.