OpenSource-Hub
O

opencode

SHA-256
179.9k stars·Developer Tools·SHA-256 checksum verified

OpenCode 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

AI coding agentopen sourcecode assistantterminaldeveloper tools

Getting Started

1

Download installer

Click the button above to download the installer for your system

2

Install the software

Install the appropriate package for your distro (dpkg / rpm / AppImage)

3

Run curl -fsSL https://opencode.ai/install | bash in your terminal for one-command installation

4

After installation, run 'opencode' in your project directory to launch the terminal UI

5

Press Tab to switch between 'build' and 'plan' agents

Install Guide
  1. Run curl -fsSL https://opencode.ai/install | bash in your terminal for one-command installation
  2. After installation, run 'opencode' in your project directory to launch the terminal UI
  3. Press Tab to switch between 'build' and 'plan' agents
File Integrity

SHA-256 checksum verified

Checksum extracted from GitHub official Release page

SHA256 Checksum

3b0935da8ed537bc02bc40fad37291d0450e23de7c222540522c0fc20258e1f7

This 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 Source
Environment Guide

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

Project Info
LicenseMIT
Last Updated2026-06-28T06:28:46Z
GitHub RepositoryOfficial Website

Similar Projects