OpenCode
The open source AI coding agent
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.
Compare OpenCode
3 head-to-head comparisons.
Similar self-hosted ai apps
OpenClaw
Self-Hosted AIThe AI that actually does things
Hermes Agent
Self-Hosted AIThe AI agent that grows with you
Hugging Face Transformers
Self-Hosted AIState-of-the-art machine learning model library
Replaces OpenAI API
Dify
Self-Hosted AIOpen-source platform for building production LLM apps
Replaces OpenAI Assistants, Vertex AI Agent Builder
Langflow
Self-Hosted AIVisual framework for building AI agents and RAG pipelines
Replaces Vertex AI Agent Builder
RAGFlow
Self-Hosted AIRAG engine with deep document understanding
Replaces NotebookLM