Skip to content

OpenCode

Categories
  • Coding & Development
Pricing
Free / Freemium

OpenCode is the leading open-source terminal coding agent with over 161,000 GitHub stars. Its defining feature is provider freedom — it supports 75+ model providers including Anthropic, OpenAI, Gemini, DeepSeek, Groq, and local models via Ollama. The dual-agent system separates planning (read-only analysis) from building (full tool access), and LSP integration brings IDE-level intelligence to the terminal. For developers who value open-source flexibility and provider independence, OpenCode is a compelling alternative to proprietary tools.

Key Features

  • 75+ provider support — never locked into a single model vendor
  • Dual-agent architecture: Plan agent (read-only) + Build agent (full access)
  • LSP integration for go-to-definition, diagnostics, and type-aware context
  • Client/server architecture with session persistence across terminals
  • Desktop app for macOS, Windows, and Linux (Tauri-based)

Usage Guide

Setting Up OpenCode

  1. Install: `npm install -g @opencode-ai/cli` or download the desktop app.
  2. Configure your preferred providers: `opencode config set provider anthropic`.
  3. Set API keys for each provider you want to use.
  4. Run `opencode` in any project directory to start a session.
  5. Use `@filename` to reference specific files and ask for targeted edits.

What can it achieve?

  • Multi-Model Workflows

    Use DeepSeek for fast edits and Claude for complex reasoning — switch providers without changing your workflow.

  • Offline Development

    Connect OpenCode to a local Ollama instance with DeepSeek V4 or Llama models for fully offline coding.

  • Team Collaboration

    Share persistent sessions across team members for collaborative debugging and code review.