llmgateway  by theopenco

LLM API gateway for unified provider access

created 4 months ago
379 stars

Top 75.0% on SourcePulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

LLM Gateway provides a unified API interface for routing, managing, and analyzing requests across multiple Large Language Model (LLM) providers. It targets developers and organizations looking to streamline their LLM integrations, offering centralized API key management, usage tracking, and performance analytics for services like OpenAI, Anthropic, and Google Vertex AI.

How It Works

LLM Gateway acts as a middleware, abstracting the complexities of interacting with diverse LLM APIs. It presents a single, OpenAI-compatible API endpoint, simplifying application development and enabling easy switching between providers. The system routes requests based on configurable logic, tracks token usage and costs per provider, and collects performance metrics for analysis and optimization.

Quick Start & Requirements

  • Hosted Version: Sign up at llmgateway.io.
  • Self-Hosted:
    • Install dependencies: pnpm install
    • Start development: pnpm dev
    • Build for production: pnpm build
  • Prerequisites: Node.js (implied by pnpm), pnpm package manager.

Highlighted Details

  • Unified API Interface compatible with OpenAI.
  • Usage Analytics: Tracks requests, tokens, response times, and costs.
  • Multi-provider Support: Integrates with OpenAI, Anthropic, Google Vertex AI, and others.
  • Performance Monitoring: Facilitates comparison of models by performance and cost.

Maintenance & Community

The project is maintained by theopenco team. Further community or roadmap details are not specified in the README.

Licensing & Compatibility

Licensed under the MIT License. This permissive license allows for commercial use and integration with closed-source applications.

Limitations & Caveats

The README does not detail specific limitations, unsupported providers, or known issues. The project appears to be in active development, indicated by the development setup instructions.

Health Check
Last commit

1 day ago

Responsiveness

Inactive

Pull Requests (30d)
108
Issues (30d)
8
Star History
150 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.