[BUG] Claude Code doesn't detect that the IDE is cursor
Resolved 💬 40 comments Opened May 23, 2025 by DashBarkHuss Closed May 24, 2025
💡 Likely answer: A maintainer (igorkofman, collaborator)
responded on this thread — see the highlighted reply below.
Environment
- Platform (select one):
- [✅ ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.3
- Operating System: macOS 15.5
- Terminal: Cursor integrated terminal
Cursor Version: 0.50.6
VSCode Version: 1.96.2
Bug Description
Claude Code doesn't detect that the IDE is cursor
Steps to Reproduce
Run
/ide
Expected Behavior
I expect Claude to detect that I'm using Cursor. I
Actual Behavior
Returns
> Select IDE │
│ Connect to an IDE for integrated development features. │
│ │
│ No available IDEs detected. Make sure your IDE has the Claude Code extension or plugin installed and is running.
I don't see any way to set the IDE myself.
40 Comments
Thanks for the report! What does /status say about IDE?
try
cursor --install-extension ~/.npm-global/lib/node_modules/@anthropic-ai/claude-code/vendor/claude-code.vsixI got the same error after I restarted cursor.
@DashBarkHuss Did you try the direct install with cursor from the CLI? If you have Claude code working you can just install the extension from the npm directory manually. Just double check your npm location for your machine. Or better yet, just feed this info to Claude code and have him do it for you
once I found the correct directory the direct installation worked and now claude code recognizes cursor.
It won't let me reopen the issue, but the
statuscommand shows that there's still an error with the installing the cursor extension. Restarting the IDE didn't fix it.I get the error too so I wrote a gist how to solve it manually just in case based on this issue.
https://gist.github.com/sotayamashita/3da81de9d6f2c307d15bf83c9e6e1af6
Apparently this doesn't work in linux?
I ran
cursor --install-extension ~/.claude/local/node_modules/@anthropic-ai/claude-code/vendor/claude-code.vsixand nothing happens, and also if I press ctrl+shift+p and selectDeveloper: Install Extension From Location...and navigate to~/.claude/local/node_modules/@anthropic-ai/claude-code/vendor/cursor doesn't see the claude-code.vsix. If I run/idecommand Claude says "No available IDEs detected. Make sure your IDE has the Claude Code extension or plugin installed and is running.".I'm running:
Kubuntu
6.13.9-x64v3-xanmod1
Claude Code v1.0.3
Cursor 0.50.7
I encountered the same issue where Cursor IDE wasn’t recognized by Claude Code, despite successful installation attempts via CLI. None of the provided solutions fully resolved my issue. However, I discovered a straightforward workaround that resolved it:
The extension installed successfully and immediately became operational within Cursor.
This approach bypassed the issues I encountered with automatic detection and CLI-based installation methods.
I hope this helps others experiencing similar issues!
@Xupack88 It defiantly works in linux. To effectively troubleshoot this you need to take into account where and how node is installed and what OS you are on. So to better address this to a broader audience you can do the following if npm is installed globally:
This worked, thanks!
Claude Code Status v1.0.5
Working Directory
L /home/yolte
IDE Integration • /config
✔ Installed VS Code extension
Model • /model
L Default (claude-sonnet-4-20250514)
But still unable to find the IDE
Select IDE │
│ Connect to an IDE for integrated development features. │
│ │
│ No available IDEs detected. Make sure your IDE has the Claude Code extension or plugin installed and is running.
Could you try 1.0.6 - it should fix this!
On Thu, May 29, 2025 at 7:08 AM Burak YALTI @.***>
wrote:
Updated to 1.0.7, but still my claude code fails to detect the cursor IDE inside devcontainer (though it worked on local).
Here's my workaround;
Hope this helps someone.
Had the same problem, I went in the extension tab installed npm intellissens clicked on the claude code > went back to the terminal > claude > and I had a status. Finally after 3 hours lol
Thank you very much! It worked but /status still shows this:
IDE Integration • /config
✔ Connected to Cursor extension
⚠ Error installing Cursor extension: 1: 1 The setuid sandbox is not running as root. Common causes:
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
[955160:0604/221400.536811:FATAL:zygote_host_impl_linux.cc(207)] Check failed: . : Argumento inválido (22)
I had the same problem, this also worked for me!
I tried doing what most of you have done. I am on Fedora 42 here are my system info:
Cursor Version: 1.0.0
VSCode Version: 1.96.2
Commit: 53b99ce608cba35127ae3a050c1738a959750860
Date: 2025-06-04T19:26:40.367Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Linux x64 6.14.9-300.fc42.x86_64
my claude-code is at
/usr/local/lib/node_modules/@anthropic-ai/claude-code/vendor/claude-code.vsixI ran this in the terminal of an open Cursor session:
cursor --install-extension /usr/local/lib/node_modules/@anthropic-ai/claude-code/vendor/claude-code.vsixWhen I run it a new Cursor window opens, and I still don't see the IDE connect and it says No available IDEs
Any suggestions are appreciated!
For me it worked by installing the vsix file manually, before that I got the following:
Error installing Cursor extension: 1: 1 [225580:0602/225531.492518:ERROR:ozone_platform_x11.cc(246)] Missing X server or $DISPLAY [225580:0602/225531.492547:ERROR:env.cc(257)] The platform failed to initialize. Exiting. Please restart your IDE and try again.This is the final method that works.
Your steps didn't directly help me but I ended up figuring it out, there is a 'VSIX' specific install in vscode/cursor here is what I ended up do, I hope this helps someone else!
The key is using "Extensions: Install from VSIX..." instead of "Developer: Install extension from location...".
It's the same thing. U got it
On Wed, 11 Jun 2025, 19:14 Keaton Hoskins, @.***> wrote:
YES! This worked also in Arch Linux - this post should be more upvoted! :D
Thanks alot for this
I didn't see the vsix file in my downloads folder or anywhere else, so I prompted in code "i need to download the local vsix claude code file to connect claude code with cursor - going to the extensions marketplace is not a solution as there are too many fake extensions" and it downloaded to my downloads folder. After that I just dragged the file into extensions and it showed up in /ide!
This is what I did and it worked:
Step 1: Run the below command
cursor --install-extension \~/.claude/local/node_modules/@anthropic-ai/claude-code/vendor/claude-code.vsix
Step 2:
In Cursor press ⌘ ⇧ P → “Shell Command: Install ‘cursor’ command in PATH”, then reopen your terminal and try again. Claude’s auto-installer only works when the cursor binary is discoverable.
I ran into the same issue when using Cursor with a Dev Container, and after some trial and error, I was able to resolve it. My solution is similar to the general flow others have described, but here’s what specifically worked for me:
Same issue for me, it seems Claude Code updated and in some moment integration with cursor disappeared. It also dont work in vscode and vscode insider preview. I tried to install extension in insider preview with all mentioned above options. Every time extension installed, and it started on some port. Also it successfully creates lock file in ~/.claude/ide folder.
In Claude Code /status shows me
✔️ Installed VS Code extension.So it seems extension working fine, I dont see any issue with it. But command /ide shows me
No available IDEs detected. Make sure your IDE has the Claude Code extension or plugin installed and is running.And I dont know how to debug this problem more detailed. Claude code version 1.0.31UPD. I found problem: In new versions Claude Code extension creates lock files into ~/.claude/ide but claude code itself tries to find lock files in ~/.config/claude/ide. Symlinks can resolve this issue.
THANK YOU. Worked for me on Arch getting external terminal to recognize ide (the extension inside ide working properly required VSCODE_IPC_HOOK_CLI=/tmp/vscode-ipc-$(whoami).sock to be passed at launch - so many workarounds :X
For me the problem was on Windows, so I just started Cursor from the wsl terminal using
cursor .and then all works fine, installing the pluggin and running the integration so Claude gets the context tooI'm on windows 11 using WSL Ubuntu. I already had Cursor installed on windows and then I installed Claude Code into Linux via WSL. I am trying to get Cursor and Claude Code to work together.
Should I install Cursor into my Linux environment?
Found this guide that was a huge help for me. If your running Cursor on Windows and Claude in WSL this can help sort it all out.
https://jhb.software/en/articles/claude-code-in-cursor-with-wsl
Hi @DashBarkHuss , I have the same error too. Have you found the solution?
Same issue here. Running Cursor on Mac, all was working but now the actual problem is that Claude Code does not seem to understand that starting from the folder which Cursor is running is the same - even it is and cwd at Claude start is EXACTLY the same as the error message: Found other IDE running where project/workspace folder does not match the current one (then tells the same folder)
clicking this little orange Claude button (which starts claude in a terminal) on the top right of the editor window fixed the issue for me. Now it connects to the IDE properly. I only noticed it today... must be new.
<img width="203" height="29" alt="Image" src="https://github.com/user-attachments/assets/2f91e61a-7e4d-4489-a303-c90fadda45c2" />
Why has it been closed? It's still an active issue for me.
If you are using Windodows you must use WSL and in the IDE use the remote Windows to WSL in order to let Cloude Code recognize the IDE.
If you are using macOS/Linux that is actually the same issue and you should add more info in order to reopen this.
This is still an issue. The small icon has disappeared from the IDE
Does not help for me. Thanks for sharing.. Still an issue.
this resolved my case
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.