I dedicated a VM for running AI CLI tools. Consider it a kind of a sandbox, if you will.
Install latest Node.js
I decided to go with nvm for managing Node.js. An alternative would have been to install it using the system package manager (such as apt or dnf).
md -p ~/src/nvm cd ~/src/nvm curl -LO https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh bash install.sh
After running the installer you’ll want to review the changes it made to ~/.zshrc and start a new shell so that nvm can be found.
nvm install node
Install AI CLI tools
Gemini and Codex (ChatGPT) can be installed with npm:
npm install -g @google/gemini-cli npm install -g @openai/codex
Claude is distributed as its own binary.
md -p ~/src/claude cd ~/src/claude curl -LO https://claude.ai/install.sh bash install.sh
Give AI appropriately scoped access to GitHub
I’m using a separate VM for running AI tools.
gh auth login
Create a GitHub token with repo: read+write access on repos to which you want AI tools to be able to push changes.