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
From PyPI (Recommended)
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
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.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - 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
- Author: Md. Sazzad Hissain Khan
- Email: hissain.khan@gmail.com
- GitHub: @hissain
- Issues: GitHub Issues
Made with love by Md. Sazzad Hissain Khan
Metadata
Release files for gtalk 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gtalk-2.0.1.tar.gz | 18.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gtalk-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.8 kB
Release files / gtalk-2.0.1.tar.gz
| Download URL | gtalk-2.0.1.tar.gz |
|---|---|
| Size | 18.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
371a43aad263319a5ec911278b0ac1e69dcbc603083f09307f336e5da7986e8c
|
|
BLAKE2b-256 checksum How to use checksums |
7f3db2812d20a7286b54a4128e69789e243dde6bb663de4d1b328fef4f6baf2a
|
| 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 logRelease files / gtalk-2.0.1-py3-none-any.whl
| Download URL | gtalk-2.0.1-py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5e17c7042768956291a63ad5b96397d76a7ed939d847c4197bc9966a6884080
|
|
BLAKE2b-256 checksum How to use checksums |
bd78dbb1daca95a7eae3cf397eec55d83d2b9e43606224e81433276a355fee00
|
| 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