An unofficial, read-only Hacker News reader.

Moat: OpenRouter replacement (opens external site)

325 points by amanverasia 3 days ago | commandcode.ai | 163 comments on HN

View full thread · View on Hacker News

Comment thread (6)

  1. I recently tried the french provider Eden as a dropin replacement for openrouter. Turns out pi doesnt support them and the devs dont seem to be in a hurry to address this.

    My point is, despite everyone using the same openai API format switching to a new router is not completely frictionless.

    Replies (2)
    1. If only there was some way to quickly write an adapter and PR it.
      Replies (1)
      1. If only eraendil cared

            https://github.com/earendil-works/pi/issues/6403
    2. > pi doesnt support them

      Oh My Pi may have support. But also you can have Pi extend itself with that support. If you're starting from zero, Get ChatGPT or another provider with web chat to bootstrap the extension.

      Someone will eventually make a "router bootstrapper" recipe (if there isn't already) so anyone can generate code for a new router specific to their agent.

      Replies (1)
      1. I think the router format needs to be standardised. The openai chat API doesnt work great for routers.

        I haven't tested oh-my-pi, maybe it works. Can be a last resort (but I prefer the simplicity of pi).

        Replies (1)
        1. Oh I don't mean bootstrap a full router service; just the connection to any. Very simple because every router worth using implements the OpenAI and/or Anthropic API specs. The only thing that's really "custom" about a router that's relevant to base agent functionality is how to fetch and parse the list of models.

          A router service too should be fairly simple to setup though, as it's just a map of inference sources. The real work is in the deals struck with all those sources to get tokens priced so they can earn.