Skip to main content
Lucid’s compute layer connects AI agents with model providers and compute nodes through a policy-based matching engine. Every model and compute node is registered as a passport, and the matching engine selects the best provider based on runtime compatibility, hardware requirements, and policy constraints.

Compute Heartbeat System

Compute nodes maintain an in-memory registry with a 30-second TTL. Nodes send periodic heartbeats to stay discoverable:
A node is considered expired if no heartbeat is received within 30 seconds.

Model Availability

The /v1/models endpoint reports availability based on model format: For self-hosted models, availability requires a compute node with:
  1. Compatible runtimeruntimeCompatible() check
  2. Sufficient hardware — VRAM and context length via hardwareCompatible()
  3. Recent heartbeat — within 30s via ComputeRegistry.isHealthy()

Matching Engine

When a request arrives at /v1/match, the matching engine evaluates candidates:

Model Passports

Every model in the network is registered as a passport with metadata:

Compute Passports

Compute nodes register their hardware capabilities:

Revenue Splits

When inference flows through a compute node, revenue is split according to configurable basis points: Splits are enforced on-chain through the lucid_agent_wallet program’s configure_split and distribute instructions.