Xpersona
A

AIN - AI Node Plugin

CLAWHUB · Unverified

Integrates AIN providers into OpenClaw with intelligent model routing and tools for prompt execution and task classification.

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17eh0nft4epskgf7aj6grysph83ta96:openclaw-plugin-ain
  1. Install using `clawhub skill install s17eh0nft4epskgf7aj6grysph83ta96:openclaw-plugin-ain` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/felipematos/openclaw-plugin-ain before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-felipematos-openclaw-plugin-ain/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

147,912 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

# AIN — AI Node Plugin for OpenClaw

Bridges the [AIN](https://github.com/felipematos/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 hook** — `before_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

```bash
npm install openclaw-plugin-ain
```

Requires [@felipematos/ain-cli](https://www.npmjs.com/package/@felipematos/ain-cli) (installed as a dependency).

## Configuration

In your OpenClaw config:

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

### Options

| Option | Type | Default | Description |
|--------|------|---------|-------------|
| `configPath` | string | `~/.ain/config.yaml` | Path to AIN config file |
| `enableRouting` | boolean | `true` | Enable intelligent model routing |
| `routingPolicy` | string | — | Named routing policy from AIN policies.yaml |
| `exposeTools` | boolean | `true` | Expose 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

README.md

# openclaw-plugin-ain

OpenClaw plugin that bridges [AIN](https://github.com/felipematos/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) and `ain_classify` (task classification) available to agents
- **Routing hook** — `before_model_resolve` hook uses AIN's intelligent routing engine

## Installation

```bash
npm install openclaw-plugin-ain
```

## Configuration

In your OpenClaw config:

```json
{
  "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

_meta.json

{
  "ownerId": "kn7bsgqmyx1pqwszd0x22ea40h80hm18",
  "slug": "openclaw-plugin-ain",
  "version": "0.11.6",
  "publishedAt": 1774820244077
}

skill-card.md

## Description:

Integrates AIN providers into OpenClaw with provider bridging, model routing, and tools for prompt execution and task classification.

This skill is ready for commercial/non-commercial use.

## Publisher:

[felipematos](https://clawhub.ai/user/felipematos)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agent operators use this plugin to expose AIN-configured model providers in OpenClaw, execute prompts through AIN, classify prompt tasks, and route model requests according to AIN policies.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The security review reports that prompts can be routed to unintended providers because the documented config path is ignored and routing is enabled by default.

Mitigation: Review provider configuration before installation, avoid using sensitive prompts or regulated data until fixed, and disable enableRouting when deterministic provider selection is required.

Risk: The plugin exposes prompt execution tools and depends on @felipematos/ain-cli for provider access and routing behavior.

Mitigation: Use trusted default AIN configuration, consider disabling exposeTools where agents should not initiate external model calls, and pin or independently verify @felipematos/ain-cli before use.

Risk: Building or testing from source may rely on outdated development dependency lockfile entries.

Mitigation: Update and review the development dependency lockfile before building, testing, or publishing from source.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/felipematos/skills/openclaw-plugin-ain)
- [AIN project](https://github.com/felipematos/ain)
- [@felipematos/ain-cli package](https://www.npmjs.com/package/@felipematos/ain-cli)

## Skill Output:

**Output Type(s):** [Text, JSON, Configuration, Guidance]

**Output Format:** [OpenClaw provider registrations, routing decisions, and JSON-compatible tool results]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Tool results can include selected provider, selected model, token usage, parsed structured output, task type, and complexity.]

## Skill Version(s):

0.11.6 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

openclaw.plugin.json

{
  "id": "openclaw-plugin-ain",
  "configSchema": {
    "type": "object",
    "properties": {
      "configPath": { "type": "string" },
      "enableRouting": { "type": "boolean", "default": true },
      "routingPolicy": { "type": "string" },
      "exposeTools": { "type": "boolean", "default": true }
    }
  }
}

Sponsored

Ads related to AIN - AI Node Plugin and adjacent AI workflows.