openwork-models
/openwork-models
Manage OpenWork inference model aliases, openwork model overlays, discounts, validation, and automated base model refreshes from models.dev. Use when adding, removing, discounting, auditing, or updating OpenWork models, including requests like "update the models" that should trigger the GitHub update-models workflow and report when its PR merges.
- Author
- different-ai ↗
- Repository
- openwork ↗
- Licence
- MIT
- Last repository change
- 25.10.2026
Assessment and security
- Files in this package
- 4
- Scripts
- 3
- HTML comments
- 0
- URLs in SKILL.md
- 2
No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 3 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/extract-source-models.mjs, scripts/openwork-models.mjs, scripts/trigger-update-workflow.mjs
What it does and when to use it
Manage OpenWork inference model aliases, openwork model overlays, discounts, validation, and automated base model refreshes from models.dev. Use when adding, removing, discounting, auditing, or updating OpenWork models, including requests like "update the models" that should trigger the GitHub update-models workflow and report when its PR merges.
Triggers from the description
Original author description
Manage OpenWork inference model aliases, openwork model overlays, discounts, validation, and automated base model refreshes from models.dev. Use when adding, removing, discounting, auditing, or updating OpenWork models, including requests like "update the models" that should trigger the GitHub update-models workflow and report when its PR merges.
How it works
- Scripts
- Update Models Workflow
- Add Workflow
- Remove Workflow
- Discount Workflow
- Validation
SKILL.md preview
---
name: openwork-models
description: Manage OpenWork inference model aliases, openwork model overlays, discounts, validation, and automated base model refreshes from models.dev. Use when adding, removing, discounting, auditing, or updating OpenWork models, including requests like "update the models" that should trigger the GitHub update-models workflow and report when its PR merges.
---
# OpenWork Models
Use this skill for OpenWork inference model changes. The source of truth for
available upstream models is:
- `ee/apps/gateway/src/models/base.json`
- provider key: `openrouter`
- model map: `openrouter.models`
The editable OpenWork model list is:
- `ee/apps/gateway/src/models/openwork-models.json`
Managed file:
- `packages/types/src/den/inference.ts`
`ee/apps/gateway/scripts/build-models.mjs` reads `openwork-models.json` and
generates the OpenWork provider overlay in memory. It selects the API URL from
`OPENWORK_DEV_MODE`: dev uses `http://127.0.0.1:8791/api/v1`, otherwise prod
uses `https://inference.openworklabs.com/api/v1`.
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:
```bash
node .opencode/skills/openwork-models/scripts/extract-source-models.mjs
node .opencode/skills/openwork-models/scripts/extract-source-models.mjs --query "zai 5.1"
```
Manage OpenWork models:
```bash
node .opencode/skills/openwork-models/scripts/openwork-models.mjs search "zai 5.1"
node .opencode/skills/openwork-models/scripts/openwork-models.mjs add "z-ai/glm-5.1"
node .opencode/skills/openwork-models/scripts/openwork-models.mjs remove "z-ai/glm-5.1"
node .opencode/skills/openwork-models/scripts/openwork-models.mjs discount 0.1 "z-ai/glm-5.1"
node .opencode/skills/openwork-models/scripts/openwork-models.mjs sync
node .opencode/skills/openwork-models/scripts/openwork-models.mjs validate
```
Trigger the remote base model refresh workflow:
```bash
node .opencode/skills/openwork-models/scripts/trigger-update-workflow.mjs
node .opencode/skills/openwork-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:
```bash
node .opencode/skills/openwork-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
1. Run `extract-source-models.mjs --query "<user text>"` or
`openwork-models.mjs search "<user text>"`.
2. If there is no good match, ask the user for clarification.
3. If there are multiple plausible matches, list the matching IDs and ask which
one(s) to add.
4. Once exact IDs are known, run `openwork-models.mjs add "<id>"` for each ID.
The script copies the full model block from `openrouter.models`, adds it to
`openwork-models.json`, syncs aliases, and validates.
New aliases use:
```ts
"model/id": {
upstreamModel: "model/id",
displayName: "OpenWork: " + model.name,
enabled: true,
usageFactor: 1,
}
```
Preserve existing `usageFactor` values when syncing. New models default to `1`.
## Remove Workflow
1. Resolve exact IDs with `search` if needed.
2. Run `openwork-models.mjs remove "<id>"`.
3. The script removes the model from `openwork-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:
- `1` means 100% price.
- `0.1` means 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:
```bash
node .opencode/skills/openwork-models/scripts/openwork-models.mjs discount <factor> "<id>" ["<id2>"]
```
## Validation
Before finishing, run:
```bash
node .opencode/skills/openwork-models/scripts/openwork-models.mjs validate
node ee/apps/gateway/scripts/build-models.mjs
```
Validation checks JSON validity, OpenWork model ID consistency, and alias
coverage in `INFERENCE_MODEL_ALIASES`.
Files in this package (4)
- SKILL.md 4 KB
- scripts/extract-source-models.mjs 2 KB
- scripts/openwork-models.mjs 8 KB
- scripts/trigger-update-workflow.mjs 4 KB
Versions
The database has no other skills named openwork-models.
Database snapshot: 13.11.2026 · package version 1b5eee216adc (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100set-up-openwork-team
Set up OpenWork for a team - sign up for OpenWork Cloud, create the organization, invite teammates, share models through the AI Gateway, and share a skill. Use when a team or company wants OpenWork with shared skills, models, or policies. - 100install-openwork
Install the free OpenWork desktop app on macOS, Windows, or Linux and get the user to a first task. Use when someone wants OpenWork, an open-source Claude Cowork alternative, on their own computer. - 100pick-my-harness
Asks a few plain questions about the work, then names the one desktop app to run local AI models in, from LM Studio, Goose, Open WebUI, AnythingLLM, OpenWork or Odysseus. Use when the user asks "which app should I use for local AI", "LM Studio or Ollama", "what is the best local… - 100update-provider-models
Add new or remove obsolete model IDs for existing AI SDK providers. Use when adding a model to a provider, removing an obsolete model, or processing a list of model changes from an issue. Triggers on "add model", "remove model", "new model ID", "obsolete model", "update model IDs". - 100add-model-descriptions
Add descriptions for new models from the HuggingFace router to chat-ui configuration. Use when new models are released on the router and need descriptions added to prod.yaml and dev.yaml. Triggers on requests like "add new model descriptions", "update models from router", "sync… - 100adding-models
Guide for adding new LLM models to Letta Code. Use when the user wants to add support for a new model, needs to know valid model handles, or wants to update model-specific compatibility behavior. Covers runtime catalog sources, CI test matrices, and handle validation.