English | 中文
Tiny Python helper that nudges Microsoft Edge into Copilot mode by patching your local profile data—no browser flags required.
- Python
3.13+(see.python-version/pyproject.toml) - Microsoft Edge installed (Stable/Canary/Dev/Beta)
- Install uv (once, PowerShell):
irm https://astral.sh/uv/install.ps1 | iex(see uv docs for other shells). - Install deps (creates venv automatically):
uv sync. - Run the script:
uv run main.py. - Edge will close while patching; after it restarts, press Enter to finish.
- Create and activate a venv.
- Install deps:
python -m pip install psutil. - Run:
python main.py.
- Finds Edge user data for Stable/Canary/Dev/Beta on Windows, macOS, and Linux.
- Kills top-level Edge processes to avoid file locks, then brings them back.
- Sets
variations_country: "US"inLocal State. - Sets
browser.chat_ip_eligibility_status: truein every profilePreferences(DefaultandProfile Xfolders). - Restarts any Edge builds that were running before the patch.
- The script expects
User Data/Local Stateto exist and containvariations_country; if it’s missing, the run can fail (launch Edge once to generate it). - Edge restart only happens if the executable path can be detected from running processes.
- On macOS, process detection is name-based (
Microsoft Edge*) and may terminate more than just the “top-level” app process. - On Linux, process detection expects an executable name of
msedge; if your build uses a different name, Edge may not be closed (and files may remain locked).
- The script writes to your existing Edge profile; back up
User Dataif you want a safety net. - Run as the same OS user who owns the Edge profile to ensure write access.
- Not affiliated with Microsoft—use at your own risk.