---
title: "I spent ~4.5 months building a free, self-hosted AI gateway: one endpoint for 237 providers (90+ free), auto-fallback, and a token-compression pipeline (MIT) — Stuff That Spins"
description: "Sharing an open-source project I've put ~4.5 months into (disclosure: I'm the maintainer; per the self-advertisement rule I'm keeping the link in the first comment and making this post substantive). It started from two problems I hit daily: AI runs dying on a provider rate limit, and burning thousa…"
	canonical: "https://stuffthatspins.com/spin/i-spent-45-months-building-a-free-self-hosted-ai-gateway-one-endpoint-for-237-providers-90-free-auto-fallback-and-a-toke"
html: "https://stuffthatspins.com/spin/i-spent-45-months-building-a-free-self-hosted-ai-gateway-one-endpoint-for-237-providers-90-free-auto-fallback-and-a-toke"
json: "https://stuffthatspins.com/spin/i-spent-45-months-building-a-free-self-hosted-ai-gateway-one-endpoint-for-237-providers-90-free-auto-fallback-and-a-toke.json"
markdown: "https://stuffthatspins.com/spin/i-spent-45-months-building-a-free-self-hosted-ai-gateway-one-endpoint-for-237-providers-90-free-auto-fallback-and-a-toke.md"
keywords: ["SpinGraph", "spin analysis", "GEO"]
date: "2026-07-02T17:32:12+00:00"
modified: "2026-07-02T22:00:48.43889+00:00"
json_ld: |
  {"@context":"https://schema.org","@graph":[{"@type":"NewsArticle","@id":"https://stuffthatspins.com/spin/i-spent-45-months-building-a-free-self-hosted-ai-gateway-one-endpoint-for-237-providers-90-free-auto-fallback-and-a-toke#article","headline":"I spent ~4.5 months building a free, self-hosted AI gateway: one endpoint for 237 providers (90+ free), auto-fallback, and a token-compression pipeline (MIT)","description":"Sharing an open-source project I've put ~4.5 months into (disclosure: I'm the maintainer; per the self-advertisement rule I'm keeping the link in the first comment and making this post substantive). It started from two problems I hit daily: AI runs dying on a provider rate limit, and burning thousa…","datePublished":"2026-07-02T17:32:12+00:00","dateModified":"2026-07-02T22:00:48.43889+00:00","url":"https://stuffthatspins.com/spin/i-spent-45-months-building-a-free-self-hosted-ai-gateway-one-endpoint-for-237-providers-90-free-auto-fallback-and-a-toke","mainEntityOfPage":{"@type":"WebPage","@id":"https://stuffthatspins.com/spin/i-spent-45-months-building-a-free-self-hosted-ai-gateway-one-endpoint-for-237-providers-90-free-auto-fallback-and-a-toke"},"isAccessibleForFree":true,"inLanguage":"en-US","articleSection":"community","author":{"@type":"Organization","name":"Stuff That Spins"},"publisher":{"@id":"https://stuffthatspins.com/#organization"},"citation":"https://www.reddit.com/r/artificial/comments/1ulotbw/i_spent_45_months_building_a_free_selfhosted_ai/","about":[],"mentions":[]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Stuff That Spins","item":"https://stuffthatspins.com/"},{"@type":"ListItem","position":2,"name":"I spent ~4.5 months building a free, self-hosted AI gateway: one endpoint for 237 providers (90+ free), auto-fallback, and a token-compression pipeline (MIT)","item":"https://stuffthatspins.com/spin/i-spent-45-months-building-a-free-self-hosted-ai-gateway-one-endpoint-for-237-providers-90-free-auto-fallback-and-a-toke"}]}]}
---

# I spent ~4.5 months building a free, self-hosted AI gateway: one endpoint for 237 providers (90+ free), auto-fallback, and a token-compression pipeline (MIT)

**Source:** Unknown  
**Published:** July 2, 2026  
**Original:** https://www.reddit.com/r/artificial/comments/1ulotbw/i_spent_45_months_building_a_free_selfhosted_ai/  

---
*HTML version: https://stuffthatspins.com/spin/i-spent-45-months-building-a-free-self-hosted-ai-gateway-one-endpoint-for-237-providers-90-free-auto-fallback-and-a-toke*
