Skip to content

Concepts Overview

This section explains how Nexus works under the hood — the architecture, design decisions, and core concepts that power a secure, auditable AI gateway.

Contributors, security engineers, operators, and technical decision-makers who need to understand Nexus system design, component interactions, and architectural tradeoffs.

Nexus is built as Rust microservices on an open-source data plane (Postgres, ClickHouse, S3-compatible storage, NATS, Redis):

  • Request flow through gateway, policy engine, and provider routing
  • Multi-tenant identity model (workspaces, organizations, projects)
  • Tamper-evident audit chains with cryptographic proof
  • Data models and persistence layer
  • Architectural decisions (ADRs) and their rationale
  • Artifact storage for files and vector stores
  • Data Models - Postgres and ClickHouse schemas, trace contracts, and persistence architecture
  • Tracing and Auditing - How Nexus separates audit accountability, analytics metadata, and opt-in trace payloads
  • Architecture Decisions (ADRs) - Key technical decisions including Rust microservices, OpenAI-compatible API, tamper-evident audit, and event messaging
  • Artifact Storage - OpenAI-compatible file and vector-store lifecycle with pgvector and object storage