Setup
Create a key in Google AI Studio, then add it under Gemini API Key in Coding Agents settings. See Credentials for personal and organization credential behavior.Use Gemini CLI
Choose Gemini CLI from the workspace agent picker. Replicas runsgemini --acp with Gemini 3 Flash Preview by default. You can also select Gemini 3.1 Pro Preview.
Gemini CLI streams messages and tool activity through ACP and supports persistent sessions, Plan Mode, image input, interruption, and queued-message steering. Replicas security policies run before each tool, and pull requests are discovered immediately after relevant tools complete.
Inference analytics include Gemini CLI input and output token usage.
Use Gemini CLI for repository tasks that benefit from Gemini’s coding and tool-use capabilities. Select another agent when the task depends on provider-specific features Gemini CLI does not support.
Programmatic use
Create a Gemini workspace through the API with"coding_agent": "gemini", or use the same value with the MCP create_replica tool.