Installation
The Compound Plugin CLI requires minimal setup. You can use it viabunx without any installation, or install it globally for repeated use.
Prerequisites
Before using Compound Plugin, ensure you have the following installed:Install Bun (Recommended)
Bun is the fastest way to run Compound Plugin. Install it using the official installer:Verify installation:
Alternative: Install Node.js
If you prefer npm/npx, install Node.js 18 or later:
- Download from nodejs.org
- Or use a version manager like nvm or fnm
Install Git (Optional)
Git is required if you want to clone the repository for local development:
- Download from git-scm.com
- Or install via your package manager
Installation Methods
Option 1: Zero Install with bunx (Recommended)
The fastest way to use Compound Plugin is withbunx - no installation required:
Option 2: Global Installation
For repeated use, install globally:Option 3: Local Development
For contributing or local development:Verification
Verify your installation by checking the version and available commands:Target Platform Setup
The CLI will write to platform-specific directories. Make sure your target AI coding assistant is installed before running conversions.
Common Target Directories
| Platform | Output Location | Notes |
|---|---|---|
| OpenCode | ~/.config/opencode/ | Commands as .md files; deep-merged config |
| Codex | ~/.codex/prompts + ~/.codex/skills | Prompts and skill pairs |
| Factory Droid | ~/.factory/ | Native tool mappings |
| Pi | ~/.pi/agent/ | MCPorter interoperability |
| Gemini CLI | .gemini/ | Namespaced commands as TOML |
| GitHub Copilot | .github/ | Agent markdown with MCP env vars |
| Kiro CLI | .kiro/ | JSON configs with prompt files |
| Windsurf | ~/.codeium/windsurf/ (global) or .windsurf/ (workspace) | Skills and workflows |
| OpenClaw | ~/.openclaw/extensions/<plugin>/ | TypeScript skill extensions |
| Qwen Code | ~/.qwen/extensions/<plugin>/ | Agent YAML configurations |
Troubleshooting
Bun command not found
Ifbun isn’t recognized after installation:
- Restart your terminal
- Check if Bun’s bin directory is in your PATH:
- Add Bun to PATH manually in
~/.bashrc,~/.zshrc, or equivalent:
Permission errors on npm global install
If you get permission errors with npm:Target directory doesn’t exist
The CLI creates target directories automatically. If you see errors about missing directories, ensure:- You have write permissions to the target location
- The parent directory exists (e.g.,
~/.config/for OpenCode) - You’re running the command as the correct user
Next Steps
Quick Start
Install the compound-engineering plugin to OpenCode in 30 seconds