[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.

View original on GitHub ↗

40 Comments

igorkofman collaborator · 1 year ago

Thanks for the report! What does /status say about IDE?

basher83 · 1 year ago

try cursor --install-extension ~/.npm-global/lib/node_modules/@anthropic-ai/claude-code/vendor/claude-code.vsix

DashBarkHuss · 1 year ago
Thanks for the report! What does /status say about IDE?
/status
IDE Integration • /config
 ⚠  Error installing Cursor extension: 1: ENOENT
    Please restart your IDE and try again.

I got the same error after I restarted cursor.

basher83 · 1 year ago

@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

DashBarkHuss · 1 year ago
try cursor --install-extension ~/.npm-global/lib/node_modules/@anthropic-ai/claude-code/vendor/claude-code.vsix @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.

cursor --install-extension /opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/vendor/claude-code.vsix
> /ide 
  ⎿  Connected to Cursor.
DashBarkHuss · 1 year ago

It won't let me reopen the issue, but the status command shows that there's still an error with the installing the cursor extension. Restarting the IDE didn't fix it.

 IDE Integration • /config
 ✔  Connected to Cursor extension
 ⚠  Error installing Cursor extension: 1: ENOENT
    Please restart your IDE and try again.
sotayamashita · 1 year ago

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

Xupack88 · 1 year ago

Apparently this doesn't work in linux?

I ran cursor --install-extension ~/.claude/local/node_modules/@anthropic-ai/claude-code/vendor/claude-code.vsix and nothing happens, and also if I press ctrl+shift+p and select Developer: 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 /ide command 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

AojdevStudio · 1 year ago

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:

  1. Manually located the Claude Code extension .vsix file within my local Claude installation directory.
  2. Dragged this .vsix file directly into the Cursor Extensions panel.

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!

basher83 · 1 year ago

@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:

  1. npm list -g --depth 0 (reference: where does npm install the packages )
  2. Manually install the claude-code.vsix via the file path for where you have Claude Code installed. If you look at the npm repo you will see it is located at: @anthropic-ai/claude-code/vendor/claude-code.vsix (referance: npm claude code )
  • @sotayamashita created a gist (see above) with a great way to find where claude code is installed on your specific machine using claude code itself.
Xupack88 · 1 year ago
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: 1. Manually located the Claude Code extension .vsix file within my local Claude installation directory. 2. Dragged this .vsix file directly into the Cursor Extensions panel. 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!

This worked, thanks!

burakyalti · 1 year ago

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.

igorkofman collaborator · 1 year ago

Could you try 1.0.6 - it should fix this!

On Thu, May 29, 2025 at 7:08 AM Burak YALTI @.***>
wrote:

burakyalti left a comment (anthropics/claude-code#1279) <https://github.com/anthropics/claude-code/issues/1279#issuecomment-2919526507> 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. — Reply to this email directly, view it on GitHub <https://github.com/anthropics/claude-code/issues/1279#issuecomment-2919526507>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADSWQUMFKXG76RNMMYWOBL3A4IGBAVCNFSM6AAAAAB5Z2QNECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSMJZGUZDMNJQG4> . You are receiving this because you commented.Message ID: @.***>
otenim · 1 year ago

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;

{
  "features": {
    // Install claude-code
    "ghcr.io/anthropics/devcontainer-features/claude-code:1": {}
  },
  "customizations": {
    "vscode": {
      "extensions": [
        "/usr/lib/node_modules/@anthropic-ai/claude-code/vendor/claude-code.vsix",  // <- Set path to claude-code.vsix
      ]
    }
  },
}

Hope this helps someone.

Safix94 · 1 year ago

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

titobsala · 1 year ago
@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: 1. npm list -g --depth 0 (reference: where does npm install the packages ) 2. Manually install the claude-code.vsix via the file path for where you have Claude Code installed. If you look at the npm repo you will see it is located at: @anthropic-ai/claude-code/vendor/claude-code.vsix (referance: npm claude code ) * @sotayamashita created a gist (see above) with a great way to find where claude code is installed on your specific machine using claude code itself.

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:

  • An unprivileged process using ptrace on it, like a debugger.
  • A parent process set prctl(PR_SET_NO_NEW_PRIVS, ...)

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)

jesse-windebank · 1 year ago
> try cursor --install-extension ~/.npm-global/lib/node_modules/@anthropic-ai/claude-code/vendor/claude-code.vsix > @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. cursor --install-extension /opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/vendor/claude-code.vsix > /ide ⎿ Connected to Cursor.

I had the same problem, this also worked for me!

kryptobaseddev · 1 year ago

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.vsix

I 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.vsix

When 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!

LeonKohli · 1 year ago

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.

KcPele · 1 year ago

This is the final method that works.

  • first step: install Claude code
  • run: npm list -g @anthropic-ai/claude-code
  • Copy the Claude code extension to a folder u can easily access
  • cp /use your path/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/vendor/claude-code.vsix ~/Downloads/
  • Open cursor and Ctrl+Shift+p,
  • Type: Extension install from VSIX
  • Locate the claude-code.vsix select it, and after installation, close and reopen cursor: open your terminal and enjoy using claude
kryptobaseddev · 1 year ago
This is the final method that works. first step: install Claude code run: npm list -g @anthropic-ai/claude-code Copy the Claude code extension to a folder u can easily access cp /use your path/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/vendor/claude-code.vsix ~/Downloads/ Open cursor and Ctrl+Shift+p, type: Install extension from location Locate the claude-code.vsix select it and after installation close and reopen cursor: open your terminal and enjoy using claude

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!

  1. Install Claude code
  2. run: npm list -g @anthropic-ai/claude-code
  3. cp /usr/local/lib/node_modules/@anthropic-ai/claude-code/vendor ~/Downloads/
  4. Open Cursor
  5. Press Ctrl+Shift+P to open command palette
  6. Type "Extensions: Install from VSIX..." (not "Developer: Install extension from location...")
  7. Navigate to /home/username/Downloads/claude-code.vsix
  8. Select the file and click "Install"
  9. Restart Cursor

The key is using "Extensions: Install from VSIX..." instead of "Developer: Install extension from location...".

KcPele · 1 year ago

It's the same thing. U got it

On Wed, 11 Jun 2025, 19:14 Keaton Hoskins, @.***> wrote:

kryptobaseddev left a comment (anthropics/claude-code#1279) <https://github.com/anthropics/claude-code/issues/1279#issuecomment-2963753202> This is the final method that works. - first step: install Claude code - run: npm list -g @anthropic-ai/claude-code - Copy the Claude code extension to a folder u can easily access - cp /use your @./claude-code/vendor/claude-code.vsix ~/Downloads/ - Open cursor and Ctrl+Shift+p, type: Install extension from location - Locate the claude-code.vsix select it and after installation close and reopen cursor: open your terminal and enjoy using claude 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! 1. Install Claude code 2. run: npm list -g @anthropic-ai/claude-code 3. cp @./claude-code/vendor ~/Downloads/ 4. Open Cursor 5. Press Ctrl+Shift+P to open command palette 6. Type "Extensions: Install from VSIX..." (not "Developer: Install extension from location...") 7. Navigate to /home/keatonhoskins/Downloads/claude-code.vsix 8. Select the file and click "Install" 9. Restart Cursor The key is using "Extensions: Install from VSIX..." instead of "Developer: Install extension from location...". — Reply to this email directly, view it on GitHub <https://github.com/anthropics/claude-code/issues/1279#issuecomment-2963753202>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/APJDTO3KXC2KEJKDQRSHWY33DBWZ3AVCNFSM6AAAAAB5Z2QNECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNRTG42TGMRQGI> . You are receiving this because you commented.Message ID: @.***>
mbs1337 · 1 year ago
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: 1. Manually located the Claude Code extension .vsix file within my local Claude installation directory. 2. Dragged this .vsix file directly into the Cursor Extensions panel. 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!

YES! This worked also in Arch Linux - this post should be more upvoted! :D
Thanks alot for this

rogerclue · 1 year ago

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!

Ayman-tron · 1 year ago

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.

touyu · 1 year ago

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:

  1. Run the following to check where claude-code is installed:
npm list -g claude-code
  1. Then install the extension manually using the following command (replace the path with the actual one from step 1
cursor --install-extension <your-path>/node_modules/@anthropic-ai/claude-code/vendor/claude-code.vsix
00xObi · 1 year ago

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.31

00xObi · 1 year ago

UPD. 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.

ghost · 1 year ago
UPD. 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

sandyeveliz · 1 year ago

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 too

jbeckton · 1 year ago

I'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?

jbeckton · 1 year ago

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

godjoem · 1 year ago
It won't let me reopen the issue, but the status command shows that there's still an error with the installing the cursor extension. Restarting the IDE didn't fix it. IDE Integration • /config ✔ Connected to Cursor extension ⚠ Error installing Cursor extension: 1: ENOENT Please restart your IDE and try again.

Hi @DashBarkHuss , I have the same error too. Have you found the solution?

mattivilola · 11 months ago

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)

nick · 11 months ago

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" />

lukaszciastko · 11 months ago

Why has it been closed? It's still an active issue for me.

sandyeveliz · 11 months ago
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.

mattivilola · 11 months ago

This is still an issue. The small icon has disappeared from the IDE

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 alt="Image" width="203" height="29" src="https://private-user-images.githubusercontent.com/939/472042169-2f91e61a-7e4d-4489-a303-c90fadda45c2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTQzODYxMzEsIm5iZiI6MTc1NDM4NTgzMSwicGF0aCI6Ii85MzkvNDcyMDQyMTY5LTJmOTFlNjFhLTdlNGQtNDQ4OS1hMzAzLWM5MGZhZGRhNDVjMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwODA1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDgwNVQwOTIzNTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05MWZlYzAzYTE1MGE5YWZkMmNkZjlmOTI5N2NmNzZmNjM3ZDQwMDcyZDc5MzYwZmNlZmMyNTRjOTUxNmZjNTc1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.ADLujLK3Z0VkQtCRH8ND_xD2nKUNFeWTedN2y9fapMI">

Does not help for me. Thanks for sharing.. Still an issue.

grhaonan · 11 months ago
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 alt="Image" width="203" height="29" src="https://private-user-images.githubusercontent.com/939/472042169-2f91e61a-7e4d-4489-a303-c90fadda45c2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTQ2MzQ1OTQsIm5iZiI6MTc1NDYzNDI5NCwicGF0aCI6Ii85MzkvNDcyMDQyMTY5LTJmOTFlNjFhLTdlNGQtNDQ4OS1hMzAzLWM5MGZhZGRhNDVjMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwODA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDgwOFQwNjI0NTRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xNDg4OWFhM2VlM2E3ZjhlZDM1NjJhMDI4M2Q2YzNiZTVlYzI2MDVjMjA0M2E0NWM2NTQ3ZWE4YmJmMTZhNWU1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.rL9qJtFbRxDoyA2LAYJtbENxequLSQakseExDCPmb88">

this resolved my case

github-actions[bot] · 11 months ago

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.