SWE-ReX
Runtime interface from the SWE-agent team for running agent shell sessions locally or in Docker, Modal and AWS Fargate sandboxes, built for massively parallel runs. A thin, backend-agnostic shell runtime that is most useful when the goal is parallel coding-agent evaluation rather than a hosted sandbox.
Overview
SWE-ReX is "a runtime interface for interacting with sandboxed shell environments" that came out of the SWE-agent project. A Deployment starts the environment (Docker/Podman, Modal, AWS Fargate, a remote host or the local machine), a FastAPI server inside it executes commands, and the Python client gets a RemoteRuntime with the same interface as the local runtime. It recognises when commands finish, returns output and exit codes, supports interactive tools such as ipython and gdb, and keeps several shell sessions open at once.
The README claims "Running 100 agents in parallel? No problem either!" and demos 30 SWE-bench instances at once; Daytona support is marked "(WIP)". MIT-licensed, pip install swe-rex with extras for Modal and Fargate; no version or release status is stated in the docs.
Notable
- Backends: local, Docker/Podman, Modal, AWS Fargate, remote; Daytona marked "(WIP)"
- README claims "fast, massively parallel agent runs" and shows 30 SWE-bench instances in parallel
- MIT licence; FastAPI server inside each environment
SWE-ReX specifications
| Attribute | Details |
|---|---|
| Isolation | Depends on the deployment: Docker or Podman container (DockerDeployment), Modal or AWS Fargate (ModalDeployment, FargateDeployment), a remote host, or no isolation with LocalDeployment; a FastAPI server inside the environment relays commands |
| Deployment | Open-source project · Self-hostable |
| Open source | Yes (MIT) |
| SDKs and interfaces | Python, REST API |
| Cold start (vendor claim) | Not documented |
| Max session length | Not documented |
| Persistence | Multiple interactive shell sessions stay open for the life of the deployment; file read/write through the runtime; no snapshot or persistence beyond the deployment documented |
| GPU | Not documented |
| Networking | The container runtime server listens on port 8000, mapped to a free host port; other deployments expose the server over HTTP; network policy is not documented |
| Pricing | Free (MIT); Modal and Fargate backends are billed by those providers |
| Free tier | Free to self-host |
| Compliance | Not documented |
| Regions | Not documented |
Facts from SWE-ReX’s public documentation, verified November 9, 2026. Performance numbers are vendor claims.
Strengths and trade-offs
Strengths
- You run SWE-agent or similar and want to swap execution backends without changing agent code
- You need many parallel shell sessions for benchmark evaluation
- You want to run on Modal or Fargate without writing provider-specific glue
Trade-offs
- Isolation is whatever the chosen backend provides; LocalDeployment has none
- No snapshots, persistence or network policy documented
- No stated release status; oriented towards research evaluation workflows
Good fit for: Running many SWE-agent-style shell sessions in parallel across local, Docker, Modal or Fargate backends.
Use cases SWE-ReX fits
- RL & evals: Open-source runtime for running many SWE-agent-style shell sessions in parallel across local, Docker, Modal or Fargate backends.
How SWE-ReX compares
| Sandbox | Isolation | Open source | Self-host / BYOC | Cold start (vendor) | Max session | Snapshots / pause | GPU | SDKs |
|---|---|---|---|---|---|---|---|---|
| SWE-ReX | Docker / Modal / Fargate | Yes | Yes / No | Not documented | Not documented | No / Not documented | Not documented | Python, REST API |
| OpenHands Runtime | Docker container | Yes | Yes / No | Not documented | Not documented | Not documented / Not documented | Not documented | Python, JavaScript/TypeScript, REST API |
| LLM Sandbox | Docker/Podman/K8s container | Yes | Yes / No | Not documented | Not documented | No / Not documented | Not documented | Python, MCP server |
| Modal Sandboxes | gVisor or VM | No | No / Not documented | <1 s | Up to 24 h | Yes / Yes | Yes | Python, JavaScript/TypeScript, Go |
| Daytona | Containers or VMs | No | Not documented / Yes | <90 ms | Unlimited | Yes / Yes | Yes | Python, TypeScript, Ruby, Go, Java |
| Docker Sandboxes | MicroVM | No | Yes / No | Not documented | Until removed (local) | Yes / Yes | Yes | sbx CLI, TypeScript (cloud), REST API (cloud) |
| Prime Sandboxes | microVM, own kernel | No | No / No | Not documented | 60 min default, unlimited | Yes / Yes | No | Python, CLI, REST API |
Frequently asked questions
What is SWE-ReX?
How does SWE-ReX isolate code?
Is SWE-ReX open source?
How much does SWE-ReX cost?
What are the alternatives to SWE-ReX?
Sources
Cite this page
Agent Sandboxes. (2026). SWE-ReX. agentsandboxes.org. Last reviewed November 9, 2026. https://agentsandboxes.org/sandboxes/swe-rex/
Found an error or a missing sandbox? Submit a correction — every entry links to the sources it relies on.