问题
Cursor
支持新账户 14 天免费体验 500 Premium models
,使用完后切换账号又可以继续使用,但是在多次使用后会提示 Too many free trial accounts used on this machine. Please upgrade to pro. We have this limit in place to prevent abuse. Please let us know if you believe this is a mistake.
因为现在 Cursor
增加了设备指纹验证,防止同一个设备通过新账户无限试用。
更新了另一种解决方式《[快速解决] Cursor 提示 Too many free trial accounts used on this machine 解除机器码限制》
问题解决
通过删除替换掉 Cursor
设备指纹信息即可解决这个问题,这里提供一个 shell
脚本可以快速解决
Shell 脚本代码
注意区分不同系统,主要是因为 Cursor
配置文件存放地址不一样
MacOS 平台
将以下代码保存为 sh
文件,例如:corsor-recode.sh
,然后在文件目录下终端执行 sh corsor-recode.sh
即可。
#!/bin/bash
new_machine_id=$(uuidgen | tr '[:upper:]' '[:lower:]')
new_dev_device_id=$(uuidgen | tr '[:upper:]' '[:lower:]')
new_mac_machine_id=$(openssl rand -hex 32)
echo $new_machine_id > ~/Library/Application\ Support/Cursor/machineid
sed -i '' "s/\"telemetry.devDeviceId\": \".*\"/\"telemetry.devDeviceId\": \"$new_dev_device_id\"/" ~/Library/Application\ Support/Cursor/User/globalStorage/storage.json
sed -i '' "s/\"telemetry.macMachineId\": \".*\"/\"telemetry.macMachineId\": \"$new_mac_machine_id\"/" ~/Library/Application\ Support/Cursor/User/globalStorage/storage.json
Windows 平台
使用方法
- 将下方代码保存为
corsor_recode.ps1
到 桌面 - 按住
Win + X
键选择打开windows终端(管理员)
- 输入
cd ~/Desktop
并回车,切换到桌面目录 - 输入
.\index.ps1
并回车,完成清理Corsor
设备指纹
# 生成新的 UUID 并转换为小写
$new_machine_id = [guid]::NewGuid().ToString().ToLower()
$new_dev_device_id = [guid]::NewGuid().ToString().ToLower()
# 生成 32 字节的随机十六进制字符串
$new_mac_machine_id = -join ((1..32) | ForEach-Object { "{0:x}" -f (Get-Random -Max 16) })
# 定义文件路径
$machine_id_path = "$env:APPDATA\Cursor\machineid"
$storage_json_path = "$env:APPDATA\Cursor\User\globalStorage\storage.json"
# 备份原始文件
Copy-Item $machine_id_path "$machine_id_path.backup" -ErrorAction SilentlyContinue
Copy-Item $storage_json_path "$storage_json_path.backup" -ErrorAction SilentlyContinue
# 更新 machineid 文件
$new_machine_id | Out-File -FilePath $machine_id_path -Encoding UTF8 -NoNewline
# 读取并更新 storage.json 文件
$content = Get-Content $storage_json_path -Raw | ConvertFrom-Json
$content.'telemetry.devDeviceId' = $new_dev_device_id
$content.'telemetry.macMachineId' = $new_mac_machine_id
# 保存更新后的 storage.json 文件
$content | ConvertTo-Json -Depth 100 | Out-File $storage_json_path -Encoding UTF8