OpenCode

Active
GitHub TypeScript MIT

Description

OpenCode is an open-source terminal coding agent that supports multiple LLM providers, offering AI-powered code generation and editing in the terminal.

Key Features

  • Terminal TUI interface - Interactive terminal-based coding UI with multiline editing and streaming output
  • Dual agent mode - Built-in build (full-access dev) and plan (read-only analysis) agents, switch with Tab
  • Multi-LLM provider - Supports Anthropic, OpenAI, Google, and more with flexible configuration
  • Desktop app (Beta) - Native desktop clients for macOS, Windows, and Linux
  • Subagent collaboration - Built-in general subagent for complex searches and multistep tasks
  • Wide package manager support - npm, brew, scoop, pacman, nix, mise, and 10+ install methods

Use Cases

💡 Use AI-assisted coding directly in the terminal without leaving the command line for code generation and refactoring
💡 Use the plan agent to quickly analyze unfamiliar codebases, then switch to build agent for implementation
💡 Invoke the @general subagent for complex cross-file searches and refactoring tasks
💡 Perform AI coding in resource-constrained servers or SSH environments using the lightweight terminal UI

Quick Start

# One-line install
curl -fsSL https://opencode.ai/install | bash

# Or install via npm
npm i -g opencode-ai@latest

# Launch in your project directory
opencode

# Press Tab to switch between build and plan agents

Related Projects

Related Articles