OpenCode
CLI RequiredGo-based AI coding agent with self-contained ACP support. Lightweight, fast startup, and works with various open and commercial models.
npm install -g opencode-aiOpenCode supports multiple providers. Set the API key for your preferred provider:
export ANTHROPIC_API_KEY=your-keyexport OPENAI_API_KEY=your-keyexport GEMINI_API_KEY=your-keyopencode --versionOpenCode routes to the model provider configured via environment variables. Compatible models include:
- Self-contained ACP -- ACP support is built into the binary. No adapter needed.
- Fast startup -- Written in Go, starts almost instantly compared to Node.js-based agents.
- Multi-provider -- Switch between Anthropic, OpenAI, Google, or local models by changing environment variables.
- Local models -- Works with Ollama for fully offline operation.
- Node.js 18+ (for npm global install)
- At least one provider API key, or Ollama for local models