Quick Start Guide

← Back to Home

Get started with LangSpend Node.js SDK in minutes

Get up and running with LangSpend in just a few minutes.

1. Install the SDK

Install langspend

terminal

2. Get Your API Key

Sign up at app.langspend.com to get your free API key.

Your API key will look something like lsp_your_api_key.

3. Wrap Your LLM Client

OpenAI Example

setup.ts

4. Start Tracking

Make your first tracked call

example.js