This repository holds provider and model catalogs for Agent Router. The Agent Router Python SDK ships a copy of them. providers.json lists the providers. Each model catalog contains one provider's models, prices, limits, and capabilities. CHANGELOG.md records catalog updates, source coverage, and unresolved limitations.
| File | Provider |
|---|---|
anthropic.json |
Anthropic |
openai.json |
OpenAI |
gemini.json |
Google Gemini |
xai.json |
xAI |
groq.json |
Groq |
deepinfra.json |
DeepInfra |
vertex.json |
Google Vertex AI (Agent Platform) |
vertexanthropic.json |
Google Vertex AI — Anthropic Claude models |
The schemas/ folder contains the reusable TypeScript contract:
- models.ts defines model records, pricing fields, units, null semantics, and threshold boundaries.
- providers.ts defines provider records.
Literal field definitions stay beside the types. The runtime validator derives its allowed pricing keys from those definitions. TypeScript types do not validate JSON files at runtime.
Related files have separate locations:
| Location | Purpose |
|---|---|
| docs/pricing.md | Pricing interpretation and update rules |
| scripts/validate-catalogs.ts | Runtime validation of model catalogs |
| scripts/catalog-policy.ts | Capability, image-provider, and retirement rules |
| tests/ | Validator regression checks, CLI checks, and the type-check fixture |
Catalog validation requires Bun. From the repository root, run:
bun scripts/validate-catalogs.tsAfter pricing or schema changes, run the regression checks:
bun tests/validate.test.ts
bun tests/catalog-policy.test.ts
bun tests/validate-cli.test.tsFor schema changes, also run the type check with the TypeScript compiler:
tsc --noEmit --strict --target es2022 tests/models.typecheck.tsA passing validator proves structural consistency. Official provider sources establish current prices, capabilities, and availability.
An AI agent compares each catalog record with the current provider documentation. Both local updater skills use the same pricing contract.
- Open an agent session in this repository.
- Invoke the
update-modelsskill for your agent:
| Agent | Local skill | Record rules |
|---|---|---|
| Codex | .agents/skills/update-models/SKILL.md | AGENTS.md |
| Claude Code | .claude/skills/update-models/SKILL.md | CLAUDE.md |
Before price changes, read the pricing contract.
The skill instructs the agent to:
- Read the change feed and the documentation of each provider.
- Compare every catalog record with the provider record.
- Apply the changed prices, limits, and capabilities.
- Add new models and mark deprecated or retired models.
- Run catalog validation and the required regression checks.
- Write a dated block at the top of
CHANGELOG.md.
The audits/ directory holds local provider evidence and completed migration artifacts. Git ignores this directory, and commits exclude its contents.
The changelog records material source gaps, unresolved pricing, and source URLs so each committed update remains reviewable.
See CONTRIBUTING.md. This project follows the LF Projects Code of Conduct. To report a security problem, see SECURITY.md.
Apache License 2.0. Documentation in docs/ is under CC BY 4.0.
Agent Router is an Agentic AI Foundation project, powered by Envoy. Copyright © Agent Router a Series of LF Projects, LLC. For web site terms of use, trademark policy and other project policies please see https://lfprojects.org.