https://github.com/arfshl/termux-gemini-cli
Run gemini-cli within proot-distro, plus prebuilt rootfs based on Ubuntu LTS
https://github.com/arfshl/termux-gemini-cli
debian gemini gemini-cli nodejs npm proot proot-distro termux ubuntu yarn
Last synced: about 2 months ago
JSON representation
Run gemini-cli within proot-distro, plus prebuilt rootfs based on Ubuntu LTS
- Host: GitHub
- URL: https://github.com/arfshl/termux-gemini-cli
- Owner: arfshl
- License: gpl-3.0
- Created: 2025-11-16T07:22:45.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2026-03-27T12:43:54.000Z (3 months ago)
- Last Synced: 2026-04-03T04:50:41.890Z (3 months ago)
- Topics: debian, gemini, gemini-cli, nodejs, npm, proot, proot-distro, termux, ubuntu, yarn
- Homepage:
- Size: 61.5 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Run gemini-cli within termux
### This instruction is for bare-metal termux
## Instruction for proot-distro see [here](https://github.com/arfshl/termux-gemini-cli/blob/main/proot-distro.md)
1. Upgrade All Packages
apt update && apt upgrade -y -o Dpkg::Options::="--force-confold"
2. Install nodejs and build-essential
apt install nodejs build-essential -y
3. Fix variables
mkdir -p ~/.gyp && echo "{'variables': {'android_ndk_path': ''}}" > ~/.gyp/include.gypi
5. Install gemini-cli
npm install -g @google/gemini-cli
6. Use `gemini` command for first run
7. Click number 1 to login with google
8. gemini will ask for restart
9. An login URL will be displayed, visit it with your browser
10. Login with your google account as usual
11. Copy and paste your authorization code on termux (don't share this code with anyone!)
12. Done! gemini-cli installed