Feed aggregator

Show HN: OpenGem – A Load-Balanced Gemini API Proxy (No API Key Required)

Hacker News - Sun, 02/22/2026 - 10:09am

Hi HN! I built OpenGem, an open-source, load-balanced proxy for the Gemini API that requires absolutely no paid API keys.

GitHub: https://github.com/arifozgun/OpenGem

The Context: Like many developers, I was constantly hitting "429 Quota Exceeded" errors while building AI agents and processing large payloads on free tiers. I wanted to build freely without calculating API costs for every test request.

How it works: I reverse-engineered the official Gemini CLI authentication to get standard API access. However, a single free Google account quota depletes quickly. To solve this, I built a Smart Load Balancer at the core of OpenGem.

What it does: - You connect multiple idle/free Google accounts to the dashboard via OAuth. - OpenGem acts as a standard endpoint (`POST /v1beta/models/{model}`). - It routes traffic to the least-used account. If an account hits a real 429 quota limit, OpenGem instantly detects it, puts that account on a 60-minute cooldown, and seamlessly retries with the next available account. It differentiates between simple RPM bursts and actual limits.

Tech specs: - Fully compatible with official Google SDKs (`@google/genai`), LangChain, and standard SSE streaming (no broken [DONE] chunks). - Supports native "tools" (Function Calling) for agentic workflows. - Raised payload limit to 50MB for massive contexts. - AES-256-GCM encryption for all sensitive configs and OAuth tokens at rest. - Toggle between Firebase Firestore or a fully offline Local JSON database.

It’s strictly for educational purposes and personal research to bypass the friction of testing/prototyping. The entire project is MIT licensed.

I’m currently running it with my own side projects and it handles heavy agent tasks flawlessly. I would love any feedback on the load balancing logic, security implementations, or just general thoughts!

Comments URL: https://news.ycombinator.com/item?id=47111607

Points: 1

# Comments: 0

Categories: Hacker News

Web Verbs

Hacker News - Sun, 02/22/2026 - 10:09am
Categories: Hacker News

FizzBuzz in Fortran 1

Hacker News - Sun, 02/22/2026 - 10:06am
Categories: Hacker News

Ask HN: How to get Codex to stop coding so defensively?

Hacker News - Sun, 02/22/2026 - 10:05am

I primarily use typescript, and Codex tries and makes all fields in a type optional even though its obvious that optionality is not needed. It also uses tons of try / catches, swallows the errors and returns null / false from functions.

What I want is for it to use asserts instead of optionals, for it to let errors propagate.

What I have tried so far: - Specify my preferences in AGENTS.md file many times, yet it doesnt seem to make any difference in this aspect. - The rest of my code base does use asserts, and does not have unnecessary optionals, and yet it doesn't pick up that pattern.

What does work is that once it's done coding, I specifically tell it to go through the code and remove unnecessary optionals, and add asserts instead of defensive if conditions. But here too, I have to tell it to do so multiple times.

Any ideas to solve this would help. Thanks!

Comments URL: https://news.ycombinator.com/item?id=47111572

Points: 1

# Comments: 0

Categories: Hacker News

What happens at 60% unemployment rate?

Hacker News - Sun, 02/22/2026 - 10:00am

Article URL: https://gruhn.me/blog/2026-02-22/

Comments URL: https://news.ycombinator.com/item?id=47111517

Points: 3

# Comments: 2

Categories: Hacker News

Show HN: Curb – Social Parking Solutions

Hacker News - Sun, 02/22/2026 - 9:59am

The first community of drivers helping each other park smarter and easier, anywhere.

Comments URL: https://news.ycombinator.com/item?id=47111507

Points: 1

# Comments: 0

Categories: Hacker News

Money Transfer in Chat

Hacker News - Sun, 02/22/2026 - 9:21am

Article URL: https://s2transfer.xyz

Comments URL: https://news.ycombinator.com/item?id=47111220

Points: 1

# Comments: 1

Categories: Hacker News

Git's Magic Files

Hacker News - Sun, 02/22/2026 - 9:21am
Categories: Hacker News

Show HN: A virtual Zen garden for vibe coding

Hacker News - Sun, 02/22/2026 - 9:18am

I completely vibe coded this digital Zen garden to have something to do for the 2 minute breaks that happen when you wait for your AI agent. 10k+ lines JS, 5k+ lines CSS and 0 idea how it really works besides main account login logic and stripe integration. Switched from Claude Code to Codex to Gemini and back to Codex which I feel is the most capable cli coding agent right now. Can do 5+ mins of work without going off rails consistently. This project was made just over 2 weeks and I certainly am feeling the AGI when working with SOTA coding tools

Comments URL: https://news.ycombinator.com/item?id=47111194

Points: 1

# Comments: 0

Categories: Hacker News

Pages