AI4 views

OpenAI Rewrites Codex CLI in Rust for Better Performance and Simplicity

OpenAI has taken a major step toward improving its developer tooling by rewriting the Codex Command Line Interface (CLI) in Rust. According to the project maintainer, the new version eliminates the need for external dependencies, such as Node.js 22 or higher, making installation and usage simpler for developers.

The transition to Rust brings notable performance benefits. Rust’s design allows for reduced memory usage and eliminates the need for runtime garbage collection, resulting in faster and more predictable behavior. These improvements make the CLI more efficient and lightweight — particularly valuable for developers working in resource-constrained environments.

Despite the migration, OpenAI will continue to support the existing TypeScript version of the Codex CLI with bug fixes. This support will remain in place until the Rust implementation achieves full feature parity and matches the user experience of the current version.

This update was first reported by DevClass, and it reflects OpenAI’s broader trend of adopting high-performance, low-level programming languages like Rust to optimize their tools and services.