openclaw reset: Reset Local CLI Configuration and State
Learn how to use the openclaw reset command to clear local configuration, credentials, sessions, or full state without uninstalling. Includes scope options and flags for automation.
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
Reset 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>: chooseconfig,config+creds+sessions, orfull--yes: proceed without confirmation dialogs--non-interactive: turn off all prompts; needs--scopeand--yesto be present--dry-run: show what would happen, but leave files untouched
Scopes
| Scope | What gets deleted | Gateway stopped first |
|---|---|---|
config | only the config file | no |
config+creds+sessions | config file, OAuth/credentials folder, session directories for each agent | yes |
full | state folder (the shared SQLite database included) and workspace folders | yes |
A managed gateway service that is currently running gets shut down by config+creds+sessions and full before any state removal happens.
Notes
- Run
openclaw backup createbeforehand to create a snapshot you can restore from before deleting local state. - Exclusive ownership of the state is mandatory for
fullprior to deleting the state folder. If an unmanaged or externally controlled Gateway is active, reset will decline and instruct you to halt it first. - Since workspace setup state and attestations live as rows inside the shared SQLite database,
fullwipes them along with the state folder; no separate attestation sidecar files exist to clean up. - When
--scopeis absent,openclaw resetasks interactively which scope to delete. --non-interactiveworks only if both--scopeand--yesare supplied.- Upon completion,
config+creds+sessionsandfulloutputNext: openclaw onboard --install-daemon.