Skip to content
Development
Command

/settings

Show or change which AI providers are enabled, the default, and the /ai:compare set

From plugin
ai-plugins-cc
411 skills2 agents11 commands
Install
$ npx -y skills add dysfunc/ai-plugins-cc --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/settings

Context preview

What this command does when you run it.

Show or change which AI providers are enabled, the default, and the /ai:compare set

Command definition

settings.md
description: Show or change which AI providers are enabled, the default, and the /ai:compare set
argument-hint: '[show|enable <id>|disable <id>|set-default <id>|set-compare <id,id,...>]'
allowed-tools: Bash(node:*), AskUserQuestion

If the user passed a subcommand in `$ARGUMENTS`, run it directly:

node "${CLAUDE_PLUGIN_ROOT}/scripts/ai-companion.mjs" settings $ARGUMENTS --json

Surface the JSON's `message` field to the user. If the call exits non-zero, show `error`.

If `$ARGUMENTS` is empty, drive the interactive flow:

1. Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/ai-companion.mjs" settings show --json` to read current state. 2. Show a short status block: enabled providers, default, compare set. 3. Use `AskUserQuestion` (single choice) to ask what they want to do:

  • "Enable a provider"
  • "Disable a provider"
  • "Change default provider"
  • "Change `/ai:compare` set"
  • "Done"

4. Based on the choice, ask for the provider id(s) (use `AskUserQuestion` again with the registered providers as options), then run the matching subcommand:

  • `settings enable <id>` / `disable <id>` / `set-default <id>` / `set-compare <id,id,...>`

5. Loop back to step 1 until the user picks "Done".

Hard rules

  • Never enable a provider that's not in `knownProviders` from `settings show --json`. The companion will reject it; surface its error verbatim if the user insisted.
  • Disabling the current default reassigns the default to the first remaining enabled provider (this is automatic in the companion). Tell the user this happened.
  • If the user wants to enable a provider that isn't yet ready (CLI missing, no auth), suggest running `/ai:setup` instead of trying to enable it here.
Read more
Ships withai-plugins-cc

Claude Code plugins that delegate to external AI CLIs — Codex, Gemini, and Grok — sharing a hardened core and an optional umbrella plugin that dispatches across providers. Status: active development.

Get the whole plugin, auto-invoked
Stats
4
Stars
0
Views
0
Forks
Maintained
Maintenance
JavaScript
Language
Apache-2.0
License
3mo ago
Last commit
3mo ago
Created

Repo: dysfunc/ai-plugins-cc