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.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Step 1: Install and start GoModel
Docker
docker run --rm -p 8080:8080 \
-v gomodel_data:/app/data \
enterpilot/gomodel
macOS / Linux
curl -fsSL https://gomodel.enterpilot.io/install.sh | sh
# OPENAI_API_KEY="your-openai-key" # (optional)
gomodel
Windows (PowerShell)
irm https://gomodel.enterpilot.io/install.ps1 | iex
# $env:OPENAI_API_KEY = "your-openai-key" # (optional)
gomodel
ℹ️ Configure GoModel with .env, a config.yaml file, or manage the most important settings directly in the dashboard.
ℹ️ See .env.template for the complete list of environment variables, including all available providers.
Step 2: Open the dashboard and add a provider
http://localhost:8080/admin/dashboard
Step 3: Make an API call
curl http://localhost:8080/v1/responses \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5-chat-latest",
"input": "Hello!"
}'
GoModel accepts requests in two compatible formats:
/v1/v1/messagesThe official SDKs therefore work unchanged. Configure their base URLs as follows:
http://localhost:8080/v1http://localhost:8080 (the SDK appends /v1/messages)See the Providers Overview for the full per-provider feature matrix.
Infrastructure only (Redis, PostgreSQL, MongoDB, Adminer - no image build):
cp .env.template .env
# Add your API keys to .env
docker compose up -d
# or: make infra
Full stack (adds GoModel + Prometheus; builds the app image):
docker compose --profile app up -d
# or: make image
GoModel resolves configuration in the following order, with each source overriding those to its left:
Good defaults → config.yaml → .env → exported environment variables
See the Configuration reference for the full list of settings.
GoModel Pro is the commercial build: the same gateway, configuration, and dashboard, with licensed extensions.
More in the documentation...
Not ready for Pro? Sponsor GoModel to keep the open-source gateway moving.
See the roadmap for GoModel Pro and the upcoming 0.2.0 release.
Goal: $1K/month - ~15% achieved!
If GoModel saves you money or time, become a sponsor or try GoModel Pro.
We are on Discord. Feel free to stop by and tell us what you think about GoModel.
/p/{provider}/..., with GoModel auth and tracking.so at startup