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.1.0.tar.gz (151.4 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.1.0-py3-none-any.whl (53.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_config_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 151.4 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.1.0.tar.gz
Algorithm Hash digest
SHA256 c481482fc15a462334f63b59d42e237ed4ff10a2705c5a7821b132b9446d973d
MD5 4a5452a69b9df24df774bbf08cc0284a
BLAKE2b-256 93475c57cc9862df78a12fbebf96d182cf40d68185f25a29b42ffc9f5a6725c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_config_cli-0.1.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: ai_config_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 53.4 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d795e15c12aac4ec1ed5b8c2469e81eecdb0846242fd63a922a795b22e66887b
MD5 035396ef662c130dbc1bc2536657b287
BLAKE2b-256 4a32a87d3b4d85925cc97c1cd17471b13456e09ad1af4ecd29052c18f8c19fb0

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_config_cli-0.1.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