# codex-zh **Repository Path**: itql/codex-zh ## Basic Information - **Project Name**: codex-zh - **Description**: 基于 openai/codex 的本地汉化维护版,包含 Codex CLI Rust TUI 中文界面、低内存编译安装脚本与升级说明。 - **Primary Language**: C++ - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: https://gitee.com/itql/codex-zh/blob/main/README.zh-CN.md - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2026-04-08 - **Last Updated**: 2026-10-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: codex, openAI, Rust, 中文汉化 ## README

npm i -g @openai/codex
or brew install --cask codex

Codex CLI is a coding agent from OpenAI that runs locally on your computer.

Codex CLI splash


If you want Codex in your code editor (VS Code, Cursor, Windsurf), install in your IDE.
If you want the desktop app experience, run codex app or visit the Codex App page.
If you are looking for the cloud-based agent from OpenAI, Codex Web, go to chatgpt.com/codex.

> 中文说明 > > 这是一个基于上游 `openai/codex` 的本地汉化维护仓库,主要包含 `codex-rs/tui` 的中文界面修改。 > > - 中文使用说明:[`README.zh-CN.md`](./README.zh-CN.md) > - 中文变更记录:[`CHANGELOG.zh-CN.md`](./CHANGELOG.zh-CN.md) > - 当前汉化开发分支:`zh-localization-20260408` > - 如需同步上游更新后重新编译,请优先阅读中文说明中的“升级流程” ## Chinese Edition At A Glance This repository is maintained as a Chinese-localized edition of Codex CLI, focused on a locally compiled Rust TUI experience. | Item | Details | | --- | --- | | Project goal | Maintain a usable Chinese-localized Codex CLI based on upstream `openai/codex` | | Main changes | `codex-rs/tui` interface text, related snapshots, local install workflow | | Default branch | `main` | | Working branch | `zh-localization-20260408` | | Chinese guide | [`README.zh-CN.md`](./README.zh-CN.md) | | Chinese changelog | [`CHANGELOG.zh-CN.md`](./CHANGELOG.zh-CN.md) | | Maintenance notes | [`docs/zh-localization-maintenance.md`](./docs/zh-localization-maintenance.md) | ### Chinese Quick Start Build with lower memory usage: ```bash cd /root/codex-src/codex-rs PATH=/root/.cargo/bin:$PATH \ CARGO_PROFILE_RELEASE_LTO=off \ CARGO_PROFILE_RELEASE_CODEGEN_UNITS=16 \ cargo build --release -p codex-cli -j 1 ``` Run directly: ```bash /root/codex-src/codex-rs/target/release/codex ``` Install to the current machine: ```bash /root/patch-codex-zh-v118.mjs ``` --- ## Quickstart ### Installing and running Codex CLI Install globally with your preferred package manager: ```shell # Install using npm npm install -g @openai/codex ``` ```shell # Install using Homebrew brew install --cask codex ``` Then simply run `codex` to get started.
You can also go to the latest GitHub Release and download the appropriate binary for your platform. Each GitHub Release contains many executables, but in practice, you likely want one of these: - macOS - Apple Silicon/arm64: `codex-aarch64-apple-darwin.tar.gz` - x86_64 (older Mac hardware): `codex-x86_64-apple-darwin.tar.gz` - Linux - x86_64: `codex-x86_64-unknown-linux-musl.tar.gz` - arm64: `codex-aarch64-unknown-linux-musl.tar.gz` Each archive contains a single entry with the platform baked into the name (e.g., `codex-x86_64-unknown-linux-musl`), so you likely want to rename it to `codex` after extracting it.
### Using Codex with your ChatGPT plan Run `codex` and select **Sign in with ChatGPT**. We recommend signing into your ChatGPT account to use Codex as part of your Plus, Pro, Team, Edu, or Enterprise plan. [Learn more about what's included in your ChatGPT plan](https://help.openai.com/en/articles/11369540-codex-in-chatgpt). You can also use Codex with an API key, but this requires [additional setup](https://developers.openai.com/codex/auth#sign-in-with-an-api-key). ## Docs - [**Codex Documentation**](https://developers.openai.com/codex) - [**Contributing**](./docs/contributing.md) - [**Installing & building**](./docs/install.md) - [**Open source fund**](./docs/open-source-fund.md) This repository is licensed under the [Apache-2.0 License](LICENSE).