Open History to see the last commit
1# modelschemas (CLI)
2
3CLI for [modelschemas](https://modelschemas.com) — live per-endpoint
4request/response JSON Schemas and model metadata for AI providers
5(OpenAI, Anthropic, Gemini, xAI Grok, ElevenLabs, OpenRouter, FAL).
6
7> The published bin is built JavaScript and runs on Node. No TypeScript loader.
8
9```bash
10npx modelschemas models list --activity chat
11npx modelschemas schema get anthropic v1/messages --kind input
12npx modelschemas validate anthropic/v1/messages payload.json
13```
14
15```
16login [--name <n>] [--delegated] [--api-key] register this machine
17whoami show identity, grants, usage
18models list|get model catalog
19schema get <provider> <endpointId> one self-contained JSON Schema
20validate <provider/endpointId> <file> validate a payload (exit 2 = invalid)
21estimate <provider> <model> [body.json] evaluate the stored rate card
22 ({request?,usage?} or usage object)
23changes [--since <epoch>] changelog feed
24subscribe <url> webhook subscription
25pull <selection...> generate schema/type modules
26update refresh pulled modules
27verify re-hash pulls against pinned content
28 addresses + provenance
29```
30
31`--json` everywhere (default when piped), so the CLI is agent-friendly.
32Output of `pull` is committed; `verify` proves the service still serves
33bytes matching each pinned content hash.
34
35Docs: [modelschemas.com/docs](https://modelschemas.com/docs) · Source:
36[github.com/TanStack/modelschemas](https://github.com/TanStack/modelschemas)