这是一个用于重置 Cursor IDE 设备标识的 PowerShell 脚本。该脚本支持 Cursor 0.45.x 版本(已在 0.45.8 版本上测试通过)。
本项目仅供学习和研究使用,旨在研究 Cursor IDE 的设备标识机制。强烈建议您购买 Cursor 的正版授权以支持开发者。
使用本脚本可能违反 Cursor 的使用条款。作者不对使用本脚本导致的任何问题负责,包括但不限于:
- 软件授权失效
- 账号封禁
- 其他未知风险
如果您认可 Cursor 的价值,请支持正版,为软件开发者的工作付费。
-
在 Cursor IDE 中退出当前登录的账号
-
完全关闭 Cursor IDE
-
以管理员身份打开 PowerShell
-
复制粘贴执行以下命令:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass; iwr -Uri "https://raw.githubusercontent.com/hamflx/cursor-reset/refs/heads/main/reset.ps1" -UseBasicParsing | iex
-
重置完成后打开 Cursor IDE,使用新的账号登录(不要使用之前的账号)
如果脚本卡在"正在等待 Cursor 进程退出...",可以在管理员权限的命令行中执行以下命令强制结束所有 Cursor 进程:
taskkill /f /im cursor.exe
-
在 Cursor IDE 中退出当前登录的账号
-
完全关闭 Cursor IDE
-
打开终端,执行以下命令:
curl -o /tmp/reset.sh https://raw.githubusercontent.com/hamflx/cursor-reset/refs/heads/main/reset.sh && chmod +x /tmp/reset.sh && sudo /tmp/reset.sh
-
启动 Cursor 并使用新账号登录(不要使用之前的账号)
如果脚本卡在"正在等待 Cursor 进程退出...",可以在终端中执行以下命令强制结束 Cursor 进程:
pkill -9 Cursor
-
在 Cursor IDE 中退出当前登录的账号
-
完全关闭 Cursor IDE
-
打开终端,执行以下命令:
curl -o /tmp/bash.sh https://raw.githubusercontent.com/hamflx/cursor-reset/refs/heads/main/linux/bash.sh && chmod +x /tmp/bash.sh && sudo /tmp/bash.sh
-
启动 Cursor 并使用新账号登录(不要使用之前的账号)
如果脚本卡在"正在等待 Cursor 进程退出...",可以在终端中执行以下命令强制结束 Cursor 进程:
pkill -9 Cursor
脚本会修改系统注册表中的 HKLM\SOFTWARE\Microsoft\Cryptography\MachineGuid
,这个值可能被其他软件用作设备标识,如果你购买了 Cursor 的正版授权或其他使用此注册表项作为设备标识的正版软件,修改后可能会导致这些软件的授权失效。
原始的 MachineGuid 会被自动备份到 %USERPROFILE%\MachineGuid_Backups
目录下,如果需要恢复原始 MachineGuid,可以从备份目录中找到对应的备份文件,然后通过注册表编辑器恢复该值。
脚本会创建一个假的 ioreg
命令来模拟不同的设备标识。原始的 IOPlatformUUID 会被备份到 ~/IOPlatformUUID_Backups
目录下。这个方法不会永久修改系统设置,但需要保持 PATH 环境变量的修改才能持续生效。
脚本会创建一个假的 dmidecode
命令来模拟不同的设备标识。原始的 UUID 会被备份到 ~/IOPlatformUUID_Backups
目录下。这个方法不会永久修改系统设置,但需要保持 PATH 环境变量的修改才能持续生效。
脚本还会修改并重新打包 AppImage,以确保设备标识的一致性。请确保系统已安装 appimagetool
。
脚本执行成功后,会显示以下信息:
- 备份文件的位置
- 新生成的 MachineGuid
- 新的 telemetry.machineId
- 新的 telemetry.macMachineId
- 新的 telemetry.devDeviceId
- 新的 telemetry.sqmId
- Windows 操作系统
- PowerShell
- 管理员权限
- Cursor IDE 0.45.x 版本(已在 0.45.8 版本测试通过)
- macOS 10.13 或更高版本
- Python 3
- sudo 权限
- Cursor IDE 0.45.x 版本
- Linux 操作系统
- Python 3
- sudo 权限
- appimagetool(用于重新打包 AppImage)
- Cursor IDE 0.45.x 版本
This is a PowerShell script for resetting Cursor IDE device identifiers. The script supports Cursor 0.45.x.
This project is for educational and research purposes only, aimed at studying the device identification mechanism of Cursor IDE. It is strongly recommended to purchase a Cursor license to support the developers.
Using this script may violate Cursor's terms of service. The author assumes no responsibility for any issues arising from the use of this script, including but not limited to:
- Software license invalidation
- Account suspension
- Other unknown risks
If you value Cursor, please support the official version and pay for the developers' work.
-
Sign out of your current account in Cursor IDE
-
Completely close Cursor IDE
-
Open PowerShell as Administrator
-
Copy and paste the following command:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass; iwr -Uri "https://raw.githubusercontent.com/hamflx/cursor-reset/refs/heads/main/reset.ps1" -UseBasicParsing | iex
-
After reset is complete, open Cursor IDE and sign in with a new account (do not use the previous account)
If the script is stuck at "Waiting for Cursor process to exit...", you can force kill all Cursor processes by running the following command in an administrator command prompt:
taskkill /f /im cursor.exe
-
Sign out of your current account in Cursor IDE
-
Completely close Cursor IDE
-
Open terminal and execute the following command:
curl -o /tmp/reset.sh https://raw.githubusercontent.com/hamflx/cursor-reset/refs/heads/main/reset.sh && chmod +x /tmp/reset.sh && sudo /tmp/reset.sh
-
Start Cursor and sign in with a new account (do not use the previous account)
If the script is stuck at "Waiting for Cursor process to exit...", you can force kill Cursor processes by running the following command in the terminal:
pkill -9 Cursor
-
Sign out of your current account in Cursor IDE
-
Completely close Cursor IDE
-
Open terminal and execute the following command:
curl -o /tmp/bash.sh https://raw.githubusercontent.com/hamflx/cursor-reset/refs/heads/main/linux/bash.sh && chmod +x /tmp/bash.sh && sudo /tmp/bash.sh
-
Start Cursor and sign in with a new account (do not use the previous account)
If the script is stuck at "Waiting for Cursor process to exit...", you can force kill Cursor processes by running the following command in the terminal:
pkill -9 Cursor
The script modifies the system registry key HKLM\SOFTWARE\Microsoft\Cryptography\MachineGuid
, which may be used by other software as a device identifier. If you have purchased a license for Cursor or other software that uses this registry key for device identification, modifying it may invalidate these software licenses.
The original MachineGuid will be automatically backed up to the %USERPROFILE%\MachineGuid_Backups
directory. If you need to restore the original MachineGuid, you can find the corresponding backup file in this directory and restore it using the registry editor.
The script creates a fake ioreg
command to simulate different device identifiers. The original IOPlatformUUID will be backed up to the ~/IOPlatformUUID_Backups
directory. This method does not permanently modify system settings, but you need to keep the PATH environment variable modifications to make it persistent.
The script creates a fake dmidecode
command to simulate different device identifiers. The original UUID will be backed up to the ~/IOPlatformUUID_Backups
directory. This method does not permanently modify system settings, but you need to keep the PATH environment variable modifications to make it persistent.
The script also modifies and re-packages AppImage to ensure consistent device identifiers. Please ensure that appimagetool
is installed on the system.
After successful execution, the script will display:
- Backup file location
- New MachineGuid
- New telemetry.machineId
- New telemetry.macMachineId
- New telemetry.devDeviceId
- New telemetry.sqmId
- Windows OS
- PowerShell
- Administrator privileges
- Cursor IDE 0.45.x (tested on version 0.45.8)
- macOS 10.13 or higher
- Python 3
- sudo permissions
- Cursor IDE 0.45.x
- Linux 操作系统
- Python 3
- sudo 权限
- appimagetool(用于重新打包 AppImage)
- Cursor IDE 0.45.x 版本