# 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 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.