packages/cli
| Name | Last commit message | Last commit date |
|---|---|---|
| .. | ||
README.md
modelschemas (CLI)#
CLI for modelschemas — live per-endpoint request/response JSON Schemas and model metadata for AI providers (OpenAI, Anthropic, Gemini, xAI Grok, ElevenLabs, OpenRouter, FAL).
Runs on Bun (the bin ships as TypeScript).
bunx modelschemas models list --activity chat
bunx modelschemas schema get anthropic v1/messages --kind input
bunx modelschemas validate anthropic/v1/messages payload.json
login [--name <n>] [--delegated] [--api-key] register this machine
whoami show identity, grants, usage
models list|get model catalog
schema get <provider> <endpointId> one self-contained JSON Schema
validate <provider/endpointId> <file> validate a payload (exit 2 = invalid)
estimate <provider> <model> [body.json] evaluate the stored rate card
({request?,usage?} or usage object)
changes [--since <epoch>] changelog feed
subscribe <url> webhook subscription
pull <selection...> generate schema/type modules
update refresh pulled modules
verify re-hash pulls against pinned content
addresses + provenance
--json everywhere (default when piped), so the CLI is agent-friendly.
Output of pull is committed; verify proves the service still serves
bytes matching each pinned content hash.
Docs: modelschemas.com/docs · Source: github.com/modelschemas/modelschemas