← Tue, Dec 1 digest

Show HN: GoModel – an open-source AI gateway – LiteLLM alternative

read article ↗ hn thread ↗

GoModel is an open-source, high-performance AI gateway written in Go that provides multi-provider routing, caching, automatic failover, and audit logs as a LiteLLM alternative.

summary is enough The announcement details a lightweight Go-based AI gateway alternative, though the core features can be quickly grasped from the summary.

summary

GoModel is a single-binary, open-source AI gateway designed to decouple application code from specific LLM providers. It handles routing across 39 providers, virtual models, exact and semantic caching, automatic failover, budgets, and detailed audit logs. Benchmarks highlight low memory usage and high request throughput compared to Python-based alternatives like LiteLLM. The project creator actively engages with the community, noting advantages particularly for edge devices, robotics, and debugging agent harnesses.

key points

  1. Written in Go as a single binary, GoModel achieves significantly lower memory usage and latency overhead than Python-based alternatives like LiteLLM.
  2. Features include routing across 39 providers, virtual model aliases, automatic failover with circuit breakers, and per-key or per-team budgeting.
  3. Provides dual-layer caching alongside detailed audit logs that capture resolved routes and request metadata for debugging.

who should read it

Backend engineers and AI application developers looking for a self-hosted, lightweight proxy to manage LLM routing and budgets.

discussion warm

consensus

Commenters praise the project for its low resource footprint and note that detailed request logging is invaluable for debugging agent harnesses and tracking down drifted system prompts.

pushback

Some users question how GoModel compares to alternative gateways like Bifrost or AgentGateway, or discuss the complexities of prompt caching persistence during provider failovers.

best comment by honkliu ↗

The point about opening up an exact LLM call to debug agent harnesses is the underrated one. Most of the pain I've hit building agent tooling wasn't model quality, it was not being able to see what the harness actually sent - a stale tool schema, context that got truncated, a system prompt that drifted between turns. A gateway that logs the real request is worth more than most eval frameworks.

Curious how you handle the case where the gateway itself becomes the thing you're debugging. Do you have a way to bypass it for a single request without changing client config?

It highlights that the primary utility of an AI gateway for agent developers is runtime visibility into truncated contexts rather than just provider routing.

Generated by an LLM from the article and thread. Check the sources before relying on it.