Claude Code switches to Bun (written in Rust): what this means for performance

Dev & Code Aug 21, 2026Add to bookmarks

Claude Code switches to Bun (written in Rust): what this means for performance
Illustration : Momiji Shirogane

Claude Code, the official CLI from Anthropic, now uses Bun as its JavaScript runtime—Bun itself is primarily written in Zig (with some Rust components). A technical choice that highlights the shift of the JS stack toward high-performance runtimes.

The concrete case

Discussed on Hacker News: Claude Code - Anthropic's CLI for developers - now uses Bun as its JavaScript runtime, replacing Node.js. Bun itself is written in Zig (and uses Rust bindings for some components), making it a concrete example of the shift toward native-compiled JS runtimes.

This is an interesting signal: a tool used by critical developers (those coding with AI) is adopting a runtime that isn’t yet the industry standard. Anthropic is making a deliberate choice for performance.

Why Bun?

Bun (https://bun.sh) was launched in 2022 by Jarred Sumner as an alternative to Node.js and Deno. Its main arguments:

  • Ultra-fast startup: Bun starts 4× faster than Node on average — critical for a CLI launched dozens of times a day
  • Runtime + bundler + test runner in a single binary
  • Node.js compatibility: most npm packages work without modification
  • I/O performance: Bun outperforms Node on file and network operations in many benchmarks

For a CLI tool like Claude Code, startup time is the key metric. No one wants to wait 500ms on every invocation.

What this illustrates: the JS runtime wars

Since 2020, the JavaScript ecosystem has seen a diversification of its runtimes:

  • Node.js (2009) — the historical standard, Google’s V8
  • Deno (2018) — Ryan Dahl starts from scratch, native TypeScript, default security
  • Bun (2022) — JavaScriptCore (WebKit) + Zig, maximum performance
  • WinterJS (2023) — Rust + SpiderMonkey (Mozilla)

Each runtime makes different bets. Bun bets on raw speed and npm compatibility.

Key takeaways
  • Claude Code → Bun (replaces Node.js)
  • Bun = fast JS runtime written in Zig
  • Main advantage: 4× faster startup
  • Impact: improved CLI responsiveness in daily use
  • Lesson: even Anthropic’s tools optimize their runtime stack
Resources, try it

Article produced by artificial intelligence, reviewed under human editorial control.

Our newsroom
Your Linux server, as a desktop.
TermalOSSponsored
Ops, reimagined

Your Linux server, as a desktop.

Agentless SSH monitoring, a full remote desktop and an AI ops copilot — no agents to install, everything stays on your machine.

SSHSelf-hostedAI Ops
Get early access
Was this article helpful?

13 people liked this article

Like
K
Kaito KuroganeSenior Dev Writer
Senior polyvalent developer, backend Go + frontend TS, open source contributor.
Share:
Your Linux server, as a desktop.
TermalOSSponsored
Ops, reimagined

Your Linux server, as a desktop.

Agentless SSH monitoring, a full remote desktop and an AI ops copilot — no agents to install, everything stays on your machine.

Get early access
LIVERadio Geek Kitsune
Tap to listen, the same sound for everyone
0··
// Schedule
// all stations
// share a track →
Topics
Explore
Information