Claude Code uses Bun written in Rust now

Simon Willison's Blog News

Summary

Claude Code v2.1.181+ uses the Rust port of Bun, resulting in a 10% faster startup on Linux. Evidence shows it ships with a preview version of Bun v1.4.0.

No content available
Original Article
View Cached Full Text

Cached at: 07/20/26, 09:37 AM

# Claude Code uses Bun written in Rust now Source: [https://simonwillison.net/2026/Jul/19/claude-code-in-bun-in-rust/](https://simonwillison.net/2026/Jul/19/claude-code-in-bun-in-rust/) 19th July 2026 In[Rewriting Bun in Rust](https://bun.com/blog/bun-in-rust)Jarred Sumner made the following claim: > Claude Code v2\.1\.181 \(released June 17th\) and later use the Rust port of Bun\. Startup got 10% faster on Linux but otherwise, barely anyone noticed\. Boring is good\. I decided to have a poke at my own Claude Code installation to see if I could find evidence that it was using Bun written in Rust\. I found these two commands convincing: ``` strings ~/.local/bin/claude | grep -m1 'Bun v1' ``` For me this outputs`Bun v1\.4\.0 \(macOS arm64\)`\. The most recent release of[Bun on GitHub](https://github.com/oven-sh/bun/releases)is currently[v1\.3\.14](https://github.com/oven-sh/bun/releases/tag/bun-v1.3.14)from May 12th, so that v1\.4\.0 version number in Claude supports them shipping a preview of a not\-yet\-released Bun version\. \(**Update**: The Rust version*has*been released as[Bun canary](https://bun.com/docs/installation#canary-builds)\- running`bun upgrade \-\-canary`will install[this release](https://github.com/oven-sh/bun/releases/tag/canary)\.\) ``` strings ~/.local/bin/claude | grep -Eo 'src/[[:alnum:]_./-]+\.rs' ``` This outputs a list of[563 filenames](https://gist.github.com/simonw/c92fb0f67b114ac26e3b95a09ddccfdc), starting with these: ``` src/runtime/bake/dev_server/mod.rs src/runtime/bake/production.rs src/bundler/bundle_v2.rs ``` It looks like Bun in Rust is indeed being run in production across millions of different devices\. Like Jarred said, "Boring is good"\. **Update**: Here's a neat trick[from Ajan Raj](https://twitter.com/ajanraj25/status/2078825794701242697): ``` cat > /tmp/bun-version.ts <<'EOF' console.log("embedded bun:", Bun.version); process.exit(0); EOF BUN_OPTIONS="--preload=/tmp/bun-version.ts" claude --version ``` This outputs`1\.4\.0`for me\. Here's[the commit from May 17th](https://github.com/oven-sh/bun/commit/b18bf6d1d0a92238f240bfd125f0e3b3461b9243#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519)that updated the version in`package\.json`to 1\.4\.0\. That version hasn't been changed since then, but also hasn't yet made it into a tagged release outside of`canary`\.

Similar Articles

Claude Code uses Bun written in Rust now

Hacker News Top

Claude Code, Anthropic's AI code assistant, has started using a Rust port of Bun as its JavaScript runtime, resulting in a 10% startup improvement on Linux, though the change went largely unnoticed. The article confirms the use of Bun v1.4.0 in the Claude Code binary via embedded Rust source files.

Bun Has Been Converted to Rust. Now What?

Hacker News Top

Anthropic acquired Bun and used Claude Code agents to rewrite the entire runtime from Zig to Rust in nine days. The rewrite passed 99.8% of tests but introduced over 10,000 unsafe blocks, raising questions about the benefits of memory safety.

@jaywcjlove: Bun official blog 'Rewriting Bun in Rust' uses 64 Claude AI instances to batch auto-detect, modify, review, and fix Rust project code errors. Why rewrite Bun in Rust? I think the porting effect of Claude AI exceeded expectations

X AI KOLs Timeline

Bun official blog announces rewriting Bun in Rust, and with the help of 64 Claude AI instances automatically detects, modifies, reviews and fixes code errors in Rust projects in batches, reflecting the unexpectedly good effect of AI in code porting.

Bun's Rust rewrite has been merged

Lobsters Hottest

Bun, the JavaScript runtime and package manager, has merged a rewrite of its core from Zig to Rust, potentially improving performance and maintainability.

Rewrite Bun in Rust has been merged

Hacker News Top

The Bun JavaScript runtime and toolkit has been rewritten in Rust, marking a major change from its original Zig implementation.