Skip to content

[FEATURE]: Support loading Claude Code plugins from .claude/ directory #8158

Closed as not planned

Description

@yanmxa

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/*.ts or .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

  1. Ecosystem Leverage: Claude Code has a rich plugin ecosystem. Users could immediately benefit from existing Claude Code plugins without rewriting them.

  2. Migration Path: Users transitioning from Claude Code to OpenCode wouldn't need to reorganize their plugin directories.

  3. Interoperability: Users running both tools could share plugins between them, reducing maintenance overhead.

  4. Consistency: OpenCode already respects .claude/CLAUDE.md and .claude/skills/. Extending this to plugins creates a more complete compatibility layer.

Implementation Considerations

  1. Plugin Format Compatibility: If Claude Code plugins use a different format/API, a compatibility layer or adapter pattern may be needed.

  2. Flag Control: Similar to OPENCODE_DISABLE_CLAUDE_CODE_SKILLS, add OPENCODE_DISABLE_CLAUDE_CODE_PLUGINS for users who want to opt out.

  3. Load Order: Define clear precedence (e.g., OpenCode native plugins override Claude Code plugins with same name).

Related Issues

Environment

  • OpenCode Version: Latest (1.1.x)
  • OS: All platforms

Activity

  1. github-actions commented on Jan 13, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if this doesn't address your specific case.

  2. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions