Cursor alternatives compared
| Project | Licence | Type | Self-host | Cloud option | GitHub stars |
|---|---|---|---|---|---|
| OpenCode | MIT | Developer tool | — | — | ★ 231k |
| Codex CLI | Apache-2.0 | Developer tool | — | — | ★ 137k |
| Zed | GPL-3.0 | Desktop app | — | ✓ Yes | ★ 96.4k |
| Cline | Apache-2.0 | Developer tool | — | — | ★ 72.1k |
| Continue | Apache-2.0 | Developer tool | — | — | ★ 36.6k |
The 5 open source alternatives to Cursor
OpenCode is a terminal-based AI coding agent with a polished TUI. It works with 75+ model providers, including local models, and supports LSP, MCP servers and multiple sessions.
- 75+ model providers
- Terminal UI plus desktop and IDE clients
- LSP and MCP support
- Shareable sessions
Codex CLI is a lightweight coding agent from OpenAI that reads, edits and runs code in your terminal, with sandboxing and approval modes. The client is open source and written in Rust.
Note: The client is open source, but it is designed for OpenAI's models and account sign-in.
- Sandboxed command execution
- Approval modes
- MCP support
- Written in Rust
Zed is a fast code editor written in Rust by the creators of Atom. It has built-in real-time collaboration, AI agent features with any model, and was open-sourced in 2024.
Note: The editor is GPL-3.0; the collaboration server is AGPL-3.0.
- GPU-accelerated, very fast
- Built-in AI agent with any model
- Real-time multiplayer editing
- macOS, Linux and Windows
Cline is an AI coding agent for VS Code that can create and edit files, run terminal commands and use the browser, asking for your approval at each step. You bring your own model API key or local model.
- Plans and edits across your codebase
- Runs commands with your approval
- MCP tool support
- Any model provider
Continue adds chat, autocomplete, edits and agents to VS Code and JetBrains IDEs, with any model you choose: local models through Ollama or any cloud API.
- Chat, autocomplete and agent mode
- Any model, local or cloud
- VS Code and JetBrains extensions
- Custom rules and context providers
How to choose an open source alternative to Cursor
Look for agent and chat features inside the editor you already use, and the freedom to choose your model provider.
If you'd rather just install an app, Zedruns directly on your device. Don't want to run a server? Zedoffers an official hosted version.
Not sure where to start? Browse all ai & llm tools projects.
Cursor alternatives: FAQ
What is the best open source alternative to Cursor?
OpenCode is the most complete open source alternative to Cursor on our list, followed by Codex CLI and Zed. The best choice depends on what you need: Look for agent and chat features inside the editor you already use, and the freedom to choose your model provider.
Is there a free alternative to Cursor?
Yes. Every alternative listed here is open source, so the software itself is free to use. Some, such as Zed, also sell an optional hosted version if you don't want to run it yourself.
Is there an open source Cursor alternative I can install as an app?
Zed (desktop app) runs directly on your device, with no server needed.
Why switch from Cursor to open source software?
Cursor is proprietary software owned by Anysphere: you can't see the code, and pricing, features and terms can change at any time. Open source alternatives publish their code under licences such as MIT, Apache-2.0 and GPL-3.0, can be audited by anyone, and can't lock you in, because the software can always be forked or self-hosted.