Skip to main content

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 /command syntax
  • 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: Extensions and plugins from these platforms can be directly installed into Qwen Code. During installation, they are automatically converted to Qwen Code format:
  • gemini-extension.jsonqwen-extension.json
  • claude-plugin.jsonqwen-extension.json
  • TOML command files → Markdown format
  • Tool mappings and configurations are preserved
This cross-platform compatibility gives you access to a rich ecosystem without requiring extension authors to maintain separate versions.

Extension Structure

Every extension is a directory containing a qwen-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

Runtime Management

Extensions can be managed at runtime within the interactive CLI:

CLI Management

You can also manage extensions using CLI commands:

Extension Lifecycle

On startup, Qwen Code:
  1. Scans ~/.qwen/extensions/ for installed extensions
  2. Loads each extension’s qwen-extension.json manifest
  3. Registers MCP servers, commands, skills, and agents
  4. Resolves conflicts with user/project commands
  5. Makes everything available in the session
Changes made via runtime commands (slash commands) take effect immediately through hot-reloading. Changes made via CLI commands require restarting active sessions.

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
Always review extension code before installing, especially from unknown sources. When installing, you’ll be prompted to acknowledge these security risks.

What’s Next?

Explore the different types of extensions you can create: