open-index/open-npm huggingface dataset:
npm package: @openclueo/clueobots
Description: Official ClueoBots SDK for AI security integration
Author: OpenClueo
Latest version: 1.0.14

# ClueoBots

AI security for your app. One line of code.

## Install

```bash
npm install @openclueo/clueobots
```

## Setup

**1. Get your API key:** https://clueobots.com/api-keys

**2. Add to `.env`:**
```bash
CLUEOBOTS_API_KEY=sk_cb_your_key_here
```

**3. Choose your integration style:**

### Simple Direct Scanning (Manual Control)

```javascript
import { scan } from '@openclueo/clueobots'

// Scan any text content
const result = await scan("User input to check")
if (result.threatDetected) {
  console.log(`Threat found: ${result.primaryThreat}`)
}
```

### Middleware Integration (Automatic Scanning)

**Express.js:**
```javascript
import { expressMiddleware } from '@openclueo/clueobots'
import express from 'express'

const app = express()
app.use(expressMiddleware()) // Scans all JSON responses automatically
```

**Fastify:**
```javascript
import { fastifyPlugin } from '@openclueo/clueobots'

app.register(fastifyPlugin())
```

**Koa:**
```javascript
import { koaMiddleware } from '@openclueo/clueobots'

app.use(koaMiddleware())
```

### Legacy Auto-Detection (Zero Config)

**CommonJS:**
```javascript
require('@openclueo/clueobots')() // Auto-detects framework
```

**ES Modules:**
```javascript
import clueobots from '@openclueo/clueobots'
clueobots() // Auto-detects framework
```

### Next.js (Manual Output Scanning)

```typescript
import { scanOutput } from '@openclueo/clueobots/nextjs'

export async function POST(req: Request) {
  const { message } = await req.json()

  // Generate AI response
  const aiResponse = await openai.chat.completions.create({
    messages: [{ role: 'user', content: message }]
  })

  const content = aiResponse.choices[0].message.content

  // Scan output before sending
  const scan = await scanOutput(content)
  if (!scan.allowed) {
    return Response.json({ error: 'Response blocked for security' }, { status: 403 })
  }

  return Response.json({ message: content })
}
```

---

**Done.** ClueoBots is now protecting your AI app from:
- 🛡️ Prompt injection attacks (that succeed)
- 🔒 Data exfiltration in AI responses
- ⚠️ Jailbreak attempts that bypass your defenses
- 🚨 Harmful content in AI outputs

---

**Questions?** emmanuel@clueobots.com

**Docs:** https://clueoai.com/docs

**License:** MIT
npm package: @openclwa/clawhelp
Description: ClawHelp installer and launcher for the ClawHelp agent
Latest version: 0.1.20

# ClawHelp npm package

This package wraps the prebuilt `agentd` binaries for macOS and Windows and exposes a single `clawhelp` command.

## Install

npm install -g @openclwa/clawhelp

## Usage

clawhelp pair

ios app scan qr code

On Windows, `clawhelp pair` and `clawhelp start` will register a scheduled task named `ClawHelpAgent` and run `agentd` through Task Scheduler so the relay agent stays online after the terminal closes.

## 如需帮助

联系作者：小红书 @clawhelp

## Local test

```bash
npm install
npm run build:vendor
node ./bin/clawhelp.js status
```

## Publish checklist

1. Replace `@openclwa/clawhelp` in `package.json` with your real npm scope.
2. Run `npm run build:vendor`.
3. Run `npm pack` and inspect the generated `.tgz`.
4. Publish with:

```bash
npm publish --access public
```

## Commands

```bash
clawhelp pair [--relay URL] [--foreground]
clawhelp start [--relay URL]
clawhelp run
clawhelp qr
clawhelp status
clawhelp stop
clawhelp reset-path
```

`pair` will initialize the relay config, start `agentd`, and then print the OpenClaw QR code for device pairing.
On Windows, `status` will also show the `ClawHelpAgent` scheduled task state.