OpenCode — The Open-Source AI Coding Agent
Why OpenCode
- Not locked to any provider — use Claude, GPT-4, Gemini, Llama, or any model
- Terminal-native — beautiful TUI that developers actually want to use
- LSP integration — real language understanding, not just text matching
- Client/server architecture — run remotely on beefy machines, connect from anywhere
- Desktop app — available for macOS, Windows, and Linux
Two Built-in Agents
| Agent | Access | Use Case |
|---|---|---|
| build | Full read/write/execute | Implement features, fix bugs, run tests |
| plan | Read-only analysis | Understand code, plan architecture, review |
Installation Methods
# Quick install (recommended)
curl -fsSL https://opencode.ai/install | bash
# npm
npm i -g opencode-ai@latest
# Homebrew (macOS)
brew install anomalyco/tap/opencode
# Scoop (Windows)
scoop bucket add anomalyco https://github.com/anomalyco/scoop-bucket.git
scoop install opencode
# Pacman (Arch Linux)
pacman -S opencodeKey Features
- TUI-first design — purpose-built terminal interface
- Language Server Protocol — real code understanding
- Custom commands — extend with your own slash commands
- GitHub Actions bot — run as CI/CD agent
- Multi-model support — 75+ LLM providers
- Client/server mode — remote development support
- MIT licensed — truly open source
FAQ
Q: What is OpenCode? A: OpenCode is a free, open-source AI coding agent that runs in your terminal. It supports 75+ LLM providers and features two built-in agents (build and plan) with native LSP integration.
Q: How does OpenCode compare to Claude Code? A: OpenCode is fully open-source (MIT) and provider-agnostic, while Claude Code is Anthropic-specific. OpenCode has a TUI-first design with client/server architecture for remote development.
Q: Is OpenCode free? A: Yes, OpenCode is free and open-source under the MIT license. You only pay for the LLM API you choose to use.