Skip to content

tushargr0ver/fastrouter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastRouter

A unified AI API gateway and router for multiple LLM providers. FastRouter provides a single interface to interact with OpenAI, Anthropic, Google Gemini, and more, with built-in credit management and usage tracking.

Features

  • Unified API: Single endpoint for multiple LLM providers.
  • Dashboard: User-friendly UI for managing API keys and viewing usage logs.
  • Credit System: Integrated credit wallet for managing model usage.
  • Dockerized: Simple deployment using Docker Compose.

Project Structure

  • backend/primary: Core logic, authentication, and database management (FastAPI).
  • backend/api: Thin proxy layer for routing LLM requests (FastAPI).
  • frontend: React-based dashboard for users (Bun + Vite).

Getting Started

Prerequisites

Installation & Running

  1. Clone the repository

    git clone https://github.com/tushargr0ver/fastrouter.git
    cd fastrouter
  2. Set up environment variables Create a .env file in the root directory (you can use .env.example as a template if it exists).

    cp .env.example .env # If available, otherwise create one

    Note: Ensure you set your provider API keys (OPENAI_API_KEY, etc.) in the .env file.

  3. Run with Docker Compose

    docker compose up --build

The services will be available at:

License

MIT

About

A Unified AI API Gateway that routes multiple LLM providers through a single standardized endpoint with centralized credit-based billing and real-time usage tracking

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors