OpenCode icon

OpenCode

OpenCode is an open-source AI coding agent used by hundreds of thousands of developers to run AI coding workflows in the terminal and web. It emphasizes privacy by not storing code or context data, and it supports free built-in models or connections to external providers (including Claude, GPT, Gemini). OpenCode is installable via common package managers and can be used without an account, email, or credit card.

Installation (CLI)

Use any of the following terminal commands to install OpenCode:

# Quick install (recommended)
curl -fsSL https://opencode.ai/install | bash

# Using Node.js package manager
npm install -g opencode-ai
bun install -g opencode-ai
pnpm install -g opencode-ai
yarn global add opencode-ai

# Using Homebrew (macOS & Linux)
brew install opencode

# On Arch Linux (paru)
paru -S opencode-bin

# Windows
choco install opencode
scoop bucket add extras
scoop install extras/opencode

Once installed, run opencode in your terminal to start the agent.

Overview

  • Open-source agent — Maintained on GitHub and open for inspection and contribution.
  • Privacy-first operation — No code or context data is stored.
  • Model-agnostic support — Use bundled free models or connect to Claude, GPT, Gemini, and others.
  • Multiple access options — Terminal-first, with web and desktop support available.
  • No account required — Optional paid services are additive, not required.

For developers who want curated, production-ready models with transparent usage-based pricing, OpenCode also offers Zen, an optional paid model layer.

No discussions yet

Be the first to start a discussion about OpenCode

Developer

Anomaly Innovations Inc. is a developer-focused software company building open, composable infrastructure for the modern cloud and AI-n…read more

Pricing and Plans

(Open Source)

Open-source

Free

Open-source, self-hostable access to the OpenCode agent with no signup required.

  • Full agent access
  • Use bundled free models
  • Connect to external model providers
  • No account or payment required

OpenCode Zen (Usage-based)

Popular
Free

Optional usage-based access to curated AI models provided by OpenCode Zen.

  • Access to curated, optimized models for coding agents
  • Transparent per-token pricing
  • Add credits and pay per request
  • Cancel anytime

System Requirements

Operating System
Windows, macOS, Linux
Memory (RAM)
4 GB+ RAM (8 GB+ recommended)
Processor
64-bit CPU
Disk Space
200 MB+ free disk space

AI Capabilities

Code generation
Code editing
Model-agnostic routing
Privacy-first operation