/install local-task-runner
Local Task Runner
This skill provides a mechanism to execute Node.js code snippets or full scripts locally on the host machine. It is the default execution method when subagent spawning is unavailable or inefficient.
Purpose
- Replace Subagents: Instead of spawning a full subagent for simple tasks, use this skill to run code directly.
- Safety: Isolates execution logic, handles cleanup, and enforces timeouts.
- Convenience: No manual file management required (
write+exec+rm).
Usage
When you need to perform a calculation, check system status, or run a utility script:
- Construct the Node.js code as a string.
- Call
run_task(or execute via CLI) with the code.
Command Line Interface
# Execute a task
node skills/local-task-runner/index.js run --code "console.log('Hello World')"
# Execute with timeout (ms)
node skills/local-task-runner/index.js run --code "while(true){}" --timeout 5000
Response Format
Success:
[TASK: \x3Cid>] Completed in 123ms
--- STDOUT ---
...
Error:
[TASK: \x3Cid>] Failed in 123ms
Error: ...
--- STDERR ---
...
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install local-task-runner - After installation, invoke the skill by name or use
/local-task-runner - Provide required inputs per the skill's parameter spec and get structured output
What is Local Task Runner?
Executes Node.js code snippets or scripts locally with isolation, cleanup, and timeout, serving as a lightweight alternative to spawning subagents. It is an AI Agent Skill for Claude Code / OpenClaw, with 652 downloads so far.
How do I install Local Task Runner?
Run "/install local-task-runner" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Local Task Runner free?
Yes, Local Task Runner is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Local Task Runner support?
Local Task Runner is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Local Task Runner?
It is built and maintained by d-wwei (@d-wwei); the current version is v1.0.0.