openclaw

GitHub

管理 OpenClaw 实例配置,支持审计、对比、复制模型及切换默认模型等功能。通过 CLI 工具自动发现配置路径,提供备份、干运行和重启服务,用于维护和同步多实例的模型配置。

Trigger Scenarios

审计或验证 openclaw.json 配置 对比两份配置的差异 复制 provider 或添加/切换模型 提及龙虾、虾、甲虾、乙虾等别名

Install

npx skills add daymade/claude-code-skills --skill openclaw -g -y
More Options

Non-standard path

npx skills add https://github.com/daymade/claude-code-skills/tree/main/openclaw -g -y

Use without installing

npx skills use daymade/claude-code-skills@openclaw

指定 Agent (Claude Code)

npx skills add daymade/claude-code-skills --skill openclaw -a claude-code -g -y

安装 repo 全部 skill

npx skills add daymade/claude-code-skills --all -g -y

预览 repo 内 skill

npx skills add daymade/claude-code-skills --list

SKILL.md

Frontmatter
{
    "name": "openclaw",
    "description": "Manage OpenClaw (龙虾) instance configurations. Use whenever the user wants to audit, diff, copy, add-model, list, or switch models in an openclaw.json file, or when they mention lobsters, 虾, 甲虾, 乙虾, DeepSeek patch, default model, model aliases, or OpenClaw config validation.",
    "argument-hint": "[audit|diff|copy|add-model|list|switch] [options]"
}

openclaw

A unified skill for managing OpenClaw (龙虾) instance configs.

Subcommands

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.

Shared behavior

  • Default config discovery: when --config / --to is omitted, the skill searches these locations in order:
    1. ~/workspace/.force/openclaw/openclaw.json
    2. ~/.kimi_openclaw/openclaw.json
    3. ~/.openclaw/openclaw.json
  • Lobster nicknames: --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.
  • Backups: every write operation copies the config to config-backups/<stem>-<utc-timestamp>.json before saving. The skill keeps the 20 most recent backups.
  • Dry run: write subcommands (copy, add-model, switch) support --dry-run to preview changes.
  • Restart: write subcommands support --restart to restart the OpenClaw gateway after saving.
  • Automatic audit: copy, add-model, and switch run an audit before and after the change by default. Use --no-audit to skip it.

Lobster nickname registry

Create a JSON file at one of these locations:

  • ~/workspace/.force/openclaw/lobsters.json
  • ~/.kimi_openclaw/lobsters.json
  • ~/.openclaw/lobsters.json

Example:

{
  "甲虾": "/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 config

python3 scripts/cli.py audit [--config PATH|NICKNAME] [--json]

Checks providers, models, default model, aliases, and plugin consistency.

Use when:

  • "帮我查一下这只虾的配置"
  • "audit 一下 openclaw.json"
  • Before applying a patch or copying a provider

diff — semantic diff of two configs

python3 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:

  • "为什么甲虾能用 DeepSeek,乙虾不行?"
  • "这两份龙虾配置哪里不一样?"

copy — copy a provider between configs

python3 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:

  • "把甲虾的 gateway provider 复制到乙虾"
  • "把这个模型配置同步过去"

add-model — add a model to a provider

python3 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:

  • Pass a model id and --from SOURCE containing that model in the same provider.
  • Pass a path to a JSON file with the model definition.

Use when:

  • "给这只虾加上 DeepSeek"
  • "把甲虾的 DeepSeek 配置复制到乙虾"

The canonical DeepSeek model definition lives in references/deepseek_model.json.

Critical pitfalls

  • Do not create a separate deepseek provider. The supported path is the gateway provider with model id deepseek-v4-pro.
  • Model id must not contain [1m]. Use the suffixless deepseek-v4-pro; the upstream gateway maps it to the 1M context variant.
  • Cold restart required. New providers are not reliably picked up by hot reload.

list — list providers, models, aliases, and default

python3 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 model

python3 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:

  • "把默认模型切成 DeepSeek"
  • "切回原来的模型"

Typical workflows

Enable DeepSeek on a lobster

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

Clone a working config to a new lobster

python3 scripts/cli.py copy gateway-provider --from 甲虾 --to 乙虾 --alias --restart
python3 scripts/cli.py audit --config 乙虾

Diff two lobsters

python3 scripts/cli.py diff 甲虾 乙虾

References

  • references/openclaw_architecture.md — config schema and terminology
  • references/deepseek_patch_sop.md — DeepSeek patch SOP (sanitized)
  • references/deepseek_model.json — canonical DeepSeek model definition loaded by add-model
  • references/lobster_registry.example.json — example lobster nickname registry

Version History

  • e00a2ec Current 2026-08-20 11:28

Same Skill Collection

capture-screen/SKILL.md
cloudflare-troubleshooting/SKILL.md
codex-image-gallery/SKILL.md
daymade-claude-code/claude-skills-troubleshooting/SKILL.md
daymade-claude-code/claude-usage-analyst/SKILL.md
daymade-claude-code/continue-claude-work/SKILL.md
daymade-claude-code/marketplace-dev/SKILL.md
daymade-docs/doc-to-markdown/SKILL.md
daymade-docs/mermaid-tools/SKILL.md
daymade-docs/ppt-creator/SKILL.md
daymade-financial/ashare-news-fetcher/SKILL.md
daymade-financial/devils-advocate/SKILL.md
daymade-financial/gangtise-copilot/SKILL.md
daymade-financial/pharma-daily-report/SKILL.md
daymade-skill/skill-reviewer/SKILL.md
daymade-skill/skills-search/SKILL.md
design-style-picker/SKILL.md
douban-skill/SKILL.md
download-gemini-images/SKILL.md
excel-automation/SKILL.md
fact-checker/SKILL.md
gemini-history-analyzer/SKILL.md
github-ops/SKILL.md
github-sensitive-data-cleanup/SKILL.md
i18n-expert/SKILL.md
llm-icon-finder/SKILL.md
macos-cleaner/SKILL.md
notify-wecom/SKILL.md
product-analysis/SKILL.md
prompt-optimizer/SKILL.md
promptfoo-evaluation/SKILL.md
repomix-unmixer/SKILL.md
scrapling-skill/SKILL.md
setup-notifications-via-wecom/SKILL.md
slides-creator/SKILL.md
ui-designer/SKILL.md
video-comparer/SKILL.md
wps-doc-scraper/SKILL.md
youtube-downloader/SKILL.md
auto-repo-setup/SKILL.md
benchmark-due-diligence/SKILL.md
bilibili-source/SKILL.md
cli-demo-generator/SKILL.md
competitors-analysis/SKILL.md
daymade-audio/asr-transcribe-to-text/SKILL.md
daymade-audio/meeting-minutes-taker/SKILL.md
daymade-audio/stepfun-asr/SKILL.md
daymade-audio/stepfun-tts/SKILL.md
daymade-audio/transcript-fixer/SKILL.md

Metadata

Files
0
Version
e00a2ec
Hash
5dc419cd
Indexed
2026-08-20 11:28

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 13:33
浙ICP备14020137号-1 $mapa de visitantes$