OpenCode logo

OpenCode

OpenCode is an AI coding agent built for the terminal that provides a TUI-based interface for AI-assisted development workflows. Built by the SST team using Bun, TypeScript, and a client/server architecture, it features provider-agnostic AI model support (Anthropic, OpenAI, Google, local models), MCP server integration for extensible tool capabilities, real-time collaboration through Cloudflare Workers with Durable Objects, and comprehensive project management including file operations, git integration, and LSP client support. The implementation emphasizes terminal-first design with advanced TUI capabilities, supports multiple installation methods including npm and Homebrew, and enables natural language interaction with codebases while maintaining full version control integration, making it valuable for developers who prefer command-line workflows and need AI assistance without leaving their terminal environment.