How do I even uninstall this?
Open 💬 5 comments Opened Jun 16, 2026 by serkor1
What is the type of issue?
Documentation is missing
What is the issue?
There is no guide on how to uninstall codex-cli—which is a critically missing piece of information.
I asked ask ChatGPT-pro on how to uninstall it, and this was answer it gave:
set +e
# 0) Remove stored Codex auth first, if the command still works
if command -v codex >/dev/null 2>&1; then
codex logout || true
fi
# 1) Stop any running Codex process
pkill -x codex 2>/dev/null || true
# 2) npm installs
if command -v npm >/dev/null 2>&1; then
npm uninstall -g @openai/codex || true
npm uninstall -g codex || true
# Use this for root/global installs under /usr/local, /usr, etc.
if command -v sudo >/dev/null 2>&1; then
sudo npm uninstall -g @openai/codex || true
sudo npm uninstall -g codex || true
fi
fi
# 3) Bun global installs
if command -v bun >/dev/null 2>&1; then
bun remove -g @openai/codex || true
bun remove -g codex || true
fi
# 4) Homebrew/Linuxbrew installs
if command -v brew >/dev/null 2>&1; then
brew uninstall --cask codex || true
brew uninstall codex || true
fi
# 5) Official standalone installer default location
rm -f "$HOME/.local/bin/codex"
rm -rf "$HOME/.codex/packages/standalone"
# Refresh shell command cache and verify
hash -r
echo "Remaining codex paths, if any:"
type -a codex 2>/dev/null || echo "none"
If you do not provide the documentation on how to do it, at least provide a uninstall.sh or something similar.
Where did you find it?
Not in the documentation.
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗