Claude Code vs Gemini CLI
Claude Code and Gemini CLI are both AI coding agents that work from your terminal: you describe a change, and the agent reads your code, edits files and runs commands. Here's how they differ on the basics.
| Claude Code | Gemini CLI | |
|---|---|---|
| Made by | Anthropic | |
| Open source | No | Yes, Apache-2.0 (github.com/google-gemini/gemini-cli) |
| Pricing label in our directory | Paid | Open source. Per its README, you can sign in with a Google account or use a Gemini API key. |
| Where it runs | Terminal | Terminal |
| Official link | anthropic.com/claude-code | github.com/google-gemini/gemini-cli |
When each one fits
- You're already on Anthropic's models or plans: Claude Code is Anthropic's own agent.
- You're already in Google's ecosystem, or you want to read and modify the agent's source: Gemini CLI is open source and made by Google.
- You want to try both: they're installed separately and can live side by side. Try each on the same small task in a throwaway branch.
Things to check on the official sites
Current pricing, free usage limits, supported operating systems, and data and privacy terms for your code. Both tools change quickly, and we link to the source rather than repeating details that go stale.
Other terminal agents
Claude Code vs Codex CLI · Codex CLI vs Every Code · Gemini CLI vs Qwen Code · Qwen Code (Alibaba's Qwen team, open source) · Aider (open source, git-aware) · All terminal agents compared · More comparisons
This comparison isn't sponsored.