Unofficial Hacker News companion — get notified on comment replies, and more.

Show HN: GoModel – an open-source AI gateway – LiteLLM alternative (opens external site)

67 points by santiago-pl 3 days ago gomodel.enterpilot.io 38 comments (opens Hacker News) Vote (opens Hacker News)

Comments loaded (37)

  1. How does something like this compare to agentgateway, which is built on envoy?
    Replies (3)
    1. TBH I haven't tried agentgateway myself. It looks like it is a competing project. Inference gateways (that's what I call this category) are usually quite complex and the devil is in the details. As far as I investigated GoModel stands-out with real time logs (no database read is needed to get real time data). On the other hand we don't support A2A yet.
    2. We picked GoModel over AgentGateway because of Envoy and the excessive stuff you need to get just to have things up and running. GoModel is a single binary/container and has so many more features. We use it for provider failover and traces/cost tracking.

      The CNCF and related project groupings have lost their luster for me. Trying to shoehorn everything into k8s lingo is not the way (thinking of the overuse of CRDs). Argo* is another one we are shelving for simpler and more reliable alternatives.

      I also use GoModel virtual models [1] at home for my local experiments. It makes swapping out the model(s) and quants easy because every downstream tool has stable names. Also, as others have said, the visibility into request details is super helpful when debugging harnesses and the like.

      [1] https://gomodel.enterpilot.io/docs/features/virtual-models

      Replies (1)
      1. Agentgateway does not use Envoy at all and has the same single binary deployment model.
        Replies (1)
        1. When we looked at gateways, Envoys name was all around AgentGateway, maybe things have changed.

          The installation and architecture docs still talk about multiple pieces, and use CRDs all over the place. I prefer a single configuration file

          https://agentgateway.dev/docs/kubernetes/latest/documentatio...

          https://agentgateway.dev/docs/kubernetes/latest/documentatio...

          https://github.com/agentgateway/agentgateway/tree/main/contr...

          Replies (1)
          1. Yep there are two modes - Kubernetes controller mode and "standalone" single binary + single config file https://agentgateway.dev/docs/standalone/. This is a relatively newer mode if you looked a while back.

            The project used to be associated with http://kgateway.dev/ (which is an Envoy project) but was split; it never actually used Envoy though.

            Replies (1)
            1. We run GoModel in Kubernetes, without all the Kubernetes bloat (CRDs have become overused in the k8s ecosystem)
    3. FWIW Agentgateway is not built on Envoy but its own custom proxy.

      In general I would say there is a lot of overlap in the target use cases (LLM/MCP proxy) while Agentgateway has some broader use cases as well (running local models, non-AI workloads, etc). I'll let you/others decide which fills the use cases better so I don't take over this post to pitch Agentgateway.

      (I work on Agentgateway)

      Replies (1)
      1. Thank you for the correction! I will check Agentgateway out and publish a fair comparison with GoModel soon.

        And thanks for not turning this into a pitch :)

  2. I've been following this project ever since the previous post. And while I won't use it right now, I'll keep an eye on this, once I have more local AI set up and I use more providers :)
    Replies (1)
    1. That's encouraging - thank you! Feel free to share your thoughts once you give it a try
  3. Shameless plug, I didn't know your existed and had been working on basically similar project called Relay, it's possibly a little larger image but has some other bells and whistles like a model I trained to categorize each request, plus laya capability etc https://github.com/anchorshell/relay

    Honestly it doesn't really matter that much whichever gateway someone uses. It's SO HELPFUL in terms of analyzing agentic harness issues, just to be open up an exact llm call and see what the hell did my agent send the llm just now? oh - right thats why that weird answer happened. let's fix it.

    Replies (1)
    1. Discoverability is something I struggle with having a $0 marketing budget.

      I haven't seen Relay either :)

      I update GoModel almost daily to let other people stay focused on their core business. Is there any other low cost way to make an open-source project credible?

  4. How does it compare to Bifrost? I've been using that for a while, and I've been rather happy with it.

    https://github.com/maximhq/bifrost

    Replies (1)
    1. There is a detailed comparison on GoModel's website: https://gomodel.enterpilot.io/vs/bifrost/

      In short - GoModel is faster (latency overhead), consumes 4x less memory, and gives you more features in the open-source version (for example - Guardrails). Honestly I believe that in most cases those things don't matter. On the other hand - there are some cases when it matters for example when you want to use AI gateway in robotics, on edge devices with limited resources.

      Replies (1)
      1. I didn't know GoModel existed, so we procured Bifrost. I was horrified when I realised they don't even have basic user management in the OSS version. Regret the decision, but maybe we'll move on once the license is finished.
  5. Isn't LiteLLM moving to Rust? https://docs.litellm.ai/rust-migration.
    Replies (2)
    1. Yes, they are.

      As far as I understand, they promised to rewrite it this year: https://docs.litellm.ai/blog/litellm-rust-launch (fun fact - they targeted today - 1st Dec)

      So far they have two versions (one repository):

      - LiteLLM in Python - the popular and fully functional

      - LiteLLM Rust - not fully functional (no MCP servers, Guardrails, it serves only /messages API - AFAIK)

      I believe it's still - even with AI - really hard to rewrite this type of software.

      Replies (1)
      1. Python to Go (in my limited experience) is almost a single Claude prompt. Sometimes simple is nice to have.
        Replies (1)
        1. Translating the code is the easy part I believe.

          The hard part is to simplify it.

          By "rewrite" I meant both.

    2. LiteLLM has been breached multiple times. Once an attacker has successfully compromised an org, they and others will return, e.g. Lastpass. Best to avoid.
      Replies (1)
      1. I tried to use LiteLLM back in 2025 and it didn't meet my quality requirements. That's how GoModel was born.
  6. Hey just wanted to say thanks! Sounds up gomodel a few weeks ago and I've been very happy with it.
    Replies (1)
    1. You're welcome - I enjoy building it!

      Feel free to share any feedback, suggestions or ideas on how to make GoModel better :)

  7. Hi, congratulations on your growth. As far as my knowledge umm providers cache kinda differently like claude defaults at 5 mins and openai longer and cache occurs on hitting same prefix. If by chance it falls back or switches mid session whole cache lost and next req is costly. So umm gomodel keeps a session pinned to one provider or show cache hit rate per route?
    Replies (1)
    1. That's correct - cache lifetime differs per provider.

      Today GoModel has session affinity for load balancing (6 hour TTL by default) and api keys rotation.

      As for fallback:

      1) Yes, you lose the prompt caching in this case - but usually it's better to keep your app/agent working than to save money here.

      2) Actually your comment inspired me to add this... As of today the session is not sticky to the fallback target - but I think it's reasonable to do it by default (with an option to opt-out)

      I'd like to mention that we also have a more advanced provider cache awareness for the early Pro/commercial features which can save you money - prompt compression / intelligent routing.

      Replies (1)
      1. Umm yeah sticky fallback by default sounds right. But when a fallback happens can you show the cost of a lost cache. So people can see their loss. And a small question, does it send a request to the provider where the conversation prefix is already cached?
        Replies (1)
        1. Yes, it sends the request to the provider where it was cached.

          The load-balancing strategy (failover included) doesn't know whether the cache is still warm or not.

          The idea of showing cost of a lost cache is sound. I need to think about how to show it. The data is already there.

  8. cool!
  9. please consider updating HN banner on the repo pointing to the latest HN post (this one). it currently points to an old one
  10. 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?

    Replies (1)
    1. Not for a single request, but I have a couple of bash scripts to switch on and off the gateway easily. More and more often I ask an AI agent to switch it for me.
  11. Why would I use this over bifrost?
    Replies (1)
    1. If you'd like to use guardrails without having to sign up for enterprise may be one reason

      https://docs.getbifrost.ai/deployment-guides/config-json/gua...

      I'm not familiar with Bifrost, but from my 10m on their web pages, my impression is that they lock a lot of everyday user features being the enterprise paywall. If I look at GoModel's, they are more enterprise-only oriented

      https://gomodel.enterpilot.io/docs/pro/overview

  12. Interesting project, I'll definitely need to check it out further. One thing I've been looking for (that other gateways don't support as far as I have seen) is the ability to support the Claude managed settings API (https://platform.claude.com/docs/en/api/beta/organization/cl...) so as to not lose the functionality around organizational managed settings for Claude Code. Wanted to see if you had that or on the roadmap by any chance?
    Replies (1)
    1. Thank you. It's not yet there - added to the roadmap: https://gomodel.enterpilot.io/docs/about/roadmap#commercial-...
  13. I was looking for this for a while but the problem is most agents don't know this project exists so I was getting the usual: Portkey, LiteLLM and they weren't a good fit. I am glad I checked HackerNews!

1 comment is not loaded here. Read them on Hacker News ↗.