openclaw-plugin-ain
v0.2.2
Published
OpenClaw plugin for AIN — provider registry, routing, and execution
Readme
openclaw-plugin-ain
OpenClaw plugin that bridges AIN provider registry, intelligent routing, and execution into the OpenClaw ecosystem.
Features
- Provider bridging — All AIN-configured providers are exposed to OpenClaw as
ain:<name> - LLM tools —
ain_run(prompt execution) andain_classify(task classification) available to agents - Routing hook —
before_model_resolvehook uses AIN's intelligent routing engine
Installation
npm install openclaw-plugin-ainConfiguration
In your OpenClaw config:
{
"plugins": {
"ain": {
"enableRouting": true,
"routingPolicy": "default",
"exposeTools": true
}
}
}Options
| Option | Type | Default | Description |
|--------|------|---------|-------------|
| configPath | string | ~/.ain/config.yaml | Path to AIN config file |
| enableRouting | boolean | true | Enable the routing hook |
| routingPolicy | string | — | Named routing policy from AIN policies |
| exposeTools | boolean | true | Expose ain_run and ain_classify tools |
Tools
ain_run
Execute an LLM prompt through AIN.
Parameters: prompt (required), provider, model, jsonMode, schema, system, temperature
ain_classify
Classify a prompt's task type and complexity.
Parameters: prompt (required)
Returns: { taskType, complexity }
License
MIT
