# 使用 Homebrew Cask 安装 codex

查看 codex 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install cask:codex
```

## 代理安全回答

codex is an AI coding agent application with local file and tool access potential.

- **凭据访问:** May access repository files, local configs, and credentials exposed to its runtime.
- **远程变更:** Can ask or drive tools that mutate repositories, packages, and cloud services.
- **发布/制品风险:** Can generate code, patches, and release commands.
- **推荐控制:** Run with scanned worktrees and gate sensitive host tool calls.
- **代理使用指南:** Limit workspace scope; require approval before commands expose secrets or change remote state.

其他安装命令:

### macOS

- Homebrew Cask (100%):

```sh
brew install --cask codex
```

  证据: local Homebrew cask metadata

## 软件包事实

- **软件包键:** cask:codex
- **软件包管理器:** Homebrew Cask
- **版本:** 0.146.0
- **来源摘要:** OpenAI's coding agent that runs in your terminal
- **主页:** <https://github.com/openai/codex>
- **最后更新:** 2026-07-29T08:14:29-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- codex (二进制)
- codex (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.146.0
## 项目历史与用法

Codex CLI is OpenAI's local coding agent, packaged as a terminal command and distributed through installation scripts, npm, GitHub releases, and Homebrew cask.

### 项目历史

The official README frames Codex CLI as the local-computer member of the Codex product family, distinct from the editor integrations, desktop app experience, and cloud-based Codex Web. The repository also links to OpenAI's Codex documentation, install/build notes, contributing information, and an open-source fund.

### 采用历史

Codex is packaged for several install paths in its official README: shell install scripts for Mac, Linux, and Windows, npm as @openai/codex, Homebrew cask as codex, and downloadable release binaries. The supplied cask facts identify the Homebrew package as cask:codex.

### 使用方式

The package-facing workflow is simple: install the executable, run codex, and authenticate with a ChatGPT plan or API key. Configuration lives under ~/.codex/config.toml, and local authentication state is stored under ~/.codex/auth.json according to the existing curation.

### 为什么软件包爱好者会关心

For package nerds, Codex is notable because it ships an AI coding agent as a conventional local CLI while also spanning product surfaces: terminal, IDE, desktop app, and cloud. The Homebrew cask packages a fast-moving OpenAI developer tool as a single codex command rather than a traditional library.

### 时间线

- README: Codex CLI is documented as a local coding agent from OpenAI.
- README: Installation paths include shell scripts, npm, Homebrew cask, and GitHub release binaries.

### Related projects

- The README distinguishes Codex CLI from OpenAI's IDE install path, Codex App, and Codex Web, while codex-acp packages Codex for ACP-compatible clients.

### 来源

- <https://github.com/openai/codex#readme>
- <https://developers.openai.com/codex>


## 安全说明

没有找到 codex 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.codex/config.toml

## Credential files

- Unix: ~/.codex/auth.json
## 其他软件包管理器记录

- Nix - codex: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/codex/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - codex: normalized package name match | MacPorts ports tree: llm/codex/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/codex: normalized package name match | Scoop official bucket manifest trees: bucket/codex.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - OpenAI.Codex: normalized package name match | Windows Package Manager source index: OpenAI.Codex from https://cdn.winget.microsoft.com/cache/source.msix
- winget - WalkingWiFi.CodexRateLimitTray: normalized package name match | Windows Package Manager source index: WalkingWiFi.CodexRateLimitTray from https://cdn.winget.microsoft.com/cache/source.msix
- winget - jcv8000.Codex: normalized package name match | Windows Package Manager source index: jcv8000.Codex from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/codex.yml](https://github.com/mxcl/pkgdb/blob/main/combined/codex.yml)


## 来源

- pkg.so package database
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
