Set the agent model and configure failover

configuration & security

// what it does

openclaw models set <provider>/<model> sets the primary (agents.defaults.model.primary); openclaw models fallbacks add appends to the chain tried when the primary fails. Selection order is primary, then auth-profile rotation within a provider, then the next fallback. openclaw models status shows the active model and auth expiry.

// shell

$ openclaw models set anthropic/claude-sonnet-4-6
$ openclaw models fallbacks add anthropic/claude-haiku-4-5
$ openclaw models status

// gotcha

Fallbacks only rescue you if their providers are authed — a fallback to a provider you never logged into just fails next in line. Confirm with openclaw models status before relying on the chain.

// resources