脚本:
在用户的 AppData 目录中找到 Cursor 的 storage.json 文件。为以下内容生成新的随机 UUID:
- Mac 机器 ID
- 机器 ID(用于 telemetry.sqmId 和 telemetry.machineId)
- 开发设备 ID
在 storage.json 文件中更新这些 ID。将文件设置为只读以防止修改。
版本升级
2025-02-17
window执行脚本:
irm https://aizaozao.com/accelerate.php/https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/master/scripts/run/cursor_win_id_modifier.ps1 | iex
有效
window
import json import uuid import os import getpass def update_telemetry_ids(): # Get the current username username = getpass.getuser() # Construct the file path file_path = os.path.join( f'C:\\Users\\{username}\\AppData\\Roaming\\Cursor\\User\\globalStorage\\storage.json' ) # Verify file exists if not os.path.exists(file_path): print(f"Error: File not found at {file_path}") return # Read the existing JSON file with open(file_path, 'r') as file: data = json.load(file) # Generate new random IDs new_mac_machine_id = str(uuid.uuid4()) new_machine_id = str(uuid.uuid4()) new_dev_device_id = str(uuid.uuid4()) # Update telemetry IDs data['telemetry.macMachineId'] = new_mac_machine_id data['telemetry.sqmId'] = new_machine_id data['telemetry.machineId'] = new_machine_id data['telemetry.devDeviceId'] = new_dev_device_id # Write back to the file with proper formatting with open(file_path, 'w') as file: json.dump(data, file, indent=4) # Set file to read-only os.chmod(file_path, 0o444) print("Telemetry IDs updated and file set to read-only:") print(f"Mac Machine ID: {new_mac_machine_id}") print(f"Machine ID: {new_machine_id}") print(f"Dev Device ID: {new_dev_device_id}") if __name__ == "__main__": update_telemetry_ids()
python cursor.py
Mac
位置:/Users/maksq/Library/Application Support/Cursor/User/globalStorage/storage.json
打开 “storage.json” 文件并将这些值更改为随机字符串。
{ "telemetry.macMachineId": "random_string_1", "telemetry.machineId": "random_string_2", "telemetry.devDeviceId": "random_string_3" }
修改后,通过运行以下命令保护文件不被更改:
sudo chmod 444 storage.json
此命令将仅为所有者设置读 / 写权限,防止其他用户或进程修改文件。
注意:进行这些更改后,Cursor 应该在没有 “此计算机上使用了太多免费试用帐户” 消息的情况下工作。
引用
python环境安装:
解决在命令行中输入py有效,输入python无效,输入python会跳转到microsoft store的问题| Bug