Cursor Cloud Agent setup fails every time

Hey, thanks for the report. This is a known infrastructure issue with the Cloud Agent environment setup, so you’re doing everything right.

A few things to try:

  • First, check your Cursor version. You’re on 2.3.35, which is about a month old. Please update to the latest version, there have been a few Cloud Agent fixes since then.

  • If that doesn’t help, try using a Dockerfile instead of Manual Snapshot. Docs are here: Cloud Agents | Cursor Docs (see “Manual Setup with Dockerfile”). The idea is to create .cursor/Dockerfile with your base image and system dependencies, then reference it in .cursor/environment.json:

{
  "build": {
    "dockerfile": "Dockerfile",
    "context": "."
  },
  "install": "pip install -r requirements.txt"
}

Then restart Cursor and go to Cursor Settings > Cloud Agents. You should see an option to create a snapshot. A user in a similar thread reported this workaround helped avoid the Manual Snapshot setup failure: Cloud Agent setup fails: “Failed to create testing environment: [invalid_argument] Error”

Let me know how it goes.