Sandboxed code execution for AI agents, locally or on the cloud.
Project Links
Meta
Author: Kilian Lieret, Carlos E. Jimenez, John Yang
Requires Python: >=3.10
Classifiers
Operating System
- OS Independent
Intended Audience
- Developers
License
- OSI Approved :: MIT License
Programming Language
- Python :: 3.11
- Python :: 3 :: Only
SWE-agent Remote Execution Framework
SWE-ReX is a runtime interface for interacting with sandboxed shell environments, allowing you to effortlessly let your AI agent run any command on any environment.
Whether commands are executed locally or remotely in Docker containers, AWS remote machines, Modal, or something else, your agent code remains the same. Running 100 agents in parallel? No problem either!
Specifically, SWE-ReX allows your agent to
- โ Interact with running shell sessions. SWE-ReX will recognize when commands are finished, extract the output and exit code and return them to your agent.
- โ
Let your agent use interactive command line tools like
ipython,gdbor more in the shell. - โ Interact with multiple such shell sessions in parallel, similar to how humans can have a shell, ipython, gdb, etc. all running at the same time.
We built SWE-ReX to help you focus on developing and evaluating your agent, not on infrastructure.
SWE-ReX came out of our experiences with SWE-agent and SWE-agent enigma. Using SWE-ReX, we
- ๐ฆ Support fast, massively parallel agent runs (which made evaluating on large benchmarks a breeze).
- ๐ฆ Support a broad range of platforms, including non-Linux machines without Docker.
- ๐ฆ Disentangle agent logic from infrastructure concerns, making SWE-agent more stable and easier to maintain.
This is SWE-agent using SWE-ReX to run on 30 SWE-bench instances in parallel:
Get started
pip install swe-rex
# With modal support
pip install 'swe-rex[modal]'
# With fargate support
pip install 'swe-rex[fargate]'
# With daytona support (WIP)
pip install 'swe-rex[daytona]'
# Development setup (all optional dependencies)
pip install 'swe-rex[dev]'
Then head over to our documentation to learn more!
Our other projects
1.4.0
Aug 14, 2025
1.3.0
Jun 13, 2025
1.2.2
May 24, 2025
1.2.1
Mar 04, 2025
1.2.0
Feb 25, 2025
1.1.1
Feb 15, 2025
1.1.0
Jan 25, 2025
1.0.5
Jan 21, 2025
1.0.4
Jan 20, 2025
1.0.3
Jan 15, 2025
1.0.2
Jan 15, 2025
1.0.1
Dec 06, 2024
1.0.0
Dec 06, 2024
0.0.0
Oct 18, 2024