Gemini CLI: a free alternative to Claude Code?
Gemini CLI is Google's open-source coding agent for the terminal. You sign in with a Google account and get 1,000 requests per day, 60 requests per minute, and a 1 million token context window for free.
The main idea
If you want a coding agent like Claude Code but do not want to burn through API credits, Gemini CLI is worth a try. It is an open-source, Apache 2 licensed agent from Google that runs in your terminal. It reads your codebase, edits files, runs shell commands, fetches web pages, and grounds answers with Google search.
The free tier is the main reason to try it. In the video I use the sign-in option. You log in with your Google account and get 60 requests per minute and 1,000 requests per day. The context window is 1 million tokens. There is no credit card and no API key to manage. The second option is a Gemini API key, which suits developers who need specific model control or paid tier access.
In the video I run the install one-liner from the repo, choose login with Google, and restart the CLI. Then I ask for a simple snake game. I give Gemini CLI the permissions it asks for, and in a minute or two I have a fully working game. It ran on the Gemini 3 model. I then switched to manual model selection and picked the 3.1 Pro preview. Gemini CLI also supports MCP, the same protocol Claude Code uses, so you can connect tools like GitHub, Slack, and databases.
Key points
- The free tier gives 60 requests per minute, 1,000 requests per day, and a 1 million token context window.
- You sign in with a Google account. No credit card and no API key are needed.
- Gemini CLI is open source under the Apache 2 license and runs in your terminal.
- It supports MCP, so you can plug in tools such as GitHub, Slack, and databases.
- One prompt, "create me a simple snake game in this workspace", produced a working game in a minute or two.
- You can pick a model manually, for example the 3.1 Pro preview.
Chapters
- 0:58What Gemini CLI is
- 1:37Free tier limits
- 2:24Install and sign in
- 3:14Building a snake game
- 5:20Choosing a model
Save my free seat →