π¦ ClawHub
Alfred OpenShell Sandbox
by @sabatech-dev
Provides isolated sandboxes using NVIDIA OpenShell for secure code execution, security scans, debugging, and test running with resource and network restricti...
TERMINAL
clawhub install alfred-openshell-sandboxπ About This Skill
OpenShell Sandbox Skill
Secure execution environment for specialist agents using NVIDIA OpenShell.
Overview
OpenShell provides sandboxed containers with Landlock LSM + seccomp + network namespaces + L7 policy engine. Each specialist agent gets an isolated sandbox for safe code execution.Sandboxes Available
| Sandbox | Agent | Purpose | Status |
|---------|-------|---------|--------|
| coder-sandbox | coder | Code execution, builds, tests | Ready |
| security-sandbox | security | Pentesting, security scans | Ready |
| debug-sandbox | debug | Bug reproduction, diagnosis | Ready |
| test-sandbox | qa-tester | Test execution | Ready |
CLI Reference
# List all sandboxes
openshell sandbox listExecute command in sandbox
openshell sandbox exec -n -- [args...]Interactive shell
openshell sandbox connect -n Create new sandbox
openshell sandbox create --name Delete sandbox
openshell sandbox delete View logs
openshell logs -n Gateway status
openshell statusDiagnose issues
openshell doctor check
Agent Integration
For Coder Agent
When executing code that could affect the host system:# Instead of running locally:
python3 script.pyRun in sandbox:
openshell sandbox exec -n coder-sandbox -- python3 /workspace/script.py
For Security Agent
When running security tools or scans:# Run nmap, nikto, etc. in isolated sandbox
openshell sandbox exec -n security-sandbox -- nmap -sV target
For Debug Agent
When reproducing bugs or testing fixes:openshell sandbox exec -n debug-sandbox -- node test.js
For QA-Tester
When running test suites:openshell sandbox exec -n test-sandbox -- pytest tests/
File Transfer
To copy files between host and sandbox:
# Copy file INTO sandbox (via exec cat)
cat local_file.py | openshell sandbox exec -n coder-sandbox -- tee /workspace/local_file.pyCopy file FROM sandbox
openshell sandbox exec -n coder-sandbox -- cat /workspace/result.txt > local_result.txt
Policies
Default policies apply L7 network restrictions. To view/modify:
openshell policy list
Resource Limits
Troubleshooting
openshell sandbox list to check statusopenshell status and openshell doctor checkopenshell policy to modifyArchitecture
Host (Ubuntu ARM64)
βββ OpenShell Gateway (Docker + k3s)
βββ coder-sandbox (aarch64, Python 3.13, Node 22)
βββ security-sandbox (aarch64)
βββ debug-sandbox (aarch64)
βββ test-sandbox (aarch64)
Version
π Tips & Best Practices
openshell sandbox list to check statusopenshell status and openshell doctor checkopenshell policy to modify