Caricamento in corso...
Caricamento in corso...
Last synced: Today, 22:00
Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.
Use this file to discover all available pages before exploring further.
Auth profile rotation, cooldowns, and how that interacts with fallbacks.
Quick provider overview and examples.
PI, Codex, and other agent loop runtimes.
Model config keys.
Model refs choose a provider and model. They do not usually choose the low-level agent runtime. For example,
openai/gpt-5.5agents.defaults.agentRuntime.idOpenClaw selects models in this order:
The same
provider/modelagents.defaults.model.primaryagents.defaults.model.fallbacksmodelOverrideSource: "auto"/modelsession_status(model=...)sessions.patchmodelOverrideSource: "user"--modelmodelfallbacksfallbacks: []models.mode: "replace"models.providers.*.modelsagents.defaults.modelsmodels.providers.*.modelsmodels.listview: "all"openclaw models list --allIf you don't want to hand-edit config, run onboarding:
bashopenclaw onboard
It can set up model + auth for common providers, including OpenAI Code (Codex) subscription (OAuth) and Anthropic (API key or Claude CLI).
agents.defaults.model.primaryagents.defaults.model.fallbacksagents.defaults.imageModel.primaryagents.defaults.imageModel.fallbacksagents.defaults.pdfModel.primaryagents.defaults.pdfModel.fallbacksagents.defaults.imageGenerationModel.primaryagents.defaults.imageGenerationModel.fallbacksagents.defaults.videoGenerationModel.primaryagents.defaults.videoGenerationModel.fallbacksagents.defaults.modelsmodels.providersmodels.jsonProvider configuration examples (including OpenCode) live in OpenCode.
Use additive writes when updating
agents.defaults.modelsbashopenclaw config set agents.defaults.models '{"openai/gpt-5.4":{}}' --strict-json --merge
If
agents.defaults.models/modeltextModel "provider/model" is not allowed. Use /model to list available models.
agents.defaults.modelsagents.defaults.models/model listFor local/GGUF models, store the full provider-prefixed ref in the allowlist, for example
ollama/gemma4:26blmstudio/Gemma4-26b-a4-it-ggufopenclaw models list --provider <provider>Example allowlist config:
json5{ agent: { model: { primary: "anthropic/claude-sonnet-4-6" }, models: { "anthropic/claude-sonnet-4-6": { alias: "Sonnet" }, "anthropic/claude-opus-4-6": { alias: "Opus" }, }, }, }
/modelYou can switch models for the current session without restarting:
text/model /model list /model 3 /model openai/gpt-5.4 /model status
Full command behavior/config: Slash commands.
bashopenclaw models list openclaw models status openclaw models set <provider/model> openclaw models set-image <provider/model> openclaw models aliases list openclaw models aliases add <alias> <provider/model> openclaw models aliases remove <alias> openclaw models fallbacks list openclaw models fallbacks add <provider/model> openclaw models fallbacks remove <provider/model> openclaw models fallbacks clear openclaw models image-fallbacks list openclaw models image-fallbacks add <provider/model> openclaw models image-fallbacks remove <provider/model> openclaw models image-fallbacks clear
openclaw modelsmodels statusmodels listShows configured/auth-available models by default. Useful flags:
models statusShows the resolved primary model, fallbacks, image model, and an auth overview of configured providers. It also surfaces OAuth expiry status for profiles found in the auth store (warns within 24h by default).
--plainExample (Claude CLI):
bashclaude auth login openclaw models status
openclaw models scanScan results are ranked by:
Input:
/models:freeOPENROUTER_API_KEY--max-age-days--min-params--provider--max-candidates--timeout--concurrencyWhen live probes run in a TTY, you can select fallbacks interactively. In non-interactive mode, pass
--yes--set-default--set-imagemodels.jsonCustom providers in
models.providersmodels.json~/.openclaw/agents/<agentId>/agent/models.jsonmodels.modereplace© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine