CLI

The Restormel Keys CLI gives you terminal-based access to validation, cost estimation, routing inspection, and environment diagnostics.

Install

CLI
npm install -g @restormel/keys-cli

Or add it as a dev dependency in your project:

CLI
npm install -D @restormel/keys-cli

Commands

keys init

Scaffold a Restormel configuration file in the current project.

CLI
keys init

keys doctor

Validate your environment, dependencies, and configuration.

CLI
keys doctor

keys validate

Check the validity of configured provider credentials (masked).

CLI
keys validate

keys estimate <model>

Get a cost estimate for a given model with configurable token volumes.

CLI
keys estimate gpt-4o --input 2 --output 1

keys models list

List all available models across configured providers, with pricing.

CLI
keys models list

Filter by provider:

CLI
keys models list --provider anthropic

keys routing explain <model>

Explain how Restormel would route a request for a given model.

CLI
keys routing explain claude-3-5-sonnet

keys 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.

CLI
keys catalog fetch
CLI
keys catalog fetch --json | jq .contractVersion

Next steps