| ▲ | Show HN: GoModel – an open-source AI gateway in Go(github.com) | |||||||||||||||||||||||||
| 103 points by santiago-pl 4 hours ago | 31 comments | ||||||||||||||||||||||||||
Hi, I’m Jakub, a solo founder based in Warsaw. I’ve been building GoModel since December with a couple of contributors. It's an open-source AI gateway that sits between your app and model providers like OpenAI, Anthropic or others. I built it for my startup to solve a few problems:
How is it different?
I'm posting now partly because of the recent LiteLLM supply-chain attack. Their team handled it impressively well, but some people are looking at alternatives anyway, and GoModel is one.Website: https://gomodel.enterpilot.io Any feedback is appreciated. | ||||||||||||||||||||||||||
| ▲ | nzoschke an hour ago | parent | next [-] | |||||||||||||||||||||||||
Looks nice, thanks for open sourcing and sharing. I'm all in on Go and integrating AI up and down our systems for https://housecat.com/ and am currently familiar and happy with: https://github.com/boldsoftware/shelley -- full Go-based coding agent with LLM gateway. https://github.com/maragudk/gai -- provides Go interfaces around Anthropic / OpenAI / Google. Adding this to the list as well as bifrost to look into. Any other Go-based AI / LLM tools folks are happy with? I'll second the request to add support for harnesses with subscriptions, specifically Claude Code, into the mix. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | pizzafeelsright an hour ago | parent | prev | next [-] | |||||||||||||||||||||||||
I have written and maintained AI proxies. They are not terribly complex except the inconsistent structure of input and output that changes on each model and provider release. I figure that if there is a not a < 24 hour turn around for new model integration the project is not properly maintained. Governance is the biggest concern at this point - with proper logging, and integration to 3rd party services that provide inspection and DLP type threat mitigation. | ||||||||||||||||||||||||||
| ▲ | crawdog an hour ago | parent | prev | next [-] | |||||||||||||||||||||||||
I wrote a similar golang gateway, with the understanding that having solid API gateway features is important. https://sbproxy.dev - engine is fully open source. Another reason golang is interesting for the gateway is having clear control of the supply chain at compile time. Tools like LiteLLM the supply chain attacks can have more impact at runtime, where the compiled binary helps. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | glerk 42 minutes ago | parent | prev | next [-] | |||||||||||||||||||||||||
This is awesome work, thanks for sharing! How do you plan on keeping up with upstream changes from the API providers? I have implemented something similar, and the biggest issue I have faced with go is that providers don’t usually have sdk’s (compared to javascript and python), and there is work involved in staying up to date at each release. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | mosselman an hour ago | parent | prev | next [-] | |||||||||||||||||||||||||
Does this have a unified API? In playing around with some of these, including unified libraries to work with various providers, I've found you are, at some point, still forced to do provider-specific works for things such as setting temperatures, setting reasoning effort, setting tool choice modes, etc. What I'd like is for a proxy or library to provide a truly unified API where it will really let me integrate once and then never have to bother with provider quirks myself. Also, are you also planning on doing an open-source rug pull like so many projects out there, including litellm? | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | sowbug an hour ago | parent | prev | next [-] | |||||||||||||||||||||||||
Are these kinds of libraries a temporary phenomenon? It strikes me as weird that providers haven't settled on a single API by now. Of course they aren't interested in making it easier for customers to switch away from them, but if a proprietary API was a critical part of your business plan, you probably weren't going to make it anyway. (I'm asking only about the compatibility layer; the other tracking features would be useful even if there were only one cloud LLM API.) | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | driese 2 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||
Nice one! Let's say I'm serving local models via vllm (because ollama comes with huge performance hits), how would I implement that in gomodel? | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | pjmlp 3 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||
Expectable, given that LiteLLM seems to be implemented in Python. However kudos for the project, we need more alternatives in compiled languages. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | Talderigi 3 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||
Curious how the semantic caching layer works.. are you embedding requests on the gateway side and doing a vector similarity lookup before proxying? And if so, how do you handle cache invalidation when the underlying model changes or gets updated? | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | indigodaddy 2 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||
Any plans for AI provider subscription compatibility? Eg ChatGPT, GH Copilot etc ? (Ala opencode) | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | tahosin 3 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||
This is really useful. I've been building an AI platform (HOCKS AI) where I route different tasks to different providers — free OpenRouter models for chat/code gen, Gemini for vision tasks. The biggest pain point has been exactly what you describe: switching models without changing app code. One thing I'd love to see is built-in cost tracking per model/route. When you're mixing free and paid models, knowing exactly where your spend goes is critical. Do you have plans for that in the dashboard? | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | rvz 2 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||
I don't see any significant advantage over mature routers like Bifrost. Are there even any benchmarks? | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | anilgulecha 3 hours ago | parent | prev [-] | |||||||||||||||||||||||||
how does this compare to bifrost - another golang router? | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||