Bug Report
Plugin
manifest-model-router v6.0.2 (OpenClaw plugin)
Description
The injectProviderConfig function in manifest-model-router writes a minimal model object {id:"auto", name:"auto"} to openclaw.json instead of using the already-defined AUTO_MODEL constant which includes the required input, cost, contextWindow, and maxTokens fields.
This causes OpenClaw to crash with:
Cannot read properties of undefined (reading 'input')
Root Cause
In dist/index.js, the injectProviderConfig function hardcodes:
let providerConfig = {baseUrl, api:"openai-completions", apiKey, models:[{id:"auto", name:"auto"}]}
But AUTO_MODEL is already correctly defined earlier in the same file:
var AUTO_MODEL = {id:"auto", name:"Auto Router", reasoning:false, input:["text"], cost:{input:0, output:0, cacheRead:0, cacheWrite:0}, contextWindow:2e5, maxTokens:16384}
And is correctly used in buildModelConfig and the auth flow — but not in injectProviderConfig.
Additional Issue
The configSchema in openclaw.plugin.json has additionalProperties: false but does not declare apiKey as an allowed property. The plugin code reads config.apiKey, but setting it via openclaw config set plugins.entries.manifest-model-router.config.apiKey fails config validation because the schema doesn't allow it.
Fix
In injectProviderConfig, replace:
models:[{id:"auto", name:"auto"}]
with:
And add apiKey to the configSchema.properties in openclaw.plugin.json.
Environment
- OpenClaw: 2026.3.31
- Plugin: manifest-model-router v6.0.2
- OS: Ubuntu Linux
Bug Report
Plugin
manifest-model-routerv6.0.2 (OpenClaw plugin)Description
The
injectProviderConfigfunction inmanifest-model-routerwrites a minimal model object{id:"auto", name:"auto"}toopenclaw.jsoninstead of using the already-definedAUTO_MODELconstant which includes the requiredinput,cost,contextWindow, andmaxTokensfields.This causes OpenClaw to crash with:
Root Cause
In
dist/index.js, theinjectProviderConfigfunction hardcodes:But
AUTO_MODELis already correctly defined earlier in the same file:And is correctly used in
buildModelConfigand the auth flow — but not ininjectProviderConfig.Additional Issue
The
configSchemainopenclaw.plugin.jsonhasadditionalProperties: falsebut does not declareapiKeyas an allowed property. The plugin code readsconfig.apiKey, but setting it viaopenclaw config set plugins.entries.manifest-model-router.config.apiKeyfails config validation because the schema doesn't allow it.Fix
In
injectProviderConfig, replace:with:
And add
apiKeyto theconfigSchema.propertiesinopenclaw.plugin.json.Environment