LaunchKit · 2026
Back to Skills

bun-runtime

Bun runtime capabilities for filesystem, process.

0
1.7k downloads
by @rabin-thami

Setup & Installation

openclaw skills install @rabin-thami/bun-runtime

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install bun-runtime

What This Skill Does

Exposes Bun's native runtime APIs for filesystem, process, and network operations through shell scripts. Covers file reads and writes via Bun.file() and Bun.write(), pattern-based file globbing with Bun.glob(), shell command execution, and HTTP requests using Bun's native fetch.

Bun's native file and network APIs offer better I/O performance than Node.js equivalents, making it faster for file-heavy or network-heavy automation tasks.

When to use it

  • Reading a config file in a Bun-based project
  • Writing generated content to disk with auto-created directories
  • Finding all .json files in a directory using a glob pattern
  • Running a shell command and capturing its output
  • Fetching data from a REST API endpoint

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Read the contents of /tmp/config.json

AGENT
  1. 1Calls bun-fs.sh with the read subcommand and /tmp/config.json as the path
  2. 2Script invokes Bun.file() internally and returns a JSON object with the file contents
  3. 3Agent extracts the content field from the response
  4. 4Returns the file contents to the user
OUTPUT

Contents of /tmp/config.json returned as a string

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

Bun runtime installed (bun.sh)