Install opencode-foundry skills and configuration globally for use across all your projects.
curl -sSL https://raw.githubusercontent.com/foundry-works/opencode-foundry/main/install/install.sh | bash| Component | Location | Description |
|---|---|---|
| Skills | ~/.config/opencode/skills/ |
9 foundry skills for spec-driven development |
| Config | ~/.config/opencode/opencode.json |
MCP server definition and permissions |
| foundry-mcp | System Python | MCP server (via uvx/pipx/pip) |
foundry-spec- Create detailed specifications before codingfoundry-implement- Task implementation from specsfoundry-test- Systematic test debuggingfoundry-review- Review implementation fidelityfoundry-pr- AI-powered PR creationfoundry-research- Multi-model research workflowsfoundry-note- Fast-capture intake queuefoundry-refactor- Safe refactoring with LSPfoundry-setup- Verify and configure setup
curl -sSL https://raw.githubusercontent.com/foundry-works/opencode-foundry/main/install/install.sh | bash -s -- --dry-runIf you've already installed foundry-mcp separately:
curl -sSL https://raw.githubusercontent.com/foundry-works/opencode-foundry/main/install/install.sh | bash -s -- --no-pythonOverwrite existing files without prompting:
curl -sSL https://raw.githubusercontent.com/foundry-works/opencode-foundry/main/install/install.sh | bash -s -- --forceRe-run the installer to update to the latest version:
curl -sSL https://raw.githubusercontent.com/foundry-works/opencode-foundry/main/install/install.sh | bashOr explicitly:
curl -sSL https://raw.githubusercontent.com/foundry-works/opencode-foundry/main/install/install.sh | bash -s -- --updateThis will:
- Re-download all skills (overwrites existing)
- Merge any new config settings (preserves your existing settings)
- Verify foundry-mcp is available
curl -sSL https://raw.githubusercontent.com/foundry-works/opencode-foundry/main/install/install.sh | bash -s -- --uninstallThis removes:
- Foundry skills from
~/.config/opencode/skills/ - foundry-mcp configuration from
opencode.json
Note: The foundry-mcp Python package is not removed automatically. To remove it:
pipx uninstall foundry-mcp
# or
pip uninstall foundry-mcp- Python 3.10+ - Required for foundry-mcp
- curl or wget - For downloading files
- One of: uvx (recommended), pipx, or pip
curl -LsSf https://astral.sh/uv/install.sh | shAfter installation, verify your setup:
opencode
# Then type: /foundry-setupThis will check that all components are properly configured.
The installer requires Python 3.10 or higher. Check your version:
python3 --versionInstall uv first:
curl -LsSf https://astral.sh/uv/install.sh | shIf you get permission errors, the installer may need to create directories:
mkdir -p ~/.config/opencode/skillsEnsure OpenCode is looking at the right config location. The installer uses ~/.config/opencode/opencode.json by default.
If you prefer to install manually:
-
Install foundry-mcp:
uvx foundry-mcp --version # Test it works # or pipx install foundry-mcp
-
Clone the repository:
git clone https://github.com/foundry-works/opencode-foundry.git
-
Copy skills:
cp -r opencode-foundry/skills/* ~/.config/opencode/skills/
-
Copy config template:
cp opencode-foundry/install/assets/opencode-global.json ~/.config/opencode/opencode.json
| File | Purpose |
|---|---|
install.sh |
Main installation script |
assets/opencode-global.json |
Configuration template |