← All writing

Running two Cursor agent workers on the same Windows machine

I wanted two Cursor agent workers running at once on my Windows machine, one for each repo. The first agent worker start was fine. The second one failed with:

Error starting exec-daemon: another worker daemon is already running for this data dir: C:\Users\you\AppData\Local\cursor-agent\worker.lock
Log: C:\Users\you\AppData\Local\cursor-agent\worker-startup.log

Both workers were using the same default data directory, and Cursor locks it so two daemons can't share it.

The fix is to give each worker its own folder with --data-dir. The flag goes before start:

agent worker --data-dir C:\agents\project-a start
agent worker --data-dir C:\agents\project-b start

Cursor's docs describe --data-dir as the base directory for logs, artifacts, and recording data. Once each worker had its own, both showed up in my Cursor dashboard, and I could work in both repos at the same time without them stepping on each other.