OpenCode

Open source coding agent for the terminal.

Last reviewed 5 December 2026 · MIT · AI & LLM Tools

Licence
Type
Developer tool
GitHub stars
★ 231k
Last commit
December 2026
First release
2025
Hosted version
No

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:

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.

Similar open source projects

Codex CLI

Apache-2.0137k

OpenAI's open source coding agent for the terminal.

Replaces Claude Code, Cursor

Developer toolAI & LLM Tools

Zed

GPL-3.096.4k

High-performance code editor with AI and collaboration.

Replaces Visual Studio Code, Cursor

Cloud option
Desktop appDeveloper Tools

More MIT projects

Excalidraw

MIT137k

Hand-drawn style whiteboard for sketches and diagrams.

Replaces Miro, Lucidchart

Self-hostedCloud option
Self-hostedDesign & Whiteboards

OpenCut

MIT99.9k

Open source CapCut alternative in the browser.

Replaces CapCut

Self-hostedCloud option
Self-hostedVideo & Streaming
Browse 350+ open source alternativesSearch by product, category or licence