Posts
read more
Local AI tools
I am not an expert about nodejs. But gemini and copilot cli are written in nodejs. One annoying issue before is that they have to be installed globally which require root privileges. This post shows the step to install them locally.
mkdir -p ~/Music/ai-tools
npm init -y
npm install @google/gemini-cli @github/copilot
cd ~/.local/bin
ln -s ~/Music/ai-tools/node_modules/.bin/gemini .
ln -s ~/Music/ai-tools/node_modules/.bin/copilot .
In the same directory, create a file called update-cli-tools.sh.