Claude Code Now Runs on Bun Rewritten in Rust: Startup 10% Faster
Bun creator Jarred Sumner announced that, starting with version 2.1.181 (June 17, 2026), Claude Code runs on the Rust port of Bun instead of the Zig version. Developer Simon Willison checked his own installation with the `strings` command and found the string "Bun v1.4.0" plus 563 `.rs` file names, evidence that the Rust version is running in production on millions of devices. Startup on Linux is 10% faster.
AI-processed from Simon Willison; edited by Hamidun News
Starting with version 2.1.181, released on June 17, 2026, Claude Code runs on a version of the Bun runtime rewritten from Zig to Rust. Bun creator Jarred Sumner announced the switch, and on July 19, 2026, developer Simon Willison independently confirmed it by picking apart the Claude Code binary. Startup on Linux is about 10% faster.
How Rust was found inside Claude Code
Simon Willison confirmed the switch by running the strings command on the Claude Code binary with a filter for the string "Bun v1". The output was Bun v1.4.0 (macOS arm64). A second command, which searched for paths of the form src/*.rs, returned a list of 563 file names with the .rs extension, ranging from src/runtime/bake/dev_server/mod.rs to src/bundler/bundle_v2.rs. This is direct evidence that the runtime's Rust code is compiled into the binary.
- Claude Code v2.1.181 — released on June 17, 2026, the first version on the Rust port of Bun
- Embedded runtime — Bun v1.4.0; stable Bun releases currently top out at v1.3.14 (May 12, 2026)
- The
stringscommand found 563 file names with the.rsextension - Startup speedup on Linux — about 10%
- The Rust version is already publicly available as a canary build (
bun upgrade --canary)
Why Claude Code ships Bun 1.4.0, which doesn't exist yet
Claude Code contains Bun v1.4.0, a version that is not yet in Bun's stable releases. The latest tag on GitHub is v1.3.14 from May 12, 2026, while the 1.4.0 number landed in package.json back in a commit from May 17, 2026, and has not changed since. In effect, Anthropic is shipping a pre-release build of the runtime in a production tool used by millions of developers.
You can check the embedded version without strings, too. Developer Ajan Raj suggested a trick: preload a script via the BUN_OPTIONS variable and run claude --version. The command prints 1.4.0, the same runtime version.
"Boring is good" — what Bun's creator says
The transition went so smoothly that almost nobody noticed. That is exactly the point Bun's creator stresses: the main result of the Rust rewrite is not flashy features but stability and a slightly faster startup.
"Claude Code v2.1.181 (released June 17) and later versions use the Rust port of Bun.
Startup on Linux is 10% faster, but otherwise almost nobody noticed. Boring is good," — Jarred Sumner, creator of Bun, in the blog post "Rewriting Bun in Rust."
Simon Willison agrees with the assessment: in his words, "Bun on Rust really is running in production on millions of different devices."
What this means
Anthropic is using Claude Code as a proving ground to run the new Rust version of Bun in real production before its stable release. Users won't notice: the CLI simply starts a bit faster. For the Bun ecosystem, it is a battle test of the Rust port across a huge installed base.
Frequently asked questions
What is Bun?
Bun is a fast JavaScript runtime and an alternative to Node.js, and it is what Claude Code runs on. Bun was originally written in Zig; its core has now been rewritten in Rust.
How can I check which version of Bun is embedded in Claude Code?
Run strings ~/.local/bin/claude | grep -m1 'Bun v1'; the output will show Bun v1.4.0. An alternative from Ajan Raj: run claude --version with the BUN_OPTIONS variable preloading a script that prints Bun.version; the result is the same, 1.4.0.
Has Claude Code become faster?
Yes, but only slightly: according to Jarred Sumner, startup on Linux is about 10% faster. On other platforms, the difference is barely noticeable to the user.
- Dec 2, 2026Ai2 Releases MolmoWeb2 Web Agents: 27B Model Solves 75.3% of Tasks
- Dec 2, 202650 AI Models Beat 62 Teams at 'Zakovat': 48.3% Correct Answers vs 39.8%
- Dec 2, 2026Claude Fable 5.2 ran 1,000 agents for eight days and built an operating system
- Dec 2, 2026Amazon Releases Ergo Open Weights for Coding: 1.1 Trillion Parameters and 2,200 Tokens per Second
Key Questions Answered
What is Bun?
Bun is a fast JavaScript runtime and an alternative to Node.js, and it is what Claude Code runs on. Bun was originally written in Zig; its core has now been rewritten in Rust.
How can I check which version of Bun is embedded in Claude Code?
Run strings ~/.local/bin/claude | grep -m1 'Bun v1'; the output will show Bun v1.4.0. An alternative from Ajan Raj: run claude --version with the BUN_OPTIONS variable preloading a script that prints Bun.version; the result is the same, 1.4.0.
Has Claude Code become faster?
Yes, but only slightly: according to Jarred Sumner, startup on Linux is about 10% faster. On other platforms, the difference is barely noticeable to the user.
Free 2-Day Vibecoding & AI Agents Intensive
Day 1: the autonomous Hermes + DeepSeek AI agent — vibecoding and development on par with Claude Code / Codex / Gemini. Led by Jemal Hamidun, Head of AI at Alpina Digital and academic supervisor at MIPT. Right after you register with our bot Nika: the recording + 11 materials from the previous intensive.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
