
BraveDebloater
PowerShell debloater for Brave with dry-run, backup, and restore
Replaces —

Who it's for
BraveDebloater writes machine-wide enterprise policies that apply to all users on a device. Use `-Scope LocalMachine` combined with a preset and `-ExportPolicyPath` to generate a policy file deployable via Group Policy, MDM, or any configuration management tool. Doctor mode flags unknown or conflicting policies left by other tools.
If your fleet already uses Microsoft Intune, Jamf, or a Group Policy framework, you may prefer to import Brave's official policy templates directly into those systems rather than running an additional script.
Run the Extreme preset to remove Rewards, Wallet, VPN, Leo AI Chat, P3A telemetry, Web Discovery, Chromium metrics, URL-keyed collection, and remote spellcheck in one command. Add `-LockShields` to enforce default ad blocking and HTTPS upgrades. Brave Shields and automatic updates are never disabled.
Skip if you actively use Brave Rewards, Brave VPN, or Leo AI Chat. BraveDebloater removes these features at the policy level, and reversing individual features requires restoring from a backup rather than re-enabling a toggle.
Store the exact BraveDebloater command in a setup script alongside other environment configuration. The `-ExportPolicyPath` flag generates a portable policy file (`.reg`, `.json`, `.plist`) that can be committed to version control and applied on any matching platform without running the full script. Use `-ListFeatures` to enumerate the exact policy names your configuration touches.
Skip if your project already manages browser policy through a configuration management system like Ansible or Puppet that supports Brave policy writes natively.
The problem
Brave Browser ships with features many users never requested: Rewards for viewing ads, Wallet for cryptocurrency, Leo AI Chat, VPN, News, Talk, Playlist, and several telemetry channels that report usage statistics. Turning off individual features through browser settings is unreliable because Brave may restore them after updates or profile resets, and some telemetry runs at a level below what the settings toggles expose. Manual workarounds fall short. Editing Windows registry keys, macOS plists, or Linux JSON policy files by hand requires knowing the exact policy name for each feature, and a mistake leaves Brave in an unpredictable state. There is no built-in preview that shows what a change will do before applying it, no backup to roll back from, and no repeatable script to share with the rest of a team.
How it works
Runs in preview mode by default, printing every policy write it would make without touching the system. Add `-Apply` only after reviewing the output. A separate `-WhatIf` flag blocks writes even when `-Apply` is present, so you can audit the exact command before committing it.
Standard removes Brave-specific extras and Brave telemetry. High adds privacy-preserving policy defaults. Extreme adds more UI surfaces including background mode, promotions, Browser Labs, new tab cards, QR generator, translate prompts, and the Google search side panel. Presets are adjusted per-feature with `-IncludeFeature` and `-ExcludeFeature`.
Writes platform-native policy files on each operating system: Windows registry under the Brave policy key, macOS `defaults` values or plist payloads, and Linux JSON files at `/etc/brave/policies/managed/`. Every applied setting appears in `brave://policy` inside Brave, confirming the policies loaded correctly.
Creates a timestamped JSON backup in a `backups/` folder before each apply run. Restore with `-UndoFromBackup <path>` to reverse a specific run. Restore validates the backup file and limits registry restores to Brave policy keys before writing anything.
Use `-IncludeFeature`, `-ExcludeFeature`, or `-OnlyFeature` to target specific features by name: Rewards, Wallet, VPN, LeoAI, News, Talk, EmailAliases, Autofill, Translate, and others shown by `-ListFeatures`. Use `-Customize` for an interactive yes/no prompt on each cleanup instead of preset defaults.
Features
- Dry-run preview mode
- Three-tier preset system
- Cross-platform enterprise policy writes
- Backup and restore on every apply run
- Per-feature granularity with named toggles
How to install
Install BraveDebloater by cloning the repository, then run the script from PowerShell in the project folder.
git clone https://github.com/osfv/BraveDebloater
.\BraveDebloater\Invoke-BraveDebloat.ps1 -Preset Extreme
.\BraveDebloater\Invoke-BraveDebloat.ps1 -Preset Extreme -ApplyRecommended for this setup
Strengths
- No administrator rights required for current-user policy: Current-user policy is the default and runs without elevation. Windows registry writes target `HKCU\Software\Policies\BraveSoftware\Brave`; macOS uses per-user `defaults`; Linux needs root only for the system-wide managed policy path. Most debloating tasks work without opening an elevated session.
- Settings visible and auditable in brave://policy: Because BraveDebloater writes official enterprise policy keys rather than patching Brave's binary or preferences file, every applied setting is visible in `brave://policy`. You can open that page at any time to see exactly which policies are active and where they came from.
- MIT license, no cost, no cloud dependency: MIT licensed and free to run on your own machine or fleet. No cloud account, no API key, no telemetry sent by the script itself, and no subscription required. Download the release archive, run the script, and you control every byte of what it does.
- Validated against official Brave policy templates: Policy names and values come from Brave's official Group Policy documentation and policy template zip. The project includes a test script (`Test-LatestPolicyTemplates.ps1`) that validates the manifest against a downloaded official template, keeping the tool aligned with Brave's published policy names as they change.
Trade-offs
- Requires PowerShell to be installed separately on macOS and Linux: PowerShell ships with Windows by default, but macOS and Linux users need the `pwsh` binary installed separately. It is available via Homebrew on macOS and package managers on most Linux distributions, but it is an extra prerequisite compared to a native shell script.
- Profile preference edits require closing Brave first: Some cosmetic cleanups (new tab surfaces, sponsored backgrounds, toolbar items) live in each profile's `Preferences` JSON rather than in enterprise policy. Editing these requires Brave to be closed; if it is running, BraveDebloater skips profile preference cleanup to avoid conflicting writes.
- Machine-wide policy requires administrator elevation: Applying policies to the local machine (affecting all users on a device) requires running PowerShell as administrator on Windows or with `sudo pwsh` on Linux. Current-user policy works without elevation, but fleet-wide configuration that covers all users requires elevated rights.
- Command-line only, no graphical interface: All configuration is done through PowerShell flags and preset names. Users who prefer a point-and-click interface for browser privacy settings will need to learn the flag-based options, multiple preset tiers, and feature names before getting consistent results.
Tech stack
FAQ
No. BraveDebloater explicitly refuses to apply any policy that disables Brave Shields, weakens Safe Browsing, or turns off browser updates. The optional `-LockShields` flag does the opposite: it locks default ad blocking, HTTPS upgrades, standard fingerprinting protection, and stricter referrer behavior into place.
Yes. Every apply run writes a timestamped JSON backup to a `backups/` folder by default. Run `.\Invoke-BraveDebloat.ps1 -UndoFromBackup .\backups\<filename>.json` to preview a restore, then add `-Apply` to commit it. Restore validates the backup before writing and limits registry restores to Brave policy keys.
Yes. On macOS it writes `defaults` values or `/Library/Managed Preferences/com.brave.Browser.plist` for machine-wide policy. On Linux it writes JSON to `/etc/brave/policies/managed/BraveDebloater.json` (requires root for the system path). The same PowerShell script handles all three platforms; install `pwsh` via Homebrew or your Linux package manager first.
Not for current-user policy, which is the default. Windows registry writes target `HKCU` (the current user's hive) and macOS uses per-user `defaults`, both without elevation. Applying machine-wide policy that covers all users on a device requires an elevated PowerShell session on Windows or `sudo pwsh` on Linux.
Brave can restore user-facing settings after updates or profile changes. BraveDebloater writes enterprise policies, which Brave treats as managed configuration it cannot override. Every applied policy is visible in `brave://policy`, changes are backed up automatically, and any apply run is reversible. Manual settings edits have none of these guarantees.