model-config

model-config is a command for Claude Code from alinaqi/maggy. It costs 0 tokens per session (1,627 once invoked), scanned B, original, MIT.

A command for viewing or changing the primary AI model used for coding work across several connected tools.

In plain words
What is it for?
Use it to see the current model and available models, or set a supported model such as minimax, claude, or deepseek.
Why use it?
It gives those tools one shared model setting instead of requiring the model choice to be changed separately in each place.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: reads .claude/ paths; mentions Claude Code; reads ~/.codex paths.

Good fit Use it to see the current model and available models, or set a supported model such as minimax, claude, or deepseek.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/alinaqi/maggy/model-config
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/alinaqi/maggy

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for model-config

README.md
[![agentmods](https://agentmods.dev/badge/commands/alinaqi/maggy/model-config/github.svg)](https://agentmods.dev/commands/alinaqi/maggy/model-config)
Your own site
<a href="https://agentmods.dev/commands/alinaqi/maggy/model-config"><img src="https://agentmods.dev/badge/commands/alinaqi/maggy/model-config/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for model-config

Your own site · 80×15
<a href="https://agentmods.dev/commands/alinaqi/maggy/model-config"><img src="https://agentmods.dev/badge/commands/alinaqi/maggy/model-config.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,627 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01627
Opus 5.5 $0.00000 $0.00651
Sonnet 5.5 $0.00000 $0.00325
Haiku 4.5 $0.00000 $0.00163

Measured 2mo ago against content hash 4f6296ec5924, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

model-config scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

MR="$(cat ~/.claude/.bootstrap-dir)/scripts/model_routing.py"
commands/model-config.md · 152 lines

How it starts

The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/model-config — Choose the model you follow

View or change the primary model that handles your coding work across srooter (the gateway), the route-task hooks, and Maggy. One setting, read everywhere. Stored in ~/.claude/model-config.json.


Usage

/model-config — show current primary + what's available /model-config <model> — set the primary (e.g. minimax, claude, deepseek)

Switch Claude Code to a pre-configured backend

The primary is the model Claude Code's real coding work runs on (through srooter). To move it to one of the pre-configured backends:

Say Backend srooter alias
/model-config deepseek DeepSeek Pro deepseek-pro
/model-config kimi Kimi K3 (Moonshot) kimi-k3
/model-config glm GLM 5.3 (Z.ai) glm-5.3
/model-config codex Codex codex

The switch takes effect for new sessions (srooter reads ANTHROPIC_BASE_URL and its routes at startup — restart srooter, then start a fresh Claude Code session). Each backend needs its provider key set in srooter's env (DEEPSEEK_API_KEY, MOONSHOT_API_KEY, GLM_API_KEY, OPENAI_API_KEY); srooter skips any backend whose key is unset and falls back down its chain.

Direct provider — bypass srooter entirely (--direct)

DeepSeek Pro, GLM 5.3, and Kimi K3 each publish a native Anthropic-compatible endpoint, so Claude Code can talk to them directly with no srooter hop. /model-config <backend> --direct writes a launcher into ~/bin:

Say Launcher Endpoint · model
/model-config deepseek --direct claude-deepseek api.deepseek.com/anthropic · deepseek-v4-pro
/model-config glm --direct claude-glm api.z.ai/api/anthropic · glm-5.3
/model-config kimi --direct claude-kimi api.moonshot.ai/anthropic · kimi-k3
MR="$(cat ~/.claude/.bootstrap-dir)/scripts/model_routing.py"
python3 "$MR" write-launcher deepseek   # one backend
python3 "$MR" write-launchers           # all three at once

Read the full file on GitHub · 152 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +70 lines 4f6296ec5924
  2. 3mo ago First seen · 82 lines · 0 tokens per session scan B a604139d6846

Subscribe to this mod's changes

model-config is a command published in the GitHub repository alinaqi/maggy (713 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,627 tokens. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

model-config compared with commands from other repositories

model-config next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
model-configalinaqi/maggyCommand7133d agoMITB0Claude Code
promptnonlinear-xyz/factory-kitCommand106d agoMITA18Claude Code
data-pipelinechristopherlouet/claude-baseCommand515d agoMITA0Claude Code
ccc-python-reviewKevinZai/commanderCommand6yesterdayMITA48Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
analyzegithub/spec-kitCommand153ktodayMITA26Claude Code