Skip to main content

Terminal Gemini CLI

PyPI version
A lightweight command-line tool to interact with Google Gemini AI directly from your terminal.


🚀 Features

  • Chat with Google Gemini AI from your terminal
  • Minimal and fast
  • Works on Linux, macOS, and Windows
  • Easy installation via pip

📦 Installation

pip install terminal-gemini-cli

⚡ Usage

Run the CLI after installation:

terminal-gemini "Hello Gemini!"

You can also start an interactive session:

terminal-gemini

Example:

> terminal-gemini "Summarize the book Atomic Habits"

⚙️ Configuration

The CLI needs your Gemini API key. Set it as an environment variable:

export GEMINI_API_KEY="your_api_key_here"   # Linux/macOS
setx GEMINI_API_KEY "your_api_key_here"     # Windows (PowerShell)

📌 Development

Clone the repo and install in editable mode:

git clone https://github.com/yourusername/terminal-gemini.git
cd terminal-gemini
pip install -e .

Build and upload:

rm -rf dist/ build/ *.egg-info
python -m build
twine upload dist/*

🛠 Requirements


📄 License

MIT License. Feel free to fork and improve!


💡 Example

$ terminal-gemini "Write a haiku about the ocean"
🌊
Calm waves kiss the shore,  
Endless blue whispers softly,  
Sky and sea as one.

Metadata

Release files for terminal-gemini-cli 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for terminal-gemini-cli 0.1.2
File Size Uploaded Provenance Actions
terminal_gemini_cli-0.1.2.tar.gz 2.7 kB Without provenance Details for terminal_gemini_cli-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for terminal-gemini-cli 0.1.2
File Interpreter ABI Platform Actions
terminal_gemini_cli-0.1.2-py3-none-any.whl Python 3 none any Details for terminal_gemini_cli-0.1.2-py3-none-any.whl

Total release size: 6.2 kB

Release files / terminal_gemini_cli-0.1.2.tar.gz

Download URL terminal_gemini_cli-0.1.2.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b23eb370236ca66b31b579ab568bb3146b0e7c1ad9c78225a15d6d9a201a50a8
BLAKE2b-256 checksum
How to use checksums
194469ea363e879e51a5d10acf2b7007b17001a48ce315d6e279196dac9b4f3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / terminal_gemini_cli-0.1.2-py3-none-any.whl

Download URL terminal_gemini_cli-0.1.2-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b98c00f1264e32fa342c4693ae784d3a53713f086db50391fb4bd271207279f
BLAKE2b-256 checksum
How to use checksums
ade3834a2af052ffa1c0a8112904ed2280d300865a289411a6cdac45f35539ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for terminal-gemini-cli 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page