gai-cli

Queries Google AI Mode from CLI returning JSON answers with cited sources and follow-up prompts.

208|42|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/ItamarZand88/CLI-Anything-WEB --skill gai-cli
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gai-cli
Source: https://github.com/ItamarZand88/CLI-Anything-WEB/tree/main/.claude/skills/gai-cli
Command: npx skills add https://github.com/ItamarZand88/CLI-Anything-WEB --skill gai-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Quickly obtain AI-generated answers with reliable sources from Google AI Mode via a CLI, removing the need to manually browse and collect references.

Core Features & Use Cases

  • AI-powered answers with cited sources from Google AI Mode.
  • Session-based follow-ups and REPL mode for iterative questions.
  • Structured JSON output with fields like query, answer, sources, and follow_up_prompt. Use Case: A researcher wants a concise, source-backed explanation for a technical term to cite in notes.

Quick Start

Ask a question using cli-web-gai search ask and receive a JSON-formatted answer with cited sources.

Frequently Asked Questions about gai-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get AI-generated answers with cited sources from a CLI?▼

To get AI-generated answers with cited sources via a CLI, you can use a command-line interface that queries Google AI Mode and returns structured JSON output. This removes manual browsing and reference collection by providing direct, source-backed insights.

Can I ask follow-up questions in a CLI AI search session?▼

Yes, you can ask follow-up questions in a CLI AI search session using the interactive REPL mode. This allows for iterative questioning, enabling you to refine queries and explore topics deeply within a continuous session.

What format does the CLI output for Google AI Mode queries?▼

The CLI outputs structured JSON for Google AI Mode queries. This format ensures consistent data fields for programmatic consumption, specifically including the query, the AI answer, cited sources, and a follow-up prompt.

Does the Google AI Mode CLI search tool require external dependencies?▼

No, the Google AI Mode CLI search tool does not require external dependencies. It operates independently with a predefined command set to deliver source-backed answers directly in your terminal environment.

What is the best way to use Google AI Mode for programmatic research?▼

The best way to use Google AI Mode for programmatic research is through a CLI workflow that returns JSON. It delivers concise, source-backed explanations across topics, making it ideal for developers or researchers needing quick, structured data.