core-agent-ide/codex-rs
Michael Bolin 029f39b9da
feat: port maybeRedeemCredits() from get-api-key.tsx to login_with_chatgpt.py (#1221)
This builds on https://github.com/openai/codex/pull/1212 and ports the
`maybeRedeemCredits()` function from `get-api-key.ts` to
`login_with_chatgpt.py`:


a80240cfdc/codex-cli/src/utils/get-api-key.tsx (L84-L89)
2025-06-05 23:34:10 -07:00
..
ansi-escape Update submodules version to come from the workspace (#850) 2025-05-07 10:08:06 -07:00
apply-patch fix: provide tolerance for apply_patch tool (#993) 2025-06-03 09:06:38 -07:00
cli feat: add support for login with ChatGPT (#1212) 2025-06-04 08:44:17 -07:00
common fix(codex-rs): use codex-mini-latest as default (#1164) 2025-05-29 16:55:19 -07:00
core fix: support arm64 build for Linux (#1225) 2025-06-05 20:29:46 -07:00
docs feat: initial import of Rust implementation of Codex CLI in codex-rs/ (#629) 2025-04-24 13:31:40 -07:00
exec feat: make reasoning effort/summaries configurable (#1199) 2025-06-02 16:01:34 -07:00
execpolicy chore: replace regex with regex-lite, where appropriate (#1200) 2025-06-02 17:11:45 -07:00
linux-sandbox fix: support arm64 build for Linux (#1225) 2025-06-05 20:29:46 -07:00
login feat: port maybeRedeemCredits() from get-api-key.tsx to login_with_chatgpt.py (#1221) 2025-06-05 23:34:10 -07:00
mcp-client fix: honor RUST_LOG in mcp-client CLI and default to DEBUG (#1149) 2025-05-28 17:10:06 -07:00
mcp-server feat: add support for -c/--config to override individual config items (#1137) 2025-05-27 23:11:44 -07:00
mcp-types codex-rs: make tool calls prettier (#1211) 2025-06-03 14:29:26 -07:00
scripts chore: script to create a Rust release (#759) 2025-04-30 12:39:03 -07:00
tui feat: add support for login with ChatGPT (#1212) 2025-06-04 08:44:17 -07:00
.gitignore fix: support arm64 build for Linux (#1225) 2025-06-05 20:29:46 -07:00
Cargo.lock feat: add support for login with ChatGPT (#1212) 2025-06-04 08:44:17 -07:00
Cargo.toml feat: add support for login with ChatGPT (#1212) 2025-06-04 08:44:17 -07:00
config.md feat: make reasoning effort/summaries configurable (#1199) 2025-06-02 16:01:34 -07:00
default.nix restructure flake for codex-rs (#888) 2025-05-13 13:08:42 -07:00
justfile fix: enable set positional-arguments in justfile (#1169) 2025-05-30 09:11:53 -07:00
README.md docs: split the config-related portion of codex-rs/README.md into its own config.md file (#1165) 2025-05-29 16:59:35 -07:00
rustfmt.toml Update cargo to 2024 edition (#842) 2025-05-07 08:37:48 -07:00

Codex CLI (Rust Implementation)

We provide Codex CLI as a standalone, native executable to ensure a zero-dependency install.

Installing Codex

Today, the easiest way to install Codex is via npm, though we plan to publish Codex to other package managers soon.

npm i -g @openai/codex@native
codex

You can also download a platform-specific release directly from our GitHub Releases.

Config

Codex supports a rich set of configuration options. See config.md for details.

Model Context Protocol Support

Codex CLI functions as an MCP client that can connect to MCP servers on startup. See the mcp_servers section in the configuration documentation for details.

It is still experimental, but you can also launch Codex as an MCP server by running codex mcp. Using the @modelcontextprotocol/inspector is

npx @modelcontextprotocol/inspector codex mcp

Code Organization

This folder is the root of a Cargo workspace. It contains quite a bit of experimental code, but here are the key crates:

  • core/ contains the business logic for Codex. Ultimately, we hope this to be a library crate that is generally useful for building other Rust/native applications that use Codex.
  • exec/ "headless" CLI for use in automation.
  • tui/ CLI that launches a fullscreen TUI built with Ratatui.
  • cli/ CLI multitool that provides the aforementioned CLIs via subcommands.