OpenCode Multi-Model AI Coding Agent CLI
An open-source terminal-native AI coding agent written in Go that supports 75+ LLMs including Claude, GPT, Gemini, and local models. Provides file editing, code generation, shell command execution, and project understanding without subscription fees.
Installation
Use the upstream install or setup path that matches your environment:
- brew install opencode-ai/tap/opencode
- go install github.com/opencode-ai/opencode@latest
- git clone https://github.com/opencode-ai/opencode.git
Basic usage or getting-started notes:
Using the Install Script
bash
curl -fsSL https://raw.githubusercontent.com/opencode-ai/opencode/refs/heads/main/install | VERSION=0.1.0 bash
Extracted from upstream docs: https://raw.githubusercontent.com/opencode-ai/opencode/HEAD/README.md