Skip to content
Source
Sign inSign up
TanStack/schemas
Open History to see the last commit

README.md

36 lines1.7 KB

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> Runs on [Bun](https://bun.sh) (the bin ships as TypeScript).
8​
9```bash
10bunx modelschemas models list --activity chat
11bunx modelschemas schema get anthropic v1/messages --kind input
12bunx 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/modelschemas/modelschemas](https://github.com/modelschemas/modelschemas)