Skip to main content

A versatile CLI assistant powered by the Gemini API.

Project description

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?

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zgpt-1.0.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zgpt-1.0.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file zgpt-1.0.1.tar.gz.

File metadata

  • Download URL: zgpt-1.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for zgpt-1.0.1.tar.gz
Algorithm Hash digest
SHA256 7780990a8fe17f6b6a8659e10bc691148b923dd038b187b89d94722608523f69
MD5 8149d22c8d022d936b277cbd4d7e96f8
BLAKE2b-256 cd06b1ab699ebe86c2297dd88ba439d2e61cd5c136f3941c3ebc5f6bf52ebde8

See more details on using hashes here.

File details

Details for the file zgpt-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: zgpt-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for zgpt-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ef76ddd8b6e811f74dfc5faf5ee1c9d917d87ab7648e9e4ab97b8d52a9b0fb47
MD5 a2e9f34239e7aef7dd5637d009a6dcd1
BLAKE2b-256 66fc1fc7a4d4773191033caf161c64afe90ed5d4132a4fa64ef38f7ca36e5fe7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page