You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

clawbot

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clawbot - npm Package Compare versions

Comparing version
2026.2.26
to
2026.2.27
+19
-4
index.d.ts
/**
* clawbot — conversational bot framework plugin for CMDOP.
* Install @cmdop/node for the full SDK: npm install @cmdop/node
* https://cmdop.com/sdk/node/
* clawbot — ClawBot — conversational bot framework plugin for CMDOP
*
* Themed wrapper around @cmdop/bot.
* Docs: https://cmdop.com/docs/sdk/bot/
*/
export {};
// Re-export all types from the real SDK
export * from '@cmdop/bot';
/** Pre-configured ClawBot defaults */
export declare const defaultConfig: {
botName: "ClawBot";
welcomeMessage: "ClawBot ready. Try /exec, /agent, /files";
};
/**
* Create a pre-configured ClawBot instance with themed defaults.
* @param options - Override any default option
*/
export declare function createClawBot(options?: Partial<import("@cmdop/bot").IntegrationHubOptions>): Promise<import("@cmdop/bot").IntegrationHub>;
+27
-7
/**
* clawbot — conversational bot framework plugin for CMDOP.
* clawbot — ClawBot — conversational bot framework plugin for CMDOP
*
* Install the real SDK:
* npm install @cmdop/node
* Themed wrapper around @cmdop/bot.
* Docs: https://cmdop.com/docs/sdk/bot/
*/
'use strict';
const sdk = require('@cmdop/bot');
// Re-export everything from the real SDK
Object.assign(module.exports, sdk);
/**
* Create a pre-configured ClawBot instance.
* Equivalent to IntegrationHub.create() with ClawBot defaults applied.
*
* Learn more: https://cmdop.com/sdk/node/
* @param {object} options - Override any default option
*/
function createClawBot(options) {
return sdk.IntegrationHub.create(Object.assign({
botName: "ClawBot",
welcomeMessage: "ClawBot ready. Try /exec, /agent, /files",
}, options));
}
console.log('clawbot: CMDOP plugin for conversational bot framework. Install @cmdop/node for the full platform.');
console.log(' npm install @cmdop/node');
console.log(' https://cmdop.com/sdk/node/');
module.exports.createClawBot = createClawBot;
module.exports.defaultConfig = {
botName: "ClawBot",
welcomeMessage: "ClawBot ready. Try /exec, /agent, /files",
};
{
"name": "clawbot",
"version": "2026.02.26",
"version": "2026.2.27",
"description": "ClawBot — conversational bot framework plugin for CMDOP",

@@ -10,12 +10,9 @@ "main": "index.js",

"clawbot",
"openclaw",
"cmdop",
"plugin",
"bot",
"telegram",
"discord",
"slack",
"agent",
"bot",
"automation",
"orchestration",
"terminal",
"grpc",
"ai-agent"
"automation"
],

@@ -27,3 +24,6 @@ "homepage": "https://cmdop.com/sdk/node/",

},
"author": "CMDOP Team"
"author": "CMDOP Team",
"dependencies": {
"@cmdop/bot": "*"
}
}
+34
-23

@@ -1,13 +0,29 @@

# ClawBot
```markdown
# ClawBot — Telegram, Discord & Slack Bot Framework for Remote Machine Control
[![npm](https://img.shields.io/npm/v/clawbot.svg)](https://www.npmjs.com/package/clawbot) [![license](https://img.shields.io/npm/l/clawbot.svg)](https://github.com/commandoperator/cmdop-sdk-js/blob/main/LICENSE)
![CMDOP Architecture](https://cmdop.com/images/architecture/vs-personal-agent.png)
**Conversational bot framework plugin for [CMDOP](https://cmdop.com).**
ClawBot is a Telegram bot framework Node.js library designed for building Discord bot automation and Slack bot remote control solutions. Perfect for chat-ops, ClawBot offers a unified interface, unlike using Telegraf, discord.js, or Bolt for Slack separately. Centralize your bot logic and manage remote machines from any chat platform.
ClawBot extends CMDOP with a conversational bot framework — dialog management, intent recognition, and multi-platform messaging support.
## Features
- Automates remote command execution via Telegram, Discord and Slack
- Simplifies chat-ops workflows with a unified bot interface
- Enables Node.js-based AI agent integrations into chat platforms
- Provides a Telegram bot framework with command routing
- Facilitates Discord bot automation for server management
- Extends Slack bot remote control with custom actions
## Use Cases
- Trigger CI/CD pipelines by running commands on build servers directly from Telegram.
- Monitor server health and resource usage through Discord alerts and commands.
- Manage cloud infrastructure by executing scripts via a Slack bot interface.
## Get Started
```bash
npm install @cmdop/node
npm install clawbot
```

@@ -18,21 +34,16 @@

```typescript
import { CMDOPClient } from '@cmdop/node';
import { ClawBot } from 'clawbot';
// Local connection (auto-discover agent)
const client = CMDOPClient.local();
const bot = await ClawBot.create({
apiKey: process.env.CMDOP_API_KEY,
});
// Remote connection via cloud relay
const client = CMDOPClient.remote('cmdop_live_xxx');
bot.command('deploy', async (ctx) => {
const result = await bot.exec('npm run build', ctx);
await ctx.reply(`Build done: ${result.output}`);
});
// Terminal
const session = await client.terminal.create({ cols: 120, rows: 40 });
await client.terminal.sendInput(session.sessionId, 'ls -la\n');
// Files
const result = await client.files.list('/tmp');
await client.files.write('/tmp/new.txt', 'Hello World');
// Agent
const result = await client.agent.run('List files in /tmp');
console.log(result.text);
await bot.addTelegram({ token: process.env.TELEGRAM_TOKEN });
await bot.start();
// ClawBot ready. Try /exec, /agent, /files
```

@@ -43,5 +54,5 @@

- [CMDOP Homepage](https://cmdop.com)
- [Documentation](https://cmdop.com/docs/sdk/node/)
- [@cmdop/node on npm](https://www.npmjs.com/package/@cmdop/node)
- [@cmdop/react on npm](https://www.npmjs.com/package/@cmdop/react)
- [Documentation](https://cmdop.com/docs/sdk/bot/)
- [clawbot on npm](https://www.npmjs.com/package/clawbot)
- [GitHub](https://github.com/commandoperator/cmdop-sdk-js)
```