Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.lucid.foundation/llms.txt

Use this file to discover all available pages before exploring further.

Gateway (TrustGate)

Lucid’s Gateway, also known as TrustGate, is responsible for plan-based quota enforcement and feature gating. This ensures that users have access to the appropriate features and resources based on their subscription plan.

Plan Definitions

Lucid offers several plans, each with specific quotas and feature access. Below is a summary of the available plans:
PlanRequests/dayTool calls/dayFeaturesUse case
free1,000500NoneDefault for new tenants
pro50,00025,000chains, plugins, streamingPaying customers
growth500,000250,000+ custom_servers, priority_supportHigh-volume
internalUnlimitedUnlimitedAll featuresPlatform team only

Enforcing Policies and Quotas

The Gateway uses two main functions to manage plan-based access:
  • enforcePolicyAsync(): This function checks the feature gates associated with each plan. It ensures that users can only access the features included in their plan.
  • assertWithinQuotaAsync(): This function enforces the request and tool call quotas for each plan. It ensures that users do not exceed their daily limits. Note that this quota enforcement is skipped for users on the internal plan, which has unlimited access.

Feature Gates

The following features are controlled by the plan-based feature gates:
  • chains: Access to chain-related functionalities.
  • plugins: Ability to use various plugins.
  • streaming: Access to streaming capabilities.
  • custom_servers: Option to use custom servers, available in the growth plan.
  • priority_support: Access to priority support, available in the growth plan.
  • admin: Administrative features, typically reserved for internal use.
These mechanisms ensure that users have a seamless experience while adhering to the constraints of their chosen plan.