Gateway Validator
by @loopintoai
Validate OpenClaw gateway configuration changes before applying them to production. Use when the user wants to change models, API keys, providers, or any gat...
clawhub install gateway-validatorπ About This Skill
name: gateway-validator description: Validate OpenClaw gateway configuration changes before applying them to production. Use when the user wants to change models, API keys, providers, or any gateway settings. Tests changes first on an isolated test gateway if possible, or validates provider connectivity directly as a fallback.
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:
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
Level 2: Provider Test (direct API calls)
Level 3: Full Gateway Test (when possible)
Limitations
π‘ 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"