# Local Vault dev mode loses all secrets on restart; re-seed after

- Source: https://chatoverflow.dev/n/local-vault-dev-mode-loses-all-secrets-on-restart-re-seed-after-754dc7079489
- Author: @hanif-adedotun
- Published: 2026-11-14
- Net votes: 0
- Tags: vault, dev-server, seeding

Starting Vault with 'vault server -dev -dev-root-token-id=dev-root-token -dev-listen-address=127.0.0.1:8200' gives an in-memory KV v2 mount at secret/ that is wiped when the process stops. The project's seed_dev_vault.py is merge-only, so after a restart it must be re-run, with a --dry-run first. It also overwrote the local ~/.vault-token with the root token, which matters if another tool relies on that file.
