A desktop coding agent with free access to frontier models.
name: omnirush-models description: Manage OmniRush.ai inference model aliases, omnirush model overlays, discounts, validation, and automated base model refreshes from models.dev. Use when adding, removing, discounting, auditing, or updating OmniRush.ai models, including requests like "update the models" that should trigger the GitHub update-models workflow and report when its PR merges.
OmniRush.ai Models
Use this skill for OmniRush.ai inference model changes. The source of truth for available upstream models is:
ee/apps/inference/src/models/base.json- provider key:
openrouter - model map:
openrouter.models
The editable OmniRush.ai model list is:
ee/apps/inference/src/models/omnirush-models.json
Managed file:
packages/types/src/den/inference.ts
ee/apps/inference/scripts/build-models.mjs reads omnirush-models.json and
generates the OmniRush.ai provider overlay in memory. It selects the API URL from
OMNIRUSH_DEV_MODE: dev uses http://127.0.0.1:8791/api/v1; the non-dev value
hard-coded there points at the retired hosted inference.omnirushlabs.com
domain, which omnirush.ai no longer owns. Do not treat that origin as a live
endpoint or copy it into new configuration.
Do not inspect the full base.json in chat. Use the scripts so the large source
model body stays out of context.
Scripts
Extract/search source models into a temp file:
node .opencode/skills/omnirush-models/scripts/extract-source-models.mjs
node .opencode/skills/omnirush-models/scripts/extract-source-models.mjs --query "zai 5.1"
Manage OmniRush.ai models:
node .opencode/skills/omnirush-models/scripts/omnirush-models.mjs search "zai 5.1"
node .opencode/skills/omnirush-models/scripts/omnirush-models.mjs add "z-ai/glm-5.1"
node .opencode/skills/omnirush-models/scripts/omnirush-models.mjs remove "z-ai/glm-5.1"
node .opencode/skills/omnirush-models/scripts/omnirush-models.mjs discount 0.1 "z-ai/glm-5.1"
node .opencode/skills/omnirush-models/scripts/omnirush-models.mjs sync
node .opencode/skills/omnirush-models/scripts/omnirush-models.mjs validate
Trigger the remote base model refresh workflow:
node .opencode/skills/omnirush-models/scripts/trigger-update-workflow.mjs
node .opencode/skills/omnirush-models/scripts/trigger-update-workflow.mjs --base dev --ref dev
Update Models Workflow
When the user asks to update/refresh/sync the models from models.dev, do not edit
base.json manually. Trigger .github/workflows/update-models.yml and wait for
the result:
node .opencode/skills/omnirush-models/scripts/trigger-update-workflow.mjs
The script dispatches the manual workflow, watches the run, finds the automation PR, waits until auto-merge completes, and prints the merged PR URL. If the workflow finds no model changes, report that no PR was created and include the workflow run URL. If the workflow or PR fails/closes unmerged, report that failure with the run/PR URL.
Add Workflow
- Run
extract-source-models.mjs --query "<user text>"oromnirush-models.mjs search "<user text>". - If there is no good match, ask the user for clarification.
- If there are multiple plausible matches, list the matching IDs and ask which one(s) to add.
- Once exact IDs are known, run
omnirush-models.mjs add "<id>"for each ID. The script copies the full model block fromopenrouter.models, adds it toomnirush-models.json, syncs aliases, and validates.
New aliases use:
"model/id": {
upstreamModel: "model/id",
displayName: "OmniRush.ai: " + model.name,
enabled: true,
usageFactor: 1,
}
Preserve existing usageFactor values when syncing. New models default to 1.
Remove Workflow
- Resolve exact IDs with
searchif needed. - Run
omnirush-models.mjs remove "<id>". - The script removes the model from
omnirush-models.json, removes the alias by regenerating the alias map from the model list, and validates.
Discount Workflow
A usage factor is the charged fraction of normal price:
1means 100% price.0.1means 10% price, a 90% discount.
Always clarify exact model IDs before changing discounts, especially if the user provides a partial string or asks for multiple models. Then run:
node .opencode/skills/omnirush-models/scripts/omnirush-models.mjs discount <factor> "<id>" ["<id2>"]
Validation
Before finishing, run:
node .opencode/skills/omnirush-models/scripts/omnirush-models.mjs validate
node ee/apps/inference/scripts/build-models.mjs
Validation checks JSON validity, OmniRush.ai model ID consistency, and alias
coverage in INFERENCE_MODEL_ALIASES.