Gemini CLI
by Google
Official listing: built and published by Google. More from Google
Google's open-source AI agent CLI that brings Gemini into your terminal with MCP client support, tool use, code execution, and multi-modal capabilities.
Use it now
Keep it with up to 9 other tools you're setting up, then share them all as one link.
Try this first
Ask your assistant, with Gemini CLI connected:
- Code Execution
Use Gemini CLI to execute code in sandboxed environments and iterate on results: ‹what you need›
- MCP Client
Use Gemini CLI to connect to any MCP server: ‹what you need›
Connect it over MCP
Connect Gemini CLI as an MCP server, following its setup instructions at https://github.com/google-gemini/gemini-cli
Its page: github.com/google-gemini/gemini-cli
Install the CLI
npm install -g @google/gemini-cli
Its page: github.com/google-gemini/gemini-cli
Compare
Press Compare to add it to the tray at the bottom of the window, then pick up to 2 others anywhere on the site.
- Access
- CLIMCP
- Auth
- OAuth 2.0
- Skills
- 3
Skills
Terminal Agent
Run Gemini as a full AI agent in your terminal with tool use, file access, and command execution
MCP Client
Connect to any MCP server and use its tools directly within the Gemini CLI agent session
Code Execution
Execute code in sandboxed environments and iterate on results within the same CLI session