AI在线 AI在线

OpenAI Fully Transitions to Rust for Refactoring Codex CLI to Improve Performance

Recently, OpenAI announced that it will restructure its Codex CLI tool, completely abandoning TypeScript and switching to the Rust language. This decision aims to provide developers with a more efficient and stable AI terminal interaction experience. Codex CLI was initially designed to simplify developers' interactions with AI in the terminal, using TypeScript and the React-based Ink framework.

Recently, OpenAI announced that it will restructure its Codex CLI tool, completely abandoning TypeScript and switching to the Rust language. This decision aims to provide developers with a more efficient and stable AI terminal interaction experience. Codex CLI was initially designed to simplify developers' interactions with AI in the terminal, using TypeScript and the React-based Ink framework. However, as Codex CLI continued to evolve, the team found that TypeScript struggled to handle increasingly complex use cases.

OpenAI

Image source note: The image is AI-generated, and the image licensing service is Midjourney

OpenAI's technical team member Fouad Matin stated on a GitHub discussion: "We are rewriting Codex CLI in Rust." Although the TypeScript version performed well in rapid prototyping, its limitations became apparent as demands increased. To improve performance and maintainability, OpenAI has decided to completely replace the TypeScript version and focus on developing the Rust version in the future.

Regarding the core advantages of the Rust language, Matin pointed out several key improvements. First, Rust can offer a better installation experience; the current TypeScript version requires Node v22 or higher, which is a barrier for some users. Second, Rust provides better native bindings for security. Additionally, Rust offers better runtime performance, avoiding runtime garbage collection and reducing memory consumption.

OpenAI also plans to develop a "communication protocol" within Codex CLI, allowing developers to extend the tool using multiple languages such as TypeScript/JavaScript and Python. This means Codex CLI will not only be a tool but also an extensible, multi-language plugin-friendly runtime, supporting model-based automation.

Although the Rust version is still under development, developer feedback has been very positive. One user said, "The native Codex runs very smoothly," although there are still some differences between the TypeScript and Rust versions, such as support for configuration files and login features. OpenAI is addressing these issues systematically, ensuring that the Rust version will soon match the TypeScript version in functionality.

Overall, this shift by OpenAI is not just an update to the codebase, but a realignment of the future direction of Codex CLI. From a simple terminal tool, it is transforming into a programmable intelligent agent. The Rust-restructured Codex CLI will be more flexible, portable, and maintainable in the long run, providing developers with more robust support in practical applications.

Key points:

🌟 OpenAI announced the restructuring of Codex CLI, abandoning TypeScript and moving to Rust to improve performance.  

🔧 Rust provides better installation experience and security for Codex CLI, while also reducing memory consumption.  

🚀 The restructured Codex CLI will become a multi-language plugin-friendly tool, supporting more complex development needs.

相关资讯

OpenAI 全面转向 Rust,重构 Codex CLI 以提升性能

近日,OpenAI 宣布将重构其 Codex CLI 工具,彻底放弃 TypeScript,转而采用 Rust 语言。 这一决定旨在为开发者提供更高效、更稳定的 AI 终端交互体验。 Codex CLI 最初是为简化开发者在终端与 AI 交互而设计的,采用了 TypeScript 和基于 React 的 Ink 框架。
6/26/2025 2:00:48 PM
AI在线

OpenAI用Rust重新打造Codex CLI,告别Node.js

近日,科技媒体 Dev Class 报道,OpenAI 宣布将其 AI 编程工具 Codex CLI 从原本的 Node.js 架构迁移到 Rust 语言重写。 这一决定引发了业界的广泛关注,特别是对于技术开发者和用户而言,Rust 的加入可能会带来诸多意想不到的优势。 Codex CLI 是 OpenAI 开发的一款实验性 AI 编程工具,用户可以通过 ChatGPT 的网页界面或本地命令行进行操作。
6/3/2025 9:01:04 AM
AI在线

OpenAI开源超Agent:Codex CLI,五小时内破 5000 颗星

OpenAI 正式发布了其最新开源项目 Codex CLI,这是一款轻量级的代码智能体工具。 该工具的发布迅速引起了极大的关注,仅在短短5小时内,Codex CLI 便突破了5000颗星的评价,预计今天有望突破1万颗星,迅速成为 Github 上的一颗新星。 OpenAI 的联合创始人兼总裁 Greg Brockman 表示,Codex CLI 只是他们代码工具系列的第一款,未来将继续推出更多的智能体产品。
4/17/2025 9:01:05 AM
AI在线
  • 1