CLI
The Restormel Keys CLI gives you terminal-based access to validation, cost estimation, routing inspection, and environment diagnostics.
Install
npm install -g @restormel/keys-cliOr add it as a dev dependency in your project:
npm install -D @restormel/keys-cliCommands
keys init
Scaffold a Restormel configuration file in the current project.
keys initkeys doctor
Validate your environment, dependencies, and configuration.
keys doctorkeys validate
Check the validity of configured provider credentials (masked).
keys validatekeys estimate <model>
Get a cost estimate for a given model with configurable token volumes.
keys estimate gpt-4o --input 2 --output 1keys models list
List all available models across configured providers, with pricing.
keys models listFilter by provider:
keys models list --provider anthropickeys routing explain <model>
Explain how Restormel would route a request for a given model.
keys routing explain claude-3-5-sonnetkeys catalog fetch
Fetch the public canonical provider + model catalog from Restormel (no Gateway Key). Uses RESTORMEL_KEYS_BASE or https://restormel.dev. See Canonical catalog for the full integration guide.
keys catalog fetchkeys catalog fetch --json | jq .contractVersionNext steps
- MCP setup — connect to agent workflows
- AAIF overview — structured AI interaction contract
- All integrations