Skip to content
Back to skills

Cube Sandbox

ASecurity

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 OpenClaw host.

  • 51 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentspythonbashnodeexpressapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add runzhliu/aik8s --skill cube-sandbox --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cube Sandbox?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cube Sandbox
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/runzhliu-cube-sandbox-aik8s/badge)](https://www.skillsdirectory.com/skills/runzhliu-cube-sandbox-aik8s)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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 OpenClaw 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 OpenClaw Gateway 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
OpenClaw credentials.

## Run a task

```bash
python3 /home/node/.openclaw/workspace/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 OpenClaw 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.

Files in this skill

  • SKILL.md1.6 KB
  • scripts/cube_agent_task.py2.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.