Skip to main content
TrustGate is Lucid’s AI gateway — an OpenAI-compatible LLM proxy that handles authentication, quota enforcement, model routing, and metering for every inference request.

How Routing Works

Wildcard Routing

TrustGate uses LiteLLM with wildcard routing (provider/* patterns). Any model from a configured provider works instantly without configuration changes. When a provider releases a new model, it is available immediately.

Model Name Resolution

The model router resolves names in this order:
  1. Passport lookup — checks api_model_id in passport metadata (preferred)
  2. Prefixed namesopenai/gpt-4.1 routes directly to the OpenAI provider
  3. Backward-compat aliases — unprefixed names like gpt-4o map to openai/gpt-4o

Availability Filtering

The /v1/models endpoint supports a tri-state availability filter: For API-format models (hosted providers), availability is always true. For self-hosted models (safetensors, gguf), availability requires at least one healthy compute node with compatible runtime, sufficient VRAM, and a recent heartbeat (within 30s).

Plan-Based Access

Access to models is governed by tenant plan tiers:

Receipts Are Automatic

Every routed request produces a cryptographic receipt. This is not opt-in — receipts are an unavoidable byproduct of using TrustGate. Each receipt is SHA-256 hashed, Ed25519 signed, appended to the Merkle Mountain Range (MMR), and periodically anchored on-chain.