Connect Gemini CLI
Install Gemini CLI and connect it with a key from Google AI Studio.
You need a Google account, a Gemini key from Google AI Studio (it has a free tier with limits), and Homebrew from the install page.
Install and add your key
- In Google AI Studio, click Create API key and copy it.
- Open Terminal, paste this and press Return:
brew install gemini-cli - In Mehtagent, go to Setup › Keys and agents, paste the key in the Gemini row and click Save and test.
- On Home, click the AI button and pick Gemini CLI.
Notes
- Use a key: since June 2026, Google no longer serves Gemini CLI to personal Google sign-ins.
- For Google's free coding agent in an editor, see Antigravity.
Mehtagent