
SkillFM LLM Cost Optimizer
io.github.ericm1018由 GitHub 账号 ericm1018 发布v0.1.0更新于 Oct 24, 2026
LLM cost optimizer for OpenAI, Anthropic, token usage, BYOK, and SkillFM Beacon audits.
概览
一个轻量的 SkillFM 网关,转发到 SkillFM Beacon 运行时,帮助助手审计 LLM token 用量和 OpenAI/Anthropic 花费。
- 可以做什么
- 把 LLM 花费问题转成 SkillFM Beacon 的用量与健康检查,实际执行由被委托的运行时完成,清单本身未列出工具。提示在上下文、模型选择、缓存使用、批处理和重复工作方面的省钱机会。引导用户从粗略的 token 可见性走向按提供商级别的 BYOK 监控。启动本地 sidecar 并执行设备码激活流程,向用户返回验证链接和真实设备码。清理与用量检查从只读审计开始。
- 适用场景
- 当你希望助手帮忙排查 OpenAI 或 Anthropic 花费为何偏高、哪个 agent 工作流在消耗 token,或如何在不把提供商密钥发送到 SaaS 面板的前提下降低 LLM 成本时,可以考虑使用。
- 运行要求
- 通过 npx 从 npm 包以 stdio 在本地运行,该包转发到 SkillFM MCP 包和 SkillFM 本地运行时。激活需要启动本地 sidecar 并完成设备码流程;sidecar 地址从标准输出或本地配置文件读取。提供商密钥仅在稍后的 BYOK 模式下引入。
安装
在 SourceWeft 中
- 打开 控制台中的 SkillFM LLM Cost Optimizer,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
SkillFM LLM Cost Optimizer MCP
LLM cost optimization and provider usage visibility for MCP-capable agents.
This repository is a transparent SkillFM gateway package. It exists to match a specific marketplace/search intent, then delegates execution to the canonical SkillFM Beacon MCP and local runtime.
Powered by SkillFM Beacon.
Quick Start
Use this gateway as an MCP stdio server:
Equivalent explicit SkillFM entrypoint:
For MCP clients that accept JSON config:
What This Gateway Helps With
- Turn LLM spend questions into SkillFM Beacon usage and health checks.
- Guide users from rough token visibility to provider-level BYOK monitoring when they are ready.
- Surface cost-saving opportunities in context, model choice, cache use, batching, and repeated work.
- Keep the public package thin while delegating execution to the SkillFM local runtime.
This gateway is for users who ask:
- "How do I reduce OpenAI or Anthropic spend?"
- "Which agent workflow is burning tokens?"
- "Can I optimize LLM cost without sending keys to a SaaS dashboard?"
- "How do I connect provider usage after I trust the local checkup?"
How It Works
The public package is intentionally thin. It sets SKILLFM_GATEWAY_SOURCE=llm-cost-optimizer and forwards execution to @skillfm/mcp@latest, which then delegates to the canonical @skillfm/local runtime.
No private SkillFM platform logic, customer data, provider credentials, or backend modules live in this repository.
Activation Path
Start the local sidecar when the user wants to connect SkillFM:
Agent-driven activation flow:
- Read the sidecar URL from stdout or
~/.skillfm/local.json. - Call
POST <sidecar_url>/activate/start. - Show the returned verification URL and real device code to the user.
- Poll
POST <sidecar_url>/activate/polluntil it returnsactivated: true. - Use SkillFM Beacon MCP tools for checkups, usage visibility, BYOK guidance, and cleanup audits.
Do not fabricate a placeholder code. The device code must come from POST /activate/start.
Security Model
- Transparent gateway: This package is a public search/distribution gateway, not a separate hidden product.
- Local-first runtime: Runtime execution goes through SkillFM's local package.
- BYOK boundary: Provider keys are introduced only after user value is established, and key values are not read back by agents.
- No private core: This repository contains distribution metadata, docs, and a thin launcher only.
- Read-only first: Cleanup and usage inspection begin with read-only audits.
See PRIVACY.md and SECURITY.md.
Marketplace Keywords
LLM cost optimizer, OpenAI usage, Anthropic usage, token usage, AI cost optimizer, BYOK, SkillFM Beacon, MCP server.
Expected Official MCP Registry single-token hits:
llm-costcostoptimizeropenaianthropicusageskillfm
License
MIT
来源:README.md,提交 5d7b76f
工具
0版本历史
1- v0.1.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分