Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor v0.45.x solution #191

Open
hamflx opened this issue Feb 2, 2025 · 22 comments
Open

Cursor v0.45.x solution #191

hamflx opened this issue Feb 2, 2025 · 22 comments

Comments

@hamflx
Copy link

hamflx commented Feb 2, 2025

Windows 上重置 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\MachineGuid 就好了(Windows11,0.45.8 测试过),⚠⚠⚠高风险操作⚠⚠⚠

just reset HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\MachineGuid on windows ( tested on windows 11) ⚠⚠⚠dangerous⚠⚠⚠

或者用这个 power shell 脚本(Windows, macOS):https://github.com/hamflx/cursor-reset

or use this script directly (Windows, macOS): https://github.com/hamflx/cursor-reset

Linux 的没有实现,有兴趣的可以参照这个图看看怎么实现:

Image

图上这段代码是在 0.44.11 加入进去的。

@mustafa-fahimi
Copy link

It Worked for me. Thanks alot

@bigblackchicken1
Copy link

@rajnishswift
Copy link

i try it on macos still not working,

@zetaloop
Copy link

zetaloop commented Feb 2, 2025

You can modify resources/app/out/main.js in your cursor installation path.

For example,

  1. Force the code to use the machine id from the configuration file

     async getMachineId() { return this.a ?? this.c.machineId; }
     async getMacMachineId() { return this.b ?? this.c.macMachineId; }

    Replace: return.*?\?\?.*?(this.*?(?:machineId|macMachineId)); -> return $1;

  2. Or change this to return a custom machine id

    let e = r$(t$(y5[mm], { timeout: 5e3 }).toString()),

    Replace: =.*?timeout.*?5e3.*?, -> ="xxx",

@hamflx
Copy link
Author

hamflx commented Feb 2, 2025

i try it on macos still not working,

可以贴出更具体的错误,然后提issue

@rajnishswift
Copy link

i tryed your solution but still not working.

Your Free Trial Has Ended
Thank you for trying Cursor Pro! To continue enjoying premium features like:

Unlimited completions
Unlimited chat and composer
Fast premium requests
And more...

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.
Request ID: xxxxxxx-xxxxxx-xxxx-xxxxx-xxxxxxxxxxxx.

@rajnishswift
Copy link

https://github.com/hamflx/cursore-reset
I tried also this but nothing to do.. still not working... on macOS,
anyone have solutions ?

@hamflx
Copy link
Author

hamflx commented Feb 3, 2025

https://github.com/hamflx/cursore-reset
I tried also this but nothing to do.. still not working... on macOS,
anyone have solutions ?

macos 的版本由claude一次性生成,没有经过测试,你可以贴出错误信息。

@hong-tm
Copy link

hong-tm commented Feb 3, 2025

windows 一次性成功,感谢大佬

@zetaloop
Copy link

zetaloop commented Feb 3, 2025

zetaloop/cursor-shadow-patch
Another solution. This will modify the cursor code to spoof a fixed machine id.

@kidoln
Copy link

kidoln commented Feb 3, 2025

You can modify resources/app/out/main.js in your cursor installation path.

For example,

  1. Force the code to use the machine id from the configuration file
    async getMachineId() { return this.a ?? this.c.machineId; }
    async getMacMachineId() { return this.b ?? this.c.macMachineId; }

    Replace: return.*?\?\?.*?(this.*?(?:machineId|macMachineId)); -> return $1;

  2. Or change this to return a custom machine id
    let e = r$(t$(y5[mm], { timeout: 5e3 }).toString()),

    Replace: =.*?timeout.*?5e3.*?, -> ="xxx",

It works in my MAC with cursor 0.45.9. Actually I just make the two methods to return random strings.

@boycgit
Copy link

boycgit commented Feb 3, 2025

zetaloop/cursor-shadow-patch Another solution. This will modify the cursor code to spoof a fixed machine id.

thanks, this is work for me on macOS, my cursor version is 0.45.9

@sununs
Copy link

sununs commented Feb 3, 2025

windows 成功,感谢大佬

@lamzaaa
Copy link

lamzaaa commented Feb 4, 2025

zetaloop/cursor-shadow-patch Another solution. This will modify the cursor code to spoof a fixed machine id.

thanks, this is work for me on macOS, my cursor version is 0.45.9

Work for me too

Install:

  1. Download zip file
  2. cd ~/Downloads/cursor-shadow-patch-main
  3. python3 patcher.py

@nehaitv
Copy link

nehaitv commented Feb 4, 2025

windows 一次性成功,感谢大佬

你的cursor是哪个版本的?为什么我不行

@hong-tm
Copy link

hong-tm commented Feb 4, 2025

windows 一次性成功,感谢大佬

你的cursor是哪个版本的?为什么我不行

弄的时候是 0.44.11 之后升级 Version: 0.45.8

@rajnishswift
Copy link

Download zip file
cd ~/Downloads/cursor-shadow-patch-main
python3 patcher.py

how to run this patch?

@rajnishswift
Copy link

You can modify resources/app/out/main.js in your cursor installation path.

For example,

Force the code to use the machine id from the configuration file
async getMachineId() { return this.a ?? this.c.machineId; }
async getMacMachineId() { return this.b ?? this.c.macMachineId; }

Replace: return.???.?(this.*?(?:machineId|macMachineId)); -> return $1;

Or change this to return a custom machine id
let e = r$(t$(y5[mm], { timeout: 5e3 }).toString()),

Replace: =.?timeout.?5e3.*?, -> ="xxx",

can you upload the code.

@hamflx
Copy link
Author

hamflx commented Feb 4, 2025

@rajnishswift now, cursor-reset support macOS

@beiwei21
Copy link

beiwei21 commented Feb 5, 2025

真大佬也

@hamflx
Copy link
Author

hamflx commented Feb 5, 2025

@lorvent 根据cursor的代码来看,通过注册表读取 MachineGuid 是在 0.44.11 版本中加入的。因此,我建议你即使使用 0.44.11 也要在每次切换账号之前,重置 MachineGuid。

@hamflx
Copy link
Author

hamflx commented Feb 5, 2025

@lorvent 你可能会错过 deepseek 模型 :)。不过根据我从社区里面看到的文章来看,更低的版本似乎用户体验更好一些。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests