whatisgithub

What is gateway?

selixes/gateway — explained in plain English

Analysis updated 2026-05-18

1TypeScriptAudience · developerComplexity · 3/5Setup · moderate

In one sentence

A self hosted gateway that sits between your app and AI providers, automatically failing over, caching similar answers, and capping spend.

Mindmap

mindmap
  root((Selixes))
    What it does
      Fails over between AI providers
      Caches similar answers
      Caps session spend
    Tech stack
      TypeScript
      Docker
      Prisma
      Pinecone
    Use cases
      Avoid outages from one provider
      Cut repeat AI costs
      Keep data inside private cloud
    Audience
      Developers building AI apps
      Teams needing uptime
    Setup
      Docker Compose
      Swap OpenAI SDK settings
      Run locally in minutes

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Automatically switch to a backup AI provider when your primary one times out or rate limits you.

USE CASE 2

Serve cached answers for prompts with similar meaning instead of paying for the same AI call twice.

USE CASE 3

Set a hard dollar cap on how much a single session can spend on AI calls.

USE CASE 4

Keep AI requests inside your own private cloud instead of routing through a third party proxy.

What is it built with?

TypeScriptDockerPrismaPineconeNode.js

How does it compare?

selixes/gateway0xkinno/neuralvault0xmayurrr/ai-contractauditor
Stars111
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatehardeasy
Complexity3/54/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 5min

Requires Docker and Node.js locally, and the README claims a five minute setup for basic SDK failover.

License details are not stated in the provided text.

So what is it?

Selixes is a self hosted layer that sits between your application and AI providers like OpenAI, Anthropic, or Google, aiming to keep your product working even when one of those providers has an outage or slows down. If your app currently talks directly to a single AI provider, you are depending on that provider's uptime. Selixes gives you a local control point instead. Setting it up is meant to take about five minutes. Since it is built to match the standard OpenAI SDK, you mostly just change two settings: your API key and the base URL, so requests go to your local Selixes instance instead of directly to OpenAI. From there you can add extra instructions to each request through HTTP headers, such as a timeout after which it should automatically switch to a backup provider like Anthropic, a maximum dollar amount a single session is allowed to spend before it gets blocked, and whether to use cached answers for similar prompts. A few features stand out in the README. It automatically detects failures like timeouts, rate limits, or connection errors and reroutes requests to a standby model. It uses vector based caching through Pinecone so that questions with similar meaning, not just identical text, can be answered instantly from cache instead of calling the AI provider again. During a complete outage, it can fall back to running a local model called Llama 3 through Ollama, so basic functionality continues at no extra cost. Because it runs inside your own private cloud, your prompts and data never pass through a third party service. To run it locally you need Docker and Node.js, and the project includes a dashboard for watching request activity and reviewing what happened when something failed. A separate guide covers deploying it to a real server for production use.

Copy-paste prompts

Prompt 1
Show me how to point my existing OpenAI SDK code at a local Selixes gateway.
Prompt 2
Explain how to set a max session cost header so Selixes blocks overspending.
Prompt 3
Walk me through setting up Selixes locally with Docker Compose and Prisma.
Prompt 4
Help me configure Selixes to fall back to a local Llama model during a provider outage.

Frequently asked questions

What is gateway?

A self hosted gateway that sits between your app and AI providers, automatically failing over, caching similar answers, and capping spend.

What language is gateway written in?

Mainly TypeScript. The stack also includes TypeScript, Docker, Prisma.

What license does gateway use?

License details are not stated in the provided text.

How hard is gateway to set up?

Setup difficulty is rated moderate, with roughly 5min to a first successful run.

Who is gateway for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.