This product was not featured by Product Hunt yet. It will not be visible on their landing page and won't be ranked (cannot win product of the day regardless of upvotes).
TokenProxy
Stop LLM overspending with a high-speed Rust gateway 🦀
Stop LLM bill shock! 💸 TokenProxy is a high-speed Rust gateway to control AI costs in real-time. Key features: ✅ Real-time Hard Limits: Set budgets & stop overspending instantly. 🔑 BYOK: Use your own OpenAI & Claude keys securely. 👥 Granular Control: Unique Proxy-Keys with individual limits for devs/projects. 🔄 Unified API: Access GPT-4 & Claude 3.5 via one OpenAI-compatible endpoint. ⚡ Rust-powered: Zero-latency overhead. Take control of your AI infra! 🦀
Hi Product Hunt! 👋
I’m a Senior Software Engineer with a background in high-performance systems (including fintech and crypto). Over the last year, I’ve seen way too many 'bill shock' stories where a simple coding error or an unmonitored test led to thousands of dollars in LLM overspending.
I built TokenProxy to solve this once and for all.
I chose Rust for the core because when you are proxying sensitive API keys and production traffic, you can't compromise on speed or memory safety. TokenProxy adds sub-millisecond overhead while giving you a 'kill switch' for your budget.
Why I think you’ll love it:
• Real-time enforcement: Unlike provider dashboards that can lag, we intercept and count tokens instantly.
• Bring Your Own Key (BYOK): You keep your keys, we just provide the control layer.
• Granular limits: You can finally give your junior devs or CI/CD pipelines their own strictly limited API keys.
• Claude + OpenAI: Switch between models without rewriting your integration.
We are currently in the early access phase, building out the final dashboard features. I’d love to hear your thoughts on what other cost-control features you'd like to see!
I'll be here all day to answer your questions about the architecture or the roadmap. 🦀
Building TokenProxy: Architecture > Everything else! 🛠️🦀
The real challenge with AI proxies isn't forwarding requests—it's managing state and limits at 10k+ RPS without breaking a sweat. Just knocked out two big pieces of the puzzle:
1️⃣ Partition Cleanup Worker: No more database bloat. Postgres partitions now rotate and clean up automatically.
2️⃣ Supercharged User Context: Every limit, option, and key now loads in one swift go.
Combined with my Redis + Bitcode cache service, our overhead is practically non-existent. ⚡
What's next?
• AES-GCM encryption layer for provider keys.
• The "catch-all" handler for seamless API mapping.
How I scaled our AI model pricing update engine 10x with zero infrastructure cost 🦀🚀
AI moves fast—model prices change by the minute. Our challenge? Building a worker job to get all supported model pricing data that tracks thousands of models, but keeping it running on a tiny $5/month VPS (2GB RAM).
Traditional INSERT statements were killing our performance. Our server was constantly maxing out CPU and memory, and we were falling behind the data stream.
So, I spent today some time to dive into the PostgreSQL Binary Protocol. Instead of using slow, text-based SQL commands, I wrote a custom Rust procedural macro that streams data directly to the database buffer using the COPY FROM STDIN command.
The Results?
✅ 90% lower CPU usage during data ingests.
✅ Minimal Memory Footprint: The 2GB RAM instance doesn’t even sweat anymore.
✅ Seamless 100k+ Row Batches: We can now process huge data dumps instantly.
It will be useful as well when inserting logs to database.
Scaling doesn’t always require a bigger cloud budget. Sometimes, it just requires replacing comfortable abstractions with raw, byte-level efficiency.
Would love to hear from other makers—what’s the most satisfying "over-engineered" optimization you’ve done to keep your burn rate low?
Most LLM proxies add significant latency because they are built on interpreted languages or have complex infrastructure requirements. TokenProxy is different. We built it for sub-millisecond overhead:
• Rust Core: Leveraging Axum and Tokio for non-blocking, high-concurrency request handling.
• Postgres Advisory Locks: We ditched Redis for quota management. By using pg_advisory_xact_lock, we ensure atomic, race-condition-free credit updates directly in the database with zero extra network hops.
• Binary COPY Batching: Our logging engine doesn't do row-by-row inserts. It buffers logs and flushes them using the Postgres Binary COPY protocol, triggered by time, count, or size.
• Unified Streaming: A provider-agnostic engine that transforms SSE (Server-Sent Events) from Claude or Groq into a standard OpenAI-compatible stream on the fly.
About TokenProxy on Product Hunt
“Stop LLM overspending with a high-speed Rust gateway 🦀”
TokenProxy was submitted on Product Hunt and earned 0 upvotes and 4 comments, placing #149 on the daily leaderboard. Stop LLM bill shock! 💸 TokenProxy is a high-speed Rust gateway to control AI costs in real-time. Key features: ✅ Real-time Hard Limits: Set budgets & stop overspending instantly. 🔑 BYOK: Use your own OpenAI & Claude keys securely. 👥 Granular Control: Unique Proxy-Keys with individual limits for devs/projects. 🔄 Unified API: Access GPT-4 & Claude 3.5 via one OpenAI-compatible endpoint. ⚡ Rust-powered: Zero-latency overhead. Take control of your AI infra! 🦀
TokenProxy was featured in SaaS (43k followers), Developer Tools (515.5k followers) and Artificial Intelligence (473.1k followers) on Product Hunt. Together, these topics include over 229.4k products, making this a competitive space to launch in.
Who hunted TokenProxy?
TokenProxy was hunted by Richárd Bertók. A “hunter” on Product Hunt is the community member who submits a product to the platform — uploading the images, the link, and tagging the makers behind it. Hunters typically write the first comment explaining why a product is worth attention, and their followers are notified the moment they post. Around 79% of featured launches on Product Hunt are self-hunted by their makers, but a well-known hunter still acts as a signal of quality to the rest of the community. See the full all-time top hunters leaderboard to discover who is shaping the Product Hunt ecosystem.
Want to see how TokenProxy stacked up against nearby launches in real time? Check out the live launch dashboard for upvote speed charts, proximity comparisons, and more analytics.