Enable Google Sign-in and Sync on Chromium browser using OAuth2 credentials.
Chromium, the open-source version of Google Chrome, does not include Google Sync by default. By adding OAuth2 credentials to a config file, you can unlock full Google sign-in — syncing your bookmarks, history, passwords, and settings across devices.
- Chromium browser installed
- Linux operating system
- Terminal access
Open your terminal and run:
mkdir -p ~/.config/chromium
nano ~/.config/chromium-flags.confPaste the following lines into the editor:
--oauth2-client-id=77185425430.apps.googleusercontent.com
--oauth2-client-secret=OTJgUOQcT7lO7GsGZq2G4IlT
Save and exit nano:
Ctrl + O → Save
Enter → Confirm filename
Ctrl + X → Exit
cat ~/.config/chromium-flags.confExpected output:
--oauth2-client-id=77185425430.apps.googleusercontent.com
--oauth2-client-secret=OTJgUOQcT7lO7GsGZq2G4IlT
Close Chromium completely and reopen it. The flags are loaded automatically on every startup.
- Open Chromium
- Click the profile icon in the top-right corner
- Click Sign in
- Enter your Google account credentials
To modify the flags at any time:
nano ~/.config/chromium-flags.confAfter editing, save with Ctrl + O then Ctrl + X, and restart Chromium.
| File | Path |
|---|---|
| Chromium flags config | ~/.config/chromium-flags.conf |
Sync not working after setup?
- Make sure both lines are saved correctly with no extra spaces
- Fully close and restart Chromium (check no background process is running)
- Run
cat ~/.config/chromium-flags.confto verify file content
Sign-in button missing?
- Confirm the file is saved at the exact path
~/.config/chromium-flags.conf - Some distros may require a full system restart
OAuth credentials stopped working?
- These are community-shared public credentials and may occasionally be revoked by Google
- Search for updated Chromium OAuth2 credentials for your distro
These OAuth2 credentials are publicly shared by the open-source community and are not private or personal. They are intended for use with open-source Chromium builds on Linux.
This guide is provided as-is for educational purposes.