@Tao100086: Codex 的核心 Agent Harness 已经公开,并采用 Apache-2.0 许可证。官方 GitHub 地址是: OpenAI Codex 官方仓库:https://github.com/openai/codex Rust 版…
摘要
OpenAI 开源了 Codex 的核心 Agent Harness,采用 Apache-2.0 许可证,提供 Rust 版本的实现,并通过 GitHub 公开。
查看缓存全文
缓存时间: 2026/08/21 21:17
Codex 的核心 Agent Harness 已经公开,并采用 Apache-2.0 许可证。官方 GitHub 地址是: OpenAI Codex 官方仓库:https://github.com/openai/codex Rust 版 Harness 主体:codex-rs,https://github.com/openai/codex/tree/main/codex-rs… 核心 Agent Loop:codex-rs/core https://github.com/openai/codex/tree/main/codex-rs/core…
OpenAI 没有另外建立一个名为 codex-harness 的独立仓库。大家所说的 Codex Harness,主要就是 openai/codex 仓库里的 codex-rs,特别是 codex-rs/core。
OpenAI 把它称为 Codex harness,定义为负责模型、用户与工具之间编排的核心 Agent Loop。
自己的Agent架构还在开发,这一个一个的都在开源,怎么办,继续学习去…..
openai/codex
Source: https://github.com/openai/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.
Quickstart
Installing and running Codex CLI
Run the following on Mac or Linux to install Codex CLI:
curl -fsSL https://chatgpt.com/codex/install.sh | sh
Run the following on Windows to install Codex CLI:
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"
The standalone installers download from https://releases.openai.com/codex by default and fall back to GitHub Releases if a metadata or asset download is unavailable. To force GitHub Releases, set CODEX_INSTALLER_USE_RELEASES_OPENAI_COM to false (0 and no are also accepted):
curl -fsSL https://chatgpt.com/codex/install.sh | CODEX_INSTALLER_USE_RELEASES_OPENAI_COM=false sh
$env:CODEX_INSTALLER_USE_RELEASES_OPENAI_COM='false'; irm https://chatgpt.com/codex/install.ps1 | iex
Codex CLI can also be installed via the following package managers:
# Install using npm
npm install -g @openai/codex
# 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
- Apple Silicon/arm64:
- Linux
- x86_64:
codex-x86_64-unknown-linux-musl.tar.gz - arm64:
codex-aarch64-unknown-linux-musl.tar.gz
- x86_64:
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, Business, Edu, or Enterprise plan. Learn more about what’s included in your ChatGPT plan.
You can also use Codex with an API key, but this requires additional setup.
Docs
This repository is licensed under the Apache-2.0 License.
OpenAI Developers (@OpenAIDevs): Teams are using the open-source Codex harness to bring agents into the tools they already use, from internal apps to operations dashboards.
Their applications control the interface, context, tools, and approvals while the harness handles the agent loop.
相似文章
@mylifcc: OpenAI 把 Codex 项目的 AGENTS.md 公开在 GitHub 了! 这是他们 Rust 代码库(codex-rs)的内部开发守则,干货密度极高,包含代码风格、模块治理、测试策略、App-server API 设计、Mod…
OpenAI 公开了 Codex 项目的 AGENTS.md 开发守则,涵盖 Rust 代码库的内部规范和治理细节。
在OpenAI安全运行Codex
OpenAI详细介绍了如何部署Codex并配备安全控制措施,包括沙箱隔离、审批策略、网络策略以及智能体原生遥测,以确保企业环境中编码智能体的安全运行。
@Pluvio9yte: OpenAI 内部发了份 PDF,讲他们自家工程师是怎么用 Codex 的 他们的安全、infra、前端、API 团队天天都在用: • 快速搞懂完全陌生的代码库 • 跨几十个文件的重构 • 生成 devs 容易漏掉的 edge case …
OpenAI published a guide detailing how their internal engineering teams use Codex for code understanding, refactoring, performance optimization, and more, highlighting practical use cases and best practices.
@vista8: 这个有点厉害,Codex 出 Python SDK了。 安装指令:pip install openai-codex 整合到自己的代码中,相当于直接内置了顶级编程和生图Agent? 最关键的是,可以复用 Codex 登录态。
OpenAI发布了Codex的Python SDK,允许开发者通过pip安装并嵌入到自己的Python应用中,复用Codex的登录态,实现编程和生图等功能。
@Saccc_c: 我用 Codex 对 DeepSeek Harness的GitHub仓库进行了详细分析 发现其大量使用Codex进行辅助开发,也少量的使用了 Claude Code 总结而言,Deepseek 官方都认可了 Codex 和 Claude,…
作者用 Codex 分析了 DeepSeek Harness 的 GitHub 仓库,发现其大量使用 Codex 和少量 Claude Code 进行辅助开发,暗示 DeepSeek 官方认可这些 AI 编码工具。