ZadeNor AI
Back to Blog
AI

sst/opencode: Trending on GitHub

January 6, 2026
5 min
2,059 views
By ZadeNor AI Team
sst/opencode: Trending on GitHub

sst/opencode: Trending on GitHub

The Rise of OpenCode: Revolutionizing AI Coding with Open Source

In the rapidly evolving landscape of artificial intelligence (AI) and coding, a new player has emerged to shake things up. OpenCode, an open-source AI coding agent, is making waves on GitHub with its innovative approach to coding and development. In this article, we'll delve into the world of OpenCode, exploring its features, benefits, and implications for the coding community.

Installation and Setup

Getting started with OpenCode is relatively straightforward. With a range of installation options available, users can choose the method that best suits their needs. Whether you're a Windows, macOS, or Linux user, OpenCode has got you covered. The installation process involves downloading the OpenCode agent and following the prompts to set it up.

# YOLO
curl -fsSL https://opencode.ai/install | bash

# Package managers
npm i -g opencode-ai@latest        # or bun/pnpm/yarn
scoop bucket add extras; scoop install extras/opencode  # Windows
choco install opencode             # Windows
brew install opencode              # macOS and Linux
paru -S opencode-bin               # Arch Linux
mise use -g opencode               # Any OS
nix run nixpkgs#opencode           # or github:anomalyco/opencode for latest dev branch

Desktop App (BETA)

For those who prefer a more traditional desktop experience, OpenCode is also available as a desktop application. The desktop app offers a range of features, including a user-friendly interface and the ability to run OpenCode on your local machine.

Platform and Download

OpenCode is available for download on a range of platforms, including:

  • macOS (Apple Silicon)
  • macOS (Intel)
  • Windows
  • Linux

To download the desktop app, simply visit the OpenCode website and follow the prompts to download the appropriate version for your operating system.

Installation Directory

When installing OpenCode, the install script respects a priority order for the installation path. This ensures that OpenCode is installed in the most convenient location for the user. The priority order is as follows:

  • $OPENCODE_INSTALL_DIR - Custom installation directory
  • $XDG_BIN_DIR - XDG Base Directory Specification compliant path
  • $HOME/bin - Standard user binary directory (if exists or can be created)
  • $HOME/.opencode/bin - Default fallback

Agents

OpenCode includes two built-in agents that users can switch between with the Tab key. The agents are designed to provide different levels of access and functionality, making it easier for users to work with code.

  • build - Default, full access agent for development work
  • plan - Read-only agent for analysis and code exploration

The build agent provides full access to code, allowing users to edit and modify files. The plan agent, on the other hand, is read-only, making it ideal for analysis and code exploration.

Denies File Edits by Default

One of the key features of the plan agent is that it denies file edits by default. This ensures that users cannot accidentally modify code while using the plan agent.

Asks Permission Before Running Bash Commands

The plan agent also asks permission before running bash commands. This provides an additional layer of security and ensures that users are aware of any changes being made to their code.

Ideal for Exploring Unfamiliar Codebases or Planning Changes

The plan agent is ideal for exploring unfamiliar codebases or planning changes. Its read-only nature makes it perfect for analysis and code exploration, allowing users to gain a deeper understanding of their code without risking any accidental modifications.

General Subagent for Complex Searches and Multistep Tasks

In addition to the build and plan agents, OpenCode also includes a general subagent for complex searches and multistep tasks. This subagent is used internally and can be invoked using @general in messages.

Learn More About Agents

For more information on the agents included with OpenCode, please visit the OpenCode website and explore the documentation.

Documentation

For more information on how to configure OpenCode, please visit the OpenCode website and explore the documentation. The documentation provides a comprehensive guide to getting started with OpenCode, including installation, setup, and usage.

Contributing

If you're interested in contributing to OpenCode, please read the contributing documentation before submitting a pull request. The contributing documentation provides a guide to the development process and the guidelines for contributing to the OpenCode project.

Building on OpenCode

If you are working on a project that's related to OpenCode and is using "opencode" as a part of its name; for example, "opencode-dashboard" or "opencode-mobile", please add a note to your README to clarify that it is not built by the OpenCode team and is not affiliated with us in any way.

FAQ

How is this different from Claude Code?

OpenCode is similar to Claude Code in terms of capability, but it's 100% open source and not coupled to any provider. OpenCode can be used with Claude, OpenAI, Google, or even local models. The out-of-the-box LSP support and focus on TUI make OpenCode a unique solution.

What's the other repo?

The other confusingly named repo has no relation to this one. You can read the story behind it here.

Join Our Community

Join our community Discord | X.com to connect with other OpenCode users and developers. Share your experiences, ask questions, and contribute to the OpenCode project.

Conclusion

OpenCode is a revolutionary open-source AI coding agent that's making waves on GitHub. With its innovative approach to coding and development, OpenCode is poised to change the way we work with code. Whether you're a developer, a data scientist, or a business leader, OpenCode is an essential tool to have in your toolkit. Join the OpenCode community today and discover the power of open-source AI coding.


Source: https://github.com/sst/opencode

About the Author

ZadeNor AI Team is a leading expert in AI, contributing to cutting-edge research and development in the field.