Skip to main content

zgpt

A versatile and easy-to-use command-line AI assistant powered by the Google Gemini API.

Features

  • Simple Interface: Get answers directly in your terminal.
  • Easy Setup: Configure your API key with a single command.
  • Secure: Your API key is stored locally in your user configuration directory.

Installation

You can now install zgpt directly from PyPI: (Recommended)

pip install zgpt

----------------OR---------------

if you want to work on the project locally, clone the repository and install in editable mode:

First, clone the repository and navigate into the directory:

git clone https://github.com/sachinz25/zgpt.git
cd zgpt

Then, install the package in editable mode. This is great for development and ensures the zgpt command is available system-wide.

pip install -e .

Setup 🔑

Before you can use zgpt, you need to set your Gemini API key. Run the --init command:

zgpt --init

You will be prompted to enter your API key. Once saved, you're ready to go! on following page you can get Gemini api keys

Note: click here to get gemini api keys

click on "ceate API key"
click "Gemini api" 

it will generate your api keys

You can remove the key at any time:

zgpt --revoke

Usage

To ask a question, simply type zgpt followed by your prompt:

zgpt "explain what a decorator is in python with a simple example"

zgpt "give me a 5-line summary of the movie Inception"

🛠 Example

$ zgpt "hello there"

🤔 Thinking...
🤖

Hello there! How can I help you today?

Metadata

Release files for zgpt 1.0.1

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

Source distribution (sdist)

Source distribution for zgpt 1.0.1
File Size Uploaded
zgpt-1.0.1.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zgpt 1.0.1
File Interpreter ABI Platform
zgpt-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / zgpt-1.0.1.tar.gz

Download URL zgpt-1.0.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7780990a8fe17f6b6a8659e10bc691148b923dd038b187b89d94722608523f69
BLAKE2b-256 checksum
How to use checksums
cd06b1ab699ebe86c2297dd88ba439d2e61cd5c136f3941c3ebc5f6bf52ebde8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / zgpt-1.0.1-py3-none-any.whl

Download URL zgpt-1.0.1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef76ddd8b6e811f74dfc5faf5ee1c9d917d87ab7648e9e4ab97b8d52a9b0fb47
BLAKE2b-256 checksum
How to use checksums
66fc1fc7a4d4773191033caf161c64afe90ed5d4132a4fa64ef38f7ca36e5fe7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

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