#### Cloud Agents

# Integrations

Run [pool](/build/agents-window/cloud-agent/self-hosted/pool) workers on an infrastructure partner's platform, or start from a reference template you clone and adapt. Every option runs the same worker: the [Grok Build TUI](/build/agents-window/cloud-agent/self-hosted/worker-reference#install-grok-build-tui) opens an outbound HTTPS connection to Grok Build, and Grok Build sends agent tool calls over that connection.

Partner guides and templates are reference architectures. You own the worker image, infrastructure, secrets, scaling policy, and production validation.

## Partner guides

Each partner maintains its own guide for running Self-Hosted Machines workers on its platform:

* **AWS Lambda.** [Grok Build Self-Hosted Machines on Lambda MicroVMs](https://docs.aws.amazon.com/lambda/latest/dg/microvms-integrations-cursor-self-hosted-machines.html)
* **Cloudflare.** [Cloud Agents on Cloudflare Sandbox](https://developers.cloudflare.com/sandbox/tutorials/cursor-cloud-agents/)
* **Namespace.** [Grok Build integration](https://namespace.so/docs/integrations/cursor)
* **Modal.** [Grok Build on Modal](https://modal.com/docs/cursor)
* **Daytona.** [Grok Build Self-Hosted Machines on Daytona](https://www.daytona.io/docs/en/guides/cursor/cursor-self-hosted-machines)
* **E2B.** [Grok Build agents on E2B](https://docs.e2b.dev/agents/cursor)
* **Vercel.** [Grok Build with Vercel Sandbox](https://vercel.com/kb/guide/cursor-vercel-sandbox)
* **Tensorlake.** [Cloud Agents on Tensorlake Sandboxes](https://docs.tensorlake.ai/sandboxes/cursor-cloud-agents)
* **Coder.** [Agent Relay for Grok Build](https://coder.com/docs/@main/ai-coder/agent-relay)
* **Superserve.** [Run Grok Build Self-Hosted Machines on Superserve](https://docs.superserve.ai/integrations/managed-agents/cursor-cloud-agents)
* **Render.** [Cloud Agents with Render Sandboxes](https://render.com/docs/sandboxes-cursor-cloud-agents)

## Reference templates

Clone one of these repositories to start from a working worker deployment. Each one runs a [worker controller](/build/agents-window/cloud-agent/self-hosted/pool#worker-controller) that claims pending pool requests and starts one worker per claim:

* **AWS Lambda MicroVMs.** [anysphere/aws-lambda-workers](https://github.com/anysphere/aws-lambda-workers): a `--spawn` hook launches one Firecracker-isolated Lambda MicroVM per claimed request.
* **Cloudflare Containers.** [anysphere/cloudflare-workers](https://github.com/anysphere/cloudflare-workers): a Cloudflare Worker acts as the controller and starts one Cloudflare Container per claimed request.
* **Kubernetes.** [anysphere/k8s-workers](https://github.com/anysphere/k8s-workers): a Helm sample that runs `cursor-agent worker controller --spawn` in your cluster and creates one Pod per claimed request, or keeps warm idle Pods with `--warm-idle`, without a CRD. This is the Kubernetes path for new deployments.

> [!NOTE]
>
> The Grok Build Kubernetes operator and `WorkerDeployment` Helm chart are
> deprecated. Clusters that already run the operator can keep using it; the
> [operator reference](/build/agents-window/cloud-agent/self-hosted/kubernetes) stays
> available for them. Don't start new deployments on it.

## What every integration needs

The platform changes, but the worker requirements stay the same:

* A **Grok Build Enterprise plan**, with Self-Hosted Machines enabled by a team admin in the [Cloud Agents dashboard](https://grok.com/dashboard/cloud-agents/machines).
* A [service account API key](/build/agents-window/account/enterprise/service-accounts) in `CURSOR_API_KEY`. See [Authenticate workers](/build/agents-window/cloud-agent/self-hosted/pool#authenticate-workers).
* Outbound HTTPS to `api2.cursor.sh`, `api2direct.cursor.sh`, `api3.cursor.sh`, `downloads.cursor.com`, `agent-stores.s3.us-east-1.amazonaws.com`, and `cloud-agent-artifacts.s3.us-east-1.amazonaws.com`. See [Networking](/build/agents-window/cloud-agent/self-hosted/pool#networking).
* A [pool name](/build/agents-window/cloud-agent/self-hosted/pool#pool-names) or [labels](/build/agents-window/cloud-agent/self-hosted/pool#labels) so Grok Build routes the right requests to workers on that platform.

For a single personal machine instead of a platform-managed fleet, use [My Machines](/build/agents-window/cloud-agent/self-hosted/my-machines).

## Next steps

* [Pools](/build/agents-window/cloud-agent/self-hosted/pool): start a pool worker by hand before you automate it on a platform.
* [Worker controller](/build/agents-window/cloud-agent/self-hosted/pool#worker-controller): the `--spawn` hook model every template builds on.
* [Kubernetes operator (deprecated)](/build/agents-window/cloud-agent/self-hosted/kubernetes): reference for clusters that already run the `WorkerDeployment` operator.
* [API reference](/build/agents-window/cloud-agent/api/endpoints#workers-and-pools): endpoints for workers, pools, the pending-request queue, and worker tokens.
