# Bun runtime

> Bun runtime is an open-source agent skill for developer tools. Guides your agent through using Bun for installs, scripts, bundling, tests and Vercel. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/Fmarzochi/EGC/tree/main/.agents/skills/bun-runtime
- **Repository:** https://github.com/fmarzochi/egc
- **GitHub stars:** 71
- **License:** Apache-2.0
- **Skill name:** bun-runtime
- **Collection:** https://github.com/Fmarzochi/EGC
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill gives the agent working knowledge of Bun, an all-in-one JavaScript and TypeScript toolkit that covers running code, installing packages, bundling and testing. It explains when Bun is a good fit compared with Node, and when Node remains the safer choice because of ecosystem or legacy tooling concerns.

For existing projects, the skill walks through migrating from Node by swapping node invocations for bun run, using bun install in place of npm, and treating bun x as the npx equivalent. It also covers Vercel setup, including selecting the Bun runtime in project settings and using frozen-lockfile installs for reproducible deploys. Examples show env-file loading, the built-in bun test runner with a Jest-style API, and a few Bun runtime APIs such as Bun.file and Bun.serve.

The skill is instructions only, with no bundled scripts. It assumes the Bun CLI is installed locally and works with JavaScript or TypeScript projects.

## When your agent uses it

> Bun as runtime, package manager, bundler, and test runner. When to choose Bun vs Node, migration notes, and Vercel support.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/Fmarzochi/EGC/tree/HEAD/.agents/skills/bun-runtime)
- [License: Apache-2.0](https://github.com/Fmarzochi/EGC/tree/HEAD/.agents/skills/bun-runtime)

## Features

- **Runtime selection guidance:** Explains when to choose Bun over Node based on speed, toolchain consolidation and compatibility trade-offs.
- **Node migration steps:** Covers replacing node, npm install and npx calls with their Bun equivalents.
- **Built-in test runner:** Shows how to write and run tests with bun test, including watch mode.
- **Lockfile handling:** Describes the bun.lock and older bun.lockb formats and committing the lockfile for reproducible installs.
- **Vercel deployment setup:** Outlines setting the Bun runtime and build and install commands for Vercel projects.
- **Runtime API examples:** Demonstrates reading files with Bun.file and starting an HTTP server with Bun.serve.

## Good for

- Migrate an existing Node project to Bun for installs and scripts
- Set up a TypeScript project to run and test with Bun
- Configure a Vercel deployment to build and run with Bun
- Write a Bun test file using the Jest-style API
- Decide whether Bun or Node fits a new project

## Install

### Claude Code

This skill ships in the `egc` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add Fmarzochi/EGC
/plugin install egc@egc
```

Or copy only this skill to `~/.claude/skills/bun-runtime`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/bun-runtime &&
cp -R "$tmp/.agents/skills/bun-runtime" ~/.claude/skills/bun-runtime &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/bun-runtime` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/bun-runtime` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/bun-runtime &&
cp -R "$tmp/.agents/skills/bun-runtime" ~/.agents/skills/bun-runtime &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/bun-runtime` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/bun-runtime` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/bun-runtime &&
cp -R "$tmp/.agents/skills/bun-runtime" ~/.cursor/skills/bun-runtime &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/bun-runtime` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/Fmarzochi/EGC.git --path .agents/skills/bun-runtime
```

Or copy the folder to `~/.gemini/skills/bun-runtime` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/bun-runtime`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/bun-runtime &&
cp -R "$tmp/.agents/skills/bun-runtime" ~/.copilot/skills/bun-runtime &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/bun-runtime` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/Fmarzochi/EGC.git
```

Then copy `EGC/.agents/skills/bun-runtime` into your agent's skills folder as `bun-runtime`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does the skill run any scripts or change my files?

No. It contains only instructions and examples, with no bundled scripts.

### Can I keep using npm packages with Bun?

The skill says most packages work with bun install, but it recommends checking for known issues in specific dependencies.

### What lockfile does Bun use?

Current Bun versions use a text lockfile named bun.lock by default. Older versions used the binary bun.lockb.

### Which Vercel settings does Bun runtime cover?

It covers setting the runtime to Bun, the build command and an install command using bun install --frozen-lockfile.

### How do I install Bun runtime in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/bun-runtime to use it in all your projects, or to .claude/skills/bun-runtime in one project. Or install the egc plugin, which includes it: /plugin marketplace add Fmarzochi/EGC, then /plugin install egc@egc.

### Does Bun runtime run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Bun runtime?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Bun runtime?

The closest alternatives to Bun runtime are Bun runtime, Vercel sandbox, Uno sandbox, Build tooling and Briq sandbox.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Bun runtime](https://ai-powered.com/skills/bun-runtime): Bun runtime is an open-source agent skill for developer tools.
- [Vercel sandbox](https://ai-powered.com/skills/vercel-sandbox): Vercel sandbox is an open-source agent skill for cloud and infrastructure.
- [Uno sandbox](https://ai-powered.com/skills/uno-sandbox): Uno sandbox is an open-source agent skill for cloud and infrastructure.
- [Build tooling](https://ai-powered.com/skills/build-tooling): Build tooling is an open-source agent skill for developer tools.
- [Briq sandbox](https://ai-powered.com/skills/briq-sandbox): Briq sandbox is an open-source agent skill for developer tools.
- [Sandbox NPM install](https://ai-powered.com/skills/sandbox-npm-install): Sandbox NPM install is an open-source agent skill for developer tools.
- [V development](https://ai-powered.com/skills/v-development): V development is an open-source agent skill for developer tools.
- [Nuxt](https://ai-powered.com/skills/nuxt): Nuxt is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/bun-runtime-fmarzochi
