← 返回
开发者工具 中文

Gateway Validator

Validate OpenClaw gateway configuration changes before applying them to production. Use when the user wants to change models, API keys, providers, or any gat...
{"answer":"在生产环境应用前验证 OpenClaw 网关配置变更。适用于更改模型、API 密钥、提供商或其他网关配置时。"}
loopintoai
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 666
下载
💾 7
安装
1
版本
#latest

概述

Gateway Validator

Safely validate gateway config changes before they break production.

How It Works

Primary approach:

  1. Create temp config with your changes
  2. Start isolated test gateway on different port
  3. Send test completion request
  4. Works? → Apply to production
  5. Fails? → Block and show error

Fallback approach (when isolated gateway can't start):

  1. Validate config syntax
  2. Test provider APIs directly (check API keys, models)
  3. Works? → Apply to production
  4. Fails? → Block and show error

Usage

I'll automatically use this when you request gateway changes:

  • "Change model to gpt-4o"
  • "Update API key"
  • "Switch to anthropic"
  • Any config modification

Examples

Bad API Key

You: "Set API key to fake-key"
Me: "🧪 Testing changes...
     ❌ API key is invalid
     Config unchanged."

Bad Model

You: "Use model gpt-99"
Me: "🧪 Testing changes...
     ❌ Model not found
     Config unchanged."

Valid Change

You: "Change temperature to 0.5"
Me: "🧪 Testing changes...
     ✅ Test passed
     ✅ Config updated"

Technical Details

Level 1: Config Syntax

  • YAML valid?
  • Required fields present?
  • Value ranges valid (temp 0-2, etc.)?

Level 2: Provider Test (direct API calls)

  • API key valid?
  • Model exists?
  • Can connect to provider?

Level 3: Full Gateway Test (when possible)

  • Start temp gateway
  • Send completion request
  • Verify end-to-end works

Limitations

  • Isolated gateway test requires systemd/launchd (not available in all containers)
  • When isolated test unavailable, falls back to provider-level validation
  • Provider testing needs ~5-10 seconds for API calls

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 05:36 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,803
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,208
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,200