Repository navigation
Add Daytona sandbox provider #1513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
hemildesai
merged 16 commits into
NVIDIA-NeMo:main
from
hemildesai:hemil/daytona-sandbox
Jul 10, 2026
Merged
Changes from 13 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
f535fe1
Add Daytona sandbox provider
hemildesai ff7a681
Address Daytona provider review feedback
hemildesai cfbfda2
Add Daytona mini-SWE smoke config
hemildesai 81f14a8
Address Daytona review comments
hemildesai afff489
Refresh PR checks after base update
hemildesai e7568d8
Simplify Daytona provider retries
hemildesai 22da99f
Fix Daytona mini-SWE smoke config
hemildesai f848943
Fix Daytona smoke resources
hemildesai fd9471c
Increase Daytona smoke command timeout
hemildesai 80d02c6
Improve Daytona smoke sandbox retries
hemildesai ca552e8
Address Daytona provider review feedback
hemildesai bed788c
Address Daytona config review feedback
hemildesai 84509a3
Clean up Daytona dependency comment
hemildesai 1eaba49
Address mini SWE Daytona config review
hemildesai 1206327
Merge branch 'main' into hemil/daytona-sandbox
hemildesai c43758a
Merge upstream main into Daytona sandbox
hemildesai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| """Daytona provider package.""" | ||
|
|
||
| from nemo_gym.sandbox.providers.daytona.provider import ( | ||
| DaytonaBatchConfig, | ||
| DaytonaConnectionConfig, | ||
| DaytonaCreateConfig, | ||
| DaytonaCreateError, | ||
| DaytonaCreateTimeoutError, | ||
| DaytonaOperationConfig, | ||
| DaytonaProbeConfig, | ||
| DaytonaProvider, | ||
| DaytonaProviderOptions, | ||
| ) | ||
|
|
||
|
|
||
| __all__ = [ | ||
| "DaytonaBatchConfig", | ||
| "DaytonaConnectionConfig", | ||
| "DaytonaCreateConfig", | ||
| "DaytonaCreateError", | ||
| "DaytonaCreateTimeoutError", | ||
| "DaytonaOperationConfig", | ||
| "DaytonaProbeConfig", | ||
| "DaytonaProvider", | ||
| "DaytonaProviderOptions", | ||
| ] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| # Daytona sandbox provider config. | ||
| # | ||
| # `sandbox` is the instance name an agent references via `sandbox_provider: | ||
| # sandbox`; the child key `daytona` selects the provider class and its value is | ||
| # passed to the provider constructor. | ||
| # | ||
| # Every shipped provider config binds the same name `sandbox`, so swapping | ||
| # providers is swapping this config path in `+config_paths` (no agent edit): | ||
| # | ||
| # AGENT=responses_api_agents/mini_swe_agent_2/configs/mini_swe_agent_2.yaml | ||
| # MODEL=responses_api_models/vllm_model/configs/vllm_model.yaml | ||
| # ng_run "+config_paths=[$AGENT, nemo_gym/sandbox/providers/daytona/configs/daytona.yaml, $MODEL]" | ||
| # | ||
| # To run multiple sandboxes at once, give each block a distinct instance name | ||
| # (e.g. `daytona_foo`, `daytona_baz`) and reference each by name. | ||
| # | ||
| # `default_metadata` (optional) is merged into every sandbox's spec metadata | ||
| # (SandboxSpec.metadata); an agent's own sandbox_spec.metadata overrides it. | ||
| sandbox: | ||
| default_metadata: | ||
| sandbox-api: daytona-sdk | ||
| daytona: | ||
| connection: | ||
| api_key: ${oc.env:DAYTONA_API_KEY} | ||
| create: | ||
| timeout_s: 1200 | ||
| retries: 4 | ||
| retry_delay_s: 5.0 | ||
| retry_max_delay_s: 90.0 | ||
| auto_stop_interval: 30 | ||
| auto_delete_interval: 600 | ||
| probe: | ||
| timeout_s: 60 | ||
| deadline_s: 180 | ||
| operations: | ||
| retries: 4 | ||
| retry_delay_s: 1.0 | ||
| retry_max_delay_s: 45.0 | ||
| command_retries: 0 | ||
| close_timeout_s: 60 | ||
| file_timeout_s: 1800 | ||
| batch: | ||
| concurrency: 3 | ||
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.