openclaw models
Model discovery, scanning, and configuration (default model, fallbacks, auth profiles).
Related:
- Providers + models: Models
- Provider auth setup: Getting started
Common commands
openclaw models status shows the resolved default/fallbacks plus an auth overview.
When provider usage snapshots are available, the OAuth/API-key status section includes
provider usage windows and quota snapshots.
Current usage-window providers: Anthropic, GitHub Copilot, Gemini CLI, OpenAI
Codex, MiniMax, Xiaomi, and z.ai. Usage auth comes from provider-specific hooks
when available; otherwise OpenClaw falls back to matching OAuth/API-key
credentials from auth profiles, env, or config.
Add --probe to run live auth probes against each configured provider profile.
Probes are real requests (may consume tokens and trigger rate limits).
Use --agent <id> to inspect a configured agent’s model/auth state. When omitted,
the command uses OPENCLAW_AGENT_DIR/PI_CODING_AGENT_DIR if set, otherwise the
configured default agent.
Notes:
models set <model-or-alias>acceptsprovider/modelor an alias.- Model refs are parsed by splitting on the first
/. If the model ID includes/(OpenRouter-style), include the provider prefix (example:openrouter/moonshotai/kimi-k2). - If you omit the provider, OpenClaw resolves the input as an alias first, then as a unique configured-provider match for that exact model id, and only then falls back to the configured default provider with a deprecation warning. If that provider no longer exposes the configured default model, OpenClaw falls back to the first configured provider/model instead of surfacing a stale removed-provider default.
models statusmay showmarker(<value>)in auth output for non-secret placeholders (for exampleOPENAI_API_KEY,secretref-managed,minimax-oauth,oauth:chutes,ollama-local) instead of masking them as secrets.
models status
Options:
--json--plain--check(exit 1=expired/missing, 2=expiring)--probe(live probe of configured auth profiles)--probe-provider <name>(probe one provider)--probe-profile <id>(repeat or comma-separated profile ids)--probe-timeout <ms>--probe-concurrency <n>--probe-max-tokens <n>--agent <id>(configured agent id; overridesOPENCLAW_AGENT_DIR/PI_CODING_AGENT_DIR)
Aliases + fallbacks
Auth profiles
models auth add is the interactive auth helper. It can launch a provider auth
flow (OAuth/API key) or guide you into manual token paste, depending on the
provider you choose.
models auth login runs a provider plugin’s auth flow (OAuth/API key). Use
openclaw plugins list to see which providers are installed.
Examples:
login --provider anthropic --method cli --set-defaultreuses a local Claude CLI login and rewrites the main Anthropic default-model path toclaude-cli/....setup-tokenandpaste-tokenremain generic token commands for providers that expose token auth methods.paste-tokenaccepts a token string generated elsewhere or from automation.- Anthropic billing note: Anthropic changed third-party harness billing on April 4, 2026 at 12:00 PM PT / 8:00 PM BST. Anthropic says Claude subscription limits no longer cover OpenClaw, and Claude CLI traffic in OpenClaw now requires Extra Usage billed separately from the subscription.
- Existing legacy Anthropic token profiles still run if already configured, but Anthropic no longer supports
setup-tokenorpaste-tokenas a new OpenClaw auth path.