Skip to main content

TypeScript SDK

The official SDK is generated by Speakeasy with full TypeScript types.
npm install raijin-labs-lucid-ai

Basic Setup

import { LucidAI } from "raijin-labs-lucid-ai";

const lucid = new LucidAI({
  bearerAuth: process.env.LUCID_API_KEY,
  // Optional: custom base URL
  // serverURL: "https://staging.api.lucid.foundation"
});

SDK Method Groups

GroupMethodsDescription
lucid.passportslist, create, get, update, delete, syncPassport management
lucid.chatcompletionsOpenAI-compatible chat
lucid.inferencerunDirect inference
lucid.matchmatch, explainModel matching
lucid.receiptscreate, get, verify, proofReceipt operations
lucid.epochscurrent, list, get, verifyEpoch management
lucid.agentsinit, plan, accomplish, executeAgent orchestration
lucid.payoutscalculate, fromReceipt, verifyPayout calculations
lucid.computeheartbeat, healthCompute node management

REST API

No SDK needed — use any HTTP client:
curl -X GET "https://api.lucid.foundation/v1/passports" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"