After installation, verify your setup with these commands:
# Confirm Codex CLI versioncodex --version# Check auth plugin statuscodex auth status# List configured accounts (may be empty on first install)codex auth list# Test health check commandcodex auth check
If codex auth is not recognized, try using the compatibility alias codex multi auth status or check your global npm installation path.
If you encounter EACCES permission errors on Unix/macOS:
# Option 1: Use a Node version manager (recommended)nvm use 18 # or your preferred version# Option 2: Fix npm permissionsmkdir ~/.npm-globalnpm config set prefix '~/.npm-global'echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrcsource ~/.bashrc