Introduction

OpenCode is an open source AI coding agent that helps you write, edit, and explore code directly from your terminal. It is similar to Claude Code in capability, but with key differences that make it stand out.

Key Features

1. 100% Open Source

  • Fully open source with transparent development
  • Community-driven improvements
  • No vendor lock-in

2. Provider Agnostic

  • Works with multiple AI providers: Claude, OpenAI, Google, or even local models
  • Use OpenCode Zen for recommended models, or configure your own
  • Future-proof as models evolve and pricing drops

3. Built-in LSP Support

  • Out-of-the-box Language Server Protocol support
  • Enhanced code understanding and editing

4. Focus on TUI (Terminal UI)

  • Built by neovim users for terminal power users
  • Pushes the limits of what is possible in the terminal
  • Lightweight and fast

5. Client/Server Architecture

  • Run OpenCode on your computer while driving it remotely
  • TUI is just one of many possible clients
  • Mobile-friendly interaction

6. Two Built-in Agents

  • build agent: Full-access agent for development work
  • plan agent: Read-only agent for analysis and code exploration
  • Switch between agents using the Tab key

Quick Install

One-line install (macOS/Linux):

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

Package Managers:

npm i -g opencode-ai@latest
brew install anomalyco/tap/opencode
scoop install opencode  # Windows
sudo pacman -S opencode  # Arch Linux

Desktop Application:

OpenCode is also available as a desktop app for macOS, Windows, and Linux. Download from: https://opencode.ai/download

Documentation

Why Choose OpenCode?

If you like Claude Code but want an open source alternative, or if you prefer terminal-based workflows with the flexibility to use any AI provider, OpenCode is worth checking out.

Try it out and share your experience!

#AI #OpenSource #CodingAgent #Terminal #CLI #DeveloperTools #OpenCode