selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

inference-gateway logo

Self-host inference-gateway

v0.60.1

Open-source LLM proxy unifying providers behind one API

BetaOpen SourceApache-2.0
Updated11 hours ago
LanguageGo
Setup difficultyModerate
Stars
217
Ports
8080 (Main API server), 9464 (Prometheus metrics endpoint)
Docker
ghcr.io/inference-gateway/inference-gateway
Install with Docker

What is inference-gateway?

Inference Gateway is a cloud-native proxy server providing a unified OpenAI-compatible API for multiple LLM providers. It supports many providers including major cloud services and local solutions. The gateway adds Model Context Protocol (MCP) integration for automatic tool discovery, Agent-to-Agent (A2A) server for agent coordination, OPA/Rego guardrails for request filtering, OIDC authentication, and OpenTelemetry metrics. Deployment options include Docker, Docker Compose, Kubernetes with an Operator, or a standalone binary. The project is Apache-2.0 licensed with a lightweight ~10MB binary.

Should you self-host inference-gateway?

inference-gateway scores 49/100 on selfhost.directory (how scoring works) and ranks #22 of 39 in API Gateway. It has 217 GitHub stars.

It shipped 20 stable releases in the past year. The latest, v0.60.1, came out on 26 October 2026. New versions land roughly every 2 days.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Go.

Its closest alternative on selfhost.directory is Kong Gateway (82/100, 44 314 stars). It scores higher overall, so compare the two before you pick. See inference-gateway vs Kong Gateway side by side.

Features

  • Agent-to-Agent (A2A) server
  • Audio APIOpenAI, ElevenLabs, and local llama-tts engine
  • CLI Tool
  • Function calling / Tool use
  • Guardrails (OPA/Rego)
  • Images APIOpenAI provider only
  • Kubernetes operator
  • Lightweight binary
  • Model Context Protocol (MCP) integration
  • OIDC Authentication
  • OpenTelemetry metrics
  • Privacy-first
  • Streaming
  • Unified OpenAI-compatible API
  • Vision / MultimodalDisabled by default

inference-gateway README

How to install inference-gateway

Install inference-gateway with Docker

Docker
Environment variables
OPENAI_API_KEY and other provider API keys

docker pull ghcr.io/inference-gateway/inference-gateway:latest docker run --rm -it -p 8080:8080 -e OPENAI_API_KEY=your_key_here ghcr.io/inference-gateway/inference-gateway:latest

Published container images set SERVER_HOST=0.0.0.0 automatically

How to configure inference-gateway

  • A2A_ENABLEDfalseExpose the gateway as an A2A server

    Expose the gateway as an A2A server

    values: true, false

  • ANTHROPIC_API_KEYAnthropic API Key

    Anthropic API Key

  • AUDIO_ENABLEDfalseEnable the Audio API

    Enable the Audio API

    values: true, false

  • AUTH_ENABLEDfalseEnable OIDC authentication

    Enable OIDC authentication

    values: true, false

  • AUTH_OIDC_CLIENT_IDOIDC client ID

    OIDC client ID

  • AUTH_OIDC_ISSUEROIDC issuer URL

    OIDC issuer URL

  • ENVIRONMENTproductionDeployment environment

    Deployment environment

    values: development, production, etc.

  • GROQ_API_KEYGroq API Key

    Groq API Key

  • IMAGES_ENABLEDfalseEnable the Images API

    Enable the Images API

    values: true, false

  • MCP_ENABLEDfalseEnable MCP middleware

    Enable MCP middleware

    values: true, false

  • MCP_EXPOSEfalseExpose the gateway as an MCP server on POST /mcp

    Expose the gateway as an MCP server on POST /mcp

    values: true, false

  • OLLAMA_API_URLhttp://ollama:8080/v1Ollama API URL

    Ollama API URL

  • OPENAI_API_KEYOpenAI API Key

    OpenAI API Key

  • SERVER_HOST127.0.0.1Server bind address

    Server bind address

    values: 0.0.0.0 for containers

  • SERVER_PORT8080Server port

    Server port

  • TELEMETRY_ENABLEDfalseEnable OpenTelemetry metrics and tracing

    Enable OpenTelemetry metrics and tracing

    values: true, false

  • TELEMETRY_METRICS_PORT9464Port for telemetry metrics server

    Port for telemetry metrics server

  • VIDEOS_ENABLEDfalseEnable the Videos API

    Enable the Videos API

    values: true, false

  • VISION_ENABLEDfalseEnable vision/multimodal handling for all providers

    Enable vision/multimodal handling for all providers

    values: true, false

inference-gateway releases & version history

More in API Gateway

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…