AIN - AI Node Plugin

# AIN — AI Node Plugin for OpenClaw

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "AIN - AI Node Plugin" with this command: npx skills add felipematos/openclaw-plugin-ain

AIN — AI Node Plugin for OpenClaw

Bridges the AIN provider registry, intelligent routing engine, and execution layer into the OpenClaw ecosystem.

What it does

  • Provider bridging — All AIN-configured providers (LM Studio, Ollama, OpenAI, vLLM, etc.) are automatically exposed to OpenClaw as ain:<name> providers
  • LLM tools — Two agent tools: ain_run (prompt execution with routing, structured output, fallback chains) and ain_classify (task type and complexity classification)
  • Routing hookbefore_model_resolve hook uses AIN's intelligent routing engine to automatically select the best model for each task based on policies and task classification

Installation

npm install openclaw-plugin-ain

Requires @felipematos/ain-cli (installed as a dependency).

Configuration

In your OpenClaw config:

{
  "plugins": {
    "ain": {
      "enableRouting": true,
      "routingPolicy": "local-first",
      "exposeTools": true
    }
  }
}

Options

OptionTypeDefaultDescription
configPathstring~/.ain/config.yamlPath to AIN config file
enableRoutingbooleantrueEnable intelligent model routing
routingPolicystringNamed routing policy from AIN policies.yaml
exposeToolsbooleantrueExpose ain_run and ain_classify tools to agents

Tools

ain_run

Execute an LLM prompt through AIN's execution engine with full support for routing, structured output, and fallback chains.

Parameters:

  • prompt (string, required) — The prompt to execute
  • provider (string) — Provider name
  • model (string) — Model ID or alias
  • jsonMode (boolean) — Request JSON output
  • schema (object) — JSON Schema for output validation
  • system (string) — System prompt
  • temperature (number) — Sampling temperature

Returns: { output, provider, model, usage, parsedOutput }

ain_classify

Classify a prompt's task type and estimate its complexity.

Parameters:

  • prompt (string, required) — The prompt to classify

Returns: { taskType, complexity }

Task types: classification, extraction, generation, reasoning, unknown Complexity: low, medium, high

Routing

When enableRouting is true, the plugin registers a before_model_resolve hook that analyzes incoming prompts and selects the optimal model based on:

  • Task classification (classification/extraction → fast tier, generation → general tier, reasoning → reasoning tier)
  • Routing policies defined in ~/.ain/policies.yaml
  • Model tags and tier configuration

Requirements

  • Node.js >= 18
  • AIN configured with at least one provider (ain config init && ain providers add ...)
  • OpenClaw >= 1.0.0

License

MIT

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Wechat Mp Writer

WeChat Official Account (公众号) content writer with article formatting, headline optimization, and engagement tips. Use when you need to write WeChat articles,...

Registry SourceRecently Updated
General

OpenClaw EverMemory Installer

Use this skill when installing, upgrading, verifying, or publishing the EverMemory OpenClaw plugin and its companion skill, including local path install, npm...

Registry SourceRecently Updated
General

Ip Advisor

知识产权顾问。专利、版权、商业秘密、注册流程、保护策略。IP advisor for patents, copyrights, trade secrets. 知识产权、专利、版权。

Registry SourceRecently Updated
1950ckchzh
General

炒股大师模拟器

炒股大师模拟器 | 股市模拟交易练习 | A股/港股/美股投资学习 | 化身文主任/股神老徐/炒股养家/孙宇晨等各位大师学习投资思路 | 多智能体股票讨论群

Registry SourceRecently Updated