# --password-store=basic on Chrome for Mac does nothing

> --password-store is Linux's keyring switch. Mac builds of Chrome and of our engine lack the name; --use-mock-keychain is what stops the prompt.

Source: https://mosaicbrowser.com/blog/password-store-basic-on-mac

## --password-store=basic does nothing on a Mac

--password-store is Linux's keyring switch. Mac builds of Chrome and of our engine lack the name; --use-mock-keychain is what stops the prompt.

![One keychain flag per platform, sent as a pair](https://mosaicbrowser.com/covers/password-store-basic-on-mac.webp)

`--password-store=basic` does nothing on a Mac. It is Linux's switch: it picks which store Chromium keeps passwords in on Linux, from GNOME Libsecret, three versions of KWallet and a plain-text store called `basic`. A Mac build has no code that reads it, so Chrome starts, accepts the flag without a word and goes on asking the macOS keychain. The Mac switch is `--use-mock-keychain`. Mosaic sends both on every launch, from one list, because each one is right on one platform and inert on the other.

## What strings says about --password-store=basic on a Mac

We stopped trusting flag names after shipping [switches that never existed](https://mosaicbrowser.com/blog/silently-ignored-flags). So we counted exact-line matches of each name with `strings` on the framework binary of our engine, Tesseract Chrome, and of the machine's own Google Chrome:

```
use-mock-keychain    Tesseract Framework  1    Google Chrome Framework  2
password-store       Tesseract Framework  0    Google Chrome Framework  0

```

Zero means no code in the build knows the name. `--password-store` is not ignored because of anything we did to the engine. Google's own Mac Chrome does not contain it either. Chromium's Linux password storage page documents the values (`gnome-libsecret`, `kwallet`, `kwallet5`, `kwallet6`, `basic`) and says Chromium falls back to `basic` when the store it asked for is missing. Chromium's Mac build instructions name the other one: to avoid the "Chromium Safe Storage" dialog on a developer build, run with `--use-mock-keychain`.

So a launch line that passes only `--password-store=basic` to stop a prompt is half a fix. On Linux it stops the keyring prompt. On a Mac the keychain prompt arrives anyway, and the flag in the command line makes it look as if somebody already dealt with it.

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: Cookie jars](https://mosaicbrowser.com/features/cookie-jars)

## Where the prompt comes from

The dialog reads:

```
"Tesseract" wants to use your confidential information stored in
"Chromium Safe Storage" in your keychain.

```

Two names in one sentence, because `Chromium Safe Storage` is compiled into the binary rather than written in a translatable string, so our rename of the product does not reach it. Chromium encrypts cookies and saved passwords with a key it keeps in the keychain under that item, and reads it at startup.

The keychain hands the key over without asking only to code identities on the item's access list. Our launcher bundles are signed ad hoc, which makes the signature a hash of the bundle's contents, so a launcher dressed for its next window slot is a different application to the keychain. Clicking Always Allow grants the identity that asked, and the next launch is a different one. Nothing converges.

Without a window it is worse than a dialog. The first bare launch of our finished engine sat at 0% CPU with no window and no DevTools port. `sample` on the process named it in three seconds: the main thread was parked in `SecItemCopyMatching`, waiting for an answer to a dialog it had nowhere to draw. A missing flag looks like a hang, not an error.

## Why we send both flags anyway

Either flag alone is a line that is correct on one platform and silently inert on another, which is the failure we keep finding in this codebase. So they travel together on every platform, as one constant in the launcher:

```
export const KEYCHAIN_FREE_FLAGS = ['--password-store=basic', '--use-mock-keychain']

```

Every launch spreads that list into its arguments, and the same pair lives in one shared file for the scripts that start a browser outside the app. Chromium honours the last copy of a switch, so a profile's own extra arguments could hand the keychain back with a stray `--password-store=`. The launcher re-applies ours after the user's.

The mock keychain fixes the dialog and creates a different problem. The password it substitutes is a constant in Chromium's source, so with it alone every cookie in every profile can be decrypted by anyone holding the folder. We measured exactly that, and the fix, a per-profile cookie password set by the engine and derived from the store's data key, is in [what the mock keychain does to cookies](https://mosaicbrowser.com/blog/mock-keychain-cookies) and [one cookie key per profile](https://mosaicbrowser.com/blog/cookie-key-per-profile).

## The prompts that kept coming were never the app's

A report came in that the dialog arrived over and over, with a correct guess attached: it seemed to appear mostly during testing. Measured off the live argv of a profile started through the app, both flags were present. Every prompt came from something that started a browser without going through the launcher: a comparison script that runs a real Google Chrome as the control, the script that renders the disk-image artwork in a headless one, and throwaway probe scripts.

There was no single place to fix, so the rule became a check. `check:keychain` asserts that the two lists still agree, that every launch includes them, that a profile's extra arguments cannot undo them, and that every browser argv in our scripts carries the shared constant. It had to be widened twice while we wrote it. Finding the first `]` after a `spawn(` call found four of six scripts, because an `args[0]` inside the argv closed the bracket early. Anchoring on `spawn(` found five, because one script builds its array first and spawns it later. The check now walks out from `--user-data-dir` to the array that contains it, and a floor of six files turns a detector that quietly stops finding them into a failure.

Measured after, both argv shapes started for real, off-screen:

```
Tesseract       DevTools up in 1639ms    SecurityAgent 0 -> 0
stock Chrome    DevTools up in 3939ms    SecurityAgent 0 -> 0

```

`SecurityAgent` is the process macOS starts to draw the dialog. It did not start once. We did not run the case without the flags, because proving it would have put the dialog on the screen of the person who asked for it to stop. How the cookie jars those launches write are sealed on disk is on the [cookie jars page](https://mosaicbrowser.com/features/cookie-jars).

## Sources

1. [Chromium docs: Linux Password Storage](https://chromium.googlesource.com/chromium/src/+/HEAD/docs/linux/password_storage.md), read November 3, 2026
2. [Chromium docs: Checking out and building Chromium for Mac](https://chromium.googlesource.com/chromium/src/+/HEAD/docs/mac_build_instructions.md), read November 3, 2026

## Questions

### Does --password-store=basic work on macOS?

No. --password-store chooses between Linux password stores such as GNOME Libsecret, KWallet and a plain-text store. The name does not appear in the macOS framework of Google Chrome or of our engine, so a Mac build accepts the switch and ignores it.

### How do I stop the Chromium Safe Storage keychain prompt on a Mac?

Start the browser with --use-mock-keychain. Chromium's own Mac build instructions suggest it for developer builds. It replaces the keychain key with a fixed one, so cookies stay encrypted but with a password anyone can read in Chromium's source.

### Why does the keychain prompt keep coming back after Always Allow?

The keychain grants access to the code identity that asked. A build signed ad hoc gets a new identity whenever its contents change, so the grant does not carry over to the next build or the next launcher bundle.

### Is --use-mock-keychain safe for cookies?

On its own it is weak, because the mock key is a constant. Mosaic's engine adds a switch that sets a per-profile cookie password derived from the store's data key, so a profile folder copied on its own carries no key that opens its cookies.

## Related

[Chromium's mock keychain, and why we encrypt the store](https://mosaicbrowser.com/blog/mock-keychain-cookies): Chromium's --use-mock-keychain keeps cookie encryption on but uses a password from its own source. We read a live session cookie off disk, then sealed it.

[A silently ignored flag looks exactly like a working one](https://mosaicbrowser.com/blog/silently-ignored-flags): Chromium accepts an unknown command line switch without a word. Two of our WebRTC flags never existed, and a renamed feature did nothing for months.

[Mosaic gives every profile's cookies their own key](https://mosaicbrowser.com/blog/cookie-key-per-profile): Chrome on a Mac turns a Keychain password into an AES key with PBKDF2. Our engine lets Mosaic pass each profile its own password and keeps the v10 format.

[Cookie jars: import and export cookies per browser profile](https://mosaicbrowser.com/features/cookie-jars): Import and export cookies per browser profile in Mosaic: paste Cookie-Editor JSON, a Netscape cookies.txt or a Cookie header, and export the jar as JSON.









[App-Bound Encryption, and why tools stopped reading Chrome's cookies](https://mosaicbrowser.com/blog/chrome-app-bound-encryption): App-Bound Encryption ties Chrome's cookie key on Windows to Chrome itself, so tools reading the Cookies file broke. Export from inside the browser.

[Device-bound sessions and the end of copying a cookie](https://mosaicbrowser.com/blog/device-bound-session-credentials): With Device Bound Session Credentials in Chrome, a site reissues its session cookie only to the device with the key. A copied cookie lasts until it expires.

## Mosaic, on your own computer

The browser this blog is about: its own Chromium, fingerprints from real machines and a proxy IP per profile. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

Mosaic is a desktop app

Email yourself the link and open it on your computer.
