Sync global rules - AND CHATS!

It would make me super-happy if we had a method to keep Cursor installations in sync, please.

I have 3 dev devices, Win laptop, Win desktop and MacOS desktop. Sharing rules is awkward, but doable.

However, picking up from previous chats (presumably this would be linked to version control, so the codebase is also relevant) would be so very helpful!

1 Like

Could you use remote SSH and a single workstation?

I have a couple of servers I run at home, and all of my home lab, dev environments, etc, are stored on them. I run very little locally.

Another option would be to set up a repo for you to store all of your rules in, which mind you should be project specific.

I had thought about using a repo to store and organize my rules and then pull down what I need for each project. You could do the same and simply update your repo for rules each time you swap workstations.

ooh, that’s interesting. I used to run VSCode remotely using Code Server for this reason:

Is this possible with Cursor?

The only thing required is the extension for remote SSH and remote Development, which gets installed as a package when you install Remote Development - Visual Studio Marketplace.

It installs and sets up what Cursor needs to work. It looks no different than opening a local project. All of my projects are run on other servers, mainly due to hardware. My AI inference server, for instance, is a 48-core, 128GB RAM, NVMe SSD, and a Telsa P40 24GB GPU for inference tasks.

Click the very bottom left icon in Cursor (><), select Connect to Host, and then I prefer to add/edit hosts via the SSH config, which will open in Cursor to edit if selected. Add your Host (Name) and then the IP in HostName, User, and you’re good to go. Here’s an example of what’s in mine.

Host vm-dkc-ai-playground-deb
  HostName 10.0.30.22
  User mbowden

Host lxc-dkc-dev-server-deb
  HostName 10.0.30.15
  User root

Save, then select Connect to Host again, pick the server you just entered, input credentials, and then you’re in. I would recommend using RSA keys. Using RSA keys and disabling root passwords is more secure, but it’s also more efficient, and there’s no need to enter a password each time.

1 Like