auto_ai_router

module
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2026 License: Apache-2.0

README

Auto AI Router

Auto AI Router Logo

GitHub Pages license

High-performance proxy router for LLM APIs with automatic load balancing, rate limiting, and fail2ban protection. Routes requests to OpenAI, Vertex AI, Gemini AI Studio, Anthropic, and other Auto AI Router instances.

Key Features

  • Multi-provider support — OpenAI, Vertex AI, Gemini, Anthropic, Proxy chains
  • Round-robin load balancing — across multiple credentials per model
  • Rate limiting — per-credential and per-model RPM/TPM controls
  • Fail2ban — automatic provider banning on repeated errors
  • Prometheus metrics — request counts, latency, credential status
  • LiteLLM DB integration — spend logging and API key authentication
  • Streaming — full SSE support for all providers
  • Environment variables — secure credential management via os.environ/VAR_NAME

Quick Start

# Build
git clone https://github.com/MiXaiLL76/auto_ai_router.git
cd auto_ai_router
go build -o auto_ai_router ./cmd/server/

# Run
./auto_ai_router -config config.yaml

Or with Docker:

docker pull ghcr.io/mixaill76/auto_ai_router:latest
docker run -p 8080:8080 -v $(pwd)/config.yaml:/app/config.yaml ghcr.io/mixaill76/auto_ai_router:latest

Documentation

Full documentation is available at mixaill76.github.io/auto_ai_router.

License

Apache License 2.0 — see LICENSE file.

Directories

Path Synopsis
cmd
server command
internal
converter/anthropic/responses
Package anthropicresponses implements the ProviderResponses interface for Anthropic.
Package anthropicresponses implements the ProviderResponses interface for Anthropic.
converter/bedrock/responses
Package bedrockresponses implements the ProviderResponses interface for AWS Bedrock Anthropic models.
Package bedrockresponses implements the ProviderResponses interface for AWS Bedrock Anthropic models.
converter/vertex/responses
Package vertexresponses implements the ProviderResponses interface for Vertex AI (Gemini).
Package vertexresponses implements the ProviderResponses interface for Vertex AI (Gemini).
security
Package security provides security utilities for the application
Package security provides security utilities for the application

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL