Factories > Infrastructure
Factory security
Review execution, data, network, inference, and credential boundaries for Warp Factories before configuring your factory.
Warp Factories lets you choose where code runs, which providers serve inference, where run data is stored, and which credentials each agent receives. Review these boundaries separately: self-hosting execution doesn’t automatically move inference or saved run data. For hosting comparisons and runner selection, see Factory infrastructure.
Control plane and execution plane
Section titled “Control plane and execution plane”Warp manages coordination, while a Warp-hosted sandbox or a self-hosted runner on your infrastructure executes the work. These responsibilities form the control plane and execution plane:
- Control plane - Warp coordinates runs, identity and configuration, observability, integrations, storage, and inference routing.
- Execution plane - A Warp-hosted sandbox or a self-hosted runner checks out code, runs setup, invokes tools, builds the project, and executes commands.
The diagram shows managed self-hosting with customer-configured inference and run-data storage. The self-hosted runner opens an outbound connection to Warp; no inbound firewall port is required.

You can manage factory and agent configuration as code in a repository you control.
With managed self-hosting, repository checkouts, commands, and sandbox files stay on machines you control. Prompts, results, transcripts, attachments, artifacts, and telemetry still flow through Warp and can contain code context. The Warp Agent sends model requests through Warp to the configured inference provider. Claude Code and Codex call their providers directly from the execution environment. See Factory infrastructure, execution security, and data security and boundaries for details.
Self-hosting compute doesn’t change storage automatically. Configure transcripts, artifacts, and prompt attachments independently through self-hosted agent data storage; unmapped categories remain in Warp-managed storage. Warp still retains control-plane data, including configuration, lifecycle metadata, operational logs, and usage and billing records.
Isolation depends on the backend. The Direct backend shares the host OS and kernel; the Command backend delegates isolation to your external runtime. Inference support also varies by provider and harness.
Network controls
Section titled “Network controls”Restrict outbound access with networkPolicy in the factory definition. The reference covers factory and agent scope, deny precedence, built-in policies, and pending Kubernetes support.
For failed network requests, fetch and interpret blocked-host diagnostics.
For self-hosted outbound destinations and ports, see network requirements.
Runners
Section titled “Runners”Runner configuration and execution hosting are separate choices. See Runners in Factory infrastructure for the compute settings and their relationship to the execution host.
Choose an execution host
Section titled “Choose an execution host”Compare Warp-hosted and managed self-hosted execution, including responsibilities and backend isolation, before choosing an execution host. The data and credential boundaries on this page still apply; self-hosting compute alone does not move inference or stored run data.
Choose inference independently
Section titled “Choose inference independently”Execution hosting doesn’t select inference. Configure that boundary separately.
Inference options for factory runs
Section titled “Inference options for factory runs”Factory agents execute as cloud agents. For runs using the Warp Agent, support varies by inference option:
| Option | Support for factory runs | Team controls | Key boundary |
|---|---|---|---|
| Warp-managed inference | Supported | The model selected for each agent | Warp provides the provider account and charges your available usage |
| Team-managed keys and endpoints | Supported on Scale and Enterprise plans for Warp Factories; see other product eligibility | Shared OpenAI, Anthropic, or Google keys, or an OpenAI-compatible endpoint | Warp encrypts stored credentials and uses them only at the inference boundary. They never enter the self-hosted runner or run environment. |
| BYOLLM: AWS Bedrock | Supported on Enterprise | The AWS account, IAM role, available Claude models, and provider billing | Warp assumes your IAM role through OIDC; inference runs in your AWS account |
| BYOLLM: Gemini Enterprise | Not supported for factory runs | Interactive inference in your Google Cloud project | Gemini Enterprise BYOLLM currently supports interactive agent requests only |
Personal BYOK and personal custom inference endpoints are stored on a member’s device and don’t apply to factory runs. With team-managed keys and endpoints, select a specific provider model or endpoint. Auto continues to use Warp-managed inference. Check provider ZDR coverage separately, including any upstream providers behind a gateway.
Claude Code and Codex call their providers directly from the execution environment using their own harness authentication, not the Warp Agent’s inference configuration.
Provider retention
Section titled “Provider retention”For provider coverage, team collection controls in the Admin Panel, and factory inference settings, see Zero data retention (ZDR) for factory inference.
Networking for BYO inference endpoints
Section titled “Networking for BYO inference endpoints”For factory runs using the Warp Agent and a team-managed inference endpoint, model requests are sent from Warp’s servers, not your self-hosted runner or VPC. Your self-hosted runners execute checkout, tools, builds, and commands.
Your inference gateway must accept connections from Warp’s servers, even if your self-hosted runners can already reach it. For example, a TrueFoundry gateway on AWS needs a separate connection path for Warp’s inference requests.
For a public HTTPS gateway, confirm the current backend egress addresses with your Warp account team before configuring an IP allowlist in your gateway’s ingress rules.
These addresses identify Warp’s servers, not connections from your self-hosted runners. The self-hosted runner’s outbound connection to Warp doesn’t require inbound ports on its host.
If your gateway can’t be exposed publicly, contact your Warp account team to confirm whether private networking is available for your deployment. A private endpoint must be registered with Warp and reachable from Warp’s servers; running a self-hosted runner doesn’t establish this connection.
Credential boundaries
Section titled “Credential boundaries”A factory handles four kinds of credentials, each with its own boundary:
| Credential | Used for | Boundary |
|---|---|---|
| Inference credentials | Model provider requests from the Warp Agent | Credentials are used only at the Warp–provider boundary and never injected into the sandbox. |
| Execution secrets | APIs, package registries, and tools an agent uses | Secrets are delivered from an explicit per-agent allowlist. Factory agents that don’t act as a specific user receive no managed secrets by default. |
| Harness authentication | Third-party harnesses such as Claude Code or Codex | Credentials are used inside the execution environment for direct provider calls. This authentication is configured separately from the agent’s secret allowlist. |
| Repository identity | Checking out code and pushing changes | Runs act with the creating user’s authorization (changes are attributed to them) or as the agent itself for unattended work. The definition’s credentialStrategy sets this behavior. |
Scope each credential to the resources and actions its agent needs. Warp redacts known secret values at output boundaries, but redaction is a backstop, not a substitute for narrow external permissions and rotation. See factory secrets, harness authentication, Secret Redaction, and team identity for the underlying controls.
Factory roles and permissions
Section titled “Factory roles and permissions”Assign Factory user or Editor access to control who runs and configures a factory. Team and workspace admins inherit Admin access. See Managing factory permissions for role details and assignment steps.
Factory roles don’t control specification or pull request review. For factory definition changes, treat the files as operational code and protect merges through repository settings.
Metering
Section titled “Metering”For how hosting and inference choices affect charges, see Metering in Factory infrastructure and the platform usage reference.
Deployment checklist
Section titled “Deployment checklist”- Classify access - Inventory repositories, data, and services.
- Set boundaries - Choose execution and inference hosts.
- Scope credentials - Configure allowlists, harness authentication, and repository identity.
- Enforce review - Protect factory-definition and pull request merges.
- Validate operations - Test outbound network access, isolation, rotation, capacity, observability, and metering.
Related pages
Section titled “Related pages”- Zero data retention (ZDR) for factory inference - Review coverage, collection, and saved run data
- Factory infrastructure - Compare execution models and choose runners
- Runners for Warp Factories - Configure compute and self-hosted runner compatibility
- Self-hosting overview - Review managed backends and setup requirements
- Security and networking - Review data boundaries, outbound network access, and backend controls
- Team-managed LLM API keys and endpoints - Configure inference credentials
- Managing teams in Warp Factories - Manage membership and shared team controls
- Platform usage - Understand agent-hour charges