Gemini CLI alternatives for terminal coding

Compare Qwen Code, OpenCode and Codewhale for terminal coding agents. Choose local or hosted models with planning, tools and reviewable edits.

Gemini CLI is Google's terminal agent for exploring a codebase, changing files and automating tasks with shell tools and MCP connections. It uses hosted Gemini inference. Individual Login with Google access ended in June 2026; API-key and enterprise access continue, so the former individual sign-in route is no longer a reason to choose it.

Qwen Code brings planning, agent teams and worktrees to a similar coding workflow. OpenCode pairs a planning agent with a development agent, while Codewhale adds permission controls and saved sessions shared with its local browser client. These Gemini CLI alternatives let you change the model provider as well as the coding interface.

An open-source AI coding agent for macOS, Windows and Linux that supports local models through Ollama or vLLM and cloud model APIs.

Screenshot of Qwen Code website

Qwen Code suits Gemini CLI tasks that need planning, code changes and agent collaboration. It offers subagents, agent teams, MCP tools and isolated worktrees, with headless operation for scripts. Local models through Ollama or vLLM and several hosted providers are available.

An open source AI coding agent works in your terminal or IDE with local models or cloud models including Claude, GPT and Gemini.

Screenshot of OpenCode website

OpenCode replaces Gemini CLI repository work with a model-flexible terminal or IDE agent. A planning agent explores code without editing by default, while the development agent changes files. Automatic language-server context and parallel sessions support work across a project.

Terminal coding assistant for local repositories on macOS, Windows and Linux. Use local models through Ollama or paid OpenAI access.

Screenshot of Codex CLI website

Codex CLI is an alternative terminal agent for Gemini CLI repository work. It edits files, runs development tools and reviews changes without modifying them in review mode. Saved sessions and noninteractive execution cover ongoing tasks and scripts; local inference through Ollama is optional.

130KApache-2.0macOSWindowsLinux

An open-source coding agent for macOS, Linux and Windows that uses local or hosted models, with terminal and local browser clients that need no account.

Screenshot of Codewhale website

Codewhale suits Gemini CLI users who want repository edits with explicit permissions and recovery controls. Read code in planning mode, review diffs and command results, then resume a saved session from the terminal or local browser. Fleet divides larger tasks among agents with different roles and models.

An open-source AI coding agent for editors, terminal and desktop, with local models through Ollama or LM Studio and an Apache 2.0 core.

Screenshot of Cline website

Cline brings Gemini CLI-style repository tasks into an existing editor, a terminal or its desktop app. Plan and Act modes separate the proposed approach from execution, while diffs and checkpoints support review. The CLI also runs recurring work in scripts and CI, with local or hosted model connections.

Local terminal coding and research agent with persistent Python sessions and parallel subagents. Hosted model routes use subscription or API-key access.

Prime Agent suits longer coding or research jobs that need persistent working state. Its Python environment, background sessions and communicating subagents keep separate pieces of work coordinated across visits.

22K

An open-source terminal coding assistant that edits projects with local or cloud LLMs, maps codebases and commits changes to Git.

Screenshot of Aider website

Aider suits Gemini CLI users who prefer a terminal assistant closely tied to Git. A repository map supplies code context, edits become reviewable commits, and lint or test feedback can guide follow-up changes. Choose a local or hosted model for the task.

50KApache-2.0macOSWindowsLinux

A terminal AI coding assistant that connects to local backends such as Ollama and llama.cpp or cloud APIs, with model switching that preserves context.

Screenshot of Crush website

Crush suits moving Gemini CLI terminal coding to a different model backend. It preserves conversation context when you switch models, keeps separate sessions per project and combines language-server context with MCP tools. Local model servers and hosted APIs use the same agent interface.

A terminal coding agent that runs locally, supports Ollama and cloud models, and lets developers customize tools and workflows under the MIT license.

Screenshot of Pi website

Pi suits Gemini CLI users who want a smaller terminal agent they can customize. Extensions and packages change its tools, prompts and interface, while branching sessions let you revisit a previous approach. It connects to local or hosted models and inherits the access of the process that runs it.

A self-hosted coding assistant and Python agent framework that branches runs to compare approaches and supports local models through Ollama.

Screenshot of Pydantic DeepAgents website

Pydantic DeepAgents combines terminal coding with task lists, shell commands and MCP tools. Its branching view lets you inspect different attempts side by side, while checkpoints let you rewind a session.

1.1KMIT

An open-source terminal coding agent and Python toolkit that supports local models through llama.cpp, cloud providers, and MCP tools.

Screenshot of Fast Agent website

Fast Agent suits developers who want terminal assistance with configurable shell and MCP tools. Local llama.cpp connections and reusable prompt files let you shape the agent around a project's recurring tasks.

3.9KApache-2.0

A terminal coding agent that works with local models through Ollama or cloud providers and supports embedding in editors and browser apps.

Screenshot of fx website

fx covers interactive coding and scripted terminal requests with a transcript of the work. You can add tools or subagents and connect the same agent to an editor through Agent Client Protocol.

3.5KApache-2.0macOSLinuxWeb

For Gemini CLI, start with Qwen Code. Other alternatives include OpenCode, Codex CLI, Codewhale and Cline.

Most are Terminal Coding Agents; others include Autonomous Coding Agents.

People also replace

See all