OpenCode: Open-Source Terminal-Native AI Coding Agent
OpenCode: Open-Source Terminal-Native AI Coding Agent
OpenCode is an open-source, terminal-native AI coding agent with a text user interface (TUI). It's model-agnostic, working with 75+ providers and local models, offering a vendor-neutral alternative to proprietary AI coding tools.
Features
Terminal-Native TUI
Dedicated text user interface that runs entirely in your terminal, providing a clean and distraction-free coding environment.
Model-Agnostic Platform
Works with 75+ AI providers and local models, giving you the freedom to choose your preferred AI backend without vendor lock-in.
Multi-Session Projects
Supports multiple concurrent coding sessions, allowing you to work on different projects or tasks simultaneously.
Shareable Session Links
Generate shareable links to your coding sessions for collaboration and knowledge sharing with team members.
Built-in LSP Support
Integrated Language Server Protocol support for enhanced code intelligence, autocompletion, and error detection.
Configurable Agents
Task-specific prompts and tools that can be customized for different coding workflows and programming languages.
IDE Integration
Works seamlessly within the integrated terminals of popular IDEs like VS Code, Cursor, and others—no special GUI required.
Optional Claude Pro/Max Integration
Optional sign-in with Claude Pro/Max for enhanced capabilities while maintaining flexibility to use other models.
Key Capabilities
- Multi-Provider Support: Connect to any of 75+ AI providers or local models
- Session Management: Create, save, and share coding sessions
- Code Intelligence: Built-in LSP support for real-time code analysis
- Terminal Integration: Native terminal experience without switching contexts
- Open Source: Fully open-source with active community development
- Flexible Configuration: Customize agents and workflows for specific tasks
Installation Options
Curl Installer (Recommended)
curl -fsSL https://opencode.ai/install | bash
npm
npm install -g opencode-ai
Homebrew (macOS)
brew install sst/tap/opencode
Usage
- Navigate to your project folder in the terminal
- Run
opencodeto start the TUI - Choose your preferred AI model/provider
- Begin AI-assisted coding directly in the terminal
Best For
- Developers who prefer terminal-based workflows
- Teams seeking vendor-neutral AI coding solutions
- Open-source enthusiasts who want transparency and customization
- Developers working across multiple AI providers
- Terminal-heavy development environments
- Projects requiring AI model flexibility and local hosting options
- Collaborative coding sessions with shareable links
Last built with the static site tool.