MCPcopy Index your code
hub / github.com/AimeBox/aime-box

github.com/AimeBox/aime-box @v0.1.8

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.8 ↗ · + Follow
1,430 symbols 3,687 edges 233 files 21 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Aime Box

一款基于 langchain + electron开发的多平台桌面端 Chat 客户端

支持本地知识库,tool调用,多个智能agent调用

目标尽量实现全离线本地可执行的智能agent

🖼 截图

image image image image

开始

  1. 添加模型提供商(如Ollama)
  2. 点击管理模型(启用需要的模型)
  3. 聊天页面即可对话聊天
  4. 下载一些本地模型 设置-本地模型管理(如国内调整HuggingfaceUrl为hf-mirror)

  5. 推介下载

  6. bge-m3 用于知识库检索
  7. bge-reranker-large 用于知识库重排序
  8. RapidOCR-json_v0.2.0 用于win环境下的ocr
  9. matcha-icefall-zh-baker 用于语音生成
  10. sherpa-onnx-sense-voice-zh-en-ja-ko-yue-2024-07-17 用于语音识别
  11. silero_vad 用于分离说话场景
  12. sherpa-onnx-pyannote-segmentation-3-0、3dspeaker_speech_eres2net_base_sv_zh-cn_3dspeaker_16k 用于说话人识别
  13. rmbg-1.4 用于背景消除

🌟 特点

  • 多个模型供应商支持 ollama、openai、deepseek、anthropic等等
  • 多种工具调用支持 webloader、websearch、stt、tts、ocr等等
  • 本地知识库引擎,使用lancedb 进行本地知识库检索,支持image、docx、doc、text、url做为输入源
  • 多agent,目前有数据提取agent、代码助手、翻译助手
  • 提示词保存功能
  • MCP支持,可接入供模型调用

📝 Todo

  • [x] mac平台兼容
  • [ ] 多语言支持
  • [ ] 文档对话功能类似于ChatDoc 支持docx、pdf、txt、url、mp4、音频文件等格式的对话
  • [x] 浏览器browser-use
  • [ ] Tool自动创建工具,输入url或说明文档自动创建工具供模型调用
  • [ ] 更多的agents
  • [x] a2a支持

Agent

  1. Extract 数据提取助手,用于对指定文件或文件夹下所有文件进行检索,根据用户给出的字段进行全文或部分抽取,markdown格式输出
  2. ScriptAssistant 对用户的任务生成一个python脚本和venv环境执行

🔌 技术栈

感谢以下开源项目的支持

如有缺漏请联系作者补充

🐞 Dev

# node 22
nvm install 22
nvm use 22

npm i -g node-gyp

npm install
npm run start

💼 Build

# window
npm run package

🌐 About

author: 781172480@qq.com

ChangeLog

CHANGELOG

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

© Aime Box

Extension points exported contracts — how you extend this code

BaseVectorStoreInterface (Interface)
(no doc) [3 implementers]
src/main/db/vectorstores/index.ts
IChatPlanner (Interface)
(no doc) [1 implementers]
src/entity/Chat.ts
ColEx (Interface)
(no doc)
src/types/index.ts
Window (Interface)
(no doc)
src/renderer/preload.d.ts
HuggingFaceTransformersEmbeddingsParams (Interface)
(no doc) [1 implementers]
src/main/embeddings/HuggingFaceTransformersEmbeddings.ts
IChatPlannerPlanStep (Interface)
(no doc)
src/entity/Chat.ts
RenderCallbackParams (Interface)
(no doc)
src/types/form.ts
ToolSelectProps (Interface)
(no doc)
src/renderer/components/tools/ToolSelect.tsx

Core symbols most depended-on inside this repo

filter
called by 107
src/main/db/vectorstores/index.ts
on
called by 102
src/main/instances/BrowserInstance.ts
invoke
called by 95
src/main/agents/index.ts
invoke
called by 52
src/main/agents/a2a/Agent2Agent.ts
getModelsPath
called by 48
src/main/utils/path.ts
registerTool
called by 39
src/main/tools/index.ts
isArray
called by 34
src/main/utils/is.ts
getSettings
called by 33
src/main/settings/index.ts

Shape

Method 543
Function 438
Class 306
Interface 136
Enum 7

Languages

TypeScript100%

Modules by API surface

src/main/tools/FileSystemTool.ts38 symbols
src/main/tools/ReplicateToolkit.ts33 symbols
src/main/agents/storm/StormAgent.ts32 symbols
src/main/preload.ts31 symbols
src/main/chat/index.ts29 symbols
src/main/tools/RapidOcr.ts27 symbols
src/renderer/pages/Chat/ChatContent.tsx22 symbols
src/main/db/vectorstores/index.ts22 symbols
src/main/tools/Vidu.ts21 symbols
src/main/utils/is.ts20 symbols
src/main/agents/message_manager/index.ts20 symbols
src/entity/Chat.ts19 symbols

For agents

$ claude mcp add aime-box \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact