CacheFlow AI - AI API Cost Optimizer

Description
CacheFlow AI is a local proxy that sits between your app and AI APIs (OpenAI, Claude, Gemini), automatically reducing your costs by 60-85% without changing your code or sacrificing quality.
How it works: 1. Smart Caching — Same question = instant answer at $0. SQLite-based, zero dependencies. 2. Free API Routing — Simple tasks auto-route to Groq, Cerebras, OpenRouter (70B+ models at $0). 3. Local Model Support — Ollama integration with auto hardware detection (NVIDIA, AMD, Apple Silicon). 4. Prompt Compression — 10-30% token reduction on every request. 5. Real-Time Dashboard — Beautiful dark-themed UI with live savings counter and request logs.
Setup: npm install → npx cacheflow init → npx cacheflow start. Then change one line: baseURL: "http://127.0.0.1:4747/v1"
Includes 30 source files, 8 AI provider integrations, real-time WebSocket dashboard, CLI with init wizard, auto hardware detection, SQLite-based caching + analytics. Node.js 18+. MIT License.
Works with OpenAI SDK, Anthropic SDK, Cursor, LangChain, and any OpenAI-compatible tool.
Features
- Smart caching (SQLite-based exact match) — duplicate requests served instantly at $0 - Free API routing to Groq, Cerebras, OpenRouter, Gemini Free — 70B+ models at $0 - Local model support via Ollama — auto-detects NVIDIA GPU, AMD GPU, Apple Silicon - Prompt compression — 10-30% token reduction per request - Real-time dashboard with live savings counter, request timeline, provider breakdown - OpenAI-compatible API — /v1/chat/completions, /v1/completions, /v1/embeddings, /v1/models - Anthropic Messages API compatibility (/v1/messages) - 8 provider integrations: OpenAI, Anthropic, Gemini, Groq, Cerebras, Ollama, OpenRouter, Gemini Free - CLI: init wizard (auto-detects hardware + API keys), start, stop, status, stats, demo - Cost estimation with per-model pricing for 15+ models (GPT-4o, Claude Sonnet, Gemini Pro, etc.) - Streaming support (SSE) with analytics tracking - Request analytics with detailed stats API - YAML configuration with sensible defaults - Node.js 18+ with ES Modules - Full test suite included - .env.example with all configuration options - MIT License — use however you want ```
Requirements
- Node.js 18 or higher - npm or yarn - No external database needed (SQLite built-in) - Optional: Ollama for local models - Optional: Free API keys (Groq, Cerebras — get at groq.com) - Optional: Paid API keys (OpenAI, Anthropic, Google) ```
Instructions
1. Extract the ZIP file 2. cd Source_Code 3. npm install (or use included node_modules) 4. npx cacheflow init (auto-detects your hardware and API keys) 5. npx cacheflow start (proxy starts on localhost:4747, dashboard on :4748) 6. Change your app's base URL to http://127.0.0.1:4747/v1 7. Open http://localhost:4748 for the real-time dashboard 8. Run: npx cacheflow demo (sends test requests to verify everything works) 9. Run: npx cacheflow status (shows live stats and savings)
For OpenAI SDK: new OpenAI({ baseURL: "http://127.0.0.1:4747/v1" }) For Anthropic SDK: new Anthropic({ baseURL: "http://127.0.0.1:4747/v1" }) For Cursor: Settings → API → Custom API URL → http://127.0.0.1:4747/v1 ```
| Author | eneseserkan |
|---|---|
| Category | Scripts & Code / NodeJS |
| Price | $94 |
| Extended License | $282 |
| First Release | Mar 30, 2026 |
| Last Update | Mar 30, 2026 |
| Files included | .css, .html, JavaScript .js |
Categories
Tags
External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.
Products of the Week.
Submit🥇
STOP GUESSING WHAT TO POST
AI that learns your brand voice and builds a month of consistent, on-brand social content: carousels, posts and hooks that sound like you, not like everyone else's AI.
SaaS · 4,004 views · 35 clicksSaaS · Week 45 · 4,004 views · 35 clicks
🥈
Conversational Backlinks for Busy Founders
Place Backlink Relevant Conversation for your domain across Forums and Conversations
Website · 41,659 views · 222 clicksWebsite · Week 45 · 41,659 views · 222 clicks
🥉
upvote.club
Free Social Media Engagement that Helps Boost Your Content. Upvote Club supports 19 social networks with 100+ engagement actions in one dashboard. Add links to your posts and get free engagement from real users.
SaaS · 39,684 views · 114 clicksSaaS · Week 45 · 39,684 views · 114 clicks
#4
Substack Posting API
Onboard your Agent to Substack. Write Publish on Substack via API
SaaS · 58,712 views · 198 clicksSaaS · Week 45 · 58,712 views · 198 clicks
#5
Seenshot App
Free, Fast, MacOS Screenshot app. Make Screenshot cmd+shift+2 and send it via link
Desktop App · 28,095 views · 122 clicksDesktop App · Week 45 · 28,095 views · 122 clicks
#6
Hand-Placed Backlinks $9.99 per link. Flat rate.
Buy hand-placed forum, Q-A and directory backlinks. Flat $9.99 per link, no subscriptions — you only pay for approved listings.
Website · 3,953 views · 19 clicksWebsite · Week 45 · 3,953 views · 19 clicks
#7
Free Invoice Generator - PDF Invoices in Your Browser, No Sign-Up
A free invoice maker for freelancers and small businesses: fill in the invoice, check the live preview, and download a PDF that looks exactly like it. Any currency, tax per item, three templates, no sign-up, and nothing leaves your device.
2,630 views · 17 clicksWeek 45 · 2,630 views · 17 clicks
#8
Merge PDF Files Free - Combine PDFs in Your Browser, No Upload
A free PDF merger for office workers, students, and freelancers: combine PDFs and images into one file in the browser, reorder files and pages, pick page ranges, keep bookmarks, and open password-protected PDFs. Nothing is uploaded, no sign-up, no watermark.
2,446 views · 13 clicksWeek 45 · 2,446 views · 13 clicks