← Back to Plugins
Tools

Menese Protocol

Aboodtt404 By Aboodtt404 👁 51 views ▲ 0 votes

Menese Protocol โ€” multi-chain crypto plugin for OpenClaw (19 blockchains via ICP)

GitHub

Install

openclaw plugins install @menese/menese-protocol

Configuration Example

{
  "plugins": {
    "entries": {
      "menese-protocol": {
        "enabled": true,
        "config": {
          "developerKey": "msk_YOUR_KEY_HERE"
        }
      }
    }
  }
}

README

# Menese Protocol โ€” OpenClaw Plugin

Multi-chain crypto operations across **19 blockchains** from your AI assistant, powered by [Menese SDK](https://github.com/Menese-Protocol/MeneseSDK-V0) on the Internet Computer.

## What it does

Talk to your OpenClaw AI naturally to manage crypto:

- **Send** tokens on any chain
- **Swap** via DEXs (Uniswap, Raydium, ICPSwap, etc.)
- **Bridge** cross-chain (CCTP, Ultrafast)
- **Stake** (Lido, Aave)
- **Lend/Borrow** (Aave V3)
- **Manage liquidity** pools
- **Create strategies** (DCA, TP/SL, volatility triggers)
- **Check balances**, prices, portfolio, history

## Supported Chains

Ethereum, Polygon, Arbitrum, Base, Optimism, BNB, Solana, Bitcoin, Litecoin, ICP, Sui, TON, XRP, Cardano, TRON, Aptos, NEAR, CloakCoin, THORChain

## Install

```bash
openclaw plugins install @menese/menese-protocol
```

Or from this repo:

```bash
openclaw plugins install https://github.com/Aboodtt404/menese-protocol
```

## Setup

### For Users

Just install the plugin and run `/setup` in chat โ€” it walks you through linking your ICP wallet. That's it.

### For Operators (OpenClaw admins)

Add to `~/.openclaw/openclaw.json`:

```json
{
  "plugins": {
    "entries": {
      "menese-protocol": {
        "enabled": true,
        "config": {
          "developerKey": "msk_YOUR_KEY_HERE"
        }
      }
    }
  }
}
```

The `developerKey` is an operator-level credential โ€” it authenticates SDK relay calls and handles billing for all users on your instance. End users never see or need this key. Get one by calling `registerDeveloperCanister()` on the MeneseSDK canister.

### Config Options (operator)

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| `developerKey` | string | โ€” | Menese developer API key (`msk_...`). Authenticates relay calls and handles billing. |
| `relayUrl` | string | auto | VPS relay endpoint |
| `sdkCanisterId` | string | `ewcc5-...` (agent) | MeneseAgent canister ID |
| `autoApproveThreshold` | number | `0` | USD threshold below which transactions auto-approve (0 = always confirm) |
| `testMode` | boolean | `false` | Use test canister instead of production |

## Commands

| Command | Description |
|---------|-------------|
| `/setup` | Onboarding โ€” connect your ICP wallet |
| `/link-wallet <principal>` | Link/unlink wallet directly |
| `/portfolio` | View balances across all chains |
| `/history [count]` | Transaction history (last N operations) |
| `/strategy` | View active strategy rules |
| `/subscribe [tier]` | View or purchase a subscription plan |

## How it Works

```
You (chat) โ†’ OpenClaw AI โ†’ Plugin Tools โ†’ VPS Relay โ†’ MeneseAgent Canister
    โ†’ MeneseSDK โ†’ Threshold ECDSA โ†’ Blockchain
```

1. You chat naturally with OpenClaw ("Swap 1 ETH for USDC")
2. The AI picks the right tool (`menese_swap`)
3. Transaction guard enforces quote-then-execute for safety
4. Plugin calls the VPS relay โ†’ MeneseAgent canister on ICP
5. MeneseAgent routes to MeneseSDK which signs via threshold ECDSA
6. Transaction is broadcast to the target blockchain

No private keys. No seed phrases. ICP's chain-key cryptography handles signing.

## Architecture

```
extensions/menese-protocol/
โ”œโ”€โ”€ index.ts                    # Plugin entry point
โ”œโ”€โ”€ openclaw.plugin.json        # Manifest + config schema
โ””โ”€โ”€ src/
    โ”œโ”€โ”€ config.ts               # Config parsing + defaults
    โ”œโ”€โ”€ store.ts                # userId โ†’ ICP principal mapping
    โ”œโ”€โ”€ sdk-client.ts           # HTTP client (rate limits, timeouts, errors)
    โ”œโ”€โ”€ chains.ts               # 19 supported chains
    โ”œโ”€โ”€ canisters.ts            # Canister IDs (prod/test/dev)
    โ”œโ”€โ”€ errors.ts               # 50+ error patterns from ErrorClassifier
    โ”œโ”€โ”€ tools/                  # 13 AI tools
    โ”‚   โ”œโ”€โ”€ send.ts, swap.ts, stake.ts, lend.ts, bridge.ts
    โ”‚   โ”œโ”€โ”€ quote.ts, liquidity.ts, strategy.ts
    โ”‚   โ”œโ”€โ”€ balance.ts, portfolio.ts, history.ts, jobs.ts, prices.ts
    โ”‚   โ””โ”€โ”€ _helpers.ts
    โ”œโ”€โ”€ hooks/
    โ”‚   โ”œโ”€โ”€ transaction-guard.ts  # Quote-then-execute + rate limits
    โ”‚   โ””โ”€โ”€ audit-logger.ts       # JSONL audit trail
    โ”œโ”€โ”€ commands/                # 6 slash commands
    โ”‚   โ”œโ”€โ”€ setup.ts, link-wallet.ts, portfolio.ts
    โ”‚   โ”œโ”€โ”€ history.ts, strategy.ts, subscribe.ts
    โ”‚   โ””โ”€โ”€ index.ts
    โ””โ”€โ”€ http/
        โ””โ”€โ”€ webhook.ts          # Async callback receiver
```

## License

MIT
tools

Comments

Sign in to leave a comment

Loading comments...