OpenCode icon

OpenCode

AI Coding Assistants

OpenCode is an open-source AI coding agent that runs in the terminal and web, enabling developers to use free or external models with a privacy-first, no-account workflow.

At a Glance

Pricing

Free tier available

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

OpenCode Zen (Usage-based): $0

Engagement

Available On

Windows
macOS
Linux
Web

About 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.

Community Discussions

Be the first to start a conversation about OpenCode

Share your experience with OpenCode, ask questions, or help others learn from your insights.

Pricing

FREE

Free Plan Available

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

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

$0
usage based
  • Access to curated, optimized models for coding agents
  • Transparent per-token pricing
  • Add credits and pay per request
  • Cancel anytime
View official pricing

Capabilities

Key Features

  • Open-source AI coding agent
  • Privacy-first: does not store code or context data
  • Supports bundled free models and external model providers (Claude, GPT, Gemini)
  • Available in terminal and web (desktop coming soon)
  • Installable via curl, npm, bun, brew, paru
  • No account, no email, and no credit card required
  • Optional curated Zen models with usage-based pricing

Integrations

Claude
OpenAI (GPT)
Google Gemini