Scaling Claude Code and Codex Across an Engineering Org Without Buying More Laptops

Cloud sessions and managed policy let agents scale past laptops.

· 9 min read
Cover illustration for “Scaling Claude Code and Codex Across an Engineering Org Without Buying More Laptops”
Harness Comparison · November 23, 2026 · 9 min read · 2,046 words

To run Claude Code in the cloud without having to manage infrastructure, use Anthropic-hosted cloud sessions with a claude.ai subscription that includes them. Teams and Enterprise can also use self-hosted environments on organization-provisioned machines. Scaling Claude Code and Codex across engineering is therefore an infrastructure decision, with isolated execution, shared policy, and human-reviewed pull requests as the operating model.

Why developer laptops stop scaling before agent workloads do

On a laptop, how much agents can do depends on a developer’s machine staying awake and free to use. Credentials stay on each device, while shared policy and observability have to be set up on their own. That dependency constrains work that could otherwise proceed asynchronously. Codex can take a task, write code, run tests, and open a pull request without a developer remaining at the keyboard. Claude Code cloud sessions and scheduled tasks support the same separation between initiating work and supervising its execution.

The limiting resource should instead be governed execution capacity. Adding isolated cloud environments lets more work run without adding machines for developers. It also moves access, configuration, and monitoring into infrastructure the organization can manage collectively.

How do you run Claude Code in isolated cloud environments?

Claude Code cloud sessions run on Anthropic-managed infrastructure by default, or in a configured self-hosted environment. Its runners have fixed and on-demand modes. Fixed runners stay available all the time, and sessions are spread across them. An on-demand orchestrator starts runners as sessions arrive and stops them when work finishes, so capacity follows demand. Each runner serves one user at a time and locks to that session’s owner when it claims its first session, keeping users’ checked-out code separate.

Authentication and execution are separate deployment concerns. Cloud sessions, cloud scheduled tasks, Code Review, and Remote Control require a qualifying claude.ai subscription, rather than Console API keys or cloud-provider credentials alone. Choosing an API provider does not automatically enable these services.

Codex gives each task an independent cloud sandbox. It clones the GitHub repository, reads the codebase and AGENTS.md, writes code, runs tests, and iterates before opening a pull request. Internet access is off by default. Its task VM state can remain recoverable for up to seven days after the last turn, so isolation should not be confused with immediate destruction. Cursor also offers cloud agents, while OpenCode supports execution inside GitHub Actions runners.

The four deployment paths for Claude Code and how to choose among them

Claude Code’s subscription and cloud-provider paths offer different combinations of authentication, billing, and compliance controls. The choice shapes later configuration. Claude for Teams or Enterprise puts Claude Code and claude.ai under a per-seat subscription, so the organization does not have to run the execution infrastructure. Claude Code’s admin setup docs recommend this path by default because the subscription includes features that provider credentials alone cannot give access to.

Amazon Bedrock uses existing AWS compliance controls and billing, with IAM-based authentication and AWS Cost Explorer. Google Cloud’s Agent Platform uses the compliance controls and billing in GCP, along with Cloud Audit Logs and IAM roles. Microsoft Foundry uses existing Azure compliance controls and billing. These paths make an existing cloud footprint useful, but none substitutes for a claude.ai subscription when cloud sessions, scheduling, Code Review, or Remote Control are required.

Console API access is a separate pay-as-you-go alternative for API-first teams that want per-token billing without a seat subscription. The same feature limits apply. For Bedrock, GCP, and Foundry deployments, a Claude apps gateway provides a route to remote policy delivery. Without that gateway, file-based or operating-system policy mechanisms provide the fallback.

How managed settings and runner configuration enforce org-wide policy

Diagram: Policy Precedence Stack: From Server to User. Visualizes: Show a ranked priority stack of the five managed-settings layers in Claude Code, ordered from highest to lowest precedence: (1) Server-managed settings — from claude.ai admin…

Managed settings override developers’ local configuration, with a set order that decides which settings take priority. Server-managed settings have the highest priority and come from the claude.ai admin console or, for gateway sign-ins, a self-hosted Claude apps gateway. Claude Code fetches them at startup and refreshes them hourly during a session. This mechanism requires Teams or Enterprise and avoids manual policy configuration on each endpoint.

Operating-system policy is next in the stack. The macOS com.anthropic.claudecode plist and Windows HKLM registry require administrator privileges to write and work with any provider. File-based managed JSON at OS-specific paths ranks below them. The Windows user registry ranks lowest because users can write it without elevation, making it a convenience default.

Precedence does not always mean complete replacement. Arrays such as permissions.allow and permissions.deny merge lower-precedence entries into managed settings, allowing developers to extend lists but not remove managed entries. For fallbackModel, availableModels, and modelPicker, the managed value replaces lower layers. Organizations that use more than one provider should use server-managed settings for claude.ai users and file-based or plist/registry policy for other users.

WSL needs explicit attention during policy deployment. By default, it reads only the Linux file path. Setting wslInheritsWindowsSettings: true in an administrator-only Windows source extends Windows registry and C:\Program Files\ClaudeCode policy to WSL. Self-hosted environments also let organizations control where work runs by using named environments in claude.ai admin settings. Repository checkouts, artifacts, secrets, and session-created files remain on organization-provisioned machines, while transcript handling follows the separately configured retention and compliance posture.

Running agents in parallel: how cloud scheduling replaces the keyboard as the trigger

Cloud execution changes when work can start, while the time an individual task takes may remain unchanged. Claude Code sessions can begin from web, mobile, desktop, terminal, or a scheduled routine. Execution continues independently of a developer’s presence. Codex likewise lets multiple engineers send tasks at the same time, each in its own sandbox with its own pull request and no shared interactive session.

The integration layer connects that capacity to existing work. Agents should start from tools such as Slack, Linear, GitHub, and GitLab rather than requiring a separate interface for every task. Faire senior engineering manager George Jacob describes how self-hosted environments create PRs, help fix CI issues, and respond to events in a developer’s workflow, with compute that grows as demand grows. Claude Code’s Enterprise page also describes a customer where roughly a third of pull requests begin as a prompt, with execution in an isolated dev box. Once work starts without someone watching, however, the organization needs to know what ran, for whom, and against which repositories.

Observability, audit logs, and spend controls at org scale

Monitoring belongs in the deployment from the outset. Claude Code Enterprise provides session, token, and cost metric exports through OpenTelemetry. Its Compliance API lets teams pull activity and audit logs into a SIEM. Contribution metrics, available in beta, surface usage patterns, PRs, and committed code written with Claude Code’s help.

Enterprise controls also govern who can consume that capacity. Administrators can set spend limits for organizations, groups, or individuals, restrict available models, and cap effort levels by role. Enterprise adds role-based permissions, SCIM provisioning, tenant restrictions for personal accounts, and IP allowlisting. Model policy is particularly important during expansion because developers may otherwise default to the most expensive model for work a lighter model could handle. Managed settings make that choice an organizational policy.

The review bottleneck that parallel agent output creates

Parallel generation can outpace the organization’s ability to review it. More PRs arrive than reviewers merge, queues deepen, and time to first review lengthens. Larger diffs compound the pressure on reviewers. Agent-generated work can span more files and lines, increasing the context needed per review at the same time that submission volume rises.

The response is automated review for well-understood risk categories, with human attention reserved for higher-risk or more complex changes. Claude Code Enterprise’s auto mode has a separate model that checks higher-risk actions before they run. Anthropic’s study of paid testers in a test environment found that auto mode blocked the vast majority of injected dangerous commands, while human testers caught only a small fraction. That finding concerns action safety and leaves the need for code review unchanged.

The pull request remains the control point for delivery. A human can merge it, comment on it, or send it back. Partial automation must preserve that reviewable unit of work.

Phasing the rollout: from pilot team to org-wide deployment

An agent with shell access has a wider blast radius than a passive tool. Early choices about permissions, repository guidance, and logging therefore propagate as adoption expands. A phased rollout exposes mistakes before they spread. The pilot should be enthusiastic but representative. The pilot should uncover problems in the configuration as well as show that an agent can generate code.

Before the pilot begins, the organization should configure managed permission scopes, audit logging, spend limits, and a feedback channel. A shared CLAUDE.md should be committed to the repository and maintained as a first-class artifact. It describes the architecture, the key commands, and the coding conventions. A root file can provide project-wide guidance, with more specific files for services or subdirectories. Stale guidance degrades suggestions, so maintaining it is part of operating the deployment.

Expansion should follow stable configuration and positive pilot metrics. Adoption rate, PR volume before and after deployment, and time to first review show whether the next cohort is likely to inherit a workable process. Self-hosted execution also requires repository credentials supplied by the organization. Secrets must not be accessible across runner sessions, with the one-user-at-a-time locking model providing a boundary between users. Without this groundwork, users who struggle may quietly stop using the tool, while those who do well may each pick up different habits.

Comparing the cloud execution options across Claude Code, Codex, Cursor, and OpenCode

The comparison turns on execution ownership, governance, and pricing under parallel use. Claude Code has Anthropic-hosted sessions and self-hosted environments for Teams or Enterprise. Enterprise has managed settings along with identity controls, audit integration, and limits on spend and models. Self-hosted sessions count against the organization’s Claude Code plan in the same way as hosted sessions. Existing Bedrock, GCP, or Foundry credentials can serve the API-provider role, but do not independently unlock subscription-based cloud features.

Codex centers its cloud model on asynchronous task execution. Each task receives a fresh microVM, with independent work arriving as a pull request and task state recoverable for up to seven days after the last turn. Enterprise administrators have audit logs for task submissions and PR creation. OpenAI’s enterprise updates include support for HIPAA-compliant use, Codex on Amazon Bedrock, Remote SSH for managed development environments, and scoped programmatic access tokens. These are distinct deployment and access capabilities, rather than interchangeable substitutes for sandbox isolation.

Cursor combines an AI-native IDE with cloud agents. Its Enterprise controls include SCIM seat management, audit logs, service accounts, group-level spend limits, and repository, model, and MCP access controls. Enterprise also offers pooled usage and invoice billing. Its subscription model differs from running an open-source agent on organization-managed runners, and Enterprise pricing is custom.

OpenCode leaves more execution choices with the organization. Its open-source, model-agnostic software can use provider models or a self-hosted model, and its GitHub automation responds to /opencode or /oc comments inside GitHub Actions runners. The core software is free and open source. OpenCode Go charges a flat monthly fee for curated hosted open models, while BYOK users pay their AI provider directly.

What to measure once agents are running at org scale

Useful output is the primary success measure. The first weeks should track PRs opened by agents, PRs merged, PRs returned for revision, and time from task submission to merge. Review health requires time to first review, queue depth, and PR size distribution. The contribution metrics dashboard provides a starting point for a team-level view.

Infrastructure efficiency needs its own set of measurements. Workspace minutes per merged PR reveal compute consumption, while compute cost per merged PR expresses the financial result. Runner utilization and idle compute cost help assess fixed versus on-demand capacity. Seat utilization and daily active users can describe adoption, but cannot establish whether the resulting work is reviewable.

Those measurements should drive specific operating changes. Rising review time calls for revisiting task scope and PR-size guidance in managed settings. High compute cost per merged PR calls for examining model selection and task decomposition. Fragmented adoption calls for checking whether CLAUDE.md is current and managed settings reach every developer machine. The operational test is how much work reaches merge, how long review takes, and what compute that delivered work consumes.

More in Harness Comparison