Cursor 提示 Too many free trial accounts used on this machine,继续使用方法

1,536 阅读1分钟

Cursor 一直用免费账户,今天使用的时候突然提示:

image.png

解决方法:

找到 设备ID 进行重置解决。

位置 $HOME/Library/Application Support/Cursor/User/globalStorage/storage.json

写一个重置脚本:

#!/bin/bash

generate_hex() {
  local length=$1
  openssl rand -hex $((length / 2))
}

generate_uuid() {
  uuidgen
}

file_path="$HOME/Library/Application Support/Cursor/User/globalStorage/storage.json"

if [ ! -r "$file_path" ]; then
  chmod 666 "$file_path"
fi

new_machine_id=$(generate_hex 64)
new_dev_device_id=$(generate_uuid)
new_mac_machine_id=$(generate_hex 64)

sed -i '' "s/"telemetry.machineId": ".*"/"telemetry.machineId": "$new_machine_id"/" "$file_path"
sed -i '' "s/"telemetry.devDeviceId": ".*"/"telemetry.devDeviceId": "$new_dev_device_id"/" "$file_path"
sed -i '' "s/"telemetry.macMachineId": ".*"/"telemetry.macMachineId": "$new_mac_machine_id"/" "$file_path"

chmod 444 "$file_path"

echo "更新 Cursor ID 完成"

保存脚本为:keep-cursor-free.sh

执行脚本:. ./keep-cursor-free.sh

Github 仓库地址 github.com/lecepin/kee…

image.png