CLI tool for AI-assisted coding in the terminal
Top 3.1% on sourcepulse
OpenCode is a Go-based CLI application that provides a terminal-based AI assistant for developers. It offers an interactive TUI for coding assistance, debugging, and task automation, supporting multiple AI providers and offering features like session management, tool integration, and LSP support.
How It Works
OpenCode leverages the Bubble Tea framework for its TUI, enabling a rich terminal experience. It integrates with various AI providers (OpenAI, Anthropic, Google Gemini, AWS Bedrock, Groq, Azure OpenAI, OpenRouter) via API keys. The assistant can execute shell commands, interact with files, and utilize LSP for code intelligence. Custom commands and Model Context Protocol (MCP) allow for extended functionality and integration with external tools.
Quick Start & Requirements
curl -fsSL https://opencode.ai/install | bash
(or via Homebrew: brew install sst/tap/opencode
, or Go: go install github.com/sst/opencode@latest
)~/.opencode.json
, ~/.config/opencode/.opencode.json
, ./.opencode.json
) or environment variables.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
20 hours ago
Inactive