Skip to content

Overview

What is OpenCode?

OpenCode is an open source AI coding agent with over 120,000 GitHub stars, 800 contributors, and trusted by over 5 million developers every month. It helps you write code through an AI-powered conversational interface.

OpenCode is available as:

  • Terminal Interface (TUI) — The primary interface, runs directly in your terminal
  • Desktop App — Available on macOS, Windows, and Linux (beta)
  • IDE Extension — Integrates with your existing editor
  • Web Interface — Access via browser

Key Features

LSP Enabled

OpenCode automatically loads the right Language Server Protocol (LSP) servers for the LLM, providing code intelligence features like go-to-definition, find references, and hover information.

Multi-Session

Start multiple agents in parallel on the same project. Each session runs independently, allowing you to work on different tasks simultaneously.

Share a link to any session for reference or to help debug. Use the /share command to create a shareable link to the current conversation.

Any Model

OpenCode supports 75+ LLM providers through Models.dev, including:

  • Cloud providers: Anthropic (Claude), OpenAI (GPT/ChatGPT), Google (Gemini), xAI (Grok), DeepSeek, and more
  • Subscription plans: GitHub Copilot, ChatGPT Plus/Pro, GitLab Duo
  • OpenCode's own: Zen (curated tested models) and Go (low-cost subscription)
  • Local models: Ollama, LM Studio, llama.cpp

Any Editor

Use OpenCode from your terminal, desktop, IDE, or browser — it adapts to your preferred workflow.

Privacy First

OpenCode does not store any of your code or context data, making it suitable for privacy-sensitive environments.

Architecture

┌─────────────────────────────────────────┐
│              OpenCode Agent             │
├──────┬──────┬──────┬──────┬─────────────┤
│ TUI  │ CLI  │ Web  │ IDE  │ Desktop App │
├──────┴──────┴──────┴──────┴─────────────┤
│            Built-in Tools               │
│  bash · edit · read · grep · glob · ... │
├─────────────────────────────────────────┤
│    MCP Servers · Custom Tools · Plugins │
├─────────────────────────────────────────┤
│         75+ LLM Providers (AI SDK)      │
└─────────────────────────────────────────┘

Modes

OpenCode has two primary modes, switchable with the Tab key:

ModeDescription
BuildThe agent can read, write, and execute code — the default mode for making changes
PlanThe agent can only read and suggest — use this to review a plan before building

Official Resources

Released under the GPLv3 License.