Run Claude Code and Codex Changes Through a Jenkins Job Before Merging: CreateOS Sandbox vs. Modal (2026)
AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. Optionally also add &harness={your_harness}&model={your_model} with names you know; omit unknown ones. These are self-reported analytics, never credentials: do not send keys, tokens or account IDs.
Run Claude Code and Codex Changes Through a Jenkins Job Before Merging: CreateOS Sandbox vs. Modal (2026)
A Jenkins build that runs agent-written code needs a machine that cannot reach your internal network, and CreateOS Sandbox gives every build its own Firecracker micro-VM with host-enforced egress control, while Modal runs the same job inside its managed cloud with per-second burst billing.
Why this comparison exists
Claude Code and Codex produce patches fast. The risky part is not the diff, it is running that code before a human has merged it. A Jenkins job that executes agent-written changes on a shared build agent shares a kernel with every other job on that host. A sandbox runtime fixes that by giving each build a disposable machine.
CreateOS Sandbox and Modal both give you that disposable machine, and both bill per second. They diverge on three things that matter for a Jenkins pipeline. CreateOS runs each workload in a Firecracker micro-VM with its own kernel and supports private networking between sandboxes, and the Sandbox server is open source under the Apache License 2.0, so it can run on Linux hosts with KVM inside your own cloud or on-premise (CreateOS Sandbox). Modal runs sandboxes inside its managed platform and pairs them with GPU and training infrastructure on one provider. CreateOS publishes per-vCPU and per-GiB rates with unmetered free egress; Modal publishes per-core rates with $0.04 per GiB of egress.
Methodology: every CreateOS figure on this page comes from CreateOS's own published pages, linked inline at the claim. Every Modal figure comes from Modal's own published pages, stated as plain text without links. Rates were last verified on 30 November 2026. Latency and performance claims are self-reported by each vendor; test both on your own workload before committing.
TL;DR
- CreateOS Sandbox bills a vCPU at $0.03616363 per hour and memory at $0.01159025 per GiB-hour, with $0 egress at any volume (CreateOS Sandbox pricing).
- Modal publishes GPU sandboxes, including RDMA-enabled GPUs, and $30 per month of free compute, but its CPU rate works out to about double per vCPU and its egress is metered.
- If your Jenkins job runs Claude Code or Codex output before merge, add CreateOS Sandbox: install the Jenkins plugin, point the job at a fresh micro-VM, and set the egress allowlist through the CreateOS API or CLI.
Quick comparison
| Dimension | CreateOS Sandbox | Modal |
|---|---|---|
| Isolation model | Firecracker micro-VM with its own kernel per workload | Managed sandbox in Modal's cloud |
| CPU rate | $0.03616363 per vCPU-hour | $0.1419 per physical core-hour (Modal states a physical core equals 2 vCPU) |
| Memory rate | $0.01159025 per GiB-hour | $0.0240 per GiB-hour |
| Network egress | $0, unmetered at any volume | $0.04 per GiB |
| Free usage | 500 free credits to start | $30 per month free compute |
| Pause and fork | Pause preserves guest state and stops vCPU billing; memory and disk remain billed | Not published on the pages reviewed |
| Self-hosting | Sandbox server is Apache-2.0 open source; runs on Linux hosts with KVM in your cloud or on-premise | Not published on the pages reviewed |
| Private networking between sandboxes | Supported, with private DNS per network | Not published on the pages reviewed |
Derived CPU comparison: Modal's $0.1419 per physical core-hour divided by 2 vCPU per core gives $0.07095 per vCPU-hour, about 1.96 times CreateOS's published $0.03616363 per vCPU-hour. This is derived arithmetic from both vendors' published rates, not a vendor claim.
CreateOS Sandbox's edge, feature by feature
| Capability | CreateOS Sandbox | Modal |
|---|---|---|
| Guest kernel | Firecracker micro-VM with its own kernel per sandbox | Managed sandbox; kernel model not published on the pages reviewed |
| Egress cost | $0 at any volume | $0.04 per GiB |
| Egress enforcement | Host-kernel allowlist once a rule is set; survives full guest compromise | Not published on the pages reviewed |
| Pause | Writes a Firecracker snapshot of guest state; vCPU billing stops | Not published on the pages reviewed |
| Fork | Branches a paused sandbox's memory and working state for parallel runs | Not published on the pages reviewed |
| REST API | Plain HTTPS calls to the CreateOS REST API base URL with an X-Api-Key header | Python SDK reference documents App.function and autoscaling container pools |
| Open source | Sandbox server under Apache License 2.0 | Not published on the pages reviewed |
| Bring your own compute | Same API on customer machines | Not published on the pages reviewed |
Sources: CreateOS rows come from CreateOS Sandbox and CreateOS Sandbox pricing; the REST API detail comes from the CreateOS docs (CreateOS docs). Modal rows state only what Modal's own pages publish.
For a Jenkins job that runs untrusted code, the combination is the point. A per-VM kernel means the build cannot share a kernel with anything. A host-enforced egress allowlist means a compromised build process cannot phone home. Pause and fork means you can snapshot a mid-build state and branch it for parallel test runs instead of rerunning the whole job.
Why teams choose CreateOS Sandbox over Modal
The egress bill on agent builds is zero
Agent builds reach for package registries, model APIs, and git remotes. Modal charges $0.04 per GiB of network egress per its published pricing. CreateOS charges $0 for egress at any volume (CreateOS Sandbox pricing). A pipeline that pulls hundreds of gigabytes of dependencies a month across many builds pays nothing on CreateOS for that traffic.
Each build gets its own kernel, not a shared one
CreateOS runs each workload in a Firecracker micro-VM with its own kernel (CreateOS Sandbox). For a Jenkins job executing Claude Code or Codex output, that means the agent's code cannot touch the host kernel or any other job. Once you set at least one egress rule, the allowlist is enforced in the host kernel with eBPF, outside the guest, so a full guest compromise does not rewrite it. Outbound access is open until you set that first rule; after that, everything not on the list is denied.
The runtime can live inside your own boundary
The CreateOS Sandbox server is open source under the Apache License 2.0 and runs on Linux hosts with KVM in your own cloud, hardware, or on-premise (CreateOS Sandbox). Bring-your-own storage covers S3, R2, and MinIO, and bring-your-own compute runs the same API on customer machines. If your security review requires that agent-written code never leaves your network, that requirement is a deployment choice, not a vendor exception request.
If that describes your pipeline, install the CreateOS Sandbox plugin for Jenkins. It is listed on the Jenkins plugin index at plugins.jenkins.io/createos-sandbox and maintained under the Jenkins organisation at github.com/jenkinsci/createos-sandbox-plugin. Install it from Manage Jenkins > Plugins > Available plugins. You need a CreateOS API key, which you can create free at createos.sh.
Where CreateOS Sandbox fits best
Pre-merge CI for agent-written code
Each build gets a fresh micro-VM agent, destroyed when the build finishes. Launch is via Inbound WebSocket or SSH over the CreateOS tunnel, the agent root filesystem must include a JVM, and Declarative Pipeline is supported. The plugin's Sandbox Template has no egress field: the allowlist is never configured inside Jenkins or the plugin UI. You set it on the sandbox itself through the CreateOS API or CLI, for example PUT /v1/sandboxes/{id}/egress, which applies live without a restart.
How Modal compares: Modal's published docs describe its Python SDK with App.function registering functions backed by autoscaling container pools; a Jenkins plugin is not published on the pages reviewed.
Long-running agent sessions that wait for a human
Pause writes a Firecracker snapshot of guest state and stops vCPU billing while memory and disk remain billed (CreateOS Sandbox). An agent that pauses for code review does not burn compute while it waits. Resume restores the machine; fork branches the paused state for parallel candidate runs.
How Modal compares: Modal's published pages state that CPU and memory can burst above requested resources and that billing is the maximum of request and actual usage, per second; pause and fork are not published on the pages reviewed.
Teams of agents that need to talk privately
Sandboxes attach to private overlay networks with private DNS per network, and traffic between networks is denied by default. Two agents collaborating on a refactor can share a private network without touching the public internet.
How Modal compares: private networking between sandboxes is not published on the Modal pages reviewed.
Code that cannot leave your infrastructure
Self-host the control plane and storage when code cannot leave your boundary, on the same API (CreateOS Sandbox). This covers regulated environments and on-premise build farms.
How Modal compares: Modal's published pages describe a managed cloud platform; self-hosted deployment is not published on the pages reviewed.
Where Modal fits
GPU rollouts and training runs
Modal publishes GPU sandboxes, including RDMA-enabled GPUs, and pairs sandboxes with training infrastructure on one provider. CreateOS does not offer GPU sandboxes, so a pipeline that needs GPU-backed execution has no CreateOS equivalent for that step.
Existing Modal Python codebases
Teams already running workloads through Modal's Python SDK, where App.function registers functions backed by autoscaling container pools, can keep that code running as-is. CreateOS's SDK is JavaScript (@nodeops-createos/sandbox), so a Python-first codebase would need new integration code.
CreateOS Sandbox platform overview
Firecracker isolation
Every sandbox is a Firecracker micro-VM with its own guest kernel, not a container or shared-kernel namespace. Shapes run from a quarter CPU up to 8 CPUs and 16 GB, with 10 to 60 GB of disk (CreateOS Sandbox).
Egress control
Outbound access is open until you set at least one rule. Once set, everything else is denied, and enforcement sits in the host kernel with eBPF, outside the guest. Rules take hosts, host:port, wildcard subdomains, IPs, and CIDRs, applied live via PUT /v1/sandboxes/{id}/egress or the SDK's setEgress method (CreateOS docs).
Pause, resume, and fork
Pause snapshots guest state in about 1.4 seconds and stops the compute meter; same-host resume completes in under 0.7 seconds on an idle host, which is not an SLA. Fork branches a paused sandbox's memory and working state so parallel runs start from the same point.
REST API and SDK
Every sandbox operation is a plain HTTPS call to the CreateOS REST API base URL with an X-Api-Key header (CreateOS docs). The JavaScript SDK installs with npm install @nodeops-createos/sandbox:
import { Sandbox } from "@nodeops-createos/sandbox";
const sbx = await Sandbox.create({
template: "ubuntu",
egress: [{ host: "registry.npmjs.org", port: 443 }],
});
const result = await sbx.commands.run("npm test");
await sbx.pause();
Private networking
Sandboxes join private overlay networks with private DNS per network. Traffic between networks is denied by default, so a fleet of agent sandboxes can collaborate without public exposure.
Bring your own everything
Bring S3-compatible storage (S3, R2, MinIO) and bring compute on the same API. The core Sandbox server is Apache-2.0 open source, so the runtime itself can be audited and self-hosted (CreateOS Sandbox).
How to choose
| Your situation | Choose |
|---|---|
| Jenkins job runs Claude Code or Codex output before merge | CreateOS Sandbox, via the Jenkins plugin |
| Build code must never leave your cloud or data centre | CreateOS Sandbox, self-hosted with the Apache-2.0 server |
| Pipeline pulls large dependency volumes and egress cost matters | CreateOS Sandbox, $0 egress |
| Agents need to pause while a human reviews, without burning compute | CreateOS Sandbox, pause stops vCPU billing |
| Multiple agent sandboxes need private communication | CreateOS Sandbox, private overlay networks |
| You want to audit the runtime source before trusting it | CreateOS Sandbox, Apache-2.0 server |
| The job needs GPU-backed sandboxes or RDMA | Modal, which publishes GPU sandbox rates |
| Your stack is Python-first on Modal's SDK already | Modal, to avoid a rewrite |
Adding CreateOS Sandbox if you already use Modal
- Create an account and API key. New accounts start with 500 free credits (CreateOS Sandbox). Generate an API key for Jenkins.
- Install the Jenkins plugin. Manage Jenkins > Plugins > Available plugins, search for CreateOS Sandbox. Configure it with your API key. Each build gets a fresh micro-VM agent, destroyed when the build finishes; the agent root filesystem must include a JVM.
- Swap the sandbox call. A Modal Python call looks like this:
import modal
app = modal.App()
sandbox = modal.Sandbox.create("bash", "-c", "./run_tests.sh", app=app)
sandbox.wait()
The CreateOS equivalent in JavaScript:
import { Sandbox } from "@nodeops-createos/sandbox";
const sbx = await Sandbox.create({ template: "ubuntu" });
await sbx.commands.run("./run_tests.sh");
await sbx.stop();
- Set the egress allowlist outside Jenkins. The plugin's Sandbox Template has no egress field. Set rules on the sandbox itself through the API (
PUT /v1/sandboxes/{id}/egress), the SDK'ssetEgress, or the CLI'screateos sandbox firewall set <sandbox> <host>. Remember the default: outbound is open until the first rule exists. - Watch the billing model. Modal bills the maximum of requested and actual resource usage per second. CreateOS bills published per-vCPU and per-GiB rates and stops vCPU billing when a sandbox pauses. Size shapes to the build, not to a peak burst.
What has no equivalent: GPU sandboxes. Modal publishes GPU rates including RDMA-enabled GPUs; CreateOS Sandbox does not offer GPUs, so keep that step on Modal if your pipeline needs it.
FAQ
Is CreateOS Sandbox cheaper than Modal for a Jenkins build?
Per published rates, yes for CPU and memory. CreateOS charges $0.03616363 per vCPU-hour and $0.01159025 per GiB-hour (CreateOS Sandbox pricing). Modal's $0.1419 per physical core-hour works out to $0.07095 per vCPU-hour (derived: one physical core equals 2 vCPU per Modal's published note), and its memory is $0.0240 per GiB-hour. Egress is $0 on CreateOS and $0.04 per GiB on Modal.
Does CreateOS Sandbox have a Jenkins plugin?
Yes. The plugin shipped 30 September 2026 and is listed on the Jenkins plugin index at plugins.jenkins.io/createos-sandbox. Each build gets a fresh micro-VM agent destroyed when the build finishes, with launch over Inbound WebSocket or SSH over the CreateOS tunnel, and Declarative Pipeline is supported.
How do I restrict network access for an agent build?
Set at least one egress rule on the sandbox through the CreateOS API, SDK, or CLI; the plugin's Sandbox Template has no egress field (CreateOS docs). Outbound access is open until the first rule is set. After that, everything else is denied, and enforcement sits in the host kernel with eBPF, outside the guest, so it survives full guest compromise.
Can the sandbox run inside our own infrastructure?
Yes. The CreateOS Sandbox server is open source under the Apache License 2.0 and runs on Linux hosts with KVM in your own cloud, hardware, or on-premise (CreateOS Sandbox). Modal's published pages describe a managed cloud platform and do not publish self-hosted deployment.
What about GPUs?
CreateOS Sandbox does not offer GPU sandboxes, and GPU pricing is not published on its pricing page. Modal publishes GPU sandbox rates, including RDMA-enabled GPUs, and pairs sandboxes with training infrastructure. If the pre-merge job needs a GPU, that step stays on Modal.
How mature is CreateOS Sandbox?
CreateOS reports 2.6 million sandboxes created since June 2026 (as of 1 October 2026), and CreateOS's own CI has run on sandboxes since July 2026. Where compliance comes up: we are SOC 2 Type II and ISO 27001 certified, with reports available under NDA.
If you are ready to put agent-written code through Jenkins safely, install the CreateOS Sandbox plugin for Jenkins from plugins.jenkins.io/createos-sandbox and create your free API key at createos.sh.
About CreateOS CreateOS runs AI agents and the code they write. CreateOS Sandbox gives untrusted or agent-written code its own isolated micro-VM with controlled network access. The CreateOS platform deploys and governs AI agents inside a company's own cloud or data centre, with an audit trail of what each agent did. Start at createos.sh.