What is the best open-source AI coding agent?
The best open-source AI repos for AI coding agents right now are Claude Code, OpenCode and Gemini CLI. All three run in your terminal and are the most starred coding agents we track; Cline also works inside your IDE, and goose runs as a desktop app, a CLI and an API.
Comparison
| Repo | What it does | Stars | Start here |
|---|---|---|---|
| Claude Code | Claude Code is an agentic coding tool that runs in your terminal, reads your codebase, and carries out coding and git tasks from natural language commands. | 152,856 | Explain complex code in an unfamiliar project |
| OpenCode | OpenCode is an open source AI coding agent that runs as a command-line tool and as a beta desktop app. | 219,977 | Explore an unfamiliar codebase without risking edits |
| Gemini CLI | Gemini CLI is Google's open-source AI agent for the terminal. | 108,198 | Ask Gemini to explain a codebase from the terminal |
| Cline | Cline is an open source autonomous coding agent that runs as an SDK, an IDE extension, a terminal CLI, or a desktop app. | 70,700 | Fix failing tests automatically in a CI pipeline |
| Crush | Crush is Charm's agentic coding tool for the terminal. | 28,821 | Start an AI coding session in your terminal with Crush |
| Goose | goose is a general-purpose, open-source AI agent that runs on your machine as a desktop app for macOS, Linux and Windows, a CLI and an API. | 55,769 | Install the Goose CLI and hand it a real task |
When to pick which
Claude Code
Claude Code is an agentic coding tool that runs in your terminal, reads your codebase, and carries out coding and git tasks from natural language commands.
Best for: Developers who work in a terminal and want an AI agent to explain code, run routine tasks, and handle git workflows inside a project.
Needs: A terminal on macOS, Linux, or Windows; A local project directory you want Claude Code to work in; Permission to run one of the install methods listed in the README
Start here: Explain complex code in an unfamiliar project
- Install Claude Code with one of the README methods, for example curl -fsSL https://claude.ai/install.sh | bash on macOS or Linux.
- Navigate to your project directory.
- Run claude.
- Ask in natural language to explain how a named module or feature works, and to list the files it depends on.
OpenCode
OpenCode is an open source AI coding agent that runs as a command-line tool and as a beta desktop app.
Best for: Software developers and engineering teams who want an AI coding agent they can inspect, run locally, and switch between read-only and full-access modes.
Needs: A terminal on macOS, Linux, or Windows, or the desktop app installer for your platform; One package manager available: npm, bun, pnpm, yarn, or brew; A local project folder you want the agent to work in; Configuration for OpenCode as described in the docs at opencode.ai/docs (the README only links to them)
Start here: Explore an unfamiliar codebase without risking edits
- Run npm i -g @opencode/cli@latest (or use brew install anomalyco/tap/opencode-v2 on macOS and Linux).
- Change into the project folder and start OpenCode with opencode.
- Press the Tab key until the plan agent is selected.
- Ask it to map the main modules, entry points, and how the tests are run.
Gemini CLI
Gemini CLI is Google's open-source AI agent for the terminal. It reads your codebase, runs commands and answers prompts with Gemini models, and can run headless with JSON or streaming JSON output for scripts and CI. The README notes that unpaid tier and Google One users were moved to Antigravity CLI on June 18, 2026 and that Gemini CLI is not optimized for the newest Gemini models, so it now fits API key and Vertex AI users best.
Best for: Developers with a Gemini API key or Google Cloud project who want a scriptable terminal agent.
Needs: Node.js (npm), Homebrew, MacPorts or conda; A Gemini API key from AI Studio or a Google Cloud project for Vertex AI
Start here: Ask Gemini to explain a codebase from the terminal
- Try it without installing: npx @google/gemini-cli, or install with npm install -g @google/gemini-cli or brew install gemini-cli
- Set your key: export GEMINI_API_KEY="YOUR_API_KEY"
- In the repo run gemini, and add sibling folders with gemini --include-directories ../lib,../docs
- Ask it to explain the architecture or summarize recent changes
Cline
Cline is an open source autonomous coding agent that runs as an SDK, an IDE extension, a terminal CLI, or a desktop app.
Best for: Developers and engineering teams who want an AI agent that edits code, runs commands, and automates recurring coding tasks.
Needs: Node.js with npm available, since the README installs the CLI with npm; Access to an AI model provider that Cline supports, such as Anthropic, OpenAI, Google, OpenRouter, or a local model through Ollama or LM Studio; A git repository or project folder you want the agent to work in; For the VS Code path: the VS Code editor and the VS Code Marketplace extension
Start here: Fix failing tests automatically in a CI pipeline
- Install the CLI with npm i -g cline.
- Open a terminal in the root of the repository that has the failing tests.
- Run cline "Run tests and fix any failures".
- Review the file changes with git diff before committing.
Crush
Crush is Charm's agentic coding tool for the terminal. It works with many LLMs through OpenAI- and Anthropic-compatible APIs, lets you switch models mid-session while keeping context, keeps multiple sessions per project, uses LSPs for extra context and adds capabilities through MCP servers. It runs on macOS, Linux, Windows, Android and the BSDs and is configured with a Bash-like crushrc.
Best for: Developers who live in the terminal and want a polished coding agent that works with the model provider of their choice, including local models.
Needs: A terminal on macOS, Linux, Windows, Android or BSD; An LLM provider: Charm's Hyper subscription, an API key for Anthropic, OpenAI, Gemini or OpenRouter, or a local server such as Ollama
Start here: Start an AI coding session in your terminal with Crush
- Install with brew install charmbracelet/tap/crush or npm install -g @charmland/crush
- On Windows use winget install charmbracelet.crush
- Start Crush in your project, press ctrl+l to open the model picker and choose a provider
- Paste your API key, or set a provider environment variable such as ANTHROPIC_API_KEY
Goose
goose is a general-purpose, open-source AI agent that runs on your machine as a desktop app for macOS, Linux and Windows, a CLI and an API. It is built in Rust, works with 15+ providers including Anthropic, OpenAI, Google, Ollama and OpenRouter (or your existing Claude, ChatGPT or Gemini subscriptions via ACP), connects to 70+ extensions through the Model Context Protocol, and is part of the Agentic AI Foundation at the Linux Foundation.
Best for: Developers and knowledge workers who want one local agent for code, research, writing and automation with the model provider of their choice.
Needs: macOS, Linux or Windows; An LLM provider API key, a local Ollama model, or an existing subscription via ACP
Start here: Install the Goose CLI and hand it a real task
- Install the CLI with curl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh | bash
- Follow the Quickstart to configure a provider such as Anthropic, OpenAI or Ollama
- Start a session in your project folder
- Describe a task such as writing a script or migrating code
Use cases for AI coding agents
- Explain complex code in an unfamiliar project
- Delegate routine coding tasks from the terminal
- Handle git workflows with natural language
- Explore an unfamiliar codebase without risking edits
- Hand multistep code searches to a subagent
- Build a code change with the default full-access agent
- Ask Gemini to explain a codebase from the terminal
- Run Gemini headless in scripts and CI with JSON output
- Use Gemini CLI through your company's Vertex AI project
- Fix failing tests automatically in a CI pipeline
- Review a branch diff for issues before merging
- Plan a feature in VS Code and approve each edit
- Start an AI coding session in your terminal with Crush
- Run Crush on a local Ollama model
- Give Crush extra tools with MCP servers
- Install the Goose CLI and hand it a real task
- Use Goose with your existing Claude, ChatGPT or Gemini subscription
- Extend Goose with MCP extensions for research and automation
Questions
What is the best open-source AI coding agent?
The best open-source AI repos for AI coding agents right now are Claude Code, OpenCode and Gemini CLI. All three run in your terminal and are the most starred coding agents we track; Cline also works inside your IDE, and goose runs as a desktop app, a CLI and an API.
Which repo for AI coding agents is easiest to start with?
Gemini CLI: its starter use case "Ask Gemini to explain a codebase from the terminal" is rated Beginner and takes about 10 minutes.
How do I get started with Claude Code?
Install Claude Code with one of the README methods, for example curl -fsSL https://claude.ai/install.sh | bash on macOS or Linux; Navigate to your project directory; Run claude. Full steps and a copy-paste agent prompt: https://dedupedai.com/use-cases/anthropics-claude-code/explain-unfamiliar-codebase/
Are these AI coding agents repos free?
They are open-source projects on GitHub (check each license; some, like fair-code projects, limit commercial use). Some also sell a hosted version or need a paid model API key; the requirements for each repo are listed on this page.
How is this list of AI coding agents repos chosen?
Deduped tracks the hottest AI repos on GitHub and writes step-by-step use cases from each README. For this page we picked the repos that do this job, ordered by fit and then GitHub stars. Repos we only inferred from a short README, or that we do not index, are left out. The page is rebuilt with the site; stars are as of the last build in 2026.
More answers
- Best open-source AI repos for running LLMs locally
- Best open-source AI repos for skills and workflows for coding agents
- Best open-source AI repos for browser automation with AI agents
- Best open-source AI repos for web scraping for LLMs and RAG
- Best open-source AI repos for RAG and chatting with your documents
- Best open-source AI repos for long-term memory for AI agents
- Best open-source AI repos for voice, speech-to-text and text-to-speech
- Best open-source AI repos for AI video editing and generation
- Best open-source AI repos for AI image generation and editing
- Best open-source AI repos for UI design with AI coding agents
- Best open-source AI repos for MCP servers
- Best open-source AI repos for 3D modeling and CAD with AI
- Best open-source AI repos for research with AI agents
- Best open-source AI repos for running several coding agents in parallel
- Best open-source AI repos for LLM gateways and model routers
- Best open-source AI repos for AI workflow automation
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them free