8 Best Gemini CLI Alternatives in 2026 (Open Source)
Gemini CLI — An open-source AI agent that brings the power of Gemini directly into your terminal. Unlike Claude Code ($20+/month) and Codex (ChatGPT subscription), Gemini CLI offers the most generous free tier (1,000 req/day) with 1M token context and built-in Google Search grounding
Short answer
- Closest match to Gemini CLI: Codex.
- Most actively developed: Codex (3,826 commits in the last 90 days).
- Fastest growing: Claude Code (+10,387 GitHub stars in the last 30 days).
- No commit in 6+ months: TermGPT, Instrukt and Claude Engineer.
These 8 open-source tools do the same job. They are ordered by how closely they match Gemini CLI, with live GitHub data so you can see which projects are actively maintained.
| Tool | GitHub stars | Stars / 30d | Last commit |
|---|---|---|---|
| Gemini CLI(original) | 107.2k | +1,259 | 2026-10-02 |
| Codex | 127.6k | +9,462 | 2026-10-02 |
| Claude Code | 148.9k | +10,387 | 2026-10-01 |
| Aider | 49.3k | +1,093 | 2026-05-22 |
| Open Interpreter | 68.5k | +890 | 2026-10-02 |
| LLM | 12.6k | +178 | 2026-09-22 |
| TermGPT | 412 | -1 | 2023-06-04 |
| Instrukt | 330 | 0 | 2025-05-14 |
| Claude Engineer | 11.2k | +7 | 2024-12-12 |
1. Codex
Lightweight coding agent that runs in your terminal
What sets it apart: Unlike Claude Code (Anthropic-only), Codex uniquely integrates with existing ChatGPT subscriptions and offers both CLI and cloud-based (Codex Web) agent variants
Best for: OpenAI ecosystem users wanting a terminal-first coding agent with ChatGPT plan integration; Teams already paying for ChatGPT Enterprise who want CLI-based code automation
2. Claude Code
Agentic coding tool that understands codebases and handles tasks and Git workflows from your terminal
What sets it apart: Unlike Codex (OpenAI) which also runs in terminal, Claude Code has deeper codebase understanding via long-context and native GitHub integration with @claude mentions
Best for: Developers who live in the terminal and want AI-assisted coding without leaving CLI; Teams using GitHub workflows who want automated PR reviews and code generation
3. Aider
aider is AI pair programming in your terminal
What sets it apart: vs Cursor/Copilot: Open-source terminal-first AI pair programmer with automatic repo mapping, 5.7M+ installs, 88% self-singularity rate, and top-20 on OpenRouter - works in any editor via watch mode
Best for: Developers wanting AI coding assistance directly in their terminal; Working on existing codebases with complex file interdependencies; Teams that prefer git-centric workflows
4. Open Interpreter
A natural language interface for computers
What sets it apart: vs ChatGPT Code Interpreter: runs locally with full internet access, no file size limits, any package available, and persistent state
Best for: Power users wanting natural language control of their computer; Rapid prototyping and data analysis via conversational coding
5. LLM
Access large language models from the command-line
What sets it apart: vs direct API calls: Swiss-army-knife CLI that unifies 100+ LLMs behind one command, with automatic SQLite logging, embeddings, schemas, and a rich plugin ecosystem
Best for: Power users who want LLM access from the terminal; Quick prototyping and experimentation with multiple LLM providers; Building CLI-based LLM workflows with conversation history
6. TermGPT
Giving LLMs like GPT-4 the ability to plan and execute terminal commands
What sets it apart: vs Open Interpreter / Claude Code: minimal proof-of-concept terminal AI with mandatory human review step — demonstrates core concept of LLM-to-terminal bridge with safety guardrail
Best for: Developers wanting AI-assisted terminal automation with human review; Quick prototyping and code generation from natural language; Learning how LLMs can interface with system terminals
7. Instrukt
Integrated AI environment in the terminal. Build, test and instruct agents.
What sets it apart: vs LangChain CLI / Open Interpreter: terminal-native TUI with Docker sandboxing, modular agent packages, and language-aware code indexing — designed for headless servers and SSH workflows
Best for: Terminal-native code analysis and documentation Q&A via RAG; Developers wanting secure sandboxed AI agent execution; SSH/headless server environments needing AI tooling
8. Claude Engineer
Self-improving Claude 3.5 Sonnet assistant that dynamically creates and manages tools for software development
What sets it apart: vs Open Interpreter / Aider: self-improving architecture where Claude creates and manages its own tools dynamically — the AI expands its capabilities through conversation, with dual web/CLI interfaces
Best for: Developers wanting AI that autonomously expands its own capabilities; Claude-focused workflows needing custom tool creation; Power users wanting both web and CLI interfaces for AI interaction
FAQ
- What are the best alternatives to Gemini CLI?
- The closest open-source alternatives to Gemini CLI are Codex, Claude Code and Aider, followed by Open Interpreter, LLM and TermGPT. They are ranked by how closely they match what Gemini CLI does.
- Which Gemini CLI alternative is the most popular?
- Claude Code has the most GitHub stars among Gemini CLI alternatives, with 148,932 stars.
- Which Gemini CLI alternative is the most actively maintained?
- By recent activity, Codex (3,826 commits in the last 90 days) is the most actively developed alternative.