ai-cli
October 31, 2025
To install any of the AI CLI tools, you can use the following command:
Notice the --prefix ~/.local flag, which installs the package in your home directory, avoiding the need for sudo permissions.
For Gemini:
npm install -g @google/gemini-cli --prefix ~/.local
For Claude Code:
npm install -g @anthropic-ai/claude-code --prefix ~/.local
or for GitHub Copilot:
npm install -g @github/copilot --prefix ~/.local