Import from a browser or password manager
Move saved logins exported from Chrome, Edge, Brave, Arc, Opera, Firefox, Safari, 1Password, Bitwarden, LastPass or any CSV file into your Personal store with the Safeguard CLI, with a review step before anything is saved.
Import from a browser or password manager
safeguard vault import reads a password export file, shows you what it holds, lets you choose which logins to bring in, and saves them to your Personal store. Each login is encrypted on its own. Imports never go to the Shared store.
1. Export your logins
| Source | Where to export |
|---|---|
| Chrome, Edge, Brave, Opera | Settings, Passwords, Export |
| Firefox | Passwords, Export Logins |
| Safari | File, Export, All Passwords |
| 1Password, Bitwarden, LastPass | Export, CSV |
| Arc | Arc has no password export of its own. Export from another browser, or use --from csv |
| Anything else | A CSV file with name, site, username and password columns, --from csv |
The export file holds every password in plain text. Keep it somewhere only you can read, and delete it when the import is done.
2. Preview the import
safeguard vault import --from chrome ~/Downloads/passwords.csv --dry-run--dry-run lists what would be imported (name, site and username, and the password only as "set") and stops. Nothing is sent.
3. Import
safeguard vault import --from chrome ~/Downloads/passwords.csvThe CLI shows the logins, lets you pick which to import, and asks you to confirm. To import every new login without asking, for example in a script, add --yes. Add --json for one JSON result object (it needs --yes or --dry-run, because it cannot ask).
Duplicates
A login whose site and username are already in your Personal store, or that appears earlier in the same file, is a duplicate.
| Option | What happens to a duplicate |
|---|---|
--on-duplicate skip (default) | It is left out, and the stored login is not touched. |
--on-duplicate update | The stored login's password is replaced with the one in the file. |
What is recorded
Imported logins are tagged imported and with their source, so you can find them later. Each new login's history shows that it was written by an import, and each batch is recorded with counts and the source only (imported, updated, skipped, rejected), never a password or a site.
Limits
- The CLI sends logins in batches of up to 500, so a large export goes in several batches.
- A login needs a password, and a site or a name.
- A password can be up to 4,096 characters, and notes up to 10,000.
Rolling out
These are not available yet. See PAM capabilities rolling out.
- Import in the web app, including directly from a browser on your computer through Safeguard Desktop.
- KeePass and
.envfiles, a choice to keep both copies of a duplicate, and filing imported logins into a folder.
Using vault credentials in scans
Point DAST, API security, host scans and CLI scans at a shared vault entry by its handle, so the scan reads the secret when it runs and nobody pastes it into a scan target.
Local vault and keychain storage
Keep credentials on one machine with no network or account (local://), and keep PAM provider secrets in the operating system keychain (keychain://).