- Published on
AI Tools on Mac
- Authors
- Name
- Gene Zhang
Always run latest AI tools via npx
vim ~/.zshrc
alias codex="OPENAI_API_KEY=<your-key-here> npx --yes @openai/codex"
alias gemini="npx --yes @google/gemini-cli"
alias claude="npx --yes @anthropic-ai/claude-code"
alias claude-danger="npx --yes @anthropic-ai/claude-code --dangerously-skip-permissions"
alias ccusage="npx --yes ccusage@latest"
Then source the file:
source ~/.zshrc
To fix the npx permission issue, run the following command from its error message:
npm error To permanently fix this problem, please run:
npm error sudo chown -R 501:20 "/Users/jiaqi/.npm"
sudo chown -R 501:20 "/Users/jiaqi/.npm"