GoModel is an MIT-licensed AI gateway written in Go, designed to give applications one OpenAI- and Anthropic-compatible endpoint for many cloud and local model providers. Instead of embedding provider selection and operational logic in application code, teams can route requests through the gateway and switch models by changing configuration or aliases. It supports 38 providers, including OpenAI, Anthropic, Gemini, Bedrock, Groq, Ollama, and vLLM, and works with existing SDKs by changing their base URL. Its single-binary deployment includes an admin dashboard, starts with SQLite, and can use PostgreSQL or MongoDB as needs grow.
The gateway applies configurable workflows for caching, guardrails, budgets, rate limits, usage tracking, and auditing, with policies scoped to a provider, model, or user path. It also offers retries, circuit breakers, and failover, while recording routes and provider attempts to make incidents traceable. Exact-match and semantic caching aim to reduce duplicate inference costs; dashboards attribute token use and spending to teams, tenants, models, or features. GoModel reports a September 2026 benchmark against LiteLLM showing 2.22 ms median latency, 4,498 requests per second, 73.6 MB peak memory, and a 0.81-second cold start, compared with LiteLLM’s slower results in each measure. The stated tradeoff is that LiteLLM currently supports more providers, while GoModel emphasizes a lighter runtime and simpler deployment.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.