What is OpenCode?
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.
Key features
- 75+ model providers
- Terminal UI plus desktop and IDE clients
- LSP and MCP support
- Shareable sessions
OpenCode as an open source alternative
OpenCode is listed on 2 of our comparison pages as an open source replacement for Cursor and Claude Code. Compare it with the other options:
- Open source alternatives to Cursor (5 options)
- Open source alternatives to Claude Code (5 options)
Licence
OpenCode is released under the MIT licence, a permissive licence. More MIT software →
OpenCode: FAQ
Is OpenCode open source?
Yes. OpenCode is released under the MIT licence (permissive), and its source code is public.
Is OpenCode free?
The software is free to use.
What does OpenCode replace?
OpenCode is an open source alternative to Claude Code and Cursor.
Can I self-host OpenCode?
OpenCode runs on your own machine or in your own development environment.