claudeers.

🔓 unclaimed — this page was auto-generated from GitHub. Are you the creator?

Claim this page →
// Data & Analytics

llmgateway

Route, manage, and analyze your LLM requests across multiple providers with a unified API interface.

// Data & Analytics[ api ][ desktop ][ web ][ claude ]#claude#ai#ai-gateway#analytics#anthropic#api-key-management#codex#enterprise#dataNOASSERTION$open-sourceupdated 15 days ago
Actively maintained
100/100
last commit 2 days ago
last release 3 days ago
releases 8
open issues 24
// install
git clone https://github.com/theopenco/llmgateway

LLM Gateway

LLM Gateway is an open-source API gateway for Large Language Models (LLMs). It acts as a middleware between your applications and various LLM providers, allowing you to:

  • Route requests to multiple LLM providers (OpenAI, Anthropic, Google Vertex AI, and others)
  • Manage API keys for different providers in one place
  • Track token usage and costs across all your LLM interactions
  • Analyze performance metrics to optimize your LLM usage

Features

  • Unified API Interface: Compatible with the OpenAI API format for seamless migration
  • Usage Analytics: Track requests, tokens used, response times, and costs
  • Multi-provider Support: Connect to various LLM providers through a single gateway
  • Performance Monitoring: Compare different models' performance and cost-effectiveness

Getting Started

You can use LLM Gateway in two ways:

  • Hosted Version: For immediate use without setup, visit llmgateway.io to create an account and get an API key.
  • Self-Hosted: Deploy LLM Gateway on your own infrastructure for complete control over your data and configuration.

Self-Hosted With Docker

Use Docker-managed volumes for the unified image. Do not bind-mount a host directory directly to /var/lib/postgresql/data, because PostgreSQL initialization inside the container needs to set permissions on that directory and that can fail depending on the host filesystem and ownership.

export LLM_GATEWAY_SECRET="$(openssl rand -base64 32 | tr -d '\n')"
export GATEWAY_API_KEY_HASH_SECRET="$(openssl rand -base64 32 | tr -d '\n')"
./scripts/run-unified-container.sh

If you prefer a one-off docker run, use named volumes instead of ~/some-host-dir:

docker volume create llmgateway_postgres
docker volume create llmgateway_redis

docker run -d \
  --name llmgateway \
  --restart unless-stopped \
  -p 3002:3002 \
  -p 3003:3003 \
  -p 3005:3005 \
  -p 3006:3006 \
  -p 4001:4001 \
  -p 4002:4002 \
  -v llmgateway_postgres:/var/lib/postgresql/data \
  -v llmgateway_redis:/var/lib/redis \
  -e AUTH_SECRET="$LLM_GATEWAY_SECRET" \
  -e GATEWAY_API_KEY_HASH_SECRET="$GATEWAY_API_KEY_HASH_SECRET" \
  ghcr.io/theopenco/llmgateway-unified:latest

Using LLM Gateway API

curl -X POST https://api.llmgateway.io/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LLM_GATEWAY_API_KEY" \
  -d '{
  "model": "gpt-4o",
  "messages": [
    {"role": "user", "content": "Hello, how are you?"}
  ]
}'

Development Setup

  1. Install dependencies and set up the development environment:

    pnpm i && pnpm run setup
    

    This will install all dependencies, start Docker services, sync the database schema, and seed initial data.

    Note for WSL2 users: Ensure Docker Desktop is running with WSL integration enabled.

  2. Start development servers:

    pnpm dev
    
  3. Build for production:

    pnpm build
    

Folder Structure

  • apps/ui: Next.js dashboard frontend
  • apps/playground: Next.js LLM playground
  • apps/code: Next.js Dev Plans + coding tools landing & dashboard
  • apps/api: Hono backend
  • apps/gateway: API gateway for routing LLM requests
  • apps/docs: Documentation site
  • apps/admin: Internal admin dashboard
  • packages/db: Drizzle ORM schema and migrations
  • packages/models: Model and provider definitions
  • packages/shared: Shared types and utilities

License

LLMGateway is available under a dual license:

  • Open Source: Core functionality is licensed under AGPLv3 - see the LICENSE file for details.
  • Enterprise: Commercial features in the ee/ directory require an Enterprise license - see ee/LICENSE for details.

Enterprise features include:

  • Advanced billing and subscription management
  • Extended data retention (unlimited vs 30 days)
  • Custom provider key configurations
  • Team and organization management
  • Priority support
  • And more to be defined

For enterprise licensing, please contact us at [email protected]

// compatibility

Platformsapi, desktop, web
Operating systems
AI compatibilityclaude
LicenseNOASSERTION
Pricingopen-source
LanguageTypeScript

// faq

What is llmgateway?

Route, manage, and analyze your LLM requests across multiple providers with a unified API interface.. It is open-source on GitHub.

Is llmgateway free to use?

llmgateway is open-source under the NOASSERTION license, so it is free to use.

What category does llmgateway belong to?

llmgateway is listed under data in the Claudeers registry of Claude-compatible tools.

0 views
1,378 stars
unclaimed
updated 15 days ago

// embed badge

llmgateway on Claudeers
[![Claudeers](https://claudeers.com/api/badge/llmgateway.svg)](https://claudeers.com/llmgateway)

// retro hit counter

llmgateway hit counter
[![Hits](https://claudeers.com/api/counter/llmgateway.svg)](https://claudeers.com/llmgateway)

// reviews

// guestbook

0/500

// related in Data & Analytics

🔓

Apache Airflow - A platform to programmatically author, schedule, and monitor workflows

// dataapache/Python46,041Apache-2.0[ claude ]
🔓

Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini 3.1 P…

// datarouter-for-me/Go39,089MIT[ claude ]
🔓

Marketing skills for Claude Code and AI agents. CRO, copywriting, SEO, analytics, and growth engineering.

// datacoreyhaines31/JavaScript36,446MIT[ claude ]
🔓

CLI tool for configuring and monitoring Claude Code

// datadavila7/Python28,435MIT[ claude ]

// built by

Connectorlinks several projects together across the ecosystem · 9 connections
→ see how llmgateway connects across the ecosystem