DOCS / GETTING STARTED / INTRODUCTION

Introduction

Lattice is centralized AI infrastructure: an internal gateway that sits between company applications and the model providers (OpenAI, Anthropic, Google, Ollama, vLLM) they'd otherwise integrate with one by one. Instead of every application shipping its own provider SDKs, API keys, retry logic, and cost tracking, applications talk to Lattice once, and Lattice talks to the providers.

The problem it solves

Without a gateway, every application that wants to call an LLM ends up re-solving the same problems: where do provider credentials live, what happens when a provider has an outage, how do you know which model an "smart" alias should resolve to this month, and who is spending how many tokens. Lattice centralizes all of that in one place that's operated once and consumed many times.

NOTE
Provider credentials live only in the gateway's environment. Applications never see an OpenAI, Anthropic, or Google API key — they only ever hold a Lattice-issued key.

Two applications, one repository

Lattice is a two-app monorepo:

  • apps/gateway — a Nitro + h3 server. This is the thing applications and providers actually talk to: the OpenAI-compatible /v1 API, the /management/v1 admin API, authentication, quota/rate-limit enforcement, routing, and request logging.
  • apps/dashboard — a Nuxt 4 + Nuxt UI admin surface, built entirely on top of the gateway's own management API. It has no privileged access the management API doesn't already grant; it just makes that API usable by a human.
Company applications Lattice Gateway (Nitro + h3) Providers Bearer lattice_sk_… Bearer lattice_sk_… Bearer lattice_sk_… Bearer management key Postgresapplications · keys · usage · logs Dashboard (Nuxt) Postgresdashboard sessions App A App B App C /v1OpenAI-compatible API /management/v1Admin API Auth · quota · rate limit Routerregistry + strategy + circuit breaker OpenAI Anthropic Google Ollama(self-hosted) vLLM(self-hosted)

Who this documentation is for

Next steps

Continue to Installation to set up the repository, or jump straight to Quick Start if you already have Bun and Postgres ready.

LATTICE — INTERNAL AI INFRASTRUCTURE
GITHUB © 2026