2025-04-06 16:32:51 +08:00
< p align = "center" >
2025-04-10 00:39:55 +08:00
< img src = "assets/humanus.png" width = "200" / >
2025-04-06 16:32:51 +08:00
< / p >
2025-03-19 18:44:54 +08:00
2025-04-06 16:32:51 +08:00
# humanus.cpp
2025-03-19 18:44:54 +08:00
2025-04-06 16:32:51 +08:00
Humanus (meaning "human" in Latin) is a lightweight framework inspired by [OpenManus ](https://github.com/mannaandpoem/OpenManus ) and [mem0 ](https://github.com/mem0ai/mem0 ), integrated with the Model Context Protocol (MCP). `humanus.cpp` enables more flexible tool choices, and provides a foundation for building powerful local LLM agents.
2025-03-23 14:35:54 +08:00
2025-04-06 16:32:51 +08:00
Let's embrace local LLM agents **w/** humanus.cpp!
2025-03-19 18:44:54 +08:00
2025-04-06 16:32:51 +08:00
## Project Demo
2025-03-19 18:44:54 +08:00
## How to Build
```bash
2025-03-19 18:46:55 +08:00
git submodule update --init --recursive
2025-03-19 18:44:54 +08:00
cmake -B build
cmake --build build --config Release
```
## How to Run
2025-03-23 14:46:39 +08:00
Switch to your own configration first:
1. Replace `base_url` , `api_key` , .etc in `config/config_llm.toml` according to your need.
2. Fill in `args` after `"@modelcontextprotocol/server-filesystem"` for `filesystem` to control the access to files. For example:
```
[filesystem]
type = "stdio"
command = "npx"
args = ["-y",
"@modelcontextprotocol/server-filesystem",
"/Users/{username}/Desktop",
"other/path/to/your/files]
```
Start a MCP server with tool `python_execute` on port 8818:
2025-03-23 14:35:54 +08:00
```bash
2025-03-23 14:46:39 +08:00
./build/bin/mcp_server # Unix/MacOS
2025-03-23 14:35:54 +08:00
```
```shell
2025-03-23 14:46:39 +08:00
.\build\bin\Release\mcp_server.exe # Windows
2025-03-23 14:35:54 +08:00
```
Run agent `Humanus` with tools `python_execute` , `filesystem` and `puppeteer` (for browser use):
2025-03-19 18:44:54 +08:00
```bash
./build/bin/humanus_cli # Unix/MacOS
2025-03-23 14:35:54 +08:00
```
2025-03-19 18:44:54 +08:00
2025-03-23 14:35:54 +08:00
```shell
2025-03-19 18:44:54 +08:00
.\build\bin\Release\humanus_cli.exe # Windows
```
2025-03-23 14:35:54 +08:00
Run experimental planning flow (only agent `Humanus` as executor):
```bash
./build/bin/humanus_cli_plan # Unix/MacOS
```
```shell
.\build\bin\Release\humanus_cli_plan.exe # Windows
```
2025-04-10 00:39:55 +08:00
## Acknowledgement
2025-03-23 14:35:54 +08:00
2025-04-10 00:39:55 +08:00
< p align = "center" >
< img src = "assets/whu.png" height = "150" / >
< img src = "assets/myth.png" height = "150" / >
< / p >