Skip to main content

Declarative plugin manager for Claude Code

Project description

ai-config

Declarative plugin manager for Claude Code.

(Future: Codex CLI and OpenCode support planned once plugins become more standardized for sharing ai-context)

Why this exists

Claude Code plugins are useful. They let you extend Claude with custom skills, hooks, and MCP servers. The problem is managing them.

Without ai-config, you're running claude plugin install and claude plugin marketplace add commands by hand across machines. There's no config file. No way to version control your setup. No way to share it.

ai-config fixes that. You write a YAML file describing what plugins you want, and it handles the rest.

Or more simply, run ai-config init and it writes the config for you.

What this isn't

This README does not have:

  • 14 shields.io badges declaring build status, coverage, npm downloads, discord members, twitter followers, and mass-to-charge ratio
  • A mass of emojis to make it look "friendly" and "approachable"
  • Claims about revolutionizing your development workflow
  • Integration with 47 different tools (we integrate with one)
  • A "Quick Start" that's actually 73 steps
  • Screenshots of a dashboard that doesn't exist
  • A "Powered by AI" badge despite just being a for-loop

It's a config file and some commands. That's it.

Installation

Alpha software: This project is in active development. APIs and config formats may change between versions.

pip install ai-config-cli
# or
uv tool install ai-config-cli

This installs ai-config globally. Run ai-config --help to verify.

From source (latest)

uv tool install git+https://github.com/safurrier/ai-config

For development

git clone https://github.com/safurrier/ai-config.git
cd ai-config
just setup    # Install dependencies
just check    # Run lint, type check, tests

Quick Start

1. Create your config

ai-config init

Interactive wizard walks you through adding marketplaces and plugins. Creates .ai-config/config.yaml.

2. Sync to install plugins

ai-config sync

Installs/uninstalls plugins to match your config. Run this after editing config.yaml.

If plugins seem stale or out of date:

ai-config sync --fresh

3. Iterate with watch (plugin development)

ai-config watch

Auto-syncs when you edit config or plugin files. Press Ctrl+C to stop.

Note: Claude Code loads plugins at session start. After changes sync, restart Claude Code to apply them. Use claude --resume to continue your previous session.

4. Troubleshoot with doctor

ai-config doctor

Validates marketplaces, plugins, skills, hooks, and MCP servers. Shows fix hints for any issues.

What it does

Declarative config - Define your plugins in .ai-config/config.yaml:

version: 1
targets:
  - type: claude
    config:
      marketplaces:
        claude-code-tutorial:
          source: github
          repo: safurrier/claude-code-tutorial
      plugins:
        - id: claude-code-tutorial@claude-code-tutorial
          scope: user
          enabled: true

Interactive setup - Don't want to write YAML? Run the wizard:

ai-config init

It walks you through adding marketplaces and plugins with arrow-key navigation.

Sync - Make reality match your config:

ai-config sync

Validation - Find problems before they bite you:

ai-config doctor

Checks that marketplaces exist, plugins are installed, skills are valid, hooks work.

Commands

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 (plugin development)
update Update plugins to latest versions
doctor Validate setup and show fix hints
plugin create Scaffold a new plugin
cache clear Clear the plugin cache

Config file locations

ai-config looks for config in this order:

  1. .ai-config/config.yaml (project-local)
  2. ~/.ai-config/config.yaml (global)

You can also pass -c /path/to/config.yaml to any command.

Scopes

Plugins can be installed in different scopes:

  • user - Available everywhere (~/.claude/plugins/)
  • project - Only in the current project (.claude/plugins/)

Troubleshooting

Plugin installed but not showing up in / commands

Clear cache and re-sync:

ai-config sync --fresh

Something's broken and Claude Code won't help

ai-config doctor --verbose

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_config_cli-0.3.0.tar.gz (269.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_config_cli-0.3.0-py3-none-any.whl (93.8 kB view details)

Uploaded Python 3

File details

Details for the file ai_config_cli-0.3.0.tar.gz.

File metadata

  • Download URL: ai_config_cli-0.3.0.tar.gz
  • Upload date:
  • Size: 269.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ai_config_cli-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6d3215ce037f8fc53652db82d40fffef39bf01ba319047335bd803d4a398b501
MD5 24ee62ef075c44e351f782af24843d6c
BLAKE2b-256 928dac33a44ae7eee1969eed6cc5b5127160dd73e15c98934f5758e061099fad

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_config_cli-0.3.0.tar.gz:

Publisher: publish.yml on safurrier/ai-config

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ai_config_cli-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: ai_config_cli-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 93.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ai_config_cli-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8af78c07abb76680ea6047d3c69fca7d12efe34bcb5a4ba066b1c95e3b2bbd03
MD5 ca6496d58b90067866bd88f76e9c880c
BLAKE2b-256 d8639e030479214eabb18026db8f3f6156980f6ffe10d464ad84123a1c8c708d

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_config_cli-0.3.0-py3-none-any.whl:

Publisher: publish.yml on safurrier/ai-config

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page