Bun Runtime for Openclaw

A high-performance interface for executing native Bun runtime operations including optimized filesystem I/O, process execution, and network requests.

rabin-thami
v1.0.0
Jan 31, 2026
0
3.1k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install bun-runtime

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 bun-runtime 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 Bun Runtime?

The Bun Runtime skill provides a powerful set of tools designed to leverage the speed and efficiency of the Bun environment. By utilizing native Bun APIs such as Bun.file, Bun.write, and Bun.glob, this skill ensures that filesystem and network operations are significantly faster than traditional Node.js alternatives. It is a core component for developers looking to integrate high-performance scripting into their Openclaw Skills ecosystem.

This skill simplifies complex tasks by wrapping native Bun functions into accessible shell scripts. Whether you are managing large-scale file transformations or executing rapid network fetches, the Bun Runtime skill provides the stability and speed required for modern AI-driven development workflows.

Bun Runtime Use Cases

  • Working with high-performance native file APIs like Bun.file and Bun.write.
  • Performing fast file discovery using optimized glob patterns.
  • Executing shell commands and managing child processes directly through the Bun runtime.
  • Making low-latency network requests using Bun's native fetch implementation.
  • Automating directory and file management tasks within Openclaw Skills pipelines.

How Bun Runtime Works

  1. The user or agent initiates a specific operation request, such as reading a file or making an HTTP call.
  2. Openclaw Skills invokes the corresponding bash script located in the scripts directory.
  3. The script executes the native Bun operation, benefiting from internal performance optimizations and automatic directory handling.
  4. The results are captured and returned as a structured JSON object for further processing or display.

Bun Runtime Setup

To get started with the Bun Runtime skill, ensure you have Bun installed and the scripts are executable within your Openclaw Skills environment:

# Ensure scripts have execution permissions
chmod +x scripts/bun-fs.sh
chmod +x scripts/bun-glob.sh
chmod +x scripts/bun-process.sh
chmod +x scripts/bun-fetch.sh

Bun Runtime Data Schema & Taxonomy

The skill organizes data using a consistent JSON output format for all operations to ensure compatibility within Openclaw Skills workflows.

Operation Key Outputs Description
Read File content The raw string content of the specified file.
Write File written, path Confirmation of success and the target file path.
Glob Files files, count An array of matching file paths and the total number of matches.
Process stdout, stderr The standard output or error from executed shell commands.

Bun Runtime Advanced Features

  • Native I/O optimization for handling large files without blocking the event loop.
  • Automatic recursive directory creation during file write operations.
  • High-speed file pattern matching using native Bun globbing.
  • Built-in error handling that returns technical details in a clean JSON format for Openclaw Skills integration.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*