The open source AI coding agent with OC Kit support.
This is a fork of OpenCode with OC Kit support added. OC Kit is a package management system for AI coding agents, enabling you to install, update, and manage reusable skill packages.
- OC Kit Package Manager - Install, update, validate, and manage AI agent skill packages
- Kit Packaging & Publishing - Create and distribute your own OC Kits
- Workflow Engine - Define and execute multi-step AI workflows
- Hook System - Run custom scripts on lifecycle events
- Dependency Resolution - Kits can depend on other kits
- Sandboxed Execution - Run untrusted hooks in sandboxed environments
# 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, updated less)
sudo pacman -S opencode # Arch Linux (Stable)
paru -S opencode-bin # Arch Linux (Latest from AUR)
mise use -g opencode # Any OS
nix run nixpkgs#opencode # or github:anomalyco/opencode for latest dev branchTip
Remove versions older than 0.1.x before installing.
This fork includes OC Kit built-in. Install once, use everything.
# macOS / Linux / WSL
curl -fsSL https://raw.githubusercontent.com/vibecoder880/opencode/main/scripts/install.sh | bash
# Windows (PowerShell)
powershell -c "irm https://raw.githubusercontent.com/vibecoder880/opencode/main/scripts/install.ps1 | iex"Then run:
opencodenpm install -g https://github.com/vibecoder880/opencode/releases/latest/download/opencode.tgzAfter installation, you have everything:
opencode # Start OpenCode with OC Kit
opencode kit list # List installed kits
opencode kit install <id> # Install a kit
opencode kit validate # Validate a kit
opencode kit doctor # Check kit health
opencode kit update # Update kits
opencode kit pack # Create kit archive
opencode kit publish # Publish to GitHub| Command | Description |
|---|---|
oc kit list |
List all installed kits |
oc kit validate <target> |
Validate a kit manifest |
oc kit install <source> |
Install a kit from a local directory |
oc kit update <kit-id> |
Update an installed kit |
oc kit rollback <kit-id> |
Rollback to previous version |
oc kit doctor |
Health check for installed kits |
oc kit pack <source> |
Create a kit archive (.tar.gz) |
oc kit publish <archive> |
Publish kit to GitHub release |
oc kit search <query> |
Search marketplace for kits |
oc kit test <kit-id> |
Test kit before publishing |
oc kit init |
Initialize a new kit from template |
oc kit dev |
Hot reload for kit development |
{
"id": "my-kit",
"name": "My Kit",
"version": "1.0.0",
"description": "A custom AI agent kit",
"min_opencode": "0.1.0",
"skills": ["plan", "research"],
"agents": ["analyst"],
"workflows": ["research-flow"],
"hooks": {
"pre-commit": ["validate.sh"]
},
"dependencies": {
"base-kit": "^1.0.0"
}
}my-kit/
├── kit.json # Manifest (required)
├── skills/ # Skill definitions
│ ├── plan.md
│ └── research.md
├── agents/ # Agent profiles
│ └── analyst.md
├── workflows/ # Workflow definitions
│ └── research.yaml
├── hooks/ # Hook scripts
│ └── pre-commit.sh
└── artifacts/ # Static artifacts
└── templates/
OpenCode is also available as a desktop application. Download directly from the releases page or opencode.ai/download.
| Platform | Download |
|---|---|
| macOS (Apple Silicon) | opencode-desktop-mac-arm64.dmg |
| macOS (Intel) | opencode-desktop-mac-x64.dmg |
| Windows | opencode-desktop-windows-x64.exe |
| Linux | .deb, .rpm, or .AppImage |
# macOS (Homebrew)
brew install --cask opencode-desktop
# Windows (Scoop)
scoop bucket add extras; scoop install extras/opencode-desktopOpenCode includes two built-in agents you can switch between with the Tab key.
- build - Default, full-access agent for development work
- plan - Read-only agent for analysis and code exploration
- Denies file edits by default
- Asks permission before running bash commands
- Ideal for exploring unfamiliar codebases or planning changes
Also included is a general subagent for complex searches and multistep tasks.
This is used internally and can be invoked using @general in messages.
Learn more about agents.
For more info on how to configure OpenCode, head over to our docs.
If you're interested in contributing to OpenCode, please read our contributing docs before submitting a pull request.
If you are working on a project that's related to OpenCode and is using "opencode" as 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.