feat: add OpenShell sandbox provider extension#3469
Open
zanetworker wants to merge 1 commit into
Open
Conversation
6664a4e to
a97447e
Compare
Author
|
@seratch would appreciate your review on this when you get a chance |
fa5c6c6 to
c0a3985
Compare
Add NVIDIA OpenShell as a sandbox provider, wrapping the `openshell` Python SDK (sync gRPC client) via run_in_executor. Implements the standard BaseSandboxClient/BaseSandboxSession contracts with gateway discovery, tar-based workspace persistence, and file I/O via exec. Closes openai#3468
c0a3985 to
ddc5f29
Compare
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
Add NVIDIA OpenShell as a sandbox provider extension. OpenShell is an open-source, self-hosted sandbox runtime for AI agents with declarative YAML network policies, credential isolation, and GPU support.
The extension wraps the
openshellPython SDK (sync gRPC client) viarun_in_executor, following the Modal provider pattern. It implementsBaseSandboxClient/BaseSandboxSessionwith:SandboxClient.from_active_cluster()or explicit endpointExecSandboxRPCFiles:
src/agents/extensions/sandbox/openshell/__init__.py— re-exportssrc/agents/extensions/sandbox/openshell/sandbox.py— 4 classes:OpenShellSandboxClient,OpenShellSandboxSession,OpenShellSandboxClientOptions,OpenShellSandboxSessionStatesrc/agents/extensions/sandbox/__init__.py— lazy import blockpyproject.toml— optionalopenshelldependency + mypy overridetests/extensions/sandbox/test_openshell.py— 27 testsexamples/sandbox/extensions/openshell_runner.py— session-level and agent-level integration exampleTest plan
uv run pytest tests/extensions/sandbox/test_openshell.py -v— 27/27 passmake format— cleanmake lint— cleanmake typecheck— zero openshell-related errorsmake tests— 4406 pass, zero openshell regressionsIssue number
Closes #3468
Checks
make lintandmake format