OpenCode
Open-source AI coding agent available as an interactive terminal interface (TUI) and editor extension.
- Official Website: opencode.ai
- GitHub Repository: github.com/opencode-ai/opencode
- Category: Development Tools
- Type: AI Coding Agent (CLI & IDE Extensions)
- Pricing / License: Open Source
Overview
OpenCode is an open-source AI coding agent built to give developers full freedom over their AI models and environments. It runs as a terminal application featuring a rich Terminal User Interface (TUI) and provides companion extensions for major code editors like VS Code, Cursor, and JetBrains IDEs.
With native support for a wide variety of AI providers (Anthropic, OpenAI, Google Gemini, Ollama, and local models), OpenCode excels at editing code, navigating file structures, and executing tasks across static web projects.
Key Highlights & Features
- Terminal User Interface (TUI): Beautiful, responsive keyboard-driven interface built with Bubble Tea.
- Multi-Model Flexibility: Connect to OpenAI, Anthropic Claude, Gemini, or self-hosted open-weights models via Ollama.
- Editor Extensions: Seamlessly switch between standalone CLI sessions and embedded editor panels in VS Code or Cursor.
- Non-Interactive Batch Mode: Run one-off scripting tasks via
opencode run "..."for CI/CD and automation scripts. - LSP Code Intelligence: Uses Language Server Protocols to understand project dependencies and syntax rules accurately.
Example Usage with Static Websites
Launching the Terminal Interface
opencode
Running a Quick Refactor Task
opencode run "Extract all inline CSS styles from index.html into a clean styles.css file and link it in the header"
When to Use It
- Developers seeking an open-source, privacy-first alternative to proprietary AI coding tools.
- Those who want to use local or specialized LLMs for code editing without cloud lock-in.
- Teams wanting both a fast terminal agent and editor extension integration.
Community Discussion
Ask questions, share integration tips, or leave feedback for OpenCode.