---
title: "Factory infrastructure"
description: "Compare Warp-hosted and managed self-hosted execution for Warp Factories, choose runner settings, and find the setup for your deployment."
canonical: "https://docs.warp.dev/factories/infrastructure/"
---

> For the complete documentation index, see [llms.txt](https://docs.warp.dev/llms.txt).
> Markdown versions of each page are available by appending .md to any URL.

# Factory infrastructure

Compare Warp-hosted and managed self-hosted execution for Warp Factories, choose runner settings, and find the setup for your deployment.

Choose an execution model for your factory based on where its code must run and who operates the compute. Warp-hosted execution is the default. Managed self-hosting keeps checkout and command execution in your network while Warp coordinates the work.

Both options use the same [factory definition](https://docs.warp.dev/factories/factory-as-code/), [runners](https://docs.warp.dev/factories/runners/), and [factory dashboard](https://docs.warp.dev/factories/factory-dashboard/). The execution host changes the location of checkout, command execution, and the sandbox filesystem. Review inference, storage, and credential boundaries separately in [Factory security](https://docs.warp.dev/factories/infrastructure-and-security/).

## Choose an execution model

| Decision area | Warp-hosted | Managed self-hosted |
| --- | --- | --- |
| **Compute** | Warp provisions the sandbox | Your team provisions the self-hosted runner |
| **Checkout and commands** | On Warp-managed compute | On your infrastructure |
| **Network** | Warp manages sandbox connectivity | The self-hosted runner connects outbound to Warp; no inbound firewall port |
| **Private services** | Must be reachable from the hosted sandbox | Reachable through the self-hosted runner’s network access |
| **Operations** | Warp manages capacity and lifecycle | Your team manages capacity, isolation, updates, and availability |

Use Warp-hosted execution when your repositories and services are reachable from its sandboxes and you don’t want to operate workers. Use managed self-hosting when checkout and execution must run on your infrastructure or reach private services through your network.

## Warp-hosted execution

The [Automation Platform](https://docs.warp.dev/platform/overview/) runs the work on Warp-managed infrastructure while your factory definition selects the workers, runner, workspace, and credentials.

![Warp-hosted execution architecture showing customer infrastructure, triggers and integrations, isolated tenant sandboxes, the Warp control plane, and LLM providers](https://docs.warp.dev/_astro/cloud-agents-infra.Cd04z31r_A0wsX.webp?dpl=dpl_FNfFZ6UvPeJsaiK33syiCNJUVhTr)

Warp operates the control plane and per-run sandboxes.

See the [cloud agent run lifecycle](https://docs.warp.dev/platform/architecture/#cloud-agent-run-lifecycle) for a description of the architecture and [Warp-hosted execution](https://docs.warp.dev/factories/warp-hosting/) for capacity, concurrency, networking, and supported environments.

### What it looks like

-   **Work intake** - Automations, integrations, Factory MCP, and factory endpoints send work to the factory
-   **Execution** - Agents run in hosted environments on the Automation Platform
-   **Visibility** - Teams monitor work through the factory dashboard, session sharing, and APIs

### Send work to a factory

-   Route integration events, schedules, and webhooks to workers with [factory automations](https://docs.warp.dev/factories/automations/).
-   Send work from Slack, Linear, Jira, GitHub, and GitLab through [factory integrations](https://docs.warp.dev/factories/connect-your-factory/).
-   Find a factory and dispatch work by UID from your service using [Factory endpoints](https://docs.warp.dev/factories/factory-api/).
-   Coding agents can hand work to a factory through [Factory MCP](https://docs.warp.dev/factories/factory-mcp/).

For standalone cloud-agent triggers, see [cloud agents](https://docs.warp.dev/platform/).

## Managed self-hosting

Managed self-hosting runs factory checkout and execution on your infrastructure while the Automation Platform coordinates the work and records its results. It requires an Enterprise plan; see [managed prerequisites](https://docs.warp.dev/factories/self-hosting/#managed-prerequisites) before setup.

### Managed self-hosting structures

The self-hosted runner’s backend sets isolation and scheduling on your infrastructure:

| Backend | How factory runs execute |
| --- | --- |
| [Docker](https://docs.warp.dev/factories/self-hosting/managed-docker/) (default) | In a separate Docker container on the self-hosted runner’s host |
| [Kubernetes](https://docs.warp.dev/factories/self-hosting/managed-kubernetes/) | As a Kubernetes Job in the self-hosted runner’s namespace |
| [Direct](https://docs.warp.dev/factories/self-hosting/managed-direct/) | In a separate workspace on the self-hosted runner’s host, sharing its OS and kernel |

For backend selection guidance, including Command and one-shot Direct options, see [Choosing a managed backend](https://docs.warp.dev/factories/self-hosting/#choosing-a-managed-backend).

Task platforms depend on the backend: Docker uses a `linux/amd64` or `linux/arm64` daemon, Kubernetes uses Linux task nodes, and Direct uses the OS and architecture of the self-hosted runner’s host. A native self-hosted runner on macOS or Windows can connect to a Linux Docker daemon; the task still runs on Linux. See [Runner settings by execution host](https://docs.warp.dev/factories/runners/#runner-settings-by-execution-host).

See the [network requirements](https://docs.warp.dev/factories/self-hosting/security-and-networking/#network-requirements) for outbound destinations and ports, and the [Self-hosting quickstart](https://docs.warp.dev/factories/self-hosting/quickstart/) to connect a self-hosted runner. The factory definition selects the connected self-hosted runner with [`workerHost`](https://docs.warp.dev/factories/factory-as-code/#agentdefaultsworkerhost). For a complete configuration with compatible compute settings, see [`self-hosted-worker`](https://github.com/warpdotdev/warp-factory-examples/tree/484a8b431d79407a4623b57503be1dd983080cf5/examples/self-hosted-worker).

Unmanaged self-hosted agents and other CLI agents can’t serve as a factory’s execution host, but they can exchange work with a factory through [Factory MCP](https://docs.warp.dev/factories/factory-mcp/).

## Runners

A runner compute configuration selects the operating system, architecture, sandbox image, and vCPU and memory shape. The factory’s [definition](https://docs.warp.dev/factories/factory-as-code/) supplies repositories, setup commands, and secrets. The factory definition sets the default runner with [`workerDefaults.runner`](https://docs.warp.dev/factories/factory-as-code/#agentdefaultsrunner), or its legacy `agentDefaults.runner` spelling. Individual workers and automations can override that default.

The execution host determines how runner compute settings apply. These settings don’t provision capacity for self-hosted execution. See [Runner settings by execution host](https://docs.warp.dev/factories/runners/#runner-settings-by-execution-host) for a settings comparison.

## Metering

Warp meters hosted compute, Warp-provided inference, and [platform usage](https://docs.warp.dev/support-and-community/plans-and-billing/platform-credits/). Self-hosting removes Warp-hosted compute charges, and customer-supplied inference is billed directly by your provider. Platform charges still apply in both cases, and Warp’s totals don’t fully reflect external inference costs.

## Related pages

-   [Factory security](https://docs.warp.dev/factories/infrastructure-and-security/) - Review execution, inference, storage, and credential boundaries
-   [Warp-hosted execution](https://docs.warp.dev/factories/warp-hosting/) - Review hosted capacity and networking
-   [Self-hosting overview](https://docs.warp.dev/factories/self-hosting/) - Choose and configure a managed backend
-   [Runners for Warp Factories](https://docs.warp.dev/factories/runners/) - Configure compute settings and overrides
