OpenCode: The Open Source AI Coding Agent for Enhanced Development

This repository profile is provided by osrepos.com, an open source repository discovery platform.

OpenCode: The Open Source AI Coding Agent for Enhanced Development

Summary

OpenCode is a powerful open-source AI coding agent designed to streamline development workflows. Built with TypeScript, it offers specialized agents for tasks ranging from code analysis to full-fledged project building across multiple platforms. With its robust features and active community, OpenCode empowers developers to accelerate their coding processes.

Repository Information

Analyzed by OSRepos on May 23, 2026

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

OpenCode is a highly popular open-source AI coding agent, designed to assist developers in various programming tasks. Written in TypeScript, this project by anomalyco has garnered significant attention, boasting over 164,000 stars and nearly 20,000 forks on GitHub. OpenCode aims to streamline development workflows, offering intelligent assistance for everything from code analysis to building complex projects. It's a powerful tool for enhancing productivity and exploring codebases efficiently.

Installation

OpenCode offers multiple installation methods to suit different environments, including a command-line interface (CLI) and a desktop application.

CLI Installation:

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

# Package Managers
npm i -g opencode-ai@latest        # or bun/pnpm/yarn
scoop install opencode             # Windows
choco install opencode             # Windows
brew install anomalyco/tap/opencode # macOS and Linux (recommended, always up-to-date)
brew install opencode              # macOS and Linux (official brew formula, less frequent updates)
sudo pacman -S opencode            # Arch Linux (Stable)
paru -S opencode-bin               # Arch Linux (Latest from AUR)
mise use -g opencode               # Any system
nix run nixpkgs#opencode           # or github:anomalyco/opencode for latest dev branch

Tip: Delete older versions of 0.1.x before installing.

Desktop Application (BETA):

OpenCode is also available as a desktop application. Download directly from the releases page or from opencode.ai/download.

  • macOS (Apple Silicon): opencode-desktop-mac-arm64.dmg
  • macOS (Intel): opencode-desktop-mac-x64.dmg
  • Windows: opencode-desktop-windows-x64.exe
  • Linux: .deb or .rpm or AppImage
# macOS (Homebrew)
brew install --cask opencode-desktop
# Windows (Scoop)
scoop bucket add extras; scoop install extras/opencode-desktop

Installation Directory:

The installation script respects the following priority for the installation path:

  • $OPENCODE_INSTALL_DIR - Custom installation folder
  • $XDG_BIN_DIR - XDG Base Directory specification compliant path
  • $HOME/bin - Standard user binaries folder (if it exists or can be created)
  • $HOME/.opencode/bin - Fallback default path
# Examples
OPENCODE_INSTALL_DIR=/usr/local/bin curl -fsSL https://opencode.ai/install | bash
XDG_BIN_DIR=$HOME/.local/bin curl -fsSL https://opencode.ai/install | bash

Examples

OpenCode includes built-in agents that cater to different development needs. You can easily switch between them using the Tab button within the application.

  • build: This is the default agent, offering full permissions for development tasks. It's ideal for actively building and modifying projects.
  • plan: A read-only agent designed for code analysis and exploration. It defaults to refusing file modifications and requests permission before running bash commands, making it perfect for exploring unfamiliar codebases or planning changes without risk.
  • general: This sub-agent is used internally for complex search and multi-step tasks. It can be invoked by typing @general in messages.

These agents provide a flexible way to interact with your codebase, whether you're deep in development or just trying to understand a new project.

Why Use OpenCode?

OpenCode offers a compelling suite of features that make it an invaluable tool for modern developers. Its AI-powered capabilities accelerate coding, debugging, and code exploration. Being open-source, it benefits from community contributions and transparency. The specialized agents, build and plan, provide tailored experiences for different stages of development, from active coding to safe code analysis. With extensive documentation and a supportive community, OpenCode empowers you to work more efficiently and effectively across various platforms.

Links

Related repositories

Similar repositories that may be relevant next.

Leetcode Patterns: A Pattern-Based Approach to Technical Interview Prep

Leetcode Patterns: A Pattern-Based Approach to Technical Interview Prep

July 18, 2026

Leetcode Patterns is a highly-starred GitHub repository offering a structured, pattern-based approach to mastering technical interview questions. It helps individuals improve problem-solving skills by grouping LeetCode problems under specific subtopics, allowing for focused practice and application of common algorithms and data structures.

algorithmsdata-structuresinterview-prep
TencentDB Agent Memory: Enhancing AI Agents with Layered Long-Term Memory

TencentDB Agent Memory: Enhancing AI Agents with Layered Long-Term Memory

July 7, 2026

TencentDB Agent Memory provides AI agents with fully local, long-term memory through a 4-tier progressive pipeline, eliminating external API dependencies. It significantly reduces token usage and improves task success rates by employing symbolic short-term memory and layered long-term memory. This innovative approach helps agents learn workflows and retain context more effectively.

AI AgentLong-Term MemoryLLM
Llama Cloud Services: Knowledge Agents and Management in the Cloud

Llama Cloud Services: Knowledge Agents and Management in the Cloud

July 3, 2026

Llama Cloud Services offers tools for building knowledge agents and managing data in the cloud. It provides robust capabilities for parsing various document types, including PDF, DOCX, and PPTX, into structured formats. Users should note that this repository is deprecated, with migration recommended to the new `llama-cloud` packages for continued support and improved performance.

document parsingpdf processingstructured data
FreeLLMAPI: Stack 16 Free LLM Tiers for 1.7 Billion Tokens/Month

FreeLLMAPI: Stack 16 Free LLM Tiers for 1.7 Billion Tokens/Month

June 27, 2026

FreeLLMAPI is an OpenAI-compatible proxy that aggregates the free tiers of 16 LLM providers, offering access to approximately 1.7 billion tokens per month. It simplifies access to diverse models through a single endpoint, featuring smart routing, automatic failover, and encrypted key storage. This powerful tool is designed for personal experimentation, allowing developers to leverage multiple free LLM resources efficiently.

TypeScriptLLMAI

Source repository

Open the original repository on GitHub.

12 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️