GoModel
AI gateway / AI control plane / AI proxy written in Go. Unified OpenAI-compatible and Anthropic-compatible API for OpenAI, Anthropic, Gemini, Groq, xAI, Ollama, vLLM and more. A LiteLLM alternative with observability, guardrails, streaming, cost tracking, intelligent routing, sticky sessions, failover, real-time logs and usage tracking. Prod ready.
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Introduction
GoModel is an open-source AI gateway (LLM gateway) developed by enterpilot, Inc. and written in Go. Its core code is released under the MIT License. The official website describes it as "like OpenRouter, but open source and self-hostable." Your application only needs to connect to a single OpenAI- and Anthropic-compatible interface, and the gateway handles provider routing, model aliases, caching, failover, budgets, rate limiting, auditing, and usage statistics. If you already use the OpenAI SDK or the Anthropic SDK, you can usually integrate by just changing the base_url.
Key Features
Routing and Providers
- 37 providers, one interface: Includes OpenAI, Anthropic, Google Gemini, Vertex AI, Azure OpenAI, Amazon Bedrock, OpenRouter, Cohere, Groq, xAI, DeepSeek, Alibaba Cloud Bailian, MiniMax, Z.ai, Xiaomi MiMo, and more. It can also connect to local models through Ollama, vLLM, SGLang, and llama.cpp / LM Studio, and other OpenAI-compatible backends work too.
- Aliases and virtual models: Publish a fixed name such as
smart-chatexternally, while the provider and model behind it can be changed in the configuration at any time. - Load balancing: Supports weighted round-robin, as well as cost-based routing that picks the cheapest available model for each request. Multiple API keys for the same provider are used in rotation.
- Automatic failover: When an availability error occurs, it switches to the next model or provider, with retries using backoff and a circuit breaker.
- Provider passthrough: Call each provider's native API through
/p/:provider/*while keeping the gateway's authentication, usage statistics, and auditing.
Control and Security
- Scoped workflows: Turn caching, auditing, usage statistics, budgets, guardrails, and failover on or off separately by provider, model, or user path. Workflows are versioned, and the most specific scope takes precedence when matching.
- Guardrails: Before a request is sent, you can inject a system prompt or use an LLM to rewrite messages.
- Virtual API keys: Issue managed keys to teams without exposing the real provider credentials. Keys can be revoked and rotated in the admin interface.
- Rate limiting: Limit request rate and concurrency by user path, provider, or model.
Cost
- Budgets: Set hard spending limits by user path or tag, checked before a request is sent.
- Response caching: Built-in exact-match cache. Semantic caching requires an external Qdrant, pgvector, Pinecone, or Weaviate.
- Usage and cost statistics: Track token counts and USD costs per request, user path, and tag. You can override model pricing with your own contract prices.
Observability
- Audit logs record the actual routing of each request, the workflow, cache hits, and each provider call.
- A built-in admin dashboard shows live logs, usage, keys, budgets, and provider status, and includes a Playground for testing requests.
- Provides Prometheus
/metrics, health check endpoints, and OpenTelemetry (OTLP) tracing.
More Than Chat
- Covers the full OpenAI API surface: Chat, Embeddings, Responses API, Conversations, Files, and Batches.
- Native support for Anthropic
/v1/messagesand token counting. - Supports speech synthesis, transcription, and real-time voice over WebSocket/WebRTC.
- Can act as an MCP gateway, aggregating multiple MCP servers behind a single endpoint.
- Supports SSE streaming, with usage for streaming requests fully recorded. Requests in the same session are pinned to the same target and key.
Who It's For
- Platform teams that need a unified internal AI interface
- Multi-tenant SaaS products that need per-tenant billing and budget control
- Production systems that want to reduce dependence on a single provider and improve availability
- Developers who want to use Ollama/vLLM locally and cloud models in production, with the same interface on both sides
Core Strengths
The official website publishes a reproducible benchmark (run on the same AWS c7i.large, compared against LiteLLM 1.103.0). GoModel's results: p50 latency of 2.2 ms (LiteLLM: 55.8 ms), throughput of 4,498 req/s (LiteLLM: 220 req/s), peak memory of about 74 MB (LiteLLM: about 1.5 GB), a cold start of 0.8 s, and a compressed Docker image of about 21 MB. The website also acknowledges that LiteLLM supports more providers (100+). In addition, the whole gateway is a single binary with the admin interface embedded, so no other components need to be deployed.
Installation and Deployment
Docker:
docker run --rm -p 8080:8080 \
-e LOG_FORMAT=text \
-v gomodel_data:/app/data \
enterpilot/gomodel
macOS / Linux:
curl -fsSL https://gomodel.enterpilot.io/install.sh | sh
gomodel
Windows (PowerShell):
irm https://gomodel.enterpilot.io/install.ps1 | iex
You can also deploy with Docker Compose or a Kubernetes Helm chart. After startup, open the admin dashboard at http://localhost:8080/admin/dashboard. Storage defaults to SQLite with no extra configuration needed, and you can switch to PostgreSQL or MongoDB as traffic grows. For providers, you generally only need to set one environment variable (such as OPENAI_API_KEY); YAML configuration is optional.
Worth Noting
- The project is currently at v0.1.x and is moving toward v0.2.0. A plugin system, more guardrail capabilities, failover for image endpoints, and more are still in development.
- GoModel Pro is the commercial edition, offering extras such as prompt compression, smart routing (Beta), OIDC single sign-on, and quota templates applied by sub-path. It is licensed per company, pricing is arranged through discussion, and a 30-day money-back guarantee is offered.
- The official website offers an online demo, and there is also a Discord community.
Discover more
Agenta
Agenta is a workspace where you and your team build agents and automations.
AnythingLLM
Stop renting your intelligence. Own it with AnythingLLM. Everything you need for a powerful local-first agent experience
Hister
Your own search engine
LLMKube
Kubernetes operator for self-hosted LLM inference across a heterogeneous GPU fleet: NVIDIA CUDA, AMD Vulkan, and Apple Silicon Metal. Runtimes: llama.cpp, vLLM, TGI, mlx-server. Multi-GPU sharding, model caching, OpenAI-compatible endpoints. Apache-2.0, run across homelab and on-prem fleets, actively developed.
Local Deep Research
~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Vane
Vane is an AI-powered answering engine.