Gateway Validator
/install gateway-validator
Gateway Validator
Safely validate gateway config changes before they break production.
How It Works
Primary approach:
- Create temp config with your changes
- Start isolated test gateway on different port
- Send test completion request
- Works? → Apply to production
- Fails? → Block and show error
Fallback approach (when isolated gateway can't start):
- Validate config syntax
- Test provider APIs directly (check API keys, models)
- Works? → Apply to production
- 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
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install gateway-validator - 安装完成后,直接呼叫该 Skill 的名称或使用
/gateway-validator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 336 次。
如何安装 Gateway Validator?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install gateway-validator」即可一键安装,无需额外配置。
Gateway Validator 是免费的吗?
是的,Gateway Validator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Gateway Validator 支持哪些平台?
Gateway Validator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Gateway Validator?
由 loopintoai(@loopintoai)开发并维护,当前版本 v1.0.0。