npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@mmmbuto/gemini-cli-termux

v0.21.3-termux

Published

Android/Termux compatible fork of Google Gemini CLI. Installs cleanly on Termux by skipping native modules and adding clipboard detection for Termux.

Downloads

457

Readme

🤖 Gemini CLI – Termux Edition

Android/Termux compatible fork of Google Gemini CLI. Installs cleanly on Termux by skipping native modules and adding clipboard detection for Termux.

npm downloads ko-fi


What This Is

Temporary compatibility fork of google-gemini/gemini-cli for Android Termux.

  • Tracks upstream regularly.
  • Minimal patches only: Termux clipboard env fix, native modules marked optional.
  • Bundled for ARM64/Android.
  • Sunset: once upstream adds Termux support, migrate back to @google/gemini-cli.

Installation (Termux)

pkg update && pkg upgrade -y
pkg install nodejs-lts -y
npm install -g @mmmbuto/gemini-cli-termux

gemini --version  # expected: 0.21.2-termux (latest)

Build from source:

git clone https://github.com/DioNanos/gemini-cli-termux.git
cd gemini-cli-termux
npm install --ignore-optional --ignore-scripts
npm run build && npm run bundle
node bundle/gemini.js --version

Patches

  • Clipboardy: sets TERMUX__PREFIX from PREFIX on Android.
  • Native modules (keytar, node-pty, tree-sitter-bash) kept optional; install with --ignore-optional --ignore-scripts.

Known Limitations on Termux

  • No PTY (node-pty fails to build) → limited shell integration.
  • No secure keychain → credentials stored in plain config files.
  • Bash parsing without tree-sitter.

Documentation & Fixes

📚 Complete Documentation

🔧 Common Issues & Solutions

| Issue | Quick Fix | Documentation | | --------------------- | ----------------------------- | --------------------------------------------------- | | node-pty warning | export NODE_NO_WARNINGS=1 | Details | | CLI syntax (--json) | Use -o json instead | Details | | Hooks commands | Use interactive mode /hooks | Details |

📝 Quick Reference

# Correct usage examples
gemini -o json "your prompt"              # ✅ JSON output
gemini --output-format json "prompt"      # ✅ Also works
gemini --json "prompt"                    # ❌ Wrong syntax

# Quiet mode (suppress warnings)
export NODE_NO_WARNINGS=1
gemini "your prompt"

# Hooks management (interactive only)
gemini           # Start interactive mode
/hooks           # Manage hooks

See docs/patches/README.md for complete solutions.

Updating

npm install -g @mmmbuto/gemini-cli-termux@latest

Versions

  • latest: 0.21.3-termux (this build)
  • stable: 0.21.3-termux

Tests

  • Suite: GEMINI_TEST_SUITE.md
  • Latest report: GEMINI_TEST_REPORT_v0.21.3.md
    • PASS with warnings (node-pty optional missing log; --version --json outputs plain string; config-path flag unsupported; extensions settings needs subcommand).
    • Non-interactive/file tests executed via agent; Termux checks pass; package/bundle verified.
    • Optional native modules (node-pty, keytar, tree-sitter-bash) not built on Termux → warnings expected; CLI remains functional.

Changelog (Termux)

  • 0.21.2-termux (latest/stable): upstream main sync; Termux patches retained; bundle export fix for createInkStdio; tests pending refresh.

Upstream Tracking

  • Upstream: https://github.com/google-gemini/gemini-cli
  • Divergent files: esbuild.config.js, docs/TERMUX.md, package.json, README.md, test-gemini/*

License

Apache 2.0 (same as upstream). See LICENSE.