From openclaw
Manages OpenClaw (龙虾) instance configurations: audit, diff, copy providers/models, list, switch, and manage lobster nicknames. Useful for validating and comparing openclaw.json configs.
How this skill is triggered — by the user, by Claude, or both
Slash command
/openclaw:openclaw [audit|diff|copy|add-model|list|switch] [options][audit|diff|copy|add-model|list|switch] [options]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
A unified skill for managing OpenClaw (龙虾) instance configs.
references/deepseek_model.jsonreferences/deepseek_patch_sop.mdreferences/lobster_registry.example.jsonreferences/openclaw_architecture.mdscripts/add_model.pyscripts/audit.pyscripts/cli.pyscripts/compare.pyscripts/copy_provider.pyscripts/list_models.pyscripts/openclaw_config.pyscripts/switch_model.pyA unified skill for managing OpenClaw (龙虾) instance configs.
python3 scripts/cli.py [audit|diff|copy|add-model|list|switch] [options]
Each subcommand can also be run directly, e.g. python3 scripts/audit.py ....
diff is an alias for compare.
--config / --to is omitted, the skill
searches these locations in order:
~/workspace/.force/openclaw/openclaw.json~/.kimi_openclaw/openclaw.json~/.openclaw/openclaw.json--config, --from, and --to can be either a file
path or a nickname registered in lobsters.json (see below). You can also use
--from-lobster and --to-lobster for explicit nickname arguments.config-backups/<stem>-<utc-timestamp>.json before saving. The skill keeps
the 20 most recent backups.copy, add-model, switch) support
--dry-run to preview changes.--restart to restart the OpenClaw
gateway after saving.copy, add-model, and switch run an audit before and
after the change by default. Use --no-audit to skip it.Create a JSON file at one of these locations:
~/workspace/.force/openclaw/lobsters.json~/.kimi_openclaw/lobsters.json~/.openclaw/lobsters.jsonExample:
{
"甲虾": "/path/to/甲虾/openclaw.json",
"乙虾": "/path/to/乙虾/openclaw.json"
}
Then use:
python3 scripts/cli.py copy gateway-provider --from 甲虾 --to 乙虾 --alias
python3 scripts/cli.py switch gateway-provider/deepseek-v4-pro --config 乙虾 --restart
audit — validate a configpython3 scripts/cli.py audit [--config PATH|NICKNAME] [--json]
Checks providers, models, default model, aliases, and plugin consistency.
Use when:
diff — semantic diff of two configspython3 scripts/cli.py diff LEFT.json RIGHT.json [--json] [--include-cost]
Reports added/removed/changed providers, models, default model, aliases, and
plugins. Skips cost fields by default; use --include-cost to diff them.
Use when:
copy — copy a provider between configspython3 scripts/cli.py copy \
--from SOURCE|NICKNAME [--to TARGET|NICKNAME] \
provider-name [--model ID]... [--alias] [--restart] [--dry-run] [--no-audit]
Copies an entire provider from one config to another. If the target already has
that provider, it merges models and updates baseUrl / api without deleting
target-only models. --alias also copies aliases pointing to that provider.
Use when:
add-model — add a model to a providerpython3 scripts/cli.py add-model provider model-id|model-json \
[--config PATH|NICKNAME] [--from SOURCE|NICKNAME] [--alias NAME] \
[--restart] [--dry-run] [--no-audit]
Adds a model definition and alias to a provider. If the provider is missing, it
can be copied from --from first.
Ways to specify the model:
--from SOURCE containing that model in the same provider.Use when:
The canonical DeepSeek model definition lives in
references/deepseek_model.json.
deepseek provider. The supported path is the
gateway provider with model id deepseek-v4-pro.[1m]. Use the suffixless deepseek-v4-pro;
the upstream gateway maps it to the 1M context variant.list — list providers, models, aliases, and defaultpython3 scripts/cli.py list [--config PATH|NICKNAME] [--json] [--validate]
Human-readable output by default; --json for piping to jq. Add --validate
to check that the default model and aliases resolve.
Use when:
switch — change the default modelpython3 scripts/cli.py switch provider/model-id \
[--config PATH|NICKNAME] [--restart] [--dry-run] [--no-audit]
This is the only subcommand that changes agents.defaults.model. It verifies
that the provider and model exist, backs up the config, and updates the default.
If the target is already the default, it exits without making another backup.
Use when:
python3 scripts/cli.py audit --config 乙虾
python3 scripts/cli.py add-model gateway-provider deepseek-v4-pro \
--config 乙虾 --from 甲虾 --alias "DeepSeek V4 Pro"
python3 scripts/cli.py switch gateway-provider/deepseek-v4-pro --config 乙虾 --restart
python3 scripts/cli.py copy gateway-provider --from 甲虾 --to 乙虾 --alias --restart
python3 scripts/cli.py audit --config 乙虾
python3 scripts/cli.py diff 甲虾 乙虾
references/openclaw_architecture.md — config schema and terminologyreferences/deepseek_patch_sop.md — DeepSeek patch SOP (sanitized)references/deepseek_model.json — canonical DeepSeek model definition loaded
by add-modelreferences/lobster_registry.example.json — example lobster nickname registrynpx claudepluginhub p/daymade-openclaw-openclawDocuments OpenClaw agent model configurations: provider status (working, quota-limited, broken), auth profile format, and step-by-step instructions to switch primary model with probe verification.
Answers OpenClaw questions on configuration, troubleshooting, setup, architecture, features, channels, gateway, automation, models, and design decisions using clawdocs and openclaw CLIs.
Switches the default AI model in OpenClaw by modifying openclaw.json. Use to upgrade model versions, switch between reasoning and non-reasoning models, or roll back.