Installation & Setup
This guide will walk you through installing and configuring the Lucidic AI TypeScript SDK.Prerequisites
- Node.js version 18 or higher
- TypeScript version 5.x (recommended)
- A Lucidic account with API key and Agent ID — see Dashboard setup
Please refer to Dashboard Setup to create your account and API key
Install the SDK
Using npm
Using yarn
Configuration
Environment Variables
Create a.env
file in your project root:
TypeScript Configuration
If using TypeScript, ensure yourtsconfig.json
includes:
Basic Setup
TypeScript/ES Modules
CommonJS
Initialization Options
Minimal Setup
The absolute minimum setup requires just 2 lines:Provider Setup
OpenAI
Anthropic
Verify Installation
Run this test script to verify everything is working:Next Steps
- Core Concepts - Learn about Sessions, Steps, and Events
- Quick Start Guide - Build your first tracked application
- API Reference - Complete function documentation