Leanfare

io.github.pouriaetab由 GitHub 账号 pouriaetab 发布v0.15.3更新于 Nov 6, 2026

Makes your Claude plan last longer: hands reading and drafting to cheaper or free models.

已验证STDIO仅桌面开发者工具AI 与机器学习

概览

AI 生成的概览

Leanfare 是一个本地 MCP 服务器,把任务拆成若干部分,将阅读、起草等简单工作交给更便宜或免费的模型,让 Claude 套餐用得更久。

可以做什么
  • 规划并执行任务:把提示拆成多个部分、为每部分选模型,并启动、查看状态和停止运行
  • 委派工作:把部分工作交给外部模型,取回答案并附上回执
  • 提问、评分与估算:向模型提问、给答案打分,并在花费前估算成本
  • 调整行为:设置委派等级、选择每个提示启动多少助手,以及允许工作流向哪些提供方
  • 查看用量:查看每个提示用了什么、省了多少的报告,以及花费和可用模型
  • 管理本地模型与助手:配置本地模型和 Claude 助手模型
适用场景
适合在 Claude Desktop、Cowork 或 Claude Code 中工作、经常触及套餐上限,并希望把日常的阅读、搜索和起草交给免费或更便宜的模型、而把难的部分留给 Claude 的人。
运行要求
以桌面应用形式通过 stdio 在本地运行(macOS、Windows 或 Linux),可通过 shell 或 PowerShell 安装脚本、Claude Code 插件或 .mcpb 文件安装。至少需要一个可委派工作的模型:电脑上已有的 API 密钥或 Ollama 模型,或在设置中一键连接 ChatGPT、Gemini、Groq、OpenRouter、Mistral、Cloudflare 等免费账户。本地小网页应用运行在 127.0.0.1:4747。
安装前请注意
它会使用你电脑上已有的 API 密钥并连接第三方提供方账户,请求从你的电脑直接发往这些 AI 公司,因此提示内容可能被发送给外部提供方。它可能在付费模型上花钱,请先查看估算、花费和报告。项目自称处于早期、每周都在变化。它只读取用量数字,只有在你选择加入时才保留委派文本。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Leanfare,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Leanfare

[Latest release] [Tests] [License]

Leanfare makes your Claude plan last longer. Claude keeps the hard parts of a task and hands the simple ones, like reading files, searching and drafting, to free or cheaper models. You keep working in Claude as before.

[A plan as Claude shows it in Cowork: each part of the task, the model it runs on, its tokens and its cost]

Leanfare is early and changes every week. If something breaks, report a bug; Settings, Report a problem, fills in your version. Questions and ideas go to Discussions.

How it works

  1. You ask Claude for something, in Claude Desktop, Cowork or Claude Code.
  2. Claude asks Leanfare for a plan. Leanfare splits the task into parts and picks a model for each: free or cheap models for reading and drafting, Claude's own models for the hard parts.
  3. Leanfare sends its parts to those models and hands the answers back. Claude does the rest, checks every answer, and answers you.
  4. Leanfare's report shows what each prompt used and what it saved.

Get started

On macOS or Linux, paste this in Terminal:

sh
curl -fsSL https://raw.githubusercontent.com/pouriaetab/leanfare/main/install.sh | sh

On Windows, paste this in PowerShell:

powershell
powershell -ExecutionPolicy Bypass -c "irm https://raw.githubusercontent.com/pouriaetab/leanfare/main/install.ps1 | iex"

Then type leanfare in the same window. In the page that opens, press Turn on Leanfare, then restart Claude. That's all.

Leanfare needs at least one model to hand work to. It uses the API keys and Ollama models already on your computer, and Settings connects free ones with one press each: ChatGPT (a free account works), Gemini, Groq, OpenRouter, Mistral and Cloudflare.

Other ways in: the Claude Code plugin (/plugin marketplace add pouriaetab/leanfare, then /plugin install leanfare@leanfare), or a one click .mcpb file for Claude Desktop from the latest release.

What you see

The report. Every prompt with its main model, Claude's helpers and the outside models, and what was saved. By prompt or by model, over any days.

[The Usage report, by prompt: each prompt's main model, Claude's helpers, the outside models, and what was saved]

Claude's own models. Leanfare picks the Claude model for each helper Claude starts, from llmledger's ratings and prices. As the ratings stand: Fable 5.1 for the hardest parts, Opus 5.5 for high effort, Sonnet 5.5 for medium and Haiku 5.5 for light code. Cowork can ask you to approve each helper, so you choose how many a prompt starts: one per part, one per prompt, or none.

[Settings, Claude's own models: the order, each kind's pick, and how many helpers]

Three settings

  1. Level, from 1 (Off) to 5 (All it can): how much Claude hands to Leanfare first.
  2. Helpers: one per part, one per prompt (the default), or none.
  3. Where work may go: only this computer, or the providers you ticked.

Leanfare picks the rest for you. The guide explains every part.

What's inside

Leanfare is an MCP server with a small web app, both on your computer. Claude connects to it over stdio, like any MCP server. It is TypeScript on Bun, with no runtime dependencies.

FileWhat it is
src/mcp.tsThe MCP server and its tools
src/cli.tsThe leanfare command
src/server.tsThe app and its API, at http://127.0.0.1:4747
src/planner.tsPlans: the parts, a model for each, the runs
src/delegate.tsHand offs to outside models, each with a receipt
src/claudeladder.tsClaude's own models, in order
ui/The app's screens

The MCP tools: plan, plan_run, plan_status, plan_stop, delegate, ask, grade, level, report, spend, models, estimate, trial, local_model, live and helper.

To build and run it from source:

sh
git clone https://github.com/pouriaetab/leanfare.gitcd leanfarebun installbun test             # against fake providers; nothing leaves your computerbun src/cli.ts       # the appbun src/cli.ts mcp   # the MCP server, over stdio

Privacy

Leanfare reads usage numbers, never your words, unless you choose in Settings to keep a hand off's words on your computer to read later. Your keys stay on your computer, and requests go from your computer straight to the AI company you use. No telemetry. The guide has the details.

Update, stop or take it out

  1. Update: run the install line again. Leanfare says when a new version is out.
  2. Stop: type leanfare stop.
  3. Off for a while: the switch at the top of the app.
  4. Take it out of an app: Settings, In your apps, then Remove next to the app.

Data and credits

Prices come from llmledger (MIT), built from LiteLLM's public price list (MIT). Quality ratings come from the Arena leaderboard (CC BY 4.0). The guide lists the rest. Leanfare is not affiliated with any AI provider.

Licence

MIT

来源:README.md,提交 2ac2c99

工具

0
SourceWeft 曾在隔离沙箱中以无凭据方式启动该软件包一次,以列出其工具,但未能完成:该软件包类型无法在沙箱中运行。

版本历史

10
  1. v0.15.3最新Nov 6, 2026
  2. v0.15.1Nov 5, 2026
  3. v0.15.0Nov 5, 2026
  4. v0.14.2Nov 5, 2026
  5. v0.14.0Nov 4, 2026
  6. v0.13.12Nov 4, 2026
  7. v0.13.11Nov 4, 2026
  8. v0.13.10Nov 3, 2026
  9. v0.13.9Nov 3, 2026
  10. v0.12.1Nov 1, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分