Best Free and Open-Source AI Coding Agents (2026)
Open-source and free AI coding agents compared: what each really costs once model use is counted, and how to run them on Ollama or LM Studio models.
Best appsUpdated 14 min read
On this page
For most people, the best free and open-source AI coding agents in 2026 are Goose, Gemini CLI and Aider. If you already pay for ChatGPT, add Codex CLI. All four are free to download. What you actually pay for is the model behind the agent, in one of four ways: per-token API billing, a subscription's allowance, Gemini CLI's free quota, or a local model through Ollama or LM Studio with no per-token bill at all.
Quick picks, as of November 2026:
- Gemini CLI: best for free use with no API key. A personal Google account gets up to 1,000 requests a day.
- Goose: best for a free agent with both a CLI and a desktop app, and it works with local Ollama models.
- Aider: best for git-first pair programming with whichever model you choose.
- Codex CLI: best if you already have a paid ChatGPT plan.
- Crush: best for a terminal UI with language-server tools and many model providers (we couldn't confirm its license).
We make Sledbot, a Mac app that runs these agents side by side, so weigh our view accordingly. Sledbot itself is neither free nor open source, and we've tried to be fair to every agent here.
Free vs open source: what you actually pay for
"Open source" describes the code: you can read it and build on it under its license. "Free" usually means the download costs nothing. Neither tells you what a working session costs.
A coding agent is a loop around a language model. Each step sends your instructions and parts of your code to a model, and the model sends back edits and commands to run. (Our explainer on what a coding agent is covers this in more detail.) The agent software is usually free. The bill comes from the model, and you pay for it in one of four ways:
| How you pay for the model | Agents on this page that use it | What it costs you |
|---|---|---|
| Subscription login | Codex CLI (ChatGPT plan) | A monthly plan with usage caps. Third-party guides describe rolling 5-hour limits for Codex. |
| API key | Aider, Goose, Crush, Gemini CLI, Codex CLI | Per-token billing from the provider you pick |
| Free quota | Gemini CLI | Nothing within the daily limits, then Gemini API, Vertex AI or an organization license |
| Local model | Goose (with Ollama), and other agents you can point at a local server | No per-token bill. You pay in RAM, disk space and model quality. |
So "free coding agent" means one of two setups. The common one is a free agent paired with a paid model. The other is a free agent paired with a free model, which means Gemini CLI's quota or a model running on your own Mac.
How we chose these open-source coding agents
These are the things that decide whether a free agent is a good choice for coding work on a Mac:
- License. We state a license only where a source confirms it. Where none does, the table says so.
- Real cost. What model use costs, not only the download.
- Model choice. Some agents can use many providers, including local ones. Others are tied to one vendor.
- Maintenance. Whether releases are still shipping. A free agent that has stopped shipping is a risk.
- Extensibility. MCP (Model Context Protocol) support, git handling and editor integration.
- Mac install. How each one gets onto macOS, where we found it.
Competitor facts come from public sources checked in November 2026. For OpenCode and Pi we didn't find license or pricing details, so we only describe what we know from how Sledbot launches them.
Comparison table
Prices and status as of November 2026.
| Agent | Best for | Software price | Free way to run the model | Standout limit |
|---|---|---|---|---|
| OpenCode | An any-model terminal agent with build and plan agents | Not confirmed | Not confirmed | License and pricing not confirmed |
| Aider | Git-first pair programming | Free, open source | None included; you pay your provider | Latest confirmed release is v0.86.0 (August 2025) |
| Goose | A CLI plus a desktop app, with MCP | Free, open source | Local Ollama models | Runs one agent |
| Crush | A terminal UI with LSP tools and many providers | License and price not confirmed | Your own providers | Terminal UI only; still on 0.x versions |
| Pi | People already using it | Not confirmed | Not confirmed | Little verified detail |
| Gemini CLI | Free use without an API key | Free, open source | 60 requests/min and 1,000/day on a personal Google account | Reported move to a new Antigravity CLI (unconfirmed) |
| Qwen Code | An open-source agent from the Qwen team | Open source; model costs not found | Not found | Few published details on platforms and providers |
| Codex CLI | ChatGPT subscribers | Free, Apache 2.0 | None confirmed for heavy use | Heavy use needs a paid ChatGPT plan or API billing |
| Sledbot (app and native agent) | Running several agents at once | $349 one-time (MacSuite), 7-day trial | Local servers such as Ollama, LM Studio, MLX | Not free, not open source |
The sections below follow how much control you get over the model. The first four let you choose among many providers. Pi sits in the middle because little about it is confirmed. The vendor CLIs come last because each is tied to its maker's models.
OpenCode
OpenCode is a terminal coding agent from SST, started with the opencode command. We didn't find its license or pricing in our sources, so we don't state either. Check its repository before you rely on it.
What we can say comes from how Sledbot runs it:
- Model choice. Sledbot treats it as an any-model agent, so you can pick the model at launch.
- Two agents. It has separate build and plan agents.
- GitHub Copilot. It can use a GitHub Copilot login through its
/connectcommand. - Login and sessions. You log in with
opencode auth login. A session resumes withopencode --session <id>or--continue. - MCP. It accepts MCP server configuration, so Sledbot can pass it the servers you've enabled.
Pick it if you want one terminal agent you can point at many providers and switch between planning and building. For a side-by-side with Anthropic's agent, see OpenCode vs Claude Code.
Aider
Aider is open-source AI pair programming in your terminal. It works inside your local git repository: it reads the repo, edits several files, runs tests and auto-commits with conventional messages. A "Repo Map" gives the model a picture of the whole codebase.
Good at:
- Model choice. You configure it with whichever model you prefer.
- Architect mode, which uses a reasoning model.
- Extras: voice input, linting and testing, and a scripting mode.
- A large following: about 50K GitHub stars (Terminal Trove).
Lacks:
- Git is required. It expects to run inside a git repository.
- Python tooling to install. You use its install script, uv, pip/pipx or Homebrew. There is also a Docker option.
- No included model use. You bring your own API keys.
- Uncertain maintenance. The latest release we could confirm is v0.86.0, from August 9, 2025. One third-party source says the project is in maintenance mode; the official site doesn't confirm it.
Price: free. You pay your model provider directly.
Pick it if you want every change to land as a git commit you can review or revert, and you're fine with a tool whose future pace is unclear.
Goose
Goose is a free, open-source agent that runs on your machine. It comes as a CLI, a desktop app and an API. Block created it and gave it to the Linux Foundation's Agentic AI Foundation (AAIF) in December 2025.
Good at:
- Any model. It works with any LLM, including local Ollama models (per a third-party tutorial).
- Extensions. It supports MCP servers, and "Recipes" package a workflow so you can reuse or share it.
- Editor integration. It runs as an Agent Client Protocol (ACP) agent, so editors such as Zed and JetBrains IDEs can drive it.
- Mac install. There are separate Apple silicon and Intel downloads, plus a Homebrew cask,
block-goose. The desktop app updates itself. - Active development. The docs describe it as under active and continuous development. v1.50.0, the latest version we saw, came out around September 2026.
Lacks:
- One agent. Our sources didn't show it running other CLI agents side by side or working on remote SSH machines.
- A recent move. In April 2026 the repo moved to
github.com/aaif-goose/gooseand the docs to goose-docs.ai, so older links andblock-goosenames may still show up.
Price: free. Model costs depend on the provider you choose.
Pick it if you want a free agent with a real desktop app and a documented path to local models.
Crush
Crush is a terminal coding agent from Charm, written in Go. It connects to a model and gives it tools to read, write and run code.
Good at:
- Many providers: Anthropic, OpenAI, Gemini, Bedrock, Copilot, Hyper, MiniMax, Vercel and more.
- Code intelligence. It uses LSP and has had dedicated LSP tools since v0.86.0.
- Extensions. It supports MCP servers and agent skills. Since v0.101.0 you can turn skills on and off from its command palette.
- SSH sessions. When it can't open a browser, you can copy the auth link instead.
- Config. It supports AWS Bedrock SSO and a
.crushrcfile. - Frequent releases. v0.101.0 shipped on November 12, 2026, and nightly builds are published.
Lacks:
- Unconfirmed license and price. We couldn't confirm its license or whether it is free.
- Terminal only. There is no GUI for reviewing changes.
- Single agent. We saw no multi-agent orchestration or persistent background sessions.
- Early versions. It is still on 0.x version numbers.
Price: not confirmed. Model use goes through your own providers.
Pick it if you live in the terminal, want language-server awareness, and switch between many providers.
Pi
Pi is a coding-agent CLI by Mario Zechner, from the pi-mono project, started with pi. Sledbot logs in with pi and resumes sessions with pi --session <id>. Sledbot's preset doesn't pass it a model choice.
That is all we can verify. We found nothing on Pi's license, pricing or supported models, so we can't recommend it over the others on those grounds. If you already use Pi and like it, nothing here is a reason to switch.
Gemini CLI, Qwen Code and Codex CLI
These three are open source but tied to one company's models. That makes them simpler to set up and less flexible.
Gemini CLI
Gemini CLI is Google's open-source agent for the terminal, installed as the npm package @google/gemini-cli.
Good at:
- The biggest free model quota on this page. A personal Google account gets 60 requests a minute and 1,000 a day, with no credit card.
- A free API-key tier too. With a Gemini API key you get 250 requests a day and 10 a minute, Flash models only.
- Large context. It has a 1M-token context window.
- Built-in tools: Google Search grounding, file operations, shell commands and web fetching, plus MCP support.
Lacks:
- Uncertain future. Third-party sources report that Google is moving developers to a new, closed-source Antigravity CLI. We haven't seen Google confirm this, and GitHub releases were still coming out in November 2026 (a 0.69.0 nightly on November 10).
- Unknown paid prices. We didn't find prices beyond the free quota.
Pick it if you want a capable agent at no cost today. Check its status before you build a workflow around it.
Qwen Code
Qwen Code is an open-source terminal agent from Alibaba's QwenLM team, released alongside the Qwen3-Coder model.
Good at:
- Active releases. SDK releases bundling CLI 0.27.x came out around November 9 to 10, 2026.
- A large community. One snapshot showed about 28k stars and 3.1k forks.
- MCP. It accepts MCP server configuration.
Lacks:
- Missing details. We found nothing on its supported platforms, model providers or what the models cost.
- No GUI. We saw no graphical app.
Pick it if you want to work with Qwen's coding models and are happy to read the repository for setup details.
Codex CLI
Codex CLI is OpenAI's open-source coding agent, licensed Apache 2.0. It inspects code, makes changes and runs commands in your terminal. On macOS and Linux it installs with a standalone installer.
Good at:
- Flexible sign-in. You can authenticate with a ChatGPT account, an API key or an access token.
- Session management. Subcommands include
codex resume,codex forkandcodex archive.codex applybrings the latest diff from a Codex cloud chat into your local tree. - Frequent releases. It had 640 tagged releases as of March 2026.
Lacks:
- No standalone plan. There is no Codex-only subscription. Heavy use needs a paid ChatGPT plan or pay-per-use API billing.
- Usage caps. Subscription use is capped by rolling 5-hour limits, per third-party guides.
- One agent. We saw no multi-agent dashboard or sessions that keep running after you close it.
Price: the CLI is free. Third-party sources list ChatGPT Plus at $20/month. Sources disagree on whether the Free and Go plans include the CLI, so don't count on them. API use is billed separately.
Pick it if you already pay for ChatGPT and want to use that allowance in the terminal. Our Codex vs Claude Code comparison covers the choice against Anthropic's agent.
Sledbot: runs these agents side by side (paid)
Sledbot is our app, and it is a different kind of tool. It doesn't replace the agents above; it runs them. Sledbot launches 16 CLI agents, including every agent on this page, in real terminals. By default each agent started on a task works in its own git worktree, so your files stay as they are. Agents keep running after you quit the app, and a "Needs you" inbox collects the ones waiting for an answer or a permission.


It also has its own agent, sled chat, which works with any API-key or local model. Settings ▸ Providers lists 49 built-in providers, including local servers: Ollama, LM Studio, llama.cpp, vLLM, MLX, Jan and LocalAI. The native agent has a Build mode and a read-only Plan mode, and every tool call goes through Sledbot's approval rules.
Lacks:
- Not free and not open source. It is part of MacSuite, $349 one-time as of November 2026, which includes every MacSuite app.
- Mac only. It needs macOS 14 or later.
- Limited blocking. Sledbot can stop an action before it runs only for Claude Code and its own agent. For other CLIs it mirrors the agent's own permission prompt as a card and types your answer; it can't stop an action the agent runs without asking.
- Run limits. The native agent pauses after 60 turns per run until you send another message.
- No Apple on-device model. The native agent can't use it.
Pick it if you run several of these agents at once, or on your own servers over SSH. If you run one agent in one terminal, you don't need it. Sledbot is part of MacSuite; you can try it free for 7 days.
Running them on local models
A local model removes the per-token bill. Your prompts and code go to a server on your own Mac instead of a provider. The trade-off is hardware: an agent is only as capable as the model behind it, and the models that fit in 8 or 16 GB of RAM are small. Agents also depend on tool calling (reading files, running commands), so pick a model that supports it. Sledbot's native agent, for example, picks from tool-capable models.
Ollama or LM Studio
| Ollama | LM Studio | |
|---|---|---|
| Price (as of November 2026) | Free for local use (MIT license, per a third-party source); paid Ollama Cloud plans exist | Free for home and work use |
| Mac support | Apple silicon and Intel; one source says Intel Macs run on the CPU only. Sources disagree on the minimum macOS. | Apple silicon only, macOS 14.0 or later |
| Memory guidance | Sources cite about 4 GB of RAM for a 3B model and 8 GB for a 7B model | 16 GB+ recommended; 8 GB Macs are limited to smaller models |
| Install | A .dmg or brew install ollama | Download from lmstudio.ai |
| Developer access | A simple CLI | An OpenAI-compatible API, SDKs, a CLI and a headless daemon |
Ollama is the simpler start if you like the terminal: ollama run llama3.2 gets a model running. LM Studio suits you if you want a desktop app to browse and try models; it runs them through llama.cpp and MLX engines.
Set up a local model for an agent
- Install Ollama or LM Studio.
- Download a model that supports tool calling and fits your Mac's memory.
- Start the local server. (Sledbot, for reference, looks for Ollama at
localhost:11434and LM Studio atlocalhost:1234.) - In the agent's own settings, choose that server as the provider and pick the model. Each agent's documentation has the exact steps.
Goose's local-model support is documented (per a third-party tutorial). For the other agents on this page we couldn't confirm local-model setup, so check their docs, and plan on vendor models for Gemini CLI, Codex CLI and Qwen Code.
Use a local model with Sledbot's native agent
- Start Ollama, LM Studio or another local server.
- Open Sledbot's Settings (⌘,, Command-Comma) and choose Providers. In the Local group, your server should show "Detected on …". If it shows "Nothing is running on …", start the server and click Check again.
- Make sure Enabled is on for that provider. Disabled providers don't appear in model pickers.
- Press ⌘T (Command-T) for New task, choose the agent Sledbot, then pick the local model in the model chip.
From a terminal you can also run sled chat -m provider/model. For a server Sledbot doesn't list, use Add custom endpoint… and turn on Runs on my machine (no internet needed). Our guide to running a local AI coding agent on your Mac goes through the whole setup.
How to choose
- You want to spend nothing and set up nothing: Gemini CLI on a personal Google account, within its daily quota.
- You want no API bill and have an Apple silicon Mac with plenty of RAM: Goose with Ollama.
- You want every change as a git commit: Aider.
- You prefer a desktop app to a terminal: Goose.
- You switch between many providers in the terminal: Crush or OpenCode.
- You already pay for ChatGPT: Codex CLI.
- You want to run several of these at once, or on your own servers: that's what Sledbot is for, and it's paid.
If you're open to closed-source agents too, our list of the best AI coding agents for Mac covers both.
FAQ
Is there a completely free AI coding agent?
Yes, if you pair a free agent with a free model. Goose with a local Ollama model costs nothing per token. Gemini CLI is free within its quota of 1,000 requests a day on a personal Google account.
Is Codex CLI free?
The CLI is free and open source under Apache 2.0. Using it takes a ChatGPT plan or an API key, and sources disagree on whether the Free and Go plans include the CLI. Budget for a paid plan or API billing.
Can an open-source coding agent work without sending code to a provider?
Yes, with a local model: Ollama or LM Studio runs the model on your Mac, so your prompts and code stay there. You still need the internet to install the agent and download models, and some agent features (sign-in, web tools) may need a connection.
Is Gemini CLI being shut down?
Third-party sources report a move to a new Antigravity CLI. We haven't seen Google confirm it, and Gemini CLI releases were still being published in November 2026.