Python Code Executor for Openclaw

A secure, sandboxed execution environment for Python scripts featuring over 100 pre-installed libraries for data science, web scraping, and media processing.

okaris
v0.1.5
Feb 18, 2026
3
10k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install python-executor

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install python-executor using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Python Code Executor?

The Python Code Executor is a high-performance skill designed to provide a secure and isolated environment for running Python 3.10 code. By leveraging Openclaw Skills, developers can bypass the complexities of local environment management and dependency hell. This skill comes pre-loaded with an extensive library stack, including heavyweights like Pandas, NumPy, Selenium, and OpenCV, making it a versatile tool for any computational task.

Whether you are building an AI agent that needs to perform real-time data calculations or an automation script that requires browser orchestration, this skill delivers a reliable infrastructure. Integration with Openclaw Skills ensures that your code runs in a predictable, resource-managed sandbox, providing both safety and scalability for developer workflows.

Python Code Executor Use Cases

  • Automate complex web scraping tasks using Playwright or BeautifulSoup within a secure Openclaw Skills environment.
  • Perform advanced data analysis and generate visualizations using Pandas, Matplotlib, and Seaborn.
  • Execute media processing scripts for image manipulation, video editing, and 3D mesh generation.
  • Generate professional PDF reports and documents dynamically using library-rich Openclaw Skills.
  • Rapidly prototype and test API integrations using requests and httpx without local setup.

How Python Code Executor Works

  1. The user or AI agent submits Python code and optional parameters such as timeout and memory requirements.
  2. Openclaw Skills initializes a secure, isolated sandbox container with the Python 3.10 runtime.
  3. The script is executed, and the system monitors resource usage and execution time.
  4. Any files generated within the designated outputs/ directory are automatically identified and captured.
  5. The execution results, including standard output, error logs, and generated files, are returned as a structured response.

Python Code Executor Setup

To get started with this skill via Openclaw Skills, you need to install the inference CLI and authenticate your session. Use the following commands to set up your environment:

curl -fsSL https://cli.inference.sh | sh && infsh login

To run your first script, use the infsh app run command as shown below:

infsh app run infsh/python-executor --input '{
  "code": "import numpy as np\nprint(np.random.rand(3))"
}'

Python Code Executor Data Schema & Taxonomy

This skill utilizes a standardized input and output schema to maintain consistency across Openclaw Skills integrations.

Input Field Type Description
code string The Python code to be executed
timeout integer Max execution time in seconds (Default: 30)
capture_output boolean Captures STDOUT and STDERR if true
working_dir string Defines the execution context

All files saved to the outputs/ folder are automatically bundled into the response payload for easy retrieval.

Python Code Executor Advanced Features

  • Support for high-memory variants (up to 16GB RAM) to handle large datasets and memory-intensive processing.
  • Automatic detection and retrieval of generated assets like CSVs, PNGs, MP4s, and STL files.
  • Pre-configured environment with 100+ libraries covering 3D processing, computer vision, and browser automation.
  • Seamless workflow integration allowing this skill to be triggered by other Openclaw Skills for multi-stage AI pipelines.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*