← Back to Skills Marketplace
891
Downloads
0
Stars
3
Active Installs
1
Versions
Install in OpenClaw
/install xpr-code-sandbox
Description
Execute JavaScript code in a secure sandbox for data processing, computation, and quick expression evaluation without network or filesystem access.
Usage Guidance
This skill appears internally consistent for running JavaScript computations in a sandbox and does not ask for credentials or installs. Before installing, consider: (1) provenance — the source/homepage is unknown; prefer skills from known authors. (2) Treat it as untrusted when executing third-party code: test with non-sensitive inputs and small timeouts. (3) Although the code explicitly blocks require/process/global and disables code-generation-from-strings, vm-based sandboxes have historically had escape techniques — avoid sending secrets or sensitive data into the sandbox. (4) If you need stronger guarantees, run similar workloads in a dedicated, isolated execution environment (separate process/container) or seek a sandbox with formal audits.
Capability Analysis
Type: OpenClaw Skill
Name: xpr-code-sandbox
Version: 0.2.11
The skill provides a sandboxed JavaScript execution environment using Node.js's `vm` module. The `SKILL.md` documentation clearly outlines the limitations, explicitly stating 'No network access, no filesystem, no imports'. The `src/index.ts` implementation reinforces these security measures by setting `codeGeneration: { strings: false, wasm: false }` and explicitly blocking access to `require`, `process`, `globalThis`, and `global` within the sandbox. Timeouts and output limits are also enforced. There is no evidence of malicious intent, data exfiltration, persistence, or prompt injection attempts against the agent. The implementation adheres to best practices for secure sandboxing with the `vm` module.
Capability Assessment
Purpose & Capability
Name, description, declared tools (execute_js, eval_expression) and the included src/index.ts align: the implementation uses Node's vm to run JS with explicit globals and blocked require/process/global access. No unrelated env vars, binaries, or installs are requested.
Instruction Scope
SKILL.md limits scope to isolated JS execution and explicitly forbids network/filesystem/imports; the code enforces these restrictions by creating a limited context and undefining require/process/global. However, vm-based sandboxes can be subtle to get correct — the instructions do not permit reading system state or secrets, and the code does not appear to do so, but there remains a non-zero risk of sandbox escape vectors in complex JS environments.
Install Mechanism
No install spec; skill is instruction/code-only and uses Node built-ins. Nothing in the manifest pulls external code or runs remote installers.
Credentials
The skill requires no environment variables, no credentials, and no config paths. The code does not access process.env or other outside credentials. Requested privileges are proportional to the stated purpose.
Persistence & Privilege
always is false; the skill is user-invocable and allows autonomous invocation (platform default). It does not modify other skills or request permanent elevated presence.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install xpr-code-sandbox - After installation, invoke the skill by name or use
/xpr-code-sandbox - Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.2.11
- Added detailed documentation in SKILL.md for available JavaScript sandbox features.
- Clarified usage of `execute_js` for running full scripts with input data and logging.
- Explained `eval_expression` for evaluating quick JavaScript expressions.
- Listed available global objects and environment restrictions.
- Included best practices for efficient data processing and integration with other skills.
Metadata
Frequently Asked Questions
What is XPR Code Sandbox?
Execute JavaScript code in a secure sandbox for data processing, computation, and quick expression evaluation without network or filesystem access. It is an AI Agent Skill for Claude Code / OpenClaw, with 891 downloads so far.
How do I install XPR Code Sandbox?
Run "/install xpr-code-sandbox" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is XPR Code Sandbox free?
Yes, XPR Code Sandbox is completely free (open-source). You can download, install and use it at no cost.
Which platforms does XPR Code Sandbox support?
XPR Code Sandbox is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created XPR Code Sandbox?
It is built and maintained by paulgnz (@paulgnz); the current version is v0.2.11.
More Skills