OpenCode Installation Guide
Prerequisites
- OpenCode.ai installed
- Git installed
Installation Steps
Option 1: Let OpenCode Install Automatically (Recommended)
Tell OpenCode:
Clone https://github.com/obra/superpowers to ~/.config/opencode/superpowers, then create directory ~/.config/opencode/plugins, then symlink ~/.config/opencode/superpowers/.opencode/plugins/superpowers.js to ~/.config/opencode/plugins/superpowers.js, then symlink ~/.config/opencode/superpowers/skills to ~/.config/opencode/skills/superpowers, then restart opencode.Option 2: Manual Installation (macOS / Linux)
bash
# 1. Clone the repository
git clone https://github.com/obra/superpowers.git ~/.config/opencode/superpowers
# 2. Create directories
mkdir -p ~/.config/opencode/plugins ~/.config/opencode/skills
# 3. Create plugin symlink
ln -s ~/.config/opencode/superpowers/.opencode/plugins/superpowers.js ~/.config/opencode/plugins/superpowers.js
# 4. Create skills symlink
ln -s ~/.config/opencode/superpowers/skills ~/.config/opencode/skills/superpowers
# 5. Restart OpenCodeManual Installation (Windows PowerShell)
Prerequisites: Developer Mode enabled OR run as Administrator
powershell
# 1. Clone the repository
git clone https://github.com/obra/superpowers.git "$env:USERPROFILE\.config\opencode\superpowers"
# 2. Create directories
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.config\opencode\plugins"
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.config\opencode\skills"
# 3. Create plugin symlink (requires Admin or Developer Mode)
New-Item -ItemType SymbolicLink -Path "$env:USERPROFILE\.config\opencode\plugins\superpowers.js" -Target "$env:USERPROFILE\.config\opencode\superpowers\.opencode\plugins\superpowers.js"
# 4. Create skills junction (no special privileges needed)
New-Item -ItemType Junction -Path "$env:USERPROFILE\.config\opencode\skills\superpowers" -Target "$env:USERPROFILE\.config\opencode\superpowers\skills"
# 5. Restart OpenCodeHow It Works
OpenCode has native skill discovery. At startup, it scans these locations:
- Project skills (
.opencode/skills/) - Highest priority - Personal skills (
~/.config/opencode/skills/) - Superpowers skills (
~/.config/opencode/skills/superpowers/) - via symlink
The plugin automatically injects Superpowers context into the system prompt.
Verify Installation
macOS / Linux:
bash
ls -l ~/.config/opencode/plugins/superpowers.js
ls -l ~/.config/opencode/skills/superpowersWindows:
powershell
Get-ChildItem "$env:USERPROFILE\.config\opencode\plugins" | Where-Object { $_.LinkType }
Get-ChildItem "$env:USERPROFILE\.config\opencode\skills" | Where-Object { $_.LinkType }Or ask OpenCode: "do you have superpowers?"
Usage
List Available Skills
use skill tool to list skillsLoad a Specific Skill
use skill tool to load superpowers/brainstormingConfiguration File Locations
- Superpowers directory:
~/.config/opencode/superpowers/ - Plugin link:
~/.config/opencode/plugins/superpowers.js - Skills link:
~/.config/opencode/skills/superpowers/ - Personal skills:
~/.config/opencode/skills/ - Project skills:
.opencode/skills/
Updating
bash
cd ~/.config/opencode/superpowers && git pullRestart OpenCode to load updates.
Troubleshooting
Plugin not loading
- Check the plugin symlink is correct
- Check source file exists:
ls ~/.config/opencode/superpowers/.opencode/plugins/superpowers.js - Restart OpenCode
Skills not found
- Check skills symlink:
ls -l ~/.config/opencode/skills/superpowers - Use the
skilltool to list available skills
Windows permission issues
- Enable Developer Mode: Settings → Update & Security → For developers
- Or run terminal as Administrator
Tool Mapping
When skills reference Claude Code tools:
TodoWrite→todowriteTaskwith subagents → OpenCode's@mentionsyntaxSkilltool → OpenCode's nativeskilltool