Add support/installation for Codex
Codex is the second major agentic CLI out there after Claude Code. Would be awesome to natively support it as well.
Please!!!
+1 NEED THIS!
+1 !
You can build a wrapper and add the the rules of codex to route to rtk.. its not perfect, but it can already work.
Would this be acceptable ? https://github.com/rtk-ai/rtk/pull/377
+1
+1
+1 need this
+1
+1
+1
Please add Codex!
Add please
Proposed a solution: #642
The idea is:
- RTK patches Codex’s documented config surface (
~/.codex/config.toml) - RTK prepends an RTK-managed shim directory to the PATH used by Codex subprocesses
- selected commands resolve to RTK first
- RTK decides whether to rewrite or pass through
- Codex still sees the original command for rules / approval semantics
It also supports uninstall and limits PATH changes to Codex sessions only as mentioned in https://github.com/rtk-ai/rtk/pull/424#issuecomment-4042559166
I just discovered this and given the token burn lately I need it for codex. Plz!
please
For me it's OK, codex is cheap enough, so please make sure Claude Code is fully supported first😄
@yf-hk maybe used to be, but the token burn rate has sky rocketed recently :(
I cloned @HeMuling feature branch for his pull request and built the rtk binary manually on my WSL2 Ubuntu installation and replaced the installed binary with the one I built. The codex feature installs and appears to work. So anyone waiting for this feature, at your own risk you can clone the PR source repo, checkout the feature branch, build it and replace your installed rtk binary.
Thanks for testing on Linux! @RickKukiela
Fixed a macOS-specific issue.
Now the patched version works great on Mac codex (as shown below):
To those who may want to use this version:
git clone --branch 'feat(init)-codex-adapter' https://github.com/HeMuling/rtk.git
cd rtk
cargo build --release --locked
cargo install --path . --locked --force
rtk init --show --codex
make sure:
- git is installed
- Rust/Cargo is installed
- no local checkout already exists