Open-source coding agents
OpenCode on GitHub: what it does and how to use it with AI agents
An open-source coding agent with terminal, desktop and web clients.
Stars, license and last push from the GitHub API, checked 2026-11-08
| Repo | anomalyco/opencode |
|---|---|
| Stars | 225,000+ |
| License | MIT |
| Last push | 2026-11-08 |
| Language | TypeScript, Rust |
What OpenCode does
OpenCode runs coding sessions against the model provider you choose. The v2 line shares a background service across clients, supports MCP connections, and can start scripted sessions in isolated git worktrees.
Who it is for
Developers who want an inspectable coding agent that can use hosted or local models and keep scripted work separate from the main session list.
How to use OpenCode with Claude Code, Codex or Cursor
Read the README and choose a supported install path for your machine.Start with the read-only plan agent while you learn the project.Use an explicit worktree for scripted changes, and review the diff before merging it.Add MCP servers one at a time and keep permissions narrow.
Tip: The v2.2.6 release adds shared MCP connections, worktree runs and archived runs. Test those modes on a small repository before using them in production.
The loadout for this repo
See the full tool stack, prompts and costs in Best AI coding agent setup.
Related repos
- OpenAI Codex CLI: OpenAI's open-source coding agent that runs in your terminal.
- Anthropic Agent Skills: Public repo of Agent Skills: folders of instructions and scripts an agent loads when needed.
- Ollama: Run open models like Qwen, DeepSeek, gpt-oss and Gemma on your own machine.
OpenCode FAQ
Is OpenCode open source?
Yes. The repository is public and carries an MIT license.
What changed in OpenCode 2.2.6?
The release adds opt-in shared MCP connections, scripted worktree runs, archived runs and more reliable waiting for background jobs.
Can OpenCode use local models?
The README lists multiple providers, so check the current provider documentation for the local endpoint you want to use.
Star counts change daily. Always read a repo's license and code before running it. All repos