Skip to main content

GTalk - Google AI Mode Terminal Query Tool

A powerful command-line interface to interact with Google's AI Mode directly from your terminal. Get AI-powered context aware answers, code examples, and explanations without leaving your command line!

Features

  • Interactive Mode - Keep querying without restarting
  • Context Aware - Context aware subsequent query in interactive mode
  • Code Block Support - Properly formatted code examples
  • Fast - Browser session reused across queries
  • Clean Output - Well-formatted, readable responses
  • Both Modes - Interactive or single-query mode

Installation

pip install gtalk

From Source (Latest Features + Bugfixes)

git clone https://github.com/hissain/gtalk.git
cd gtalk
pip install -e .

Quick Start

Interactive Mode

Simply run:

gtalk

Then start asking questions:

Query> Who is Elon Musk?
Query> How many children he has?
Query> Write a python code for printing first 10 Fibonacci numbers?
Query> quit

Demo Terminal

Demo Terminal

Single Query Mode

gtalk "What is machine learning?"

Command Line Arguments

Argument Description
-v, --verbose Enable verbose output for debugging purposes
-s, --short Use short query mode

Usage Examples

Getting Code Examples

Query> Write a Python function for bubble sort

Output includes both explanation and code:

def bubble_sort(arr):
    n = len(arr)
    for i in range(n):
        for j in range(0, n-i-1):
            if arr[j] > arr[j+1]:
                arr[j], arr[j+1] = arr[j+1], arr[j]
    return arr

Learning Concepts

Query> Explain binary trees
Query> What is the difference between TCP and UDP?
Query> How does async/await work in JavaScript?

Quick References

Query> Git command to undo last commit
Query> Python list comprehension syntax
Query> Docker commands cheat sheet

Interactive Commands

Once in interactive mode:

Command Description
[any text] Query Google AI Mode
help Show available commands
clear Clear the screen
quit, exit, q Exit the program
Ctrl+C Force exit
Ctrl+D Alternative exit

Configuration

GTalk uses headless Chrome by default. The browser session is reused across queries for better performance.

Troubleshooting

CAPTCHA Detected

If you see "Google has detected automated access":

  • Wait a few minutes between queries
  • Use a VPN or different network
  • Reduce query frequency

No Summary Found

If no AI summary is returned:

  • Try rephrasing your query
  • Use question format: "What is...", "How to...", "Explain..."
  • Some queries may not trigger AI Mode

Privacy & Rate Limiting

  • GTalk makes direct requests to Google
  • No data is stored or logged by this tool
  • Respect Google's rate limits - avoid excessive automated queries
  • Consider delays between queries if using programmatically

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Disclaimer

This tool is for educational and personal use only. It interacts with Google Search's public interface. Please use responsibly and in accordance with Google's Terms of Service.

Acknowledgments

  • Built with Selenium
  • Parsing powered by Beautiful Soup
  • Inspired by the need for quick terminal-based AI assistance

Contact & Support


Made with love by Md. Sazzad Hissain Khan

Metadata

Release files for gtalk 2.0.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 gtalk 2.0.2
File Size Uploaded
gtalk-2.0.2.tar.gz 20.3 kB Details

Built distribution (wheel)

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

Total release size: 38.1 kB

Release files / gtalk-2.0.2.tar.gz

Download URL gtalk-2.0.2.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ea6a745d936bb0bc08c09556e7939a2092807449744ad8864e179b794a92b12d
BLAKE2b-256 checksum
How to use checksums
1cd3f6eb089c991774fd3cf24a6d88df908dccccd1b2a6508dbae0bff7c4866b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release files / gtalk-2.0.2-py3-none-any.whl

Download URL gtalk-2.0.2-py3-none-any.whl
Size 17.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87c77809410086b5596bb62b09235f6f7836b880d28d64d9904d92698970db45
BLAKE2b-256 checksum
How to use checksums
eba453046cca8c1cdbabd5531a8597def776431b4bf97c6cd34f485828c96730
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release history Release notifications | RSS feed

2.0.3

2 release files

This release

2.0.2 This release

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.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