Skip to main content

gai-ag (Gemini Autonomous Agent)

gai-ag is a professional, fast, and intelligent command-line tool that brings the Google Gemini API to your terminal. It features an advanced "Agent" mode that can both answer questions directly and perform automatic modifications on your project.

  • Autonomous Agent Mode: Automatically fixes errors, runs tests, and generates solutions.
  • Project Brain: Creates a .gai/ folder in each project to store history, state, and errors.
  • Smart Scanning: Caches project structure and prioritizes critical files to save tokens.
  • Polyglot Support: Automatically detects Flutter, Node.js, and Python projects.

✨ Features

  • 🤖 Agent Mode: Analyzes files in your project, plans requested changes (code writing, file creation, deletion, moving), and applies them with your approval.
  • 💬 Interactive Chat: Communicate fluently with Gemini through a multi-modal chat interface.
  • 📁 Context Injection (@): Add files as context to your chat using @file.py or @src/.
  • 🎨 Premium UI: Stylish and readable output powered by the rich library.
  • 🌍 Multi-language Support: English and Turkish language options.
  • 🔒 Secure Operations: File system operations are restricted to the project directory.

🚀 Installation

From PyPI (Easiest)

pip install gai-ag

For Development

  1. Clone the repository:

    git clone https://github.com/bugraakdemir/gai-cli.git
    cd gai-cli
    
  2. Install dependencies:

    pip install -e .
    

🛠️ Usage

Note: Both gai and gai-ag commands work in the terminal!

One-time Question

gai "What are list comprehensions in Python?"
# or
gai-ag "What are list comprehensions in Python?"

Interactive Mode (Chat & Agent)

Start the interactive mode by simply typing gai or gai-ag:

gai
# or
gai-ag

Metadata

Release files for gai-ag 2.0.0

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

Source distribution (sdist)

Source distribution for gai-ag 2.0.0
File Size Uploaded
gai_ag-2.0.0.tar.gz 27.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gai-ag 2.0.0
File Interpreter ABI Platform
gai_ag-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 56.3 kB

Release files / gai_ag-2.0.0.tar.gz

Download URL gai_ag-2.0.0.tar.gz
Size 27.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c5a490c1e9977a8dd9d49fc06700e381a8dc4d0094ef304bab52435ee489a95f
BLAKE2b-256 checksum
How to use checksums
880adb7194eac8920cb085ff76e0f912a4c07d255557ba92491fe4d7f57467cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 14, 2026.

Transparency log

Release files / gai_ag-2.0.0-py3-none-any.whl

Download URL gai_ag-2.0.0-py3-none-any.whl
Size 29.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36a8c3088e295b1554b13b7a89db436e57191368ac30d5d14ac27dd7b5d7f87e
BLAKE2b-256 checksum
How to use checksums
54e151614606151cb15eed21486d80a76accbc8be981bcf5cb7cb2998b0a7427
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.6.0

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