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.
npx skills add ohong/agent-skills --skill switch-modelgit clone --depth 1 https://github.com/ohong/agent-skillsWrote 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.
[](https://agentmods.dev/skills/ohong/agent-skills/switch-model)<a href="https://agentmods.dev/skills/ohong/agent-skills/switch-model"><img src="https://agentmods.dev/badge/skills/ohong/agent-skills/switch-model/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.
<a href="https://agentmods.dev/skills/ohong/agent-skills/switch-model"><img src="https://agentmods.dev/badge/skills/ohong/agent-skills/switch-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00063 | $0.02184 |
| Opus 5.5 | $0.00025 | $0.00874 |
| Sonnet 5.5 | $0.00013 | $0.00437 |
| Haiku 4.5 | $0.00006 | $0.00218 |
Grade B, and why
switch-model 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.
- FireConnect auto-installs it for Claude Code only; add it to `~/.codex/config.toml` by hand for Codex. How it starts
The opening of the file, as written. The whole thing — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Switch model
Run the helper to change the default model. The user's switch request authorizes the config edit.
Resolve script paths relative to this skill directory. Requires Python 3.11+ and FireConnect.
On this machine, codex-switch-model runs the same helper from the terminal.
- Use a familiar alias, or list exact IDs with
python3 scripts/switch_model.py --list --search NAME.--listreports each model's id, display name, context window, vision support, price, and whether FireConnect curates it (in_codex_catalog). - Run the switch, for example
python3 scripts/switch_model.py kimi. Any other serverless model works by short or full id, for exampleqwen3p8-maxoraccounts/fireworks/models/qwen3p8-max. - Report the saved model, provider, effort, and session restart requirement.
codex-switch-model --list
codex-switch-model --list --search glm
codex-switch-model kimi
codex-switch-model kimi fast
codex-switch-model glm flash
codex-switch-model deepseek pro
codex-switch-model deepseek-flash-latest
codex-switch-model --effort medium kimi
codex-switch-model --dry-run kimi
codex-switch-model --status
codex-switch-model grok
codex-switch-model gpt
Use $switch-model kimi inside Codex. Also recognize the user's $swtich-model typo.
FireConnect owns the Fireworks model catalog. This helper ships no catalog of its own.
It stages FireConnect's own fireconnect codex on output in a private temporary home, then reads the
generated Codex catalog and model list from that directory. Aliases point at Fireworks latest routers.
The helper edits that catalog in exactly one way: it restores the max reasoning tier described below.
Models present in FireConnect's catalog keep that curated metadata. Any other model from Fireworks'
model API gets a generic catalog entry, so pinned versions such as kimi-k3 and models FireConnect does
not curate, such as qwen3p8-max, are selectable by name. Generic entries use Fireworks' canonical full
id in both config.toml and the catalog, a low/medium/high reasoning ladder plus max on the
deep-tier families, the reported context length, and a conservative 65,536-token window when Fireworks
reports none. Claiming a window that is
too large delays compaction until the server rejects the request, so the fallback errs small.
The catalog can include region-only deployments such as kimi-k3-us and glm-5p3-flash-us.
FireConnect curates reasoning tiers by hand and grants max to only a few base refs, so DeepSeek,
GLM, and Kimi families arrive with a three-tier ladder. The helper restores max on those families.
Fireworks documents the deep tier for DeepSeek V4/V4.1, Kimi K3, and GLM 5.2; a live probe confirmed
it for GLM 5.3. Measured cost: max uses two to twelve times the output tokens of low and rarely
improves accuracy on small coding tasks. Prefer low or high, and reach for max only when a task
needs deep deliberation.
The list merges FireConnect's curated entries with every chat-plus-tools model on Fireworks' model API.
It excludes MiniMax, non-tool models, and the FireRouter BYOK router. MiniMax currently conflicts
with Codex tool-message ordering. Missing or ambiguous IDs fail without changing the config.
Do not invent model IDs or claim every serverless model supports Codex. Fireworks' model API lists more
models than it serves, so a generic switch first runs one tiny validation request (developer plus user
message, at most 64 output tokens). Broken models fail with the server's reason before any file changes;
dry runs and curated switches run no inference. Example limits found on 2026-09-18: qwen3p8-max rejects
Codex's developer-role messages in its chat template, while nemotron-lightning-3p5-30b-a3b passes.
Kimi K3 works in CLI sessions but currently fails in Codex desktop sessions. Fireworks rejects any tool schema
that sets type beside $ref, and a desktop app tool sends that shape. The turn ends with
stream disconnected before completion: JSON Schema not supported: when using $ref, type should be defined in the referenced schema instead of the parent schema. DeepSeek and GLM accept that shape. Verified on 2026-09-17:
kimi-fast-latest failed in this desktop thread, passed in two CLI sessions, and a direct Fireworks probe reproduced
the exact rejection. The warning covers the whole Kimi family, including pinned ids. Use Kimi in the CLI,
or DeepSeek/GLM in the desktop, until the app or Fireworks fixes it.
What ships with it
8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- scripts/__pycache__/fireworks_auth.cpython-314.pyc 4.1 KB
- scripts/__pycache__/fireworks_connect.cpython-314.pyc 20 KB
- scripts/__pycache__/switch_model.cpython-314.pyc 20 KB
- scripts/fireworks_auth.py 2.0 KB runs code
- scripts/fireworks_connect.py 14 KB runs code
- scripts/switch_model.py 13 KB runs code
- tests/__pycache__/test_switch_model.cpython-314.pyc 33 KB
- tests/test_switch_model.py 19 KB runs code
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.
- 2mo ago Changed · +26 lines · +3 tokens per session 4dad80d5c1f0
- 2mo ago Changed · +32 lines · +2 tokens per session 302158e45c55
- 2mo ago First seen · 73 lines · 58 tokens per session scan B 6db328ba4b46
switch-model is a skill published in the GitHub repository ohong/agent-skills (4 stars, last pushed 2mo ago), licensed MIT. It adds 63 tokens to every session and 2,184 once invoked, about $0.0003 per session on Opus 5.5. 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-09-15.
switch-model compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| switch-modelohong/agent-skills | Skill | 4 | 2mo ago | MIT | B | 63 | Codex |
| agent-platform-model-registrygoogle/skills | Skill | 26k | today | Apache-2.0 | A | 60 | Claude Code, Codex |
| llm-evaluationsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 25 | Claude Code |
| google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skills | Skill | 26k | today | Apache-2.0 | A | 132 | Claude Code, Codex |
| training-checkwanshuiyin/Auto-claude-code-research-in-sleep | Skill | 20k | 3d ago | MIT | A | 35 | Claude Code |
| tao-run-inference-serviceNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 92 | Claude Code |
| nemo-automodel-launcher-configNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 30 | Claude Code |