Your Money Left The Chat

Your Money Left The Chat

🚀 你的钱还剩多少?对话框里的财务系统

这是一个基于 Rust 的原生财务追踪平台,借助 SQLite 存储数据,并由大语言模型(LLM)驱动。它能让你通过自然对话记录支出、分析消费习惯和计算税务,且所有信息都本地存储,无需依赖云端服务。

📀 演示视频

🚀 快速开始

安装依赖

  1. 安装 Rust、SQLite 和 Makefile:
    • Rust:https://www.rust-lang.org/tools/install
    • SQLite:https://sqlite.org/download.html
    • GNU Make:https://www.gnu.org/software/make/

克隆仓库

git clone https://github.com/Rayato159/your-money-left-the-chat
cd your-money-left-the-chat

安装 Diesel CLI

cargo install diesel_cli --no-default-features --features sqlite

⚠️ 重要提示

如果遇到找不到 sqlite3.lib 的错误,请先在本地安装 sqlite3

创建 SQLite 数据库

在文件夹 ./src/infrastructure/database/sqlite_data/ 中创建一个名为 database.db 的文件。

数据库配置

可以使用 Makefile:

make migrate-up

或者使用原始的 cargo 命令:

diesel migrate run

构建项目

使用 Makefile:

make build-release

或者使用原始的 cargo 命令:

cargo build --release --example your_money_left_the_chat

编辑配置文件

如果你使用的是 Claude Desktop,请找到 claude_desktop_config.json 文件,然后添加以下内容:

  • Windows:
{
"mcpServers": {
"money": {
"command": "路径/your-money-left-the-chat/target/release/examples/your_money_left_the_chat.exe",
"args": [
"路径/your-money-left-the-chat/src/infrastructure/database/sqlite_data/database.db"
]
}
}
}
  • Linux/MacOS:
{
"mcpServers": {
"money": {
"command": "路径/your-money-left-the-chat/target/release/examples/your_money_left_the_chat",
"args": [
"路径/your-money-left-the-chat/src/infrastructure/database/sqlite_data/database.db"
]
}
}
}

开始对话

现在你可以与 Claude 或 Ollama 对话,管理你的财务了:

今天我在 KFC 花了 129 泰铢。

系统会自动记录这笔支出并提供相应的财务摘要。

✨ 主要特性

  • ✍️ 自然语言输入:通过自然语言记录支出,例如 “今天我在 KFC 花了 129 泰铢” 可瞬间完成记录。
  • 📆 智能摘要:按天、月、年进行统计,并提供分类分析。
  • 📊 图表视图(Claude 独有功能):可视化展示每月在食物上的花费占比。
  • 📉 税务计算:估算你需要缴纳的税款金额。
  • 💀 债务管理:跟踪谁欠你钱以及谁在忽视还款。
  • 🪙 比特币追踪:记录你的比特币投资及其价值变化。
  • 🔒 完全离线 & 本地优先:数据本地存储,无需互联网、无需注册账户,避免数据监控。

🔧 技术细节

属性 详情
后端 MCP Rust SDK + SQLite + Diesel
AI 接口 Claude / Ollama(通过 mcp-cli
  • 0 关注
  • 0 收藏,10 浏览
  • system 提出于 2025-09-26 06:24

相似服务问题