{"id":"158097fc-4c49-4425-a12b-0d1a735d06ea","entityType":"agent","slug":"clawhub-skills-2233admin-central-model-switch","name":"central-model-switch","canonicalUrl":"https://www.xpersona.co/agent/clawhub-skills-2233admin-central-model-switch","canonicalPath":"/agent/clawhub-skills-2233admin-central-model-switch","generatedAt":"2026-10-09T13:00:28.415Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":null},"description":"OpenClaw 模型切换与救援技能。当模型 API 不可用时切换模型，或处理节点配对问题。触发词：模型切换、API用完、Central救援、节点掉线。⚠️ 使用前必须配置环境变量，详见变量说明。 --- name: central-model-switch description: OpenClaw 模型切换与救援技能。当模型 API 不可用时切换模型，或处理节点配对问题。触发词：模型切换、API用完、Central救援、节点掉线。⚠️ 使用前必须配置环境变量，详见变量说明。 --- OpenClaw 模型切换与救援 ⚠️ **安全警告**：使用前必须配置以下环境变量，勿直接运行！ 变量配置 | 变量 | 说明 | 示例值 | |------|------|--------| | CENTRAL_IP | 中央服务器 IP | 从配置文件获取 | | SSH_KEY | SSH 私钥路径 | ~/.ssh/id_ed25519 | | API_KEY | 模型 API Key | 从平台获取 | 实施步骤 1. 连接目标服务器 2. 检查当前配置 3. 更新模型配置 根据你的模型提供商修改配置（以 OpenAI 为例）：","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. Last updated 4/15/2026.","installCommand":"clawhub skill install skills:2233admin:central-model-switch","sourceUrl":"https://github.com/openclaw/skills/tree/main/skills/2233admin/central-model-switch","homepage":null,"primaryLinks":[{"label":"View on ClawHub","url":"https://github.com/openclaw/skills/tree/main/skills/2233admin/central-model-switch","kind":"source"}],"safetyScore":84,"overallRank":62,"popularityScore":50,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"OpenClaw 模型切换与救援技能。当模型 API 不可用时切换模型，或处理节点配对问题。触发词：模型切换、API用完、Central救援、节点掉线。⚠️ 使用前必须配置环境变量，详见变量说明。 --- name: central-model-switch description: OpenClaw 模型切换与救援技"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"no-adoption-signals","verified":false,"confidence":"low","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":"No source adoption metrics were available."},"stars":null,"forks":null,"downloads":null,"packageName":null,"latestVersion":null,"tractionLabel":null},"release":{"evidence":{"source":"agent-index","verified":false,"confidence":"medium","updatedAt":"2026-02-25T05:53:13.612Z","emptyReason":null},"lastUpdatedAt":"2026-04-15T00:45:39.800Z","lastCrawledAt":"2026-02-25T05:53:13.612Z","lastIndexedAt":null,"nextCrawlAt":"2026-02-26T05:53:13.612Z","lastVerifiedAt":null,"highlights":[]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install skills:2233admin:central-model-switch","setupComplexity":"low","setupSteps":["Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-2233admin-central-model-switch/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-2233admin-central-model-switch/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-2233admin-central-model-switch/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-skills-2233admin-central-model-switch/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-skills-2233admin-central-model-switch/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-skills-2233admin-central-model-switch/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-09T13:00:28.415Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-2233admin-central-model-switch/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-2233admin-central-model-switch/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-2233admin-central-model-switch/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-2233admin-central-model-switch/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":null},"readme":"---\nname: central-model-switch\ndescription: OpenClaw 模型切换与救援技能。当模型 API 不可用时切换模型，或处理节点配对问题。触发词：模型切换、API用完、Central救援、节点掉线。⚠️ 使用前必须配置环境变量，详见变量说明。\n---\n\n# OpenClaw 模型切换与救援\n\n⚠️ **安全警告**：使用前必须配置以下环境变量，勿直接运行！\n\n## 变量配置\n\n| 变量 | 说明 | 示例值 |\n|------|------|--------|\n| CENTRAL_IP | 中央服务器 IP | 从配置文件获取 |\n| SSH_KEY | SSH 私钥路径 | ~/.ssh/id_ed25519 |\n| API_KEY | 模型 API Key | 从平台获取 |\n\n## 实施步骤\n\n### 1. 连接目标服务器\n```bash\nssh -i $SSH_KEY root@$CENTRAL_IP\n```\n\n### 2. 检查当前配置\n```bash\ncat ~/.openclaw/openclaw.json | grep -A5 'primary'\n```\n\n### 3. 更新模型配置\n\n根据你的模型提供商修改配置（以 OpenAI 为例）：\n\n```bash\n# 备份配置\ncp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak\n\n# 使用 sed 修改默认模型（请根据实际情况调整）\nsed -i 's/\"primary\": \"[^\"]*\"/\"primary\": \"gpt-4o-mini\"/' ~/.openclaw/openclaw.json\n```\n\n或使用 Python：\n\n```python3\nimport json\n\nwith open('/root/.openclaw/openclaw.json', 'r') as f:\n    cfg = json.load(f)\n\n# 修改默认模型\ncfg['agents']['defaults']['model']['primary'] = 'your-model-id'\n\nwith open('/root/.openclaw/openclaw.json', 'w') as f:\n    json.dump(cfg, f, indent=2)\n```\n\n### 4. 重启 Gateway\n\n优先使用 systemd：\n```bash\nsudo systemctl restart openclaw-gateway\n```\n\n如无 systemd：\n```bash\ncd ~/.openclaw\npkill -f openclaw-gateway\nnohup npx openclaw gateway > /tmp/gateway.log 2>&1 &\n```\n\n### 5. 验证\n```bash\n# 检查进程状态\nps aux | grep openclaw-gateway\n\n# 测试 API\ncurl -s http://localhost:18789/health\n```\n\n## 节点配对救援（如掉线）\n\n### 节点重新配对\n\n```bash\n# 删除旧的配对信息\nrm ~/.openclaw/node.json\n\n# 重新启动节点\ncd ~/.openclaw\nnpx openclaw node run --host <gateway_ip> --port <gateway_port>\n```\n\n## 安全建议\n\n1. **始终备份**：修改配置前先备份\n2. **验证 IP**：确认目标服务器 IP 正确\n3. **检查 Key**：API Key 只在本地使用，勿上传\n4. **最小权限**：使用 sudo 而非 root 登录\n5. **监控日志**：查看 `/tmp/gateway.log` 排查问题\n\n## 相关文件\n\n- `~/.openclaw/openclaw.json` - 配置文件\n- `/tmp/gateway.log` - 运行日志\n","readmeExcerpt":"--- name: central-model-switch description: OpenClaw 模型切换与救援技能。当模型 API 不可用时切换模型，或处理节点配对问题。触发词：模型切换、API用完、Central救援、节点掉线。⚠️ 使用前必须配置环境变量，详见变量说明。 --- OpenClaw 模型切换与救援 ⚠️ **安全警告**：使用前必须配置以下环境变量，勿直接运行！ 变量配置 | 变量 | 说明 | 示例值 | |------|------|--------| | CENTRAL_IP | 中央服务器 IP | 从配置文件获取 | | SSH_KEY | SSH 私钥路径 | ~/.ssh/id_ed25519 | | API_KEY | 模型 API Key | 从平台获取 | 实施步骤 1. 连接目标服务器 2. 检查当前配置 3. 更新模型配置 根据你的模型提供商修改配置（以 OpenAI 为例）：","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"ssh -i $SSH_KEY root@$CENTRAL_IP"},{"language":"bash","snippet":"cat ~/.openclaw/openclaw.json | grep -A5 'primary'"},{"language":"bash","snippet":"# 备份配置\ncp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak\n\n# 使用 sed 修改默认模型（请根据实际情况调整）\nsed -i 's/\"primary\": \"[^\"]*\"/\"primary\": \"gpt-4o-mini\"/' ~/.openclaw/openclaw.json"},{"language":"python3","snippet":"import json\n\nwith open('/root/.openclaw/openclaw.json', 'r') as f:\n    cfg = json.load(f)\n\n# 修改默认模型\ncfg['agents']['defaults']['model']['primary'] = 'your-model-id'\n\nwith open('/root/.openclaw/openclaw.json', 'w') as f:\n    json.dump(cfg, f, indent=2)"},{"language":"bash","snippet":"sudo systemctl restart openclaw-gateway"},{"language":"bash","snippet":"cd ~/.openclaw\npkill -f openclaw-gateway\nnohup npx openclaw gateway > /tmp/gateway.log 2>&1 &"}],"parameters":{},"dependencies":[],"permissions":[],"extractedFiles":[],"languages":["typescript"],"docsSourceLabel":"CLAWHUB","editorialOverview":"OpenClaw 模型切换与救援技能。当模型 API 不可用时切换模型，或处理节点配对问题。触发词：模型切换、API用完、Central救援、节点掉线。⚠️ 使用前必须配置环境变量，详见变量说明。 --- name: central-model-switch description: OpenClaw 模型切换与救援技能。当模型 API 不可用时切换模型，或处理节点配对问题。触发词：模型切换、API用完、Central救援、节点掉线。⚠️ 使用前必须配置环境变量，详见变量说明。 --- OpenClaw 模型切换与救援 ⚠️ **安全警告**：使用前必须配置以下环境变量，勿直接运行！ 变量配置 | 变量 | 说明 | 示例值 | |------|------|--------| | CENTRAL_IP | 中央服务器 IP | 从配置文件获取 | | SSH_KEY | SSH 私钥路径 | ~/.ssh/id_ed25519 | | API_KEY | 模型 API Key | 从平台获取 | 实施步骤 1. 连接目标服务器 2. 检查当前配置 3. 更新模型配置 根据你的模型提供商修改配置（以 OpenAI 为例）：","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":343,"uniquenessScore":65,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-09T13:00:28.415Z","emptyReason":null},"items":[{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-10T18:48:31.762Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}