And isn't OpenRouter already open source?
OpenRouter isn't open source that I know of, but there are open source things similar like Litellm.