OpenCode vs Pi
Comparing two open source alternatives to Claude Code and Codex. Use the comparison below to decide which one fits your needs.

OpenCode
MITOpen-source AI coding agent with a terminal UI, desktop and web apps, bring-your-own models, agents, plugins, and MCP support.

Pi
MITMinimal, extensible open-source coding agent CLI with a multi-provider LLM API, packages, MCP support, and a TypeScript SDK.
Side-by-side comparison
OpenCode | Pi | |
|---|---|---|
| License | MIT | MIT |
| Self-hostable | Yes | Yes |
| GitHub Stars | 228,937 | 123,703 |
| Forks | 31,138 | 15,977 |
| Open Issues | 4,102 | 307 |
| Last Commit | Nov 24, 2026 | Nov 24, 2026 |
| First Released | Apr 30, 2025 | Aug 9, 2025 |
| Categories | ||
| Tags |
GitHub stars over time
GitHub stars over time
Similar open source alternatives

Ollama
Get up and running with Llama 3.3, DeepSeek-R1, Phi-4, Gemma 3, Mistral Small 3.1 and other large language models.

Lobe Chat
Open-source AI chat and agent platform with multi-provider support, RAG, plugins, and an agent marketplace — self-hostable ChatGPT alternative.

Juggler
A self-hostable, GUI-first AI coding agent with editable conversation trees, plugin-based tools, and multi-client sessions.
Cursor
OpenComputer
Open-source Devin alternative: a Slack-first coding agent that works on its own cloud computer and opens pull requests.
Devin
MiMoCode
An open-source terminal-native AI coding agent with cross-session memory, multiple agents, and support for any LLM provider.

Onyx
Onyx is an open-source AI chat and enterprise search platform with RAG that works with every LLM. Bring your own model, connect your tools, and unify all your team's knowledge.
Glean