opencode
SHA-256OpenCode is a free, open-source AI coding agent that helps you write, refactor, and understand code. It offers two built-in modes: a full-access 'build' agent for active coding and a read-only 'plan' agent for safe exploration.
Smart Download
Download Download Version
v1.17.11 · 144.7 MB
An open-source, locally-runnable AI coding agent with dual modes: build (full access) and plan (read-only analysis).
Core Features
- Two built-in agents: 'build' with full file access for coding, and 'plan' with read-only access for safe analysis
- Terminal-first interface with optional desktop app (GUI), integrates into existing workflows
- Completely open source (MIT license), self-hostable, protecting your code privacy
- Cross-platform support via multiple package managers (npm, Homebrew, Scoop, Pacman, etc.)
What It Can't Do
- •Remove any versions older than 0.1.x before installing a new one; the 'plan' agent denies file edits by default — switch to 'build' if you need to modify code; some Linux distributions require curl and bash.
Use Cases
- Daily development: generate, refactor, and debug code autonomously
- Codebase exploration: analyze unfamiliar projects without risk of unintended modifications
Detailed Introduction
OpenCode is a powerful, open-source AI coding agent designed to supercharge your development workflow. Unlike proprietary tools like GitHub Copilot or Cursor, OpenCode is fully transparent, MIT-licensed, and runnable locally or in your own infrastructure. It features two built-in agents: a full-access 'build' agent for autonomous coding and a read-only 'plan' agent for safe code analysis, making it ideal for both active development and exploring unfamiliar codebases. The terminal-first interface integrates seamlessly into existing workflows, and the desktop app offers a GUI for those who prefer it. With support for multiple package managers and a growing community, OpenCode is a privacy-respecting, extensible alternative for developers who value control and flexibility.
Tags
Getting Started
Download installer
Click the button above to download the installer for your system
Install the software
Install the appropriate package for your distro (dpkg / rpm / AppImage)
Run curl -fsSL https://opencode.ai/install | bash in your terminal for one-command installation
After installation, run 'opencode' in your project directory to launch the terminal UI
Press Tab to switch between 'build' and 'plan' agents
- Run curl -fsSL https://opencode.ai/install | bash in your terminal for one-command installation
- After installation, run 'opencode' in your project directory to launch the terminal UI
- Press Tab to switch between 'build' and 'plan' agents
SHA-256 checksum verified
Checksum extracted from GitHub official Release page
SHA256 Checksum
3b0935da8ed537bc02bc40fad37291d0450e23de7c222540522c0fc20258e1f7This checksum is extracted from the GitHub Release page. Verify file integrity after download.
All SHA-256 checksums on this platform are extracted from the project's official GitHub Release page, without any modification. You can independently verify them on the GitHub Releases page.
Open Source Transparency
View GitHub SourceUninstall Info
Run curl -fsSL https://opencode.ai/uninstall | bash to fully remove OpenCode. If installed via a package manager, use the corresponding uninstall command (e.g., npm uninstall -g opencode-ai).
No Extra Dependencies
Ready to use after download. No additional runtime required.
Similar Projects
Visual Studio Code (Code - OSS)
A free, open-source code editor by Microsoft with rich extensions, debugging, and Git integration. The most popular developer tool worldwide.
scrcpy
Display and control your Android device from your computer via USB or TCP/IP. No root required, high performance, low latency, supports audio and video mirroring.
lazygit
A simple terminal UI for git commands