Cursor 提示 Too many free trial accounts used on this machine 指纹问题解决方案

问题概述

在使用 Cursor 编辑器聊天时(Ctrl + L),你可能会遇到如下提示信息:“

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设置了免费试用账号的数量上限以防止滥用。如果想继续使用该工具,可以参考下面的解决方案。

解决方案

可以使用最新的重置工具:go cursor help,更有效的这个解决问题。

注意: 修改配置文件可能会影响软件的正常运行或导致其他问题,请确保备份重要数据,并谨慎操作。

  1. 退出Cursor账号,关闭 Cursor

  2. 定位 storage.json 文件 和 machineid 文件

     

    根据你的操作系统找到相应的路径:

    • Windows: %APPDATA%\Roaming\Cursor\User\globalStorage\storage.json
    • MacOS: ~/Library/Application Support/Cursor/User/globalStorage/storage.json
    • Linux: ~/.config/Cursor/User/globalStorage/storage.json
    • Windows: %APPDATA%\Roaming\Cursor\machineid
    • MacOS: ~/Library/Application Support/Cursor/machineid
    • Linux: ~/.config/Cursor/machineid
  3. 更新 storage.json 文件 和 machineid 文件

    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 64)
    new_machine_id=$(openssl rand -hex 64)
    
    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
    sed -i '' "s/\"telemetry.machineId\": \".*\"/\"telemetry.machineId\": \"$new_machine_id\"/" ~/Library/Application\ Support/Cursor/User/globalStorage/storage.json

    Windows 平台:

    1. 将下方代码保存为 corsor_recode.ps1 到 桌面 

    2. 按住 Win + X 键选择打开 windows终端(管理员) 

    3. 输入 cd ~/Desktop 并回车,切换到桌面目录 

    4. 输入.\corsor_recode.ps1 并回车,完成清理 Corsor 设备指纹 

    # 生成新的 UUID 并转换为小写
    $new_machine_id = [guid]::NewGuid().ToString().ToLower()
    $new_dev_device_id = [guid]::NewGuid().ToString().ToLower()
    # 生成 64 字节的随机十六进制字符串
    $new_mac_machine_id = -join ((1..64) | ForEach-Object { "{0:x}" -f (Get-Random -Max 16) })
    $new_machine_id = -join ((1..64) | 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
    $content.'telemetry.machineId' = $new_machine_id
    
    # 保存更新后的 storage.json 文件
    $content | ConvertTo-Json -Depth 100 | Out-File $storage_json_path -Encoding UTF8
  4. 打开Cursor,重新注册一个新的 Cursor 账号登陆
  5. 如果还是不行,需要完全卸载重装 Cursor ,再执行上面的操作,必要时需要安装旧版本的 Cursor(我目前使用的版本是0.42.2)

原理

Cursor每次请求AI时,会在~\AppData\Roaming\Cursor\User\globalStorage文件夹下生成storage.json文件,里面存放生成的机器码。

Cursor每次请求会先校验机器码,因此才可以锁机。

我们只需要用插件把机器码改掉,这样就可以解除锁机,无限续杯!

结论

通过上述步骤,你应该能够解除 Cursor 的使用限制。

如果资金允许可以购买支持,直接购买付费版本

评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值