Dev shares self-built AI Gateway for cost tracking
migsperez · reddit · 2026-08-17
A developer shared a custom AI API gateway system designed to centralize provider management, track token usage and costs, and log all requests. Key features include:
- Unified Endpoint: Configure IDEs/apps once; switch models via the gateway.
- Cost Control: Disable expensive models to prevent accidental usage.
- Self-hosted: Functional design prioritized over aesthetics; Docker-ready.
The author is gauging interest before open-sourcing it.
More from coding & agent
- GPT-5.6 Sol Can Now Delegate to Luna Without Starting New Threads — JeremyNguyenPhD · 2026-08-17
- Run Hermes Agent on Grok Bot: Cross-Model Adversarial Reviews — Teknium · 2026-08-17
- Dev complains about OpenAI Sol rate limits vs Luna — iamrobotbear · 2026-08-17
- Dev asks for pricing advice on Google Apps Script label automation tool — Responsible-Box-4905 · 2026-08-17
- Leaked workflow reveals how big studios make $2M AI movies with Seedance 2.5 on Higgsfield — EXM7777 · 2026-08-17
- Teknium to update Hermes for GPT-5.6 support — Teknium · 2026-08-17