{"name":"OpenCode: The Open Source AI Coding Agent for Enhanced Development","description":"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.","github":"https://github.com/anomalyco/opencode","url":"https://osrepos.com/repo/anomalyco-opencode","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/anomalyco-opencode","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/anomalyco-opencode.md","json":"https://osrepos.com/repo/anomalyco-opencode.json","topics":["TypeScript","AI","Coding Agent","Developer Tools","Open Source","Productivity","CLI"],"keywords":["TypeScript","AI","Coding Agent","Developer Tools","Open Source","Productivity","CLI"],"stars":null,"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.","content":"## Introduction\n\nOpenCode 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.\n\n## Installation\n\nOpenCode offers multiple installation methods to suit different environments, including a command-line interface (CLI) and a desktop application.\n\n**CLI Installation:**\n\nbash\n# YOLO\ncurl -fsSL https://opencode.ai/install | bash\n\n# Package Managers\nnpm i -g opencode-ai@latest        # or bun/pnpm/yarn\nscoop install opencode             # Windows\nchoco install opencode             # Windows\nbrew install anomalyco/tap/opencode # macOS and Linux (recommended, always up-to-date)\nbrew install opencode              # macOS and Linux (official brew formula, less frequent updates)\nsudo pacman -S opencode            # Arch Linux (Stable)\nparu -S opencode-bin               # Arch Linux (Latest from AUR)\nmise use -g opencode               # Any system\nnix run nixpkgs#opencode           # or github:anomalyco/opencode for latest dev branch\n\n\n> **Tip:** Delete older versions of 0.1.x before installing.\n\n**Desktop Application (BETA):**\n\nOpenCode is also available as a desktop application. Download directly from the [releases page](https://github.com/anomalyco/opencode/releases) or from [opencode.ai/download](https://opencode.ai/download).\n\n*   macOS (Apple Silicon): `opencode-desktop-mac-arm64.dmg`\n*   macOS (Intel): `opencode-desktop-mac-x64.dmg`\n*   Windows: `opencode-desktop-windows-x64.exe`\n*   Linux: `.deb` or `.rpm` or AppImage\n\nbash\n# macOS (Homebrew)\nbrew install --cask opencode-desktop\n# Windows (Scoop)\nscoop bucket add extras; scoop install extras/opencode-desktop\n\n\n**Installation Directory:**\n\nThe installation script respects the following priority for the installation path:\n\n*   `$OPENCODE_INSTALL_DIR` - Custom installation folder\n*   `$XDG_BIN_DIR` - XDG Base Directory specification compliant path\n*   `$HOME/bin` - Standard user binaries folder (if it exists or can be created)\n*   `$HOME/.opencode/bin` - Fallback default path\n\nbash\n# Examples\nOPENCODE_INSTALL_DIR=/usr/local/bin curl -fsSL https://opencode.ai/install | bash\nXDG_BIN_DIR=$HOME/.local/bin curl -fsSL https://opencode.ai/install | bash\n\n\n## Examples\n\nOpenCode includes built-in agents that cater to different development needs. You can easily switch between them using the `Tab` button within the application.\n\n*   **build:** This is the default agent, offering full permissions for development tasks. It's ideal for actively building and modifying projects.\n*   **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.\n*   **general:** This sub-agent is used internally for complex search and multi-step tasks. It can be invoked by typing `@general` in messages.\n\nThese agents provide a flexible way to interact with your codebase, whether you're deep in development or just trying to understand a new project.\n\n## Why Use OpenCode?\n\nOpenCode 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.\n\n## Links\n\n*   **GitHub Repository:** [https://github.com/anomalyco/opencode](https://github.com/anomalyco/opencode)\n*   **Official Website:** [https://opencode.ai](https://opencode.ai)\n*   **Documentation:** [https://opencode.ai/docs](https://opencode.ai/docs)\n*   **Discord Community:** [https://discord.gg/opencode](https://discord.gg/opencode)\n*   **X.com (Twitter):** [https://x.com/opencode](https://x.com/opencode)","metrics":{"detailViews":22,"githubClicks":12},"dates":{"published":null,"modified":"2026-05-23T16:38:45.000Z"}}