Tools
Menese Protocol
Menese Protocol โ multi-chain crypto plugin for OpenClaw (19 blockchains via ICP)
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