Install the SDK
Install Provider SDKs
Install the LLM provider SDKs you plan to use:Requirements
| Requirement | Version |
|---|---|
| Node.js | >= 18.0.0 |
| TypeScript | >= 5.0.0 (optional) |
Peer Dependencies
| Package | Version | Required |
|---|---|---|
openai | >= 4.0.0 | If using OpenAI |
@anthropic-ai/sdk | >= 0.20.0 | If using Anthropic |
@google/generative-ai | >= 0.1.0 | If using Gemini |
Verify Installation
Create a simple test file:TypeScript Configuration
For TypeScript projects, ensure yourtsconfig.json includes:
CommonJS vs ESM
The SDK supports both module formats:Next Steps
Quick Start
Learn how to instrument your first LLM application