OP

OpenCode

The open source AI coding agent

Self-Hosted AI ★ 213.3k stars Easy setup free

OpenCode is an open source AI coding agent designed to enhance your development workflow across terminal, IDE, and desktop environments. Use it to chat about code, generate changes, and execute sophisticated multi-session workflows across your projects. Key features include support for multiple AI model providers (including Claude, GPT-4, and local models), intelligent context-aware code suggestions via LSP integration, and the ability to perform complex refactoring tasks. OpenCode can help you write new features, debug issues, refactor code, and explain complex codebases in natural language. .

Key features

  • Terminal-first coding agent
  • Provider-agnostic model support
  • LSP-aware code context
  • Multi-session parallel agents

Pros & cons

Strengths

  • Works with many providers
  • LSP-aware code context
  • Terminal and IDE support

Trade-offs

  • API costs add up
  • Fast-moving young project

Is OpenCode secure?

No known vulnerabilities affect OpenCode's latest release (v1.19.0). OSV.dev lists 2 past advisories for the project; none of them applies to this release. No known vulnerabilities is not proof of security: it means none have been publicly catalogued.

  • Most recent fixed advisory CVE-2026-22813, published 2026-01-12 (275 days ago), fixed in 1.1.10

Source: OSV.dev, checked 2026-10-14. How this is measured.

OpenCode replaces

Health badge

Maintain OpenCode? Add its health score to your README. The badge links back to this page.

SelfHostIndex: 100 · excellent

Markdown
[![SelfHostIndex health score for OpenCode](https://selfhostindex.com/badge/opencode.svg)](https://selfhostindex.com/app/opencode/)
HTML
<a href="https://selfhostindex.com/app/opencode/"><img src="https://selfhostindex.com/badge/opencode.svg" alt="SelfHostIndex health score for OpenCode"></a>
reStructuredText
.. image:: https://selfhostindex.com/badge/opencode.svg
   :alt: SelfHostIndex health score for OpenCode
   :target: https://selfhostindex.com/app/opencode/

The score is recomputed on every nightly rebuild from public repository data — see how it is calculated.

Compare OpenCode

3 head-to-head comparisons.

Similar self-hosted ai apps