- Open Windows Terminal on your computer and run the following command to generate an SSH key: ssh-keygen -t ed25519. Press Enter three times to accept the default location and skip the passphrase.
- Copy the file path of your SSH key shown in the terminal output. Paste it into Windows Explorer and open the file with Notepad. Copy the full SSH key text.
- Sign in at replit.com and open your project. Click the + icon to open a new tab and search for SSH.
- In the SSH tab, go to Keys and click Add SSH Key. Paste your key into the field, add a label - for example, "Cursor Connection" and click Add Key.
- Go to the Connect tab and click Launch Cursor. When the Cursor prompts for access, click Open Cursor to allow the connection.
- In Cursor, select Linux as the operating system when prompted and click Continue. Wait a few seconds for the connection to establish.
- Once connected, open any file in Cursor and make a change - for example, update the background color of your app. Save the file and confirm the change appears in your Replit Webview.
How to Integrate Replit with Cursor
📌 Why this matters
Why this matters
Connecting Cursor to Replit via SSH gives you the best of both tools in a single workflow — Replit's browser-based hosting and collaboration features combined with Cursor's AI-assisted local editing experience. For developers who prefer working in a local editor but want to keep their project running in Replit's environment, this removes the need to choose between the two. Changes made in Cursor reflect instantly in Replit, so there's no manual syncing or exporting involved. It's also a practical introduction to SSH-based remote development, which is a common pattern in professional environments where code runs on remote servers rather than local machines.
Your product deserves an interactive demo
Similar Articles
No items found.
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it
.gif)
