Skip to content

Commands

Complete reference for all ai-config commands.

Overview

Command What it does
init Interactive config generator
sync Install/uninstall plugins to match config
status Show what's currently installed
watch Auto-sync on file changes
update Update plugins to latest versions
doctor Validate setup and show fix hints
convert Convert plugins to other AI tools
plugin create Scaffold a new plugin
cache clear Clear the plugin cache

Global Options

ai-config [OPTIONS] COMMAND

Options:
  -c, --config PATH  Path to config file
  --version          Show version
  --help             Show help message

init

Interactive wizard for creating or updating your config file.

ai-config init

Options:

Option Description
-o, --output PATH Output path for the config file
--non-interactive Create minimal config without prompts

The wizard walks you through:

  1. Adding marketplaces (GitHub repos or local directories with plugins)
  2. Selecting plugins from those marketplaces
  3. Choosing install scope (user or project)

Creates .ai-config/config.yaml in the current directory (or the path specified with -o).

sync

Make installed plugins match your config file.

ai-config sync

Options:

Option Description
-c, --config PATH Path to config file
--dry-run Show what would change without doing it
--fresh, --force Full rebuild: clear cache + reconvert everything
--force-convert Reconvert only (without clearing plugin cache)
--verify Verify sync state after completion

What it does:

  • Installs plugins listed in config but not installed
  • Uninstalls plugins installed but not in config
  • Updates plugin configurations
  • Runs conversion if conversion section is configured (see Conversion)

Exits non-zero if any target had errors.

status

Show current state of marketplaces and plugins.

ai-config status

Options:

Option Description
-c, --config PATH Path to config file
--verify Verify current state matches config
--json Output as JSON

Displays:

  • Configured marketplaces and their status
  • Installed plugins (from config and extra)
  • Any sync issues

watch

Auto-sync when config or plugin files change.

ai-config watch

Options:

Option Description
-c, --config PATH Path to config file
--debounce SECONDS Wait time before syncing (default: 1.5)
--dry-run Show changes without syncing
-v, --verbose Show all file events

Useful during plugin development. Watches:

  • .ai-config/config.yaml
  • Plugin directories

Press Ctrl+C to stop.

Claude Code reload required

Claude Code only loads plugins at session start. After watch syncs your changes, you must restart Claude Code for them to take effect.

To continue your previous session after restarting:

claude --resume

update

Update plugins to their latest versions.

ai-config update --all
ai-config update PLUGIN1 PLUGIN2

Options:

Option Description
--all Update all plugins
--fresh Clear cache before updating

Arguments:

Argument Description
PLUGINS Specific plugin IDs to update (positional, space-separated)

You must specify either --all or one or more plugin names.

doctor

Validate your setup and find problems.

ai-config doctor

Options:

Option Description
-c, --config PATH Path to config file
--category CATEGORY Run only specific validation categories (can be repeated)
-t, --target TARGET Validate converted output: codex, cursor, opencode, pi, or all
--json Output as JSON
-v, --verbose Show all checks including passed

Arguments (target mode only):

Argument Description
OUTPUT_DIR Directory containing converted output (default: current dir)

Default mode

Checks:

  • Marketplace URLs are reachable
  • Plugins are properly installed
  • Skills have required fields
  • Hooks are executable
  • MCP server configs are valid

Target validation mode

When --target is specified, validates converted output instead of plugin config:

ai-config doctor --target codex ./output-dir
ai-config doctor --target all ./output-dir

Checks target-specific output directory structure, SKILL.md files, MCP/hooks/LSP config validity.

convert

Convert a Claude Code plugin to other AI coding tools.

ai-config convert PLUGIN_PATH

Options:

Option Description
-t, --target TARGET Target tool(s): codex, cursor, opencode, pi, all (default: all)
-o, --output DIR Output directory (default: based on --scope)
--scope SCOPE user or project — controls default output path
--dry-run Preview changes without writing files
--best-effort Continue even if some components fail to convert
--format FORMAT Console output: summary, markdown, or json
--report PATH Write conversion report to a file
--report-format FORMAT Report file format: json (default) or markdown
--commands-as-skills Convert commands to skills instead of prompts (Codex)

Arguments:

Argument Description
PLUGIN_PATH Path to the Claude Code plugin directory to convert

Supported targets:

  • codex — OpenAI Codex (.codex/skills/ plus .codex/config.toml, prompts, and hooks)
  • cursor — Cursor (.cursor/ dir with skills, commands, hooks, and MCP config)
  • opencode — OpenCode (opencode.json + .opencode/ skills dir)
  • pi — Pi (.pi/ dir with skills, prompt templates, and extensions)

Multiple targets can be specified: -t codex -t cursor

See Conversion for a full guide.

plugin create

Scaffold a new plugin.

ai-config plugin create NAME

Options:

Option Description
--path PATH Base path for plugin directory

Creates a plugin directory with:

  • manifest.yaml — Plugin metadata
  • skills/ — Directory for skill files
  • hooks/ — Directory for hook files

cache clear

Clear the plugin cache.

ai-config cache clear

Forces fresh downloads on next sync. Use when plugins seem stale.