Skip to main content
SWE-ReX

SWE-agent Remote Execution Framework

Docs Slack PyPI - Version

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, gdb or 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:

SWE-ReX in action

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

SWE-agent    Mini-SWE-Agent    SWE-smith    SWE-bench    sb-cli

Metadata

Release files for swe-rex 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swe-rex 1.4.0
File Size Uploaded
swe_rex-1.4.0.tar.gz 41.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for swe-rex 1.4.0
File Interpreter ABI Platform
swe_rex-1.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 89.5 kB

Release files / swe_rex-1.4.0.tar.gz

Download URL swe_rex-1.4.0.tar.gz
Size 41.8 kB
Tags Source
SHA-256 checksum
How to use checksums
14f8a24c49a63f9e251340b1109ac75a4aacbaece410f8599209de9bfca843c0
BLAKE2b-256 checksum
How to use checksums
9486a069f93ec866151a4d476d546e60220e66b3788878b6e248b2df3ab2c5f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / swe_rex-1.4.0-py3-none-any.whl

Download URL swe_rex-1.4.0-py3-none-any.whl
Size 47.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61261ad03eb23b717b5901cd5d229f24f6e1be2e120aad5c2e5ea3384a1d15ad
BLAKE2b-256 checksum
How to use checksums
980dd06ab2aa78138055c297490762cd7b4d8ac58a544783f874c869cdb7b534
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3.0

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page