Overview
Gemini CLI is Google’s AI-powered coding assistant that provides intelligent code assistance, file operations, and tool execution. PraisonAI integrates with Gemini CLI to use it as an external agent.
Installation
Authentication
Set your Google API key:
Basic Usage with PraisonAI
--external-agent gemini invokes Gemini CLI via a manager Agent by default. The manager reasons and calls Gemini as a subagent tool. Use --external-agent-direct for pass-through proxy behavior.
CLI Options Reference
Core Options
Prompt Options
Approval Modes
Approval Mode Values:
default - Prompt for approval on each action
auto_edit - Auto-approve edit tools only
yolo - Auto-approve all tools
Sandbox & Security
Session Management
Workspace & Directories
Accessibility
Experimental
Commands
Examples
Basic Query
With Model Selection
YOLO Mode (Auto-Approve)
JSON Output
Include Additional Directories
Resume Session
Python Integration
Environment Variables
Text Format (Default)
Real-time JSON events for each step of the analysis.