SkillFM LLM Cost Optimizer

io.github.ericm1018Published by GitHub account ericm1018v0.1.0Updated Oct 24, 2026

LLM cost optimizer for OpenAI, Anthropic, token usage, BYOK, and SkillFM Beacon audits.

VerifiedSTDIODesktop onlyFinanceSecurity & MonitoringAI & ML

Overview

AI-generated overview

A thin SkillFM gateway that forwards to the SkillFM Beacon runtime to help agents audit LLM token usage and OpenAI/Anthropic spend.

What you can do
Turn LLM spend questions into SkillFM Beacon usage and health checks through the delegated runtime, since no tools are listed in the manifest itself. Surface cost-saving opportunities around context, model choice, cache use, batching and repeated work. Guide users from rough token visibility toward provider-level BYOK monitoring. Start a local sidecar and run a device-code activation flow that returns a verification URL and code for the user. Begin with read-only cleanup and usage audits.
When to use it
Worth considering when you want an assistant to help investigate why OpenAI or Anthropic spending is high, which agent workflow is burning tokens, or how to reduce LLM cost without sending provider keys to a SaaS dashboard.
Requirements
Runs locally over stdio via npx from the npm package, which forwards to the SkillFM MCP package and the SkillFM local runtime. Activation requires starting the local sidecar and completing a device-code flow; the sidecar URL is read from stdout or a local config file. Provider keys are only introduced later under a BYOK model.
Before you install
The package is explicitly a thin distribution gateway that delegates execution to SkillFM's local runtime, so behavior depends on that separate package. Activation involves a device code and verification URL that must come from the activation endpoint, not be invented. BYOK provider keys are introduced after the local checkup; the README says agents do not read key values back, but keys are still a sensitive credential. Audits are described as read-only first.

Installation

In SourceWeft

  1. Open SkillFM LLM Cost Optimizer in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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:

bash
npx -y @skillfm/llm-cost-optimizer-mcp@latest

Equivalent explicit SkillFM entrypoint:

bash
npx -y @skillfm/mcp@latest

For MCP clients that accept JSON config:

json
{  "mcpServers": {    "llm-cost-optimizer": {      "command": "npx",      "args": ["-y", "@skillfm/llm-cost-optimizer-mcp@latest"]    }  }}

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:

bash
npx -y @skillfm/llm-cost-optimizer-mcp@latest start

Agent-driven activation flow:

  1. Read the sidecar URL from stdout or ~/.skillfm/local.json.
  2. Call POST <sidecar_url>/activate/start.
  3. Show the returned verification URL and real device code to the user.
  4. Poll POST <sidecar_url>/activate/poll until it returns activated: true.
  5. 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-cost
  • cost
  • optimizer
  • openai
  • anthropic
  • usage
  • skillfm

License

MIT

Source: README.md at commit 5d7b76f

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.0LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts