convert command transforms a local Claude Code plugin directory into a target AI coding tool format. Unlike install, it always uses a local path and defaults output to the current working directory.
Usage
Arguments
Path to the Claude plugin directory.Must be a valid directory containing
.claude-plugin/plugin.json.Options
Target format to convert to.Available targets:
opencode(default)codexdroidpicopilotgeminikirowindsurfopenclawqwenall- Auto-detects and converts to all detected tools
Output directory (project root).Default: Current working directory (
process.cwd())Scope level for the conversion.Options:
global | workspaceDefault varies by target.Comma-separated list of additional targets to generate.Example:
--also codex,pi converts to the primary target plus Codex and Pi.Permission mapping for the converted plugin.Options:
none- No permissionsbroad(default) - Write broad permission mappingsfrom-commands- Infer permissions from command definitions
convert defaults to broad permissions, unlike install which defaults to none. This is because convert is typically used for development and testing.Default agent mode for the plugin.Options:
primary | subagentInfer agent temperature from plugin name and description.
Target-Specific Options
Write Codex output to this
.codex root.Example: ~/.codexWrite Pi output to this Pi root.Example:
~/.pi/agent or ./.piWrite OpenClaw output to this extensions root.Example:
~/.openclaw/extensionsWrite Qwen output to this Qwen extensions root.Example:
~/.qwen/extensionsExamples
Convert to OpenCode
Convert to Multiple Targets
--also flag converts to specific additional targets, while --to all auto-detects all installed AI coding tools.
Convert to Custom Output Directory
./dist instead of the current directory.
Convert with No Permissions
Convert to Specific Target Home
Difference from install
Theconvert command:
- Always requires a local path - No GitHub fetching
- Defaults output to current directory - Not global config
- Defaults permissions to
broad- More permissive for development
install command:
- Fetches from GitHub by default - Can use remote plugin names
- Defaults output to
~/.config/opencode- Global installation - Defaults permissions to
none- More conservative for production
Use Cases
Local Development
Multi-Target Testing
Plugin Development Workflow
Target Detection (—to all)
When using--to all, the CLI detects installed tools by checking:
- Config file existence
- Installation paths
- Tool-specific markers
If no AI coding tools are detected, the command will exit with a message: “No AI coding tools detected. Install at least one tool first.”