Skip to main content

Module models

Module models 

Source
Expand description

Convenience enum for the models the Claude CLI exposes.

Variants are keyed by human-friendly model names; ClaudeModel::cli_arg returns the exact string to pass to claude --model (and therefore to ClaudeCliBuilder::model, which accepts the enum directly via Into<String>).

The model table was extracted from the Claude CLI 2.1.219 binary’s model registry. Aliases (sonnet, opus, …) float to the newest model of that family on the CLI side; pinned variants name one concrete model. Unknown or future model strings round-trip through ClaudeModel::Custom.

Enums§

ClaudeModel
A model selector accepted by claude --model.