Extensions Overview
Qwen Code extensions package prompts, MCP servers, subagents, skills and custom commands into a familiar and user-friendly format. With extensions, you can expand the capabilities of Qwen Code and share those capabilities with others. They are designed to be easily installable and shareable.What Can Extensions Do?
Extensions allow you to customize and extend Qwen Code in several ways:- MCP Servers: Add new tools that the AI can use through the Model Context Protocol
- Custom Commands: Create shortcuts for complex prompts with
/commandsyntax - Skills: Add specialized capabilities that the AI can automatically invoke when relevant
- Subagents: Define specialized AI assistants for specific tasks
- Context Providers: Supply persistent context to the model for better responses
- Settings: Configure API keys and other credentials securely
Cross-Platform Compatibility
Qwen Code supports extensions from multiple ecosystems:- Gemini CLI Extensions - Extensions from the Gemini CLI Extensions Gallery
- Claude Code Marketplace - Plugins from the Claude Code Marketplace
- Native Qwen Extensions - Built specifically for Qwen Code
gemini-extension.json→qwen-extension.jsonclaude-plugin.json→qwen-extension.json- TOML command files → Markdown format
- Tool mappings and configurations are preserved
Extension Structure
Every extension is a directory containing aqwen-extension.json manifest file:
Installation Methods
You can install extensions from multiple sources:From GitHub Repository
From Claude Code Marketplace
From Gemini CLI Extensions
From Local Path
For Development (Symlink)
Runtime Management
Extensions can be managed at runtime within the interactive CLI:| Command | Description |
|---|---|
/extensions | Manage all installed extensions |
/extensions install <source> | Install an extension |
/extensions explore [source] | Browse available extensions |
CLI Management
You can also manage extensions using CLI commands:Extension Lifecycle
On startup, Qwen Code:- Scans
~/.qwen/extensions/for installed extensions - Loads each extension’s
qwen-extension.jsonmanifest - Registers MCP servers, commands, skills, and agents
- Resolves conflicts with user/project commands
- Makes everything available in the session
Enablement Scopes
Extensions can be enabled/disabled at two levels:- User level (default): Applies across all workspaces
- Workspace level: Only applies to the current workspace
Security Considerations
Extensions run with full access to your system:- They can execute arbitrary code through MCP servers
- They can read and write files in your workspace
- They receive your API keys and credentials
What’s Next?
Explore the different types of extensions you can create:- Extension Types - Overview of all extension capabilities
- Creating Extensions - Step-by-step guide to building your first extension
- MCP Servers - Add custom tools via Model Context Protocol
- Custom Commands - Create reusable prompt shortcuts
- Skills - Build AI-invoked capabilities
- Subagents - Define specialized AI assistants
