Skip to content

Latest commit

 

History

History
120 lines (90 loc) · 3.62 KB

File metadata and controls

120 lines (90 loc) · 3.62 KB

OpenPlugin vs Claude Code Plugins

Overview

OpenPlugin is a vendor-agnostic implementation inspired by Claude Code Plugins, designed to work with any LLM provider without requiring Claude Pro.

Key Differences

Vendor Support

Feature Claude Code Plugins OpenPlugin
Primary Vendor Anthropic (Claude) Any (OpenAI, Anthropic, Google, etc.)
Requires Claude Pro ✅ Yes ❌ No
Provider Abstraction ❌ No ✅ Yes
Custom Providers ❌ No ✅ Yes

Plugin Structure

Both frameworks use the same plugin structure:

  • .claude-plugin/plugin.json manifest
  • commands/ directory for slash commands
  • agents/ directory for agent definitions
  • skills/ directory for skill definitions
  • .mcp.json for MCP server configuration

OpenPlugin is 100% compatible with Claude Code Plugin structure!

MCP Support

Feature Claude Code Plugins OpenPlugin
MCP Protocol ✅ Full support ✅ Full support
Stdio Transport ✅ Yes ✅ Yes
HTTP/SSE Transport ✅ Yes 🔄 Planned
Tool Discovery ✅ Automatic ✅ Automatic

Execution Model

Claude Code Plugins:

  • Tightly integrated with Claude Code IDE
  • Executes within Claude's infrastructure
  • Limited to Claude models

OpenPlugin:

  • Standalone framework
  • Can be integrated into any application
  • Works with any LLM provider
  • Provider-agnostic execution

Migration Path

From Claude Plugins to OpenPlugin

  1. Keep your plugin structure - No changes needed!
  2. Update provider - Switch from Claude to OpenAI (or any provider)
  3. Update execution code - Use OpenPlugin's API instead of Claude Code's

Example migration:

# Before (Claude Code)
# Plugin runs automatically in Claude Code IDE

# After (OpenPlugin)
from openplugin import PluginManager, OpenAIProvider

manager = PluginManager()
manager.load_plugins("./plugins")
provider = OpenAIProvider(api_key="your-key")

result = await manager.execute_command(
    "your-plugin",
    "your-command",
    provider=provider,
    user_input="Hello!"
)

Advantages of OpenPlugin

  1. No Vendor Lock-in: Use any LLM provider
  2. Cost Flexibility: Choose providers based on cost/performance
  3. Open Source: Full control over the framework
  4. Extensible: Easy to add new providers
  5. Portable: Works in any Python application
  6. Compatible: Uses same plugin structure as Claude

When to Use Each

Use Claude Code Plugins if:

  • You're already using Claude Code IDE
  • You want tight IDE integration
  • You're happy with Claude models
  • You have Claude Pro subscription

Use OpenPlugin if:

  • You want vendor flexibility
  • You're building a custom application
  • You want to use OpenAI or other providers
  • You don't have Claude Pro
  • You want open-source control

Feature Parity

Feature Claude Code Plugins OpenPlugin Status
Plugin Discovery ✅ Complete
Plugin Loading ✅ Complete
Command Execution ✅ Complete
Agent Execution ✅ Complete
Skills Support ✅ Complete
MCP Integration ✅ Complete
Plugin Registry 🔄 🔄 Planned
HTTP MCP Transport 🔄 🔄 Planned
Plugin Marketplace 🔄 🔄 Planned

Conclusion

OpenPlugin provides the same plugin structure and capabilities as Claude Code Plugins, but with the flexibility to use any LLM provider. It's perfect for developers who want the plugin system without vendor lock-in.