# mateclaw **Repository Path**: matevip_admin/mateclaw ## Basic Information - **Project Name**: mateclaw - **Description**: ๐Ÿค– MateClaw โ€” ๅŸบไบŽ Java + Vue 3 ็š„ AI ๆ™บ่ƒฝๅŠฉๆ‰‹๏ผŒๆ”ฏๆŒๅคš Agent ็ผ–ๆŽ’ใ€Skillsใ€Memoryใ€MCP ๅ่ฎฎไธŽๅคšๆธ ้“ๆŽฅๅ…ฅ๏ผŒๅบ•ๅฑ‚็”ฑ Spring AI Alibaba ้ฉฑๅŠจใ€‚ - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: https://claw.mate.vip - **GVP Project**: No ## Statistics - **Stars**: 13 - **Forks**: 8 - **Created**: 2026-04-04 - **Last Updated**: 2026-04-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: mateclaw, openclaw, AIAgent, SpringAI, agentic ## README
# MateClaw [![GitHub Repo](https://img.shields.io/badge/GitHub-Repo-black.svg?logo=github)](https://github.com/matevip/mateclaw) [![Documentation](https://img.shields.io/badge/Docs-Website-green.svg?logo=readthedocs&label=Docs)](https://claw.mate.vip/docs) [![Live Demo](https://img.shields.io/badge/Demo-Online-orange.svg?logo=vercel&label=Demo)](https://claw-demo.mate.vip) [![Website](https://img.shields.io/badge/Website-claw.mate.vip-blue.svg?logo=googlechrome&label=Site)](https://claw.mate.vip) [![Java Version](https://img.shields.io/badge/Java-17+-blue.svg?logo=openjdk&label=Java)](https://adoptium.net/) [![Spring Boot](https://img.shields.io/badge/Spring%20Boot-3.5-brightgreen.svg?logo=springboot)](https://spring.io/projects/spring-boot) [![Vue](https://img.shields.io/badge/Vue-3-4FC08D.svg?logo=vuedotjs)](https://vuejs.org/) [![Last Commit](https://img.shields.io/github/last-commit/matevip/mateclaw)](https://github.com/matevip/mateclaw) [![License](https://img.shields.io/badge/license-Apache--2.0-red.svg?logo=opensourceinitiative&label=License)](LICENSE) [![GitHub Stars](https://img.shields.io/github/stars/matevip/mateclaw?style=flat&logo=github&color=yellow&label=Stars)](https://github.com/matevip/mateclaw/stargazers) [![GitHub Forks](https://img.shields.io/github/forks/matevip/mateclaw?style=flat&logo=github&color=purple&label=Forks)](https://github.com/matevip/mateclaw/network) [[Website](https://claw.mate.vip)] [[Live Demo](https://claw-demo.mate.vip)] [[Documentation](https://claw.mate.vip/docs)] [[ไธญๆ–‡](README_zh.md)]

MateClaw Logo

Your AI mate, always ready to lend a claw.

A personal AI assistant system built with **Java + Vue 3**, powered by [Spring AI Alibaba](https://github.com/alibaba/spring-ai-alibaba). Features multi-agent orchestration, a flexible tool/skill system with MCP protocol support, multi-layer memory, and multi-channel adapters. > **Core capabilities:** > > **Multi-Agent Orchestration** โ€” ReAct (Thought โ†’ Action โ†’ Observation loop) and Plan-and-Execute (auto-decompose complex tasks into ordered sub-steps). Create multiple independent agents, each with their own personality and tools. > > **Tool & Skill System** โ€” Built-in tools (web search, date/time) + MCP protocol for external tool integration. Pre-configured GitHub and Filesystem MCP servers โ€” enable and go. Install skill packages from ClawHub marketplace or custom sources. > > **Multi-Layer Memory** โ€” Short-term context window with auto-compression, event-driven post-conversation memory extraction, workspace files (PROFILE.md / MEMORY.md / daily notes), and scheduled memory consolidation. > > **Every Channel** โ€” Web console, DingTalk, Feishu, WeChat Work, Telegram, Discord, QQ. One MateClaw, connect as needed. > > **Multi-Provider Models** โ€” 20+ providers: DashScope, OpenAI, Anthropic, Google Gemini, DeepSeek, Kimi, MiniMax, Zhipu AI, Volcano Engine, OpenRouter, Ollama, LM Studio, llama.cpp, MLX, and more. Configure in the web UI. > > **Desktop App** โ€” Electron-based desktop application with auto-update support. Download and double-click to run. --- ## Table of Contents - [Quick Start](#quick-start) - [Screenshots](#screenshots) - [Architecture](#architecture) - [Tech Stack](#tech-stack) - [Features](#features) - [Documentation](#documentation) - [Roadmap](#roadmap) - [Contributing](#contributing) - [Contact Us](#contact-us) - [License](#license) --- ## Quick Start ### Prerequisites - Java 17+ - Node.js 18+ & pnpm - Maven 3.9+ (or use `mvnw`) - At least one LLM API Key (e.g., [DashScope](https://dashscope.aliyun.com/)) ### Option 1: Local Development **1. Start the backend** ```bash cd mateclaw-server export DASHSCOPE_API_KEY=your-key-here mvn spring-boot:run # Backend runs at http://localhost:18088 # H2 Console: http://localhost:18088/h2-console # API Docs (SpringDoc OpenAPI): http://localhost:18088/swagger-ui.html ``` **2. Start the frontend** ```bash cd mateclaw-ui pnpm install pnpm dev # Frontend runs at http://localhost:5173 (proxies /api to :18088) ``` **3. Log in** Open http://localhost:5173 and log in with `admin` / `admin123`. ### Option 2: Docker ```bash cp .env.example .env # Edit .env โ€” fill in DASHSCOPE_API_KEY and other variables docker compose up -d # Service runs at http://localhost:18080 (MySQL + backend) ``` ### Option 3: Desktop Application Download the installer from [GitHub Releases](https://github.com/matevip/mateclaw/releases): | Platform | File | Notes | |----------|------|-------| | **macOS (Apple Silicon)** | `MateClaw__arm64.dmg` | Recommended for M1/M2/M3/M4/M5 Mac | | **macOS (Apple Silicon)** | `MateClaw__arm64.zip` | zip format (Apple Silicon) | | **macOS (Intel)** | `MateClaw__x64.dmg` | For Intel-based Mac | | **macOS (Intel)** | `MateClaw__x64.zip` | zip format (Intel) | | **Windows (x64)** | `MateClaw__Setup.exe` | For most Windows PCs (64-bit) | | **Windows (x64)** | `MateClaw__x64_Setup.exe` | Explicit x64 build | | **Windows (ARM64)** | `MateClaw__arm64_Setup.exe` | For ARM-based Windows (e.g. Surface Pro X) | Double-click to run. The app bundles JRE 21 + the Spring Boot backend, no Java installation needed. Supports auto-update via GitHub Releases. > **macOS users**: If macOS blocks the app, right-click โ†’ Open โ†’ Open again, or go to System Settings โ†’ Privacy & Security โ†’ Open Anyway. --- ## Screenshots

MateClaw Chat with ECharts Visualization

Chat console โ€” AI self-introduction with auto-generated ECharts donut chart

--- ## Architecture ``` mateclaw/ โ”œโ”€โ”€ mateclaw-server/ # Spring Boot backend โ”‚ โ”œโ”€โ”€ src/main/java/vip/mate/ โ”‚ โ”‚ โ”œโ”€โ”€ agent/ # Agent engine (ReAct, Plan-and-Execute, StateGraph) โ”‚ โ”‚ โ”œโ”€โ”€ planning/ # Task planning (Plan / SubPlan models) โ”‚ โ”‚ โ”œโ”€โ”€ tool/ # Tool system (built-in + MCP adapters) โ”‚ โ”‚ โ”œโ”€โ”€ skill/ # Skill management (workspace + ClawHub) โ”‚ โ”‚ โ”œโ”€โ”€ channel/ # Channel adapters (Web, DingTalk, Feishu, etc.) โ”‚ โ”‚ โ”œโ”€โ”€ workspace/ # Conversations, messages, workspace files โ”‚ โ”‚ โ”œโ”€โ”€ memory/ # Memory extraction & consolidation โ”‚ โ”‚ โ”œโ”€โ”€ llm/ # Multi-provider model configs โ”‚ โ”‚ โ”œโ”€โ”€ cron/ # Scheduled tasks (CronJob) โ”‚ โ”‚ โ”œโ”€โ”€ auth/ # Spring Security + JWT โ”‚ โ”‚ โ””โ”€โ”€ config/ # Spring bean configurations โ”‚ โ””โ”€โ”€ src/main/resources/ โ”‚ โ”œโ”€โ”€ application.yml # Main config (H2 for dev) โ”‚ โ”œโ”€โ”€ prompts/ # Prompt templates โ”‚ โ””โ”€โ”€ db/ # Schema & seed data (schema.sql, data.sql) โ”œโ”€โ”€ mateclaw-ui/ # Vue 3 SPA frontend โ”‚ โ””โ”€โ”€ src/ โ”‚ โ”œโ”€โ”€ views/ # Pages (ChatConsole, AgentWorkspace, SkillMarket, etc.) โ”‚ โ”œโ”€โ”€ components/ # Reusable components โ”‚ โ”œโ”€โ”€ stores/ # Pinia stores (domain-driven) โ”‚ โ”œโ”€โ”€ api/ # Axios HTTP client โ”‚ โ”œโ”€โ”€ router/ # Vue Router โ”‚ โ”œโ”€โ”€ types/ # TypeScript types โ”‚ โ””โ”€โ”€ i18n/ # Internationalization (zh-CN, en-US) โ”œโ”€โ”€ mateclaw-desktop/ # Electron desktop app โ”œโ”€โ”€ docs/ # VitePress documentation (zh + en) โ”œโ”€โ”€ docker-compose.yml โ””โ”€โ”€ .env.example ``` --- ## Tech Stack | Layer | Technology | |-------|-----------| | Backend Framework | Spring Boot 3.5 + Spring AI Alibaba 1.1 | | LLM Integration | DashScope, OpenAI, Anthropic, Gemini, DeepSeek, Kimi, MiniMax, Zhipu, Volcano Engine, OpenRouter, Ollama, LM Studio, llama.cpp, MLX | | Agent Engine | StateGraph (ReAct + Plan-and-Execute) | | Database | H2 (dev) / MySQL 8.0+ (prod) | | ORM | MyBatis Plus 3.5 | | Authentication | Spring Security + JWT | | API Docs | SpringDoc OpenAPI 3 | | Frontend | Vue 3 + TypeScript + Vite | | State Management | Pinia | | UI Components | Element Plus | | Styling | TailwindCSS 4 | | Desktop | Electron + electron-updater | | Docs Site | VitePress | --- ## Features ### Agent System - **ReAct Agent** โ€” Thought โ†’ Action โ†’ Observation reasoning loop with tool calling - **Plan-and-Execute** โ€” Auto-decompose complex tasks into ordered sub-steps with progress tracking - **Dynamic Agent** โ€” Load agent configs from database at runtime - **Multi-Agent** โ€” Create multiple independent agents, each with their own system prompt, tools, and personality ### Tool & Skill System - **Built-in Tools** โ€” Web search (Serper/Tavily), date/time, workspace memory read/write - **MCP Protocol** โ€” Connect external tools via Model Context Protocol (stdio, SSE, and Streamable HTTP transports). Full lifecycle management in the web UI โ€” add, edit, enable/disable, and test connections - **Pre-configured MCP Servers** โ€” GitHub (`@modelcontextprotocol/server-github`) and Filesystem ship out-of-the-box. Enable from the MCP management page and fill in your token โ€” no code changes needed - **Skill Packages** โ€” Install/uninstall skill packages with `SKILL.md` manifests - **ClawHub Marketplace** โ€” Browse and install skills from the ClawHub registry - **Workspace Skills** โ€” Convention-based skill directory at `~/.mateclaw/skills/{name}/` ### Memory System - **Short-Term** โ€” Conversation context window with auto-compression when token budget exceeded - **Post-Conversation Extraction** โ€” Event-driven async LLM analysis, writes to PROFILE.md / MEMORY.md / daily notes - **Memory Consolidation** โ€” Scheduled daily emergence (CronJob at 2:00 AM) merges daily notes into long-term memory - **Workspace Files** โ€” Per-agent AGENTS.md, SOUL.md, PROFILE.md, MEMORY.md, memory/*.md - **Agent Memory Tool** โ€” Agents can read/write their own workspace files during conversations ### Multi-Channel - **Web Console** โ€” SSE streaming with rich message rendering (Markdown, code, plans) - **DingTalk** โ€” Webhook + event subscription - **Feishu (Lark)** โ€” Webhook + event subscription - **WeChat Work** โ€” Callback API - **Telegram** โ€” Bot API with webhook - **Discord** โ€” Bot with slash commands - **QQ** โ€” QQ Bot API ### Model Providers Configure in the web UI (Settings โ†’ Models). Supported providers: | Provider | Models | |----------|--------| | **Cloud Providers** | | | DashScope (Alibaba) | Qwen3.5-Max, Qwen3.5-Plus, Qwen3-Max, Qwen3-Plus, Qwen-Max, Qwen-Plus, Qwen-Turbo, Qwen-Long, DeepSeek-V3.2 | | ModelScope | Qwen3.5-122B-A10B, GLM-5 | | Aliyun Coding Plan | Qwen3.5-Plus, Qwen3-Coder-Next, GLM-5, GLM-4.7, MiniMax-M2.5, Kimi-K2.5 | | OpenAI | GPT-5.2, GPT-5, GPT-5-Mini, GPT-5-Nano, GPT-4.1, GPT-4.1-Mini, GPT-4.1-Nano, o3, o4-mini, GPT-4o | | Azure OpenAI | GPT-5, GPT-4.1, GPT-4o and more | | Anthropic | Claude Opus 4.6, Claude Sonnet 4.6 (via model discovery) | | Google Gemini | Gemini 3.1 Pro, Gemini 3 Flash, Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.0 Flash | | DeepSeek | DeepSeek-Chat, DeepSeek-Reasoner | | Kimi (Moonshot) | Kimi-K2.5, Kimi-K2-Thinking, Kimi for Coding (CN / International / Code) | | MiniMax | MiniMax-M2.7, MiniMax-M2.5 (International / China) | | Zhipu AI | GLM-5.1, GLM-5, GLM-5-Turbo, GLM-5V-Turbo (CN / International) | | Volcano Engine | Doubao-1.5-Pro-256K, Doubao-1.5-Lite, Doubao-1.5-Thinking-Pro, Doubao-1.5-Vision-Pro | | OpenRouter | GPT-5, Claude Opus 4.6, Gemini 2.5 Pro, Llama 4 Maverick, DeepSeek R1, and 200+ more | | **Local Providers** | | | Ollama | Qwen3, Gemma 4, Gemma 3, Llama 3.1, DeepSeek R1, Mistral (auto-detected on startup) | | LM Studio | Any locally-served model | | llama.cpp | Any locally-served model | | MLX (Apple Silicon) | Any locally-served model | ### Security - **Spring Security + JWT** โ€” Token-based authentication - **Tool Guard** โ€” Approval rules for sensitive tool operations - **File Validation** โ€” Path traversal prevention for workspace files - **Skill Security** โ€” Validation during skill installation ### Scheduled Tasks - **CronJob System** โ€” Create scheduled tasks with 5-field cron expressions - **Memory Consolidation** โ€” Auto-triggered daily for each agent - **Custom Tasks** โ€” Schedule any prompt to run periodically --- ## Documentation | Topic | Description | |-------|-------------| | [Introduction](https://mateclaw.mate.vip/en/intro) | What MateClaw is and core concepts | | [Quick Start](https://mateclaw.mate.vip/en/quickstart) | Install and run (local, Docker, desktop) | | [Console](https://mateclaw.mate.vip/en/console) | Web UI: chat and agent configuration | | [Agents](https://mateclaw.mate.vip/en/agents) | Agent engine: ReAct, Plan-and-Execute, StateGraph | | [Models](https://mateclaw.mate.vip/en/models) | Configure cloud, local, and custom providers | | [Tools](https://mateclaw.mate.vip/en/tools) | Built-in tools and custom tool development | | [Skills](https://mateclaw.mate.vip/en/skills) | Skill packages and ClawHub marketplace | | [MCP](https://mateclaw.mate.vip/en/mcp) | Model Context Protocol integration | | [Memory](https://mateclaw.mate.vip/en/memory) | Multi-layer memory system | | [Channels](https://mateclaw.mate.vip/en/channels) | DingTalk, Feishu, Telegram, Discord, and more | | [Security](https://mateclaw.mate.vip/en/security) | Authentication and tool guard | | [Desktop](https://mateclaw.mate.vip/en/desktop) | Desktop application guide | | [API Reference](https://mateclaw.mate.vip/en/api) | REST API documentation | | [Configuration](https://mateclaw.mate.vip/en/config) | Configuration reference | | [FAQ](https://mateclaw.mate.vip/en/faq) | Common questions and troubleshooting | --- ## Roadmap | Area | Item | Status | |------|------|--------| | **Agent** | Multi-agent collaboration and delegation | Planned | | **Agent** | Multimodal input (image, audio, video) | Planned | | **Models** | Small + large model routing | Planned | | **Memory** | Vector DB long-term memory (RAG) | Planned | | **Memory** | Multimodal memory fusion | Planned | | **Skills** | Richer ClawHub ecosystem | In Progress | | **Channels** | WeChat personal (iLink Bot) | Planned | | **Channels** | Email channel | Planned | | **Desktop** | Linux support | Planned | | **Security** | Multi-tenant support | Planned | | **Console** | Plugin marketplace in web UI | Planned | _Status:_ **In Progress** โ€” actively being worked on; **Planned** โ€” queued or under design. --- ## Contributing MateClaw is open to contributions! Whether it's bug fixes, new features, documentation improvements, or new channel/tool integrations โ€” all contributions are welcome. ```bash # Clone the repository git clone https://github.com/matevip/mateclaw.git cd mateclaw # Backend cd mateclaw-server mvn clean compile # Frontend cd ../mateclaw-ui pnpm install pnpm dev ``` Please read [CONTRIBUTING.md](https://github.com/matevip/mateclaw/blob/main/CONTRIBUTING.md) (if available) before submitting a PR. --- ## Contact Us | Discord | X (Twitter) | DingTalk | |---------|-------------|----------| | Coming soon | Coming soon | Coming soon | --- ## Why MateClaw? **Mate** โ€” a companion, always by your side. **Claw** โ€” sharp, capable, ready to grab any task. MateClaw is your personal AI mate that lends a claw whenever you need it. Built as a monolith with modular design, it's easy to deploy, extend, and customize. --- ## License MateClaw is released under the [Apache License 2.0](LICENSE).