ModelSwap ModelSwap User Manual English中文
☰ Chapters

10. Driving ModelSwap from an AI Agent (Skill)

ModelSwap ships a plain-markdown agent skill that teaches AI coding agents (Claude Code, Codex, OpenCode, …) to drive the CLI: inspect state with machine-readable output, switch models non-interactively, and follow the security boundaries around secrets.

10.1 Locate & install

modelswap skill path                      # print the built-in skill file location
modelswap skill install /path/to/project  # writes .agents/skills/modelswap/SKILL.md

Or fetch it straight from the public repo:

npx skills add Cing-self/modelswap --skill modelswap

10.2 What it enables

Raw commands are in chapter 14. The skill is written for agents — humans can just use the web console or the CLI directly.