Reportingaiagentterminalgeminicli

gemini-cli

Open-source AI agent that brings the power of Gemini directly into the terminal. Provides lightweight access to Gemini for direct prompt-to-model interaction.

Description

gemini-cli is an open-source AI agent package for Kali Linux that integrates the Gemini model into the terminal environment. It offers a lightweight interface for users to interact with Gemini AI directly from the command line, enabling quick prompting without additional overhead.

The tool supports both interactive and non-interactive modes, making it suitable for scripting, one-off queries, or extended conversations. Users can manage MCP servers and extensions, enhancing its functionality for various workflows. Its terminal-based design ensures a direct path from user prompts to AI responses.

Designed for efficiency with an installed size of 20.58 MB, gemini-cli depends on nodejs and is easily installed via apt on Kali Linux systems.

How It Works

gemini-cli operates as a command-line interface to the Gemini AI model, launching an interactive CLI session or processing one-shot prompts. It accepts positional queries or flags for modes like debug, sandbox, or YOLO auto-approval. Commands handle MCP server management and extensions. The agent processes stdin input, appends prompts, and supports experimental modes like ACP.

Installation

bash
sudo apt install gemini-cli

Flags

-d, --debugRun in debug mode? [boolean] [default: false]
-m, --modelModel [string]
-p, --promptPrompt. Appended to input on stdin (if any). [deprecated: Use the positional prompt instead. This flag will be removed in a future version.] [string]
-i, --prompt-interactiveExecute the provided prompt and continue in interactive mode [string]
-s, --sandboxRun in sandbox? [boolean]
-y, --yoloAutomatically accept all actions (aka YOLO mode, see https://www.youtube.com/watch?v=xvFZjo5PgG0 for more details)? [boolean] [default: false]
--approval-modeSet the approval mode: default (prompt for approval), auto_edit (auto-approve edit tools), yolo (auto-approve all tools) [string] [choices: "default", "auto_edit", "yolo"]
--experimental-acpStarts the agent in ACP mode [boolean]

Examples

Display the help usage information for gemini-cli
gemini-cli -h
Launch Gemini CLI with a positional prompt query (defaults to one-shot mode)
gemini-cli [query..]
Manage MCP servers
gemini-cli mcp
Manage Gemini CLI extensions (aliases: extension)
gemini-cli extensions <command>
Execute the provided prompt and continue in interactive mode
gemini-cli -i "prompt text"
Run gemini-cli in debug mode
gemini-cli -d
Run in YOLO mode to automatically accept all actions
gemini-cli --yolo
Run gemini-cli in sandbox mode
gemini-cli --sandbox
Updated 2026-04-16kali.org ↗