SML Gate
Intercepts, distills, and routes prompts locally with Ollama to cut token costs and protect monthly quota for cloud LLMs.
SML Gate (small-language-model-gate) serves as a local AI routing and pre-processing layer that intelligently handles prompts before they reach expensive subscription or API-based cloud models. By leveraging a small, free local model (like those run with Ollama), it compresses context, resolves simple and repetitive tasks locally, and meters cloud API usage. This strategy significantly reduces your cloud LLM consumption, saving costs, and safeguarding your monthly quota by only routing complex queries to powerful, paid models.
主要功能
01Local AI routing and pre-processing for LLMs
02Acts as an MCP (Model Context Protocol) server for client integration
030 GitHub stars
04Functions as an OpenAI and Anthropic API compatible proxy
05Context compression and prompt distillation for cost reduction
06Distinguishes between subscription-based and pay-per-token cloud models
使用案例
01Intercept and resolve simple prompts locally for clients allowing API base URL overrides
02Compress tool and skill payloads before they reach your editor's subscription model via MCP
03Reduce token costs and protect monthly quota for cloud LLMs in agentic workflows