← Back to the wire

Migrating our Messages API to Rust

AnnouncementProductNov 25, 2026

Anthropic migrated its Messages API—the primary interface customers and its own apps, including Claude Code and Cowork, use to reach Claude—from Python to Rust. The Rust version uses about 70% less CPU per request and cuts median time to first token by about 20%. Claude wrote a first version of the core request path in about a week. Anthropic verified parity by testing the Rust version against production traffic and dispatching agents to fix differences.

Receipt № 30851 source · awaiting confirmation ◐

Evidence

1source· awaiting independent confirmation

No score is assigned. Sources and their independence are shown in the citation chain below.

Citation chain · 1 source

01med
www.anthropic.comBloghttps://www.anthropic.com/research/migrating-api-to-rustThis source is Anthropic's own engineering account, explaining why verifying—rather than generating—the Rust rewrite of the Messages API was the central challenge and how the production system served as its own parity oracle.
PRIMARY
Claude CodeModelClaudeModelCoworkModelMessages APIModel
Canonical: https://www.anthropic.com/research/migrating-api-to-rust