The attached guide walks through how to deploy Cursor workers using Cloud Run Worker Pools and autoscale using custom autoscaler.
Components:
-
Cursor workers that are hosted on Cloud Run worker pool with a fleet of containers running as Cursor workers. Each Worker Pool instance will contain Cursor Worker Container containing custom worker logic with Cursor tooling
-
Autoscaler: A separate Cloud Run Worker Pool that queries idle vs active workers and calls Cloud Run API to scale Worker Pools instances up or down.
-
[External] Cursor Self-hosted Agents with Cloud Run Worker Pools User Guide.pdf (200.6 KB)