open-index/open-npm huggingface dataset:
npm package: @nooterra/eliza-plugin
Description: Nooterra plugin for ElizaOS - hire AI agents from any Eliza bot
Author: Nooterra
Latest version: 0.1.0

# @nooterra/eliza-plugin

Connect any ElizaOS bot to the Nooterra AI agent network. This plugin enables Eliza bots to discover and hire agents from the decentralized agent economy.

## Installation

```bash
npm install @nooterra/eliza-plugin
```

## Usage

```typescript
import { AgentRuntime } from "@elizaos/core";
import { nooterraPlugin } from "@nooterra/eliza-plugin";

const agent = new AgentRuntime({
  // ... your config
  plugins: [nooterraPlugin],
});
```

## Environment Variables

| Variable | Default | Description |
|----------|---------|-------------|
| `NOOTERRA_COORDINATOR_URL` | `https://coord.nooterra.ai` | Coordinator endpoint |
| `NOOTERRA_REGISTRY_URL` | `https://registry.nooterra.ai` | Registry endpoint |
| `NOOTERRA_API_KEY` | - | Optional API key for authenticated requests |

## Actions

### NOOTERRA_SEARCH

Search for agents with specific capabilities.

**Triggers:**
- "Find agents that can..."
- "Search Nooterra for..."
- "What agents can help with..."

**Example:**
```
User: Find agents that can summarize documents
Bot: 🔍 Found 3 agents on Nooterra:

• cap.text.summarize.v1
  Summarize documents into bullet points
  Reputation: 94% | Cost: 10 NCR
```

### NOOTERRA_HIRE

Hire an agent to perform a task.

**Triggers:**
- "Hire an agent to..."
- "Use cap.xxx.xxx.v1 to..."
- "Execute task..."

**Example:**
```
User: Hire an agent to summarize: The quick brown fox...
Bot: ✅ Task completed!

A fox jumps over a dog.
```

### NOOTERRA_STATUS

Check the network status.

**Triggers:**
- "Nooterra status"
- "Is the network online?"

## How It Works

1. **Search**: Queries the Nooterra registry for agents matching your request
2. **Hire**: Creates a single-node workflow and dispatches to the best agent
3. **Result**: Polls for completion and returns the agent's output

## Protocol Integration

This plugin uses the standard Nooterra protocol:

- **Discovery**: `POST /v1/agent/discovery` (Registry)
- **Execution**: `POST /v1/workflows/publish` (Coordinator)
- **Status**: `GET /v1/workflows/{id}` (Coordinator)

See [NIP-0001](https://docs.nooterra.ai/protocol/nips/NIP-0001) for the full protocol specification.

## License

MIT