ALL INTELLIGENCE
Hacker News AIT2·Tools

GoModel Launches Open-Source AI Gateway with 23 MB Image

Original title: Show HN: GoModel – an open-source AI gateway – LiteLLM alternative
58AI Score

GoModel is an MIT-licensed AI gateway written in Go that exposes a single OpenAI- and Anthropic-compatible endpoint, handling provider routing, model aliases, caching, failover, budgets, rate limits, audit logs and usage tracking in one small binary with an embedded admin dashboard. The author claims a 17x smaller Docker image and 26x lower p50 gateway latency than LiteLLM, with support for 38 providers plus local models via Ollama, vLLM and LM Studio.

Related Entities

Full Report

GoModel FAQ

Common questions about deployment, provider switching, GoModel as a LiteLLM alternative, local models via Ollama, vLLM, and LM Studio, caching, usage tracking, and the roadmap.

What is GoModel?

GoModel is an open-source AI gateway written in Go and released under the MIT license. Your apps talk to one OpenAI- and Anthropic-compatible endpoint, and the gateway handles provider routing, model aliases, scoped workflows, caching, failover, budgets, rate limits, audit logs, and usage tracking behind it. It ships as a single small binary with an embedded admin dashboard, so there is nothing else to deploy.

Can I keep using the OpenAI or Anthropic SDK with GoModel?

Yes - in most cases you only change the base URL. GoModel serves the OpenAI API (/v1/chat/completions, /v1/responses, embeddings, files, batches) and the Anthropic Messages API (/v1/messages) natively, so the OpenAI SDK, the Anthropic SDK, and plain HTTP clients all keep working while routing, caching, and usage visibility move into the gateway.

Which AI providers and models does GoModel support?

38 providers, including OpenAI, Anthropic, Google Gemini and Vertex AI, Azure OpenAI, Amazon Bedrock, OpenRouter, Cohere, Groq, xAI, DeepSeek, and open models through Ollama, vLLM, SGLang, and llama.cpp. GoModel reads hundreds of models from live provider catalogs. You can register multiple API keys per provider for round-robin rotation, and any other OpenAI-compatible backend can join as its own provider instance.

How does GoModel compare to LiteLLM?

In the reproducible September 2026 benchmark on the same AWS box, GoModel answered in 2.22 ms at the median vs 55.76 ms, sustained 4,498 req/s vs 220, peaked at 73.6 MB of RAM vs 1,488 MB, and cold-started in 0.81 s vs 26.77 s. LiteLLM still supports more providers today - the trade-off is runtime footprint on the request path, which matters most at high volume, on small machines, or in front of fast local models.

What do scoped workflows control?

A workflow toggles cache, audit logging, usage tracking, budgets, guardrails, and failover per provider, model, or user path - the most specific matching scope wins. Workflow versions are immutable, so you can see exactly which policy a given request ran under. One gateway, different runtime policies for different workloads.

Does GoModel cache LLM responses?

Yes, two ways. Exact-match caching returns identical non-streaming requests straight from the gateway - no provider call, no cost. Semantic caching goes further by matching similar prompts, backed by Qdrant, pgvector, Pinecone, or Weaviate. Cache lookups run after alias and workflow resolution, so policy decisions still apply, and cache hits are visible in the dashboard.

Can I track AI usage and cost per team, tenant, or feature?

Yes. Tag requests with X-GoModel-User-Path or labels from virtual API keys, and GoModel records tokens and dollar cost per request against that path. The dashboard breaks spend down by team, tenant, model, and label, pricing overrides keep numbers accurate when your contract differs from list prices, and budgets enforce hard spend limits before a request is ever dispatched.

What happens when a provider goes down?

GoModel retries with backoff, trips a circuit breaker on repeated failures, and fails over to the next configured model or provider - skipping routes that are rate-limited or saturated. Every attempt lands in the audit log with the resolved route, so an outage becomes a routing event you can reconstruct rather than a mystery.

Can I use GoModel with local models via vLLM, Ollama, or LM Studio?

Yes - point OLLAMA_BASE_URL or VLLM_BASE_URL at your server and local models sit behind the same endpoint as the cloud providers. LM Studio, llama.cpp, and similar servers connect the same way through their OpenAI-compatible endpoints. Because the gateway itself is a 21 MB image that peaks at about 74 MB of RAM under load, it is cheap enough to run next to the models - on a laptop, an edge box, or a sidecar.

How do I deploy and operate GoModel?

The fastest path is one docker run; Docker Compose, Kubernetes with the Helm chart, and the plain binary all work too. Storage starts on SQLite with zero setup and moves to PostgreSQL or MongoDB when traffic and retention grow. Operations run through the embedded admin dashboard and API, with Prometheus /metrics and health endpoints for your existing monitoring.

What shipped in GoModel v0.2.0 and what comes next?

The whole v0.2.0 scope has shipped: plugins starting with guardrails, hardened custom and response-side guardrails, a reworked testing strategy, OpenTelemetry traces, the full /responses and /conversations lifecycles, Anthropic /messages with count_tokens, budgets per user_path and API key, editable pricing, and prompt cache visibility including the dashboard view. Version 0.3.0 focuses on MCP proxy hardening, simpler configuration and UI, a passthrough rework for every provider, Gemini native API ingress, price correctness, mid-stream failover, failover and streaming for the image endpoints, better audio and video support, plugins hardening, dashboard customization, and a workflows rework. Intelligent routing, context window compression, OIDC SSO, egress proxy pools, and secret manager vaults have shipped as GoModel Pro features.

What is GoModel Pro and how is it priced?

GoModel Pro is the commercial distribution of GoModel: the same MIT gateway plus licensed prompt compression (2-20% fewer input tokens on agentic traffic), OIDC single sign-on, per-child quota templates, intelligent routing (beta), and egress proxy pools (beta). It is licensed per company with nothing counted, and the price is set on a short discovery call - book one with the founder. You can try every Pro feature free for 21 days first, with no credit card, at the trial page. The license is a signed token validated offline, with no network call, and your key arrives by email within 24 hours.


作者发帖说明(HN):

In April 2026 I launched GoModel on HN. GoModel was 4-month-old project those days and nobody used it in prod. I'm grateful for the warm and enthusiastic reactions.

Today GoModel has 145K+ docker pulls, 45+ contributors. Some companies decided to migrate from LiteLLM or OmniRoute.

Wait - what is AI gateway ? It's software for governing AI - you route all your traffic through it, and you can measure every dollar spend, observe every request, set-up budgets, rate limits, or block anything with guardrails. Also, with an AI gateway you can talk to all providers / models with one dialect - OpenAI-compatible API or Anthropic-compatible API.

What did we ship since April ? MCP proxy, guardrails, plugin system, messages/Anthropic-compatible api, rate limits, LiteLLM migration command, 25+ new providers, early enterprise version, and more.

This year: - LiteLLM was compromised two times - PortkeyAI stopped maintaining the open-source project after being acquired by Palo Alto Networks - TensorZero stopped operating and return the money to investors

I believe that there is still a huge need for a fast, reliable, AI gateway on the market. Also, I believe that GoModel is the fastest AI gateway on the market with a reasonable set of features as of today. I run an open-source self-reproducible benchmark. Some people ask about it during my first Show HN post (link below).

In comparison to LiteLLM:

  • 17x smaller docker image (23 MB vs 396 MB)

  • 26x lower p50 latency (gateway overhead)

...