OpenCode Documentation
Welcome to OpenCode documentation! OpenCode is an open-source AI coding assistant that provides intelligent code completion, code generation, and conversational programming experience.
Quick Start
Free Download
OpenCode is completely open source and free. You can install it via:
# Using Homebrew (macOS/Linux)
brew install opencode-ai/tap/opencode
# Using npm
npm install -g opencode
# Using Go
go install github.com/opencode-ai/opencode@latestOpenCode vs Claude Code
| Feature | OpenCode | Claude Code |
|---|---|---|
| Open Source | ✅ Fully Open Source | ❌ Closed Source |
| Price | 🆓 Free | 💰 Paid Subscription |
| Provider Support | ✅ Multiple Providers (OpenAI, Anthropic, Local Models, etc.) | ❌ Anthropic Only |
| Self-hosted | ✅ Supported | ❌ Not Supported |
| Privacy | ✅ Code stays local (optional) | ⚠️ Code uploaded to servers |
| Customization | ✅ Highly Customizable | ❌ Limited |
Documentation
Getting Started
- Introduction - OpenCode Overview
- Configuration - Basic Configuration
- Provider Setup - Configure AI Providers
- Network Settings - Proxy and Network Configuration
Usage
- TUI Interface - Interactive Terminal UI
- CLI Commands - Command Line Tool
- IDE Integration - Editor Integration
Advanced
- Custom Tools - Extend Functionality
- Agent Skills - AI Agent Capabilities
- MCP Servers - Model Context Protocol
This is a community-maintained documentation site, not official. For official documentation, visit opencode.ai (opens in a new tab)