-
Notifications
You must be signed in to change notification settings - Fork 6k
Description
Summary
OpenCode already supports loading Claude Code configurations:
- ✅
~/.claude/CLAUDE.md- instruction files - ✅
.claude/skills/*/SKILL.md- skill definitions
Feature Request: Extend this compatibility to also support loading Claude Code plugins from .claude/ directories.
Current Behavior
OpenCode's native plugin system uses TypeScript/JavaScript modules:
.opencode/plugin/*.tsor.opencode/plugin/*.js~/.config/opencode/plugin/- npm packages in
opencode.json
Claude Code plugins are not loaded from:
.claude/plugins/(project-level)~/.claude/plugins/(global)
Proposed Behavior
Add support for discovering and loading plugins from Claude Code's plugin locations:
.claude/plugins/*.ts # Project-level
~/.claude/plugins/*.ts # Global
This would follow the same pattern as the existing .claude/skills/ compatibility.
Use Case
-
Ecosystem Leverage: Claude Code has a rich plugin ecosystem. Users could immediately benefit from existing Claude Code plugins without rewriting them.
-
Migration Path: Users transitioning from Claude Code to OpenCode wouldn't need to reorganize their plugin directories.
-
Interoperability: Users running both tools could share plugins between them, reducing maintenance overhead.
-
Consistency: OpenCode already respects
.claude/CLAUDE.mdand.claude/skills/. Extending this to plugins creates a more complete compatibility layer.
Implementation Considerations
-
Plugin Format Compatibility: If Claude Code plugins use a different format/API, a compatibility layer or adapter pattern may be needed.
-
Flag Control: Similar to
OPENCODE_DISABLE_CLAUDE_CODE_SKILLS, addOPENCODE_DISABLE_CLAUDE_CODE_PLUGINSfor users who want to opt out. -
Load Order: Define clear precedence (e.g., OpenCode native plugins override Claude Code plugins with same name).
Related Issues
- [FEATURE]: Add .claude/commands/ compatibility (like .claude/skills/) #6985 - Add
.claude/commands/compatibility - Does opencode actually support finding skills at
.claude/skills? #6266 -.claude/skills/support discussion - [FEATURE]: Easily import settings/agents/MCP servers from other tools #6207 - Import settings from other tools
- opencode doesn't respect CLAUDE_CONFIG_DIR environment variable #6551 - CLAUDE_CONFIG_DIR environment variable
Environment
- OpenCode Version: Latest (1.1.x)
- OS: All platforms