Making Codex CLI and Codex.app Use mise-managed Ruby and Node.js
The article discusses how to configure Codex CLI and Codex.app to utilize mise-managed Ruby and Node.js. The author encountered issues due to Codex's sandboxed environment, which prevented the proper loading of environment variables. A solution was found by modifying the ~/.zshenv file to include mise shims in the PATH for non-interactive shells.
- ▪The author primarily uses Codex CLI and Codex.app on macOS.
- ▪Codex's command execution environment operates within a sandbox, which restricts certain functionalities.
- ▪The solution involved adding mise shims to the PATH in the ~/.zshenv file to ensure proper environment variable loading.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 44998) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Takashi Masuda Posted on May 30 • Originally published at masutaka.net Making Codex CLI and Codex.app Use mise-managed Ruby and Node.js #codex #mise I mostly use Claude Code, but lately I've been using Codex CLI and Codex.app (hereafter "Codex") more often too. My environment is macOS. However, after I started using mise in [2026-03-29-1], I ran into trouble because Codex wouldn't use the mise-managed Ruby, Node.js, and so on.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).