Skip to main content
skill CX Codex

fm — Claude Code skill: model selection and setup

This Claude Code and Codex skill pins a chosen model to a Codex session through Weave Router. Invoke it with $fm <model-id>.

Apache-2.0 ★ 5,622 updated 2026-11-17

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add weave-os/router --skill fm -a claude-code
Open on GitHub

What fm does

The skill passes the model identifier to scripts/emit.sh. That script prints a /force-model command; Weave Router reads it from the output, pins the session to the model, and continues the current turn.

Weave Router and a model identifier are required. The skill runs the script once, then ends the turn without sending a separate user message. Router provides the acknowledgment.

What it helps with

  • pin a chosen model to a Codex session
  • send a model identifier to Weave Router
  • switch the session model with $fm <model-id>

Example prompts for the agent

  • Pin model o3 to this Codex session with $fm o3.
  • Switch the session to gpt-4.1 using $fm gpt-4.1.
  • Set claude-sonnet-4 for the current session: $fm claude-sonnet-4.

How to install fm

1Skills CLI (Vercel)

npx skills add weave-os/router --skill fm -a claude-code

2Manually: put the files in place

~/.claude/skills/fm/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/fm/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about fm

How do I install fm in Claude Code?

Run npx skills add weave-os/router --skill fm -a claude-code. The skill file is installed at ~/.claude/skills/fm/SKILL.md.

What does fm do?

It sends a model identifier to a script that prints /force-model. Weave Router uses that command to pin the model to a Codex session.

What does fm need to work?

It needs Weave Router and a model identifier passed as $fm <model-id>.

Source text

SKILL.md · Apache-2.0
---
name: fm
description: "Alias for force-model — pin this Codex session to a specific model through the Weave Router."
---

<!-- weave-router managed fm skill -->

When the user invokes `$fm <model-id>`, run this skill's `scripts/emit.sh` using the
absolute path shown in this skill's `<path>` (its directory + `/scripts/emit.sh`).
Pass the model id as arguments, quoted as a single argument list.
Do not send a user message and do not type a Codex slash command.

The script prints a leading-space `/force-model` line. The Weave Router reads that
exec output, pins the session, and continues this turn — so run the script once and
do not repeat its output as your answer. The router renders its own
acknowledgment, so do not restate or reason about it; end the turn.

© weave-os · Apache-2.0 · weave-os/router

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set20

The whole set →

Project sponsors

Companies that keep this analytics open