# DuDuClaw

Bridges CLI agents to 11 messaging platforms and maintains conversation memory in SQLite. Useful when teams need AI coders reachable right inside chat apps.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 50
- Author: zhixuli0406
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/zhixuli0406/DuDuClaw
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/mcp/duduclaw

## What it does

DuDuClaw connects command-line coding agents to chat applications such as Telegram, LINE, and Discord. It routes incoming messages and logs token expenses per task. Context stays on your machine. Dialogue history and notes persist inside a temporal SQLite store and a layered wiki.

The core is a Rust application composed of 24 crates with an embedded React 19 web dashboard. Safety layers include an operating system sandbox alongside AES-256-GCM encryption for credentials.

DuDuClaw does not include an LLM. It remains nonfunctional without a configured backend like Claude Code, Codex, or an OpenAI-compatible endpoint. Running via npx strictly requires Node.js 20 or newer and an active `DUDUCLAW_MCP_API_KEY`.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `DUDUCLAW_MCP_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add duduclaw -e DUDUCLAW_MCP_API_KEY=<DUDUCLAW_MCP_API_KEY> -- npx -y duduclaw
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add duduclaw --env DUDUCLAW_MCP_API_KEY=<DUDUCLAW_MCP_API_KEY> -- npx -y duduclaw
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "duduclaw": {
            "command": "npx",
            "args": [
                "-y",
                "duduclaw"
            ],
            "env": {
                "DUDUCLAW_MCP_API_KEY": "<DUDUCLAW_MCP_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "duduclaw": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "duduclaw"
            ],
            "env": {
                "DUDUCLAW_MCP_API_KEY": "<DUDUCLAW_MCP_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e DUDUCLAW_MCP_API_KEY=<DUDUCLAW_MCP_API_KEY> duduclaw npx -y duduclaw
```
Replace <…> with your own values

## When to use it
- connect Claude Code to team messaging channels like Telegram or Discord
- keep persistent dialogue history across CLI runs in local SQLite
- track agent spending across different model backends
- manage multi-account key rotation and failover policies

## Example prompts
- Check the DuDuClaw local wiki and summarize pending tasks
- Send the latest build summary directly to the linked Discord channel
- Display token cost logs for the current agent session

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
