Execute requested Python code inside an isolated CubeSandbox MicroVM. Use when the user explicitly asks for CubeSandbox, MicroVM isolation, offline execution, or proof that code did not run on the DSH host.
Scanned 9/2/2026
Install to Claude Code
npx -y skills add runzhliu/aik8s --skill cube-sandbox --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Cube Sandbox?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/runzhliu-cube-sandbox)More formats (shields.io, HTML) on the badges page.
---
name: cube-sandbox
description: "Execute requested Python code inside an isolated CubeSandbox MicroVM. Use when the user explicitly asks for CubeSandbox, MicroVM isolation, offline execution, or proof that code did not run on the DSH host."
---
# CubeSandbox execution
Use the bundled `scripts/cube_agent_task.py` helper. It creates a short-lived,
offline CubeSandbox MicroVM, writes the requested Python program, executes it,
tests that public-network access is blocked, and destroys the sandbox in a
`finally` block.
## Required environment
The DSH deployment must provide:
- `CUBE_API_URL`
- `CUBE_PROXY_NODE_IP`
- `CUBE_PROXY_PORT_HTTP`
- `CUBE_PROXY_SCHEME`
- `CUBE_TEMPLATE_ID`
- `PYTHONUSERBASE` when the SDK is installed in a custom user base
Never print API keys or traffic-access tokens. Do not inspect unrelated DSH
credentials.
## Run a task
```bash
python3 /home/node/.dsh/skills/cube-sandbox/scripts/cube_agent_task.py \
--python-code 'print(sum(i * i for i in range(1, 101)))'
```
For a live UI demonstration only, pass `--hold-seconds 30`. Never use the hold
option for normal tasks or values above 60 seconds.
Use a single-quoted Python expression without embedded single quotes. For more
complex programs, write the code to a file in the DSH workspace and pass
`--python-file <path>`.
## Report
Return these facts to the user:
- `executor` is `cubesandbox-microvm`;
- program stdout and exit code;
- whether public network access was blocked;
- create latency for this one sample;
- cleanup result.
Do not claim success if cleanup is absent or the network test unexpectedly
succeeds.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!