Modelglass's VS Code extensions — route dev tasks (and generate video/audio) to the cheapest capable option against your own provider keys, or bring the live Modelglass pricing/capability feed into Copilot's agent mode as MCP tools.
modelglass-vscode
What Modelglass is
Modelglass is a pricing-and-capability data
layer for AI models — image, video, audio, and LLM — built as a sourced,
append-only registry: every price carries a source URL and the date it was
verified, and a repricing is a new dated entry, never a silent overwrite.
It's served two ways: a free comparison site, and a paid read API + MCP
server (https://modelglass-api.vercel.app, POST /mcp) for operators
wiring model pricing into their own tooling. Modelglass itself doesn't proxy
your traffic or pick a model at runtime — it's the data other people's
tools (including both extensions in this repo) read.
What this repo is
An npm workspaces monorepo publishing two independent VS Code
extensions, each installable on its own:
| Package | What it is | Marketplace |
|---|
packages/router | Modelglass Cost-Aware Router — routes dev tasks to the cheapest capable LLM (and generates video via Runway, audio via ElevenLabs) directly against your own provider keys, BYOK, no Modelglass proxy in the request path. Also available directly inside Copilot Chat's model picker. | modelglass.cost-aware-router |
packages/mcp | Modelglass MCP — registers the live Modelglass MCP server directly in Copilot's agent mode, no manual .vscode/mcp.json editing. Seven read-only tools (models, pricing history, competitors, account/tier info) — Copilot's agent decides when to use them, this extension just makes them discoverable. | modelglass.modelglass-mcp |
packages/shared | Internal only, not published. SecretStorage-backed auth (ensureApiKey/peekApiKey) and the Modelglass API base URL, shared by both extensions above. | — |
Both extensions use the same Modelglass account/API key — installing one
doesn't require separately authenticating the other. See each package's own
README.md for full usage docs, including a screenshot of it in action.

Development
npm install
npm run typecheck
npm run test
npm run build
npm run build --workspace packages/router
npm run package --workspace packages/mcp
To run an extension locally: open packages/router or packages/mcp as
the VS Code workspace root and press F5 to launch an Extension
Development Host with your changes loaded — standard VS Code extension
tooling, no custom launch config needed. See
CONTRIBUTING.md for the full local-dev + PR flow.
The router/mcp split is tracked as SCO-434 in the main modelglass repo's
Linear project.
Contributing
Bug reports, fixes, and new features are welcome — see
CONTRIBUTING.md and our
Code of Conduct.
To report a security vulnerability, follow SECURITY.md
instead of opening a public issue.
Talk to us
Questions about Modelglass itself or either extension — email
scott@modelglass.com.au.
Copyright © 2026 Modelglass Pty Ltd. Licensed under the MIT License — see LICENSE.