feat: add Daytona sandbox support#36
Merged
alexzhang13 merged 7 commits intoalexzhang13:mainfrom Jan 23, 2026
Merged
Conversation
- Introduced a new Daytona REPL environment for executing Python code in Daytona sandboxes. - Updated `pyproject.toml` to include `daytona` as an optional dependency. - Added example usage of Daytona REPL in `examples/daytona_repl_example.py`. - Modified existing code to support the new `daytona` environment in `rlm/environments/__init__.py` and `rlm/core/types.py`. - Enhanced the `RLM` initialization in `examples/quickstart.py` to utilize the Daytona environment. This implementation allows users to run code in isolated Daytona sandboxes, facilitating LLM queries and state management.
Contributor
|
This is great, thanks. What's the reasoning to change the quickstart to use Daytona by default? My sense is folks who just want to try it out are more likely to just have an OpenAI/ Anthropic key than a specific provider (Daytona, Modal, etc). Maybe create a separate provider_example.py with a toggle between the various supported providers, including Daytona? |
Contributor
Author
|
You're right. The quickstart change should be reverted. I was using it as a local sanity check, seem to have committed it accidentally. |
Owner
|
Thanks for this, testing on my end rn. |
ShaneIsley
pushed a commit
to ShaneIsley/rlm
that referenced
this pull request
Jan 29, 2026
Merged 4 commits from upstream (alexzhang13/rlm): - fix: ensure docker env uses shared workspace dir (alexzhang13#48) - fix: resolve type mismatch in usage summary propagation (alexzhang13#55) - feat: add Daytona sandbox support (alexzhang13#36) - fix: propagate depth and persistent parameters in DaytonaREPL (alexzhang13#71) Resolved conflicts in rlm/core/types.py and rlm/environments/__init__.py to integrate Daytona with our registry-based environment system. https://claude.ai/code/session_01VU6KvWSCkKinCMxQDXdNxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Daytona
Add a new
DaytonaREPLenvironment that runs Python code in Daytona sandboxes, following the same HTTP broker pattern asModalREPL.Changes
rlm/environments/daytona_repl.py: FullDaytonaREPLimplementation using HTTP broker patternexamples/daytona_repl_example.py: Example demonstrating basic code execution and LLM queriesrlm/environments/__init__.py: Register "daytona" environmentrlm/core/types.py: Add "daytona" toEnvironmentTypepyproject.toml: Adddaytonaoptional dependencyexamples/quickstart.py: Update to use Daytona environment by defaultKey Implementation Details
daytonaSDK for sandbox managementsandbox.get_preview_link) for host-to-sandbox communicationllm_query(),llm_query_batched(), andFINAL_VAR()dillserializationUsage
Example output
Test Plan
FINAL_VAR()extracts variables correctly