Hostinger Black Friday deal: VPS hosting up to 70% off
Ad

Try describing what you need:

GoModel logo

GoModel

★ 1.3k
MIT LicenseOpen Core — Some Features Paid6 Containers — 6 containers — moderate hosting footprintBinary · Docker · ComposeNeeds Postgres18+ active committers (12mo)

About

GoModel is an AI gateway aimed at teams that need a central control plane for LLM traffic. It sits between clients and model providers, offering an OpenAI-compatible `/v1` API and an...

Community Ratings

No ratings yet
GoModel AI gateway dashboard showing AI usage analytics, observability panel, token and costs tracking, and estimated cost monitoring

Features

  • caching
  • cost tracking
  • budgets
  • rate limits
  • usage API
  • virtual models
  • session keeping
  • failover
  • model access control
  • observability

Details

Last Updated
Nov 27, 2026
Created
Dec 5, 2025
Install Methods
binarydockerdocker-compose
Requirements
RedisPostgreSQLMongoDBPrometheus
Default Port
8080web dashboard and API
API
REST
Runtime / Stack
GoDocker
Privacy & Independence
Cloud: Optional
User Model
Multi-User
Deployment

Deployment: Docker Compose ✓6 Containers — moderate hosting footprintRuns as 6 containers

Run GoModel yourself

Pick how much you want to manage.

2 more ways to host

Some links earn us a commission. netcup pays us one and is our preferred VPS host. Hostinger is a paid sponsor and is listed first.

Is this your project? Sponsor a listing

Run GoModel with Docker Compose

Compose file from the GoModel project repository.

6 services · database: postgres · infra: redis, postgres, mongo · 2 unclassified (adminer, prometheus)

no resource limits declared

needs persistent storage (6 volumes)

docker-compose.yaml · @ 330558a · scanned Nov 3, 2026

# Infra (redis, postgres, mongodb, adminer): `docker compose up -d`
# App + Prometheus: `docker compose --profile app up -d`

services:
  gomodel:
    profiles:
      - app
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "${PORT:-8080}:8080"
    env_file:
      - .env
    environment:
      # Cache configuration
      - REDIS_URL=redis://redis:6379
      # Metrics
      - METRICS_ENABLED=true
      # Storage configuration (PostgreSQL for audit logs)
      - POSTGRES_URL=postgres://gomodel:gomodel@postgres:5432/gomodel
      # MongoDB configuration (uncomment to use MongoDB instead)
      - MONGODB_URL=mongodb://mongodb:27017/gomodel
      # Audit logging is enabled by default; pick its storage backend below
      # - STORAGE_TYPE=postgresql
      - STORAGE_TYPE=mongodb
    volumes:
      # The gateway's own state: the SQLite database when STORAGE_TYPE is
      # sqlite, the pid file, and the install identity. Without this the
      # directory is part of the container and is lost when it is recreated.
      - gomodel_data:/app/data
    depends_on:
      redis:
        condition: service_healthy
      postgres:
        condition: service_healthy
      mongodb:
        condition: service_healthy
    restart: unless-stopped

  redis:
    image: redis:7-alpine
    ports:
      - "6379:6379"
    volumes:
      - redis_data:/data
    command: redis-server --appendonly yes
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 10s
      timeout: 5s
      retries: 5

  postgres:
    image: postgres:18-alpine
    ports:
      - "5432:5432"
    environment:
      - POSTGRES_USER=gomodel
      - POSTGRES_PASSWORD=gomodel
      - POSTGRES_DB=gomodel
    volumes:
      - postgres_data:/var/lib/postgresql/data
    restart: unless-stopped
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U gomodel -d gomodel"]
      interval: 10s
      timeout: 5s
      retries: 5
      start_period: 10s

  mongodb:
    image: mongo:8
    ports:
      - "27017:27017"
    volumes:
      - mongodb_data:/data/db
    command: ["--replSet", "rs0", "--bind_ip_all"]
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "mongosh", "--quiet", "--eval", "try { rs.status() } catch(e) { rs.initiate({_id:'rs0',members:[{_id:0,host:'localhost:27017'}]}) }; if (!db.hello().isWritablePrimary) { quit(1) }"]
      interval: 5s
      timeout: 10s
      retries: 10
      start_period: 10s

  adminer:
    image: adminer:5
    ports:
      - "8081:8080"
    depends_on:
      - postgres
    restart: unless-stopped

  prometheus:
    profiles:
      - app
    image: prom/prometheus:latest
    ports:
      - "9090:9090"
    volumes:
      - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
      - prometheus_data:/prometheus
    command:
      - "--config.file=/etc/prometheus/prometheus.yml"
      - "--storage.tsdb.path=/prometheus"
      - "--web.enable-lifecycle"
    depends_on:
      - gomodel
    restart: unless-stopped

volumes:
  gomodel_data:
  redis_data:
  postgres_data:
  mongodb_data:
  prometheus_data:

This file may be out of date. Check the GoModel documentation for current setup steps.

Track your self-hosted stack

Bookmark software to try, rate tools you've used, and keep your collection in one place.

Metadata extracted from README on Oct 13, 2026

Alternatives to GoModel

LiteLLM logo

LiteLLM

64.1k
LiteLLM is an open source AI gateway and Python SDK for calling 100+ LLM providers through a unified OpenAI-compatible interface.
API ManagementProxy ServersArtificial Intelligence+2
3 ContainersOpen Core
Details
Manifest logo

Manifest

7.7k
Manifest is an OpenClaw plugin that routes requests to the most cost-effective LLM and provides a dashboard for tracking usage and costs.
Low Code DevelopmentArtificial IntelligenceAI Tooling+4
Telemetry: Opt-Out
Details
Kong logo

Kong

44.4k
Kong Gateway is a cloud-native API, LLM, and MCP gateway for proxying, routing, load balancing, authentication, and plugin-based traffic control.
API ManagementPermissive LicenseProxy Servers+2
Single ContainerOpen Core
Details

Related Software

Ollama logo

Ollama

188.4k
Ollama is a tool for running open models locally and exposing them through a REST API for apps, agents, and integrations.
Artificial IntelligenceLocal LLMsGenerative AI+3
Details
LibreChat logo

LibreChat

47.6k
LibreChat is a self-hosted AI chat platform that unifies major AI providers in a ChatGPT-like interface.
Artificial IntelligenceAI InterfacesLocal LLMs+4
6 Containers
Details
LLMKube logo

LLMKube

273
Kubernetes operator for LLM inference with pluggable runtimes (llama.cpp, vLLM, TGI, Ollama, vllm-swift), multi-GPU sharding, NVIDIA CUDA + Apple Silicon Metal support, and OpenAI-compatible API.
Artificial IntelligenceLocal LLMsInference Serving+2
Details
Langfuse logo

Langfuse

38.0k
Langfuse is an open source LLM engineering platform for teams to develop, monitor, evaluate, and debug AI applications.
IDE ToolsFOSS with IssuesPermissive License+5
6 ContainersFOSS with Issues
Details
Text Generation Inference logo

Text Generation Inference

10.9k
A Rust, Python, and gRPC server for deploying and serving large language models with high-performance text generation.
Inference ServingArtificial IntelligenceLocal LLMs+1
2 Containers
Details
LocalAI logo

LocalAI

50.6k
LocalAI is an open-source AI engine for running LLMs and other model types locally on a wide range of hardware, with drop-in API compatibility for several popular AI APIs.
Generative AIPermissive LicenseArtificial Intelligence+6
Single Container
Details
hermes-agent logo

hermes-agent

266.8k
Hermes Agent is a self-improving AI agent with a built-in learning loop, terminal UI, and messaging gateway for chatting and automating work across platforms.
Artificial IntelligenceAI AgentsAI Tooling+2
2 Containers
Details
big-AGI logo

big-AGI

7.2k
Big-AGI is a multi-model AI workspace for experts, focused on chat, model comparison, and local-first self-hosting.
Artificial IntelligenceAI InterfacesAI Media Generation+2
Open Core
Details
Codeman logo

Codeman

853
Codeman is a self-hosted dashboard for managing AI coding agents in persistent terminal sessions, with live web access, mobile-friendly controls, and background automation.
AI Coding AssistantAI AgentsAutomation Tools+2
Single Container
Details
openrig logo

openrig

9.0k
OpenRig is a CLI tool for defining, launching, and managing a team of AI coding agents in a persistent shared rig.
AI AgentsAI Coding AssistantAI Harness+1
Details
CloudCLI logo

CloudCLI

14.8k
CloudCLI is a desktop- and mobile-friendly interface for managing and interacting with Claude Code, Cursor CLI, and Codex sessions locally or remotely.
AI Coding AssistantAI InterfacesMobile terminals
Open Core
Details
vLLM logo

vLLM

97.8k
vLLM is a fast, easy-to-use library and server for LLM inference and serving.
Inference ServingLocal LLMsAI Tooling
2 Containers
Details